app.scss 6.31 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
// app global css in SCSS form
// ------------------------------------------------------------------
// SCROLLBAR
// ------------------------------------------------------------------

html {
  --scrollbarBG: #CCC;
  --thumbBG: #999;
}
body::-webkit-scrollbar {
  width: 7px;
}
body {
  scrollbar-width: thin;
  scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}
body::-webkit-scrollbar-track {
  background: var(--scrollbarBG);
}
body::-webkit-scrollbar-thumb {
  background-color: var(--thumbBG);
  border-radius: 6px;
  border: 1px solid var(--scrollbarBG);
}

// ------------------------------------------------------------------
// FONTS
// ------------------------------------------------------------------

@font-face {
  font-family: 'Roboto Mono';
32
  src: url(/_assets/fonts/roboto-mono/roboto-mono.woff2);
33 34 35 36 37 38
}

.font-robotomono {
  font-family: 'Roboto Mono', Consolas, "Liberation Mono", Courier, monospace;
}

39 40 41 42
.text-wordbreak-all {
  word-break: break-all;
}

43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
// ------------------------------------------------------------------
// THEME COLORS
// ------------------------------------------------------------------

:root {
  --q-header: #000;
  --q-sidebar: #1976D2;
}

.header, .bg-header {
  background: #000;
  background: var(--q-header);
}
.sidebar, .bg-sidebar {
  background: #1976D2;
  background: var(--q-sidebar);
}

.bg-dark-6 { background-color: #070a0d; }
.bg-dark-5 { background-color: #0d1117; }
.bg-dark-4 { background-color: #161b22; }
.bg-dark-3 { background-color: #1e232a; }
65 66
.bg-dark-2 { background-color: #292f39; }
.bg-dark-1 { background-color: #343b48; }
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97

// ------------------------------------------------------------------
// FORMS
// ------------------------------------------------------------------

.v-textarea.is-monospaced textarea {
  font-family: 'Roboto Mono', 'Courier New', Courier, monospace;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.q-field.denser .q-field__control {
  height: 36px;

  .q-field__prepend {
    height: 36px;
  }
}

.q-field.fill-outline .q-field__control {
  background-color: #FFF;

  @at-root .body--light & {
    background-color: #FFF;
  }
  @at-root .body--dark & {
    background-color: $dark;
  }
}

98 99 100 101 102
.q-field--dark .q-field__control:before {
  background-color: $dark-5;
  border-color: rgba(255,255,255,.25);
}

103 104 105 106 107 108 109 110 111 112 113
// ------------------------------------------------------------------
// ICONS SIZE FIX
// ------------------------------------------------------------------

.q-btn .q-icon {
  &.fa-solid,
  &.fa-regular {
    font-size: 1.3em;
  }
}

NGPixel's avatar
NGPixel committed
114 115 116 117
.q-select__dropdown-icon {
  font-size: 16px;
}

118 119 120 121
// ------------------------------------------------------------------
// BUTTONS
// ------------------------------------------------------------------

122
.q-btn.acrylic-btn {
123 124 125 126 127 128
  .q-focus-helper {
    background-color: currentColor;
    opacity: .1;
  }

  &:hover .q-focus-helper {
129
    opacity: .3 !important;
130 131 132 133 134 135 136 137 138 139 140 141 142
  }
}

// ------------------------------------------------------------------
// ICONS
// ------------------------------------------------------------------

.blueprint-icon {
  &-alt {
    filter: hue-rotate(100);
  }
}

143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
// ------------------------------------------------------------------
// DIALOGS
// ------------------------------------------------------------------

.card-header {
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: .9rem;
  background-color: $dark-3;
  background-image: radial-gradient(at bottom right, $dark-3, $dark-5);
  color: #FFF;

  @at-root .body--light & {
    border-bottom: 1px solid $dark-3;
    box-shadow: 0 1px 0 0 $dark-6;
  }
  @at-root .body--dark & {
    border-bottom: 1px solid #000;
    box-shadow: 0 1px 0 0 lighten($dark-3, 2%);
  }
}

Nicolas Giard's avatar
Nicolas Giard committed
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
.card-negative {
  display: flex;
  align-items: center;
  font-size: .9rem;

  @at-root .body--light & {
    background-color: $red-1;
    background-image: radial-gradient(at bottom center, lighten($red-1, 2%), lighten($red-2, 2%));
    border-bottom: 1px solid $red-3;
    text-shadow: 0 0 4px #FFF;
    color: $red-9;
  }
  @at-root .body--dark & {
    background-color: $red-9;
    background-image: radial-gradient(at bottom center, $red-7, $red-9);
    border-bottom: 1px solid $red-7;
    text-shadow: 0 0 4px darken($red-9, 10%);
    color: #FFF;
  }
}

187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
.card-actions {
  @at-root .body--light & {
    background-color: #FAFAFA;
    background-image: linear-gradient(to bottom, #FCFCFC, #F0F0F0);
    color: $dark-3;
    border-top: 1px solid #EEE;
    box-shadow: inset 0 1px 0 0 #FFF;
  }
  @at-root .body--dark & {
    background-color: $dark-3;
    background-image: radial-gradient(at top left, $dark-3, $dark-5);
    border-top: 1px solid #000;
    box-shadow: 0 -1px 0 0 lighten($dark-3, 2%);
  }
}

203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
// ------------------------------------------------------------------
// CARDS
// ------------------------------------------------------------------

.q-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 1px rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);

  &.q-card--dark {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 1px rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);
  }

  .q-separator--dark {
    background-color: rgba(0,0,0,.7);
  }
}

219 220 221 222 223 224
// ------------------------------------------------------------------
// DROPDOWN MENUS
// ------------------------------------------------------------------

.translucent-menu {
  @at-root .body--light & {
NGPixel's avatar
NGPixel committed
225
    background-color: rgba(255,255,255,.8);
226 227 228 229
  }
  @at-root .body--dark & {
    background-color: rgba($dark,.7);
  }
230

231
  backdrop-filter: blur(10px) saturate(180%);
232 233 234 235 236 237

  > .q-card {
    background-color: transparent !important;
  }
}

238 239 240 241
.q-menu--dark {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 1px rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);
}

242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260
// ------------------------------------------------------------------
// LOADING ANIMATIONS
// ------------------------------------------------------------------

.syncing-enter-active {
  animation: syncing-anim .1s;
}
.syncing-leave-active {
  animation: syncing-anim 1s reverse;
}
@keyframes syncing-anim {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

261 262 263 264 265 266
.loading-darker {
  .q-loading__backdrop {
    opacity: .75;
  }
}

267 268 269 270 271
// ------------------------------------------------------------------
// IMPORTS
// ------------------------------------------------------------------

@import './animation.scss';
272 273
@import 'v-network-graph/lib/style.css';
@import './page-contents.scss';