_variables.scss 11.6 KB
Newer Older
1 2
//ASSETS BASE
$assets-base: ".." !default;
C
codecalm 已提交
3

C
chomik 已提交
4
// FONTS
C
codecalm 已提交
5
$google-font: "Source Sans Pro" !default;
6

C
codecalm 已提交
7
$font-family-sans-serif: $google-font, -apple-system, blinkmacsystemfont, segoe ui, helvetica, arial, sans-serif, apple color emoji, segoe ui emoji, segoe ui symbol !default;
C
chomik 已提交
8 9 10
$font-family-serif: "Georgia", "Times New Roman", times, serif !default;

// EXTERNAL FONTS
11
$icon-fonts: () !default;
C
chomik 已提交
12 13

// COLORS
C
codecalm 已提交
14 15
$theme-color-interval: 10% !default;

C
codecalm 已提交
16
$light: #f5f7fb !default;
C
codecalm 已提交
17
$dark: #303645 !default;
C
codecalm 已提交
18

C
codecalm 已提交
19
$light-black: rgba($dark, .24) !default;
C
codecalm 已提交
20
$light-mix: rgba(mix($light, $dark, 64%), .24) !default;
C
codecalm 已提交
21
$light-white: rgba($light, .24) !default;
C
codecalm 已提交
22

C
codecalm 已提交
23 24
$min-black: rgba($dark, .032) !default;
$min-white: rgba($light, .032) !default;
25

C
codecalm 已提交
26 27 28 29 30 31 32 33 34
$gray-100: $light !default;
$gray-200: mix($light, $dark, 98%) !default;
$gray-300: mix($light, $dark, 94%) !default;
$gray-400: mix($light, $dark, 88%) !default;
$gray-500: mix($light, $dark, 79%) !default;
$gray-600: mix($light, $dark, 63%) !default;
$gray-700: mix($light, $dark, 45%) !default;
$gray-800: mix($light, $dark, 22%) !default;
$gray-900: $dark !default;
C
chomik 已提交
35

C
chomik 已提交
36
$blue: #206bc4 !default;
C
chomik 已提交
37 38 39 40
$azure: #45aaf2 !default;
$indigo: #6574cd !default;
$purple: #a55eea !default;
$pink: #f66d9b !default;
C
chomik 已提交
41
$red: #fa4654 !default;
42
$orange: #ff922b !default;
C
codecalm 已提交
43
$yellow: #fab005 !default;
C
codecalm 已提交
44
$lime: #94d82d !default;
C
chomik 已提交
45 46 47
$green: #5eba00 !default;
$teal: #2bcbba !default;
$cyan: #17a2b8 !default;
48 49
$black: #000000 !default;
$white: #ffffff !default;
C
chomik 已提交
50

C
codecalm 已提交
51 52 53
$body-bg: $light !default;
$body-color: $dark !default;

C
codecalm 已提交
54 55
$text-muted: mix($body-color, #fff, 64%) !default;
$border-color: rgba(mix($body-color, #fff, 64%), .24) !default;
C
codecalm 已提交
56 57

$hover-bg: $light-white !default;
C
codecalm 已提交
58
$active-bg: rgba($blue, .06) !default;
C
codecalm 已提交
59

C
codecalm 已提交
60 61 62 63
$dark-body-bg: #222935 !default;
$dark-body-color: #afbdd1 !default;
$dark-border-color: rgba($dark-body-color, .4) !default;

C
codecalm 已提交
64
$primary: $blue !default;
C
codecalm 已提交
65
$secondary: $text-muted !default;
C
codecalm 已提交
66
$success: $green !default;
C
codecalm 已提交
67
$info: $azure !default;
C
codecalm 已提交
68 69
$warning: $yellow !default;
$danger: $red !default;
C
chomik 已提交
70 71 72 73 74

$social-colors: (
  "facebook": #3b5998,
  "twitter": #1da1f2,
  "google": #dc4e41,
75
  "youtube": #ff0000,
C
chomik 已提交
76 77 78 79 80 81 82 83 84
  "vimeo": #1ab7ea,
  "dribbble": #ea4c89,
  "github": #181717,
  "instagram": #e4405f,
  "pinterest": #bd081c,
  "vk": #6383a8,
  "rss": #ffa500,
  "flickr": #0063dc,
  "bitbucket": #0052cc,
85
  "tabler": #206bc4
C
chomik 已提交
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
) !default;

$colors: (
  "blue": $blue,
  "azure": $azure,
  "indigo": $indigo,
  "purple": $purple,
  "pink": $pink,
  "red": $red,
  "orange": $orange,
  "yellow": $yellow,
  "lime": $lime,
  "green": $green,
  "teal": $teal,
  "cyan": $cyan,
  "white": $white,
  "gray": $gray-600,
C
chomik 已提交
103 104
  "gray-dark": $gray-800,
  "dark": $dark
C
chomik 已提交
105 106 107
) !default;

$avatar-sizes: (
108
  "xs": 1.5rem,
109
  "sm": 2rem,
C
chomik 已提交
110 111 112
  "md": 3rem,
  "lg": 4.5rem,
  "xl": 6rem
C
chomik 已提交
113 114
) !default;

115
//Fonts
C
codecalm 已提交
116
$font-size-base: .9375rem !default;
C
codecalm 已提交
117
$font-weight-bold: 600 !default;
118
$body-letter-spacing: null !default;
C
chomik 已提交
119

C
codecalm 已提交
120 121 122 123
$line-height-base: 1.6 !default;
$line-height-sm: 1.3333334 !default;
$line-height-lg: 2 !default;

C
codecalm 已提交
124 125
$border-width: 1px !default;
$border-width-wide: 2px !default;
C
chomik 已提交
126 127
$border-radius: 3px !default;

128
//Typography
C
codecalm 已提交
129
$headings-font-weight: $font-weight-bold !default;
C
chomik 已提交
130

C
chomik 已提交
131
$small-font-size: 87.5% !default;
C
chomik 已提交
132

C
codecalm 已提交
133 134 135 136 137 138
$h1-font-size: (26em / 15) !default;
$h2-font-size: (23em / 15) !default;
$h3-font-size: (18em / 15) !default;
$h4-font-size: (15em / 15) !default;
$h5-font-size: (13em / 15) !default;
$h6-font-size: (11em / 15) !default;
C
chomik 已提交
139 140

$blockquote-font-size: $h4-font-size !default;
141

C
codecalm 已提交
142 143 144
$code-font-size: 80% !default;
$code-color: $primary !default;

145 146
$lead-font-size: $h4-font-size !default;
$lead-font-weight: 400 !default;
C
chomik 已提交
147

C
codecalm 已提交
148 149 150
$hr-opacity: .1 !default;
$hr-margin-y: 1rem !default;

C
codecalm 已提交
151 152
$caret-spacing: .4em !default;

153
//Sizing
C
chomik 已提交
154 155
$spacer: 1rem !default;
$spacers: (
C
codecalm 已提交
156 157 158 159
  0: 0,
  1: $spacer * .25,
  2: $spacer * .5,
  3: $spacer,
C
codecalm 已提交
160
  4: $spacer * 1.5,
C
codecalm 已提交
161 162 163
  5: $spacer * 2.5,
  6: $spacer * 4,
  7: $spacer * 6
C
chomik 已提交
164
) !default;
C
chomik 已提交
165

C
chomik 已提交
166 167 168 169 170 171
$size-spacers: (
  auto: auto,
  px: 1px,
  full: 100%
) !default;

C
chomik 已提交
172

C
chomik 已提交
173
$sizes-percentage: (
C
chomik 已提交
174 175 176 177 178 179 180 181
  1: 1%,
  25: 25%,
  50: 50%,
  75: 75%,
  100: 100%,
  auto: auto
) !default;

C
codecalm 已提交
182 183 184 185 186 187 188
$grid-breakpoints: (
  xs: 0,
  sm: 33rem,
  md: 48rem,
  lg: 64rem,
  xl: 75.25rem
) !default;
C
chomik 已提交
189

C
chomik 已提交
190
$container-max-widths: (
C
codecalm 已提交
191 192
  sm: 32.5rem,
  md: 47.5rem,
C
codecalm 已提交
193 194
  lg: 64rem,
  xl: 75.25rem
C
chomik 已提交
195 196
) !default;

C
codecalm 已提交
197 198 199 200 201
$container-variations: (
  tight: 30rem,
  narrow: 32.5rem,
) !default;

C
codecalm 已提交
202 203 204 205 206 207 208
$embed-responsive-aspect-ratios: (
  '2by1': (
    x: 2,
    y: 1
  )
) !default;

A
Anton 已提交
209
//alerts
C
codecalm 已提交
210
$alert-link-font-weight: $font-weight-bold !default;
C
codecalm 已提交
211 212 213
$alert-bg-level: -8 !default;
$alert-border-level: -6 !default;
$alert-color-level: 8 !default;
A
Anton 已提交
214

215 216
//breadcrumb
$breadcrumb-variants: (
C
codecalm 已提交
217 218 219
  dots: "·",
  arrows: "›",
  bullets: "\02022",
220 221 222
) !default;

//badges
C
codecalm 已提交
223
$badge-font-weight: $font-weight-bold !default;
C
codecalm 已提交
224
$badge-empty-size: .5rem !default;
225 226

//buttons
227
$input-color: $body-color !default;
C
codecalm 已提交
228
$input-btn-line-height: (22/15) !default;
C
codecalm 已提交
229
$input-btn-font-size: $font-size-base !default;
230

C
codecalm 已提交
231 232 233
$input-btn-font-size-sm: $h5-font-size !default;
$input-btn-padding-x-sm: .5rem !default;
$input-btn-padding-y-sm: .125rem !default;
234

C
codecalm 已提交
235 236 237
$input-btn-font-size-lg: $h2-font-size !default;
$input-btn-padding-x-lg: 1.5rem !default;
$input-btn-padding-y-lg: .5rem !default;
238 239 240 241

$input-height: null !default;
$input-height-sm: null !default;
$input-height-lg: null !default;
C
codecalm 已提交
242 243
$input-color: inherit !default;
$input-focus-color: inherit !default;
244

C
codecalm 已提交
245
//buttons
246
$btn-padding-x: 1rem !default;
247
$btn-font-weight: 500 !default;
248 249
$btn-border-radius: 3px !default;

C
codecalm 已提交
250
//cards
C
codecalm 已提交
251
$card-border-color: $border-color !default;
C
codecalm 已提交
252
$card-border-radius: $border-radius !default;
253
$card-cap-bg: $min-black !default;
C
codecalm 已提交
254

C
codecalm 已提交
255
$card-active-border-color: $primary !default;
C
codecalm 已提交
256
$card-status-size: $border-width-wide !default;
C
codecalm 已提交
257
$card-group-margin: 1.5rem !default;
C
codecalm 已提交
258
$card-group-margin-sm: .75rem !default;
C
codecalm 已提交
259

C
codecalm 已提交
260
$card-shadow: rgba($dark, .04) 0 2px 4px 0 !default;
261
$card-shadow-hover: rgba($dark, .16) 0 2px 16px 0 !default;
C
codecalm 已提交
262

C
codecalm 已提交
263 264 265 266
$cards-grid-gap: 1.25rem !default;
$cards-grid-gap-sm: .75rem !default;
$cards-grid-breakpoint: lg !default;

C
codecalm 已提交
267

C
chomik 已提交
268 269 270 271
//close
$close-font-weight: 400 !default;
$close-font-size: 1.5rem !default;

C
codecalm 已提交
272 273
//dropdown
$dropdown-item-padding-x: 1rem !default;
C
codecalm 已提交
274
$dropdown-font-size: $h4-font-size !default;
C
codecalm 已提交
275
$dropdown-divider-bg: $border-color !default;
C
codecalm 已提交
276
$dropdown-padding-y: .5rem !default;
277 278
$dropdown-link-hover-bg: $hover-bg !default;
$dropdown-link-hover-color: inherit !default;
C
codecalm 已提交
279
$dropdown-spacer: 1px !default;
280

C
codecalm 已提交
281 282 283
$dropdown-link-active-color: $primary !default;
$dropdown-link-active-bg: $active-bg !default;

C
codecalm 已提交
284 285 286
$dropdown-border-color: $border-color !default;
$dropdown-menu-max-width: 25rem !default;

C
codecalm 已提交
287
//grid
288
$grid-gutter-width: 1.25rem !default;
C
codecalm 已提交
289 290 291 292

//loader
$loader-size: 2.5rem !default;

293 294 295 296
//lists
$list-group-item-padding-y: .5rem !default;
$list-group-item-padding-x: .75rem !default;

C
codecalm 已提交
297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316
//modals
$modal-content-border-color: $border-color !default;
$modal-backdrop-opacity: .24 !default;
$modal-backdrop-bg: $dark !default;
$modal-backdrop-blur: 2px !default;

$modal-fade-transform: translate(0, -1rem) !default;

$modal-content-border-radius: $border-radius !default;

$modal-inner-padding: .75rem !default;
$modal-inner-padding-x: 1.25rem !default;
$modal-footer-border-width: 0 !default;
$modal-header-border-width: 0 !default;

$modal-xl: 1140px !default;
$modal-lg: 800px !default;
$modal-md: 540px !default;
$modal-sm: 300px !default;

317
//navbar
C
codecalm 已提交
318
$navbar-padding-y: .5rem !default;
C
codecalm 已提交
319
$navbar-height: 3.5rem !default;
C
codecalm 已提交
320
$navbar-border-color: $border-color !default;
C
codecalm 已提交
321

C
codecalm 已提交
322 323 324 325 326
$navbar-toggler-padding-y: .75rem !default;
$navbar-toggler-padding-x: .75rem !default;
$navbar-toggler-margin: -.75rem !default;
$navbar-toggler-font-size: 1rem !default;
$navbar-toggler-size: 1.5rem !default;
C
codecalm 已提交
327
$navbar-toggler-item-height: 2px !default;
C
codecalm 已提交
328 329
$navbar-toggler-item-spacing: 7px !default;
$navbar-toggler-transform-time: .2s !default;
C
codecalm 已提交
330

C
codecalm 已提交
331 332 333
//popover
$popover-border-color: $border-color !default;

C
codecalm 已提交
334
//nav
335
//$nav-link-padding-y: 1rem !default;
C
codecalm 已提交
336 337 338 339 340 341

$navbar-padding-y: .75rem !default;
$navbar-nav-link-padding-x: .75rem !default;
$navbar-light-color: $text-muted !default;
$navbar-light-active-color: $primary !default;
$navbar-light-hover-color: $body-color !default;
C
codecalm 已提交
342

C
chomik 已提交
343 344 345 346 347
//pagination
$pagination-border-width: 0 !default;
$pagination-padding-y: .25rem !default;
$pagination-padding-x: .25rem !default;
$pagination-color: $text-muted !default;
C
chomik 已提交
348 349
$pagination-bg: transparent !default;
$pagination-disabled-bg: transparent !default;
C
codecalm 已提交
350
$pagination-disabled-color: rgba($text-muted, .5) !default;
C
chomik 已提交
351

C
codecalm 已提交
352

C
chomik 已提交
353 354 355 356
//steps
$steps-border-width: 2px !default;
$steps-color-inactive: #f3f5f5 !default;

C
chomik 已提交
357 358 359
//spinner
$spinner-width: 1.5rem !default;
$spinner-height: 1.5rem !default;
C
codecalm 已提交
360 361
$spinner-width-sm: 1rem !default;
$spinner-height-sm: 1rem !default;
C
chomik 已提交
362
$spinner-border-width: 2px !default;
C
codecalm 已提交
363
$spinner-border-width-sm: 1px !default;
C
chomik 已提交
364

365 366 367
//tables
$table-head-border-color: $border-color !default;

C
chomik 已提交
368 369 370 371 372
//toasts
$toast-border-color: $border-color !default;
$toast-header-color: $text-muted !default;

//other
C
chomik 已提交
373 374
$yiq-contrasted-threshold: 200 !default;

375
//progress
C
codecalm 已提交
376
$progress-bg: $light-mix !default;
C
codecalm 已提交
377
$progress-height: .5rem !default;
378

C
codecalm 已提交
379 380 381
//ribbons
$ribbon-margin: .25rem !default;

C
codecalm 已提交
382

C
chomik 已提交
383
$list-group-border-color: $border-color !default;
C
chomik 已提交
384 385
$list-group-action-color: inherit !default;

C
chomik 已提交
386 387
$input-disabled-bg: $gray-100 !default;
$input-border-color: $border-color !default;
C
codecalm 已提交
388
$input-placeholder-color: $text-muted !default;
C
chomik 已提交
389

C
codecalm 已提交
390
$input-group-addon-bg: $min-black !default;
C
chomik 已提交
391 392 393 394
$input-group-addon-color: $text-muted !default;

$input-border-radius: $border-radius !default;

395 396

//Forms
C
codecalm 已提交
397 398
$form-check-input-width: 1rem !default;
$form-check-padding-left: $form-check-input-width + .5rem !default;
C
codecalm 已提交
399
$form-check-input-bg: $white !default;
C
codecalm 已提交
400 401
$form-check-input-border: 1px solid $border-color !default;
$form-check-input-border-radius: $border-radius !default;
C
codecalm 已提交
402
$form-check-input-checked-bg-size: .75rem !default;
C
codecalm 已提交
403

C
codecalm 已提交
404 405 406 407
$form-check-input-checked-color: $white !default;
$form-check-input-checked-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='#{$form-check-input-checked-color}' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M4 8.5L6.5 11l6-6'/></svg>") !default;
$form-check-input-checked-bg-image-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='#{$dark}' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M4 8.5L6.5 11l6-6'/></svg>") !default;

C
codecalm 已提交
408
$form-check-input-checked-border-color: $border-color !default;
409

C
codecalm 已提交
410
$form-select-indicator-color: opacify($border-color, .24) !default;
C
codecalm 已提交
411

C
codecalm 已提交
412 413
$form-switch-width: 1.75rem !default;
$form-switch-padding-left: $form-switch-width + .5rem !default;
C
codecalm 已提交
414

C
codecalm 已提交
415
$form-range-track-height: .25rem !default;
C
codecalm 已提交
416 417 418 419
$form-range-track-bg: $light-mix !default;
$form-range-thumb-border: 2px solid $white !default;
$form-range-thumb-height: 1rem !default;
$form-range-thumb-focus-box-shadow-width: .125rem !default;
420

C
codecalm 已提交
421 422
$form-feedback-icon-valid: str-replace(url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='" + $green + "' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'></polyline></svg>"), "#", "%23") !default;
$form-feedback-icon-invalid: str-replace(url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='" + $red + "' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'></line><line x1='6' y1='6' x2='18' y2='18'></line></svg>"), "#", "%23") !default;
C
chomik 已提交
423

C
codecalm 已提交
424
$caret-width: .32em !default;
425 426

//Flags
C
chomik 已提交
427 428 429 430 431 432
$generate-flags: true !default;
$flag-sizes: (
  "md": 2rem,
  "lg": 3rem,
  "xl": 4rem
) !default;
433

M
memorte03 已提交
434 435
//Payments
$payment-sizes: (
436
  "sm": 1.5rem,
M
memorte03 已提交
437 438 439
  "lg": 3rem,
  "xl": 4rem
) !default;
440 441 442 443 444

$enable-social-colors: true !default;
$enable-ghost-buttons: true !default;
$enable-extra-colors: true !default;
$enable-gradients: false !default;