_variables.scss 14.1 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
codecalm 已提交
8
$font-family-monospace: Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
C
chomik 已提交
9 10 11
$font-family-serif: "Georgia", "Times New Roman", times, serif !default;

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

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

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

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

C
codecalm 已提交
24
$min-black: rgba($dark, .024) !default;
C
codecalm 已提交
25
$min-white: rgba(mix($light, $dark, 48%), .1) !default;
26

C
modals  
codecalm 已提交
27
$gray-50: #fbfbfb !default;
C
codecalm 已提交
28 29 30 31
$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;
C
codecalm 已提交
32 33 34 35
$gray-500: mix($light, $dark, 78%) !default;
$gray-600: mix($light, $dark, 60%) !default;
$gray-700: mix($light, $dark, 36%) !default;
$gray-800: mix($light, $dark, 16%) !default;
C
codecalm 已提交
36
$gray-900: $dark !default;
C
chomik 已提交
37

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

C
codecalm 已提交
53 54
$body-bg: $light !default;
$body-color: $dark !default;
C
chomik 已提交
55

C
codecalm 已提交
56
$text-muted-opacity: .60 !default;
C
codecalm 已提交
57 58
$text-muted: mix($body-color, #ffffff, $text-muted-opacity * 100%) !default;
$border-color: rgba($text-muted, .24) !default;
C
modals  
codecalm 已提交
59
$border-color-light: rgba($text-muted, .12) !default;
C
chomik 已提交
60

C
codecalm 已提交
61
$hover-bg: $light !default;
C
codecalm 已提交
62
$active-bg: rgba($blue, .06) !default;
63

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
) !default;

C
codecalm 已提交
107 108 109 110 111 112 113 114 115

/**
Dark mode
 */

$dark-mode-darken: darken($dark, 3%) !default;
$dark-mode-lighten: lighten($dark, 3%) !default;
$dark-mode-text: $light;

C
chomik 已提交
116
$avatar-sizes: (
C
codecalm 已提交
117
  "sm": 1.5rem,
C
chomik 已提交
118 119 120
  "md": 3rem,
  "lg": 4.5rem,
  "xl": 6rem
C
chomik 已提交
121 122
) !default;

123
//Fonts
C
codecalm 已提交
124
$font-size-base: .9375rem !default;
C
codecalm 已提交
125
$font-weight-bold: 600 !default;
126
$body-letter-spacing: null !default;
C
chomik 已提交
127

C
codecalm 已提交
128 129 130 131
$line-height-base: 1.6 !default;
$line-height-sm: 1.3333334 !default;
$line-height-lg: 2 !default;

C
codecalm 已提交
132 133
$border-width: 1px !default;
$border-width-wide: 2px !default;
C
chomik 已提交
134 135
$border-radius: 3px !default;

136
//Typography
C
codecalm 已提交
137
$headings-font-weight: $font-weight-bold !default;
C
chomik 已提交
138

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

C
codecalm 已提交
141
$h1-font-size: (26em / 15) !default;
C
codecalm 已提交
142
$h2-font-size: (22em / 15) !default;
C
codecalm 已提交
143 144 145 146
$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 已提交
147 148

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

C
codecalm 已提交
150
$code-font-size: $h6-font-size !default;
C
codecalm 已提交
151 152
$code-color: $primary !default;

153 154
$lead-font-size: $h4-font-size !default;
$lead-font-weight: 400 !default;
C
chomik 已提交
155

C
codecalm 已提交
156
$hr-opacity: .1 !default;
C
codecalm 已提交
157
$hr-margin-y: 2rem !default;
C
codecalm 已提交
158

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

161
//Sizing
C
chomik 已提交
162 163
$spacer: 1rem !default;
$spacers: (
C
codecalm 已提交
164 165 166 167
  0: 0,
  1: $spacer * .25,
  2: $spacer * .5,
  3: $spacer,
C
codecalm 已提交
168 169 170 171 172
  4: $spacer * 1.25,
  5: $spacer * 1.5,
  6: $spacer * 3,
  7: $spacer * 6,
  8: $spacer * 9,
C
chomik 已提交
173
) !default;
C
chomik 已提交
174

C
chomik 已提交
175 176 177 178 179 180
$size-spacers: (
  auto: auto,
  px: 1px,
  full: 100%
) !default;

C
chomik 已提交
181

C
codecalm 已提交
182
$size-values: (
C
chomik 已提交
183 184 185 186 187 188 189 190
  1: 1%,
  25: 25%,
  50: 50%,
  75: 75%,
  100: 100%,
  auto: auto
) !default;

C
codecalm 已提交
191 192 193 194 195 196 197
$grid-breakpoints: (
  xs: 0,
  sm: 33rem,
  md: 48rem,
  lg: 64rem,
  xl: 75.25rem
) !default;
C
chomik 已提交
198

C
chomik 已提交
199
$container-max-widths: (
C
codecalm 已提交
200 201
  sm: 32.5rem,
  md: 47.5rem,
C
codecalm 已提交
202 203
  lg: 64rem,
  xl: 75.25rem
C
chomik 已提交
204
) !default;
C
chomik 已提交
205

C
codecalm 已提交
206 207
$container-variations: (
  tight: 30rem,
C
codecalm 已提交
208
  narrow: 45rem,
C
codecalm 已提交
209
) !default;
C
chomik 已提交
210

C
codecalm 已提交
211
$embed-responsive-aspect-ratios: (
C
codecalm 已提交
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
  "21by9": (
    x: 21,
    y: 9
  ),
  "16by9": (
    x: 16,
    y: 9
  ),
  "4by3": (
    x: 4,
    y: 3
  ),
  "1by1": (
    x: 1,
    y: 1
  ),
C
codecalm 已提交
228 229 230 231
  '2by1': (
    x: 2,
    y: 1
  )
C
chomik 已提交
232 233
) !default;

C
codecalm 已提交
234 235
$content-padding-y: 1.25rem !default;

C
codecalm 已提交
236

C
codecalm 已提交
237

A
Anton 已提交
238
//alerts
C
codecalm 已提交
239
$alert-link-font-weight: $font-weight-bold !default;
C
codecalm 已提交
240 241 242
$alert-bg-level: -8 !default;
$alert-border-level: -6 !default;
$alert-color-level: 8 !default;
A
Anton 已提交
243

244 245
//breadcrumb
$breadcrumb-variants: (
C
codecalm 已提交
246 247 248
  dots: "·",
  arrows: "›",
  bullets: "\02022",
249 250 251
) !default;

//badges
C
codecalm 已提交
252
$badge-font-weight: $font-weight-bold !default;
C
codecalm 已提交
253
$badge-empty-size: .5rem !default;
254 255

//buttons
256
$input-color: $body-color !default;
C
codecalm 已提交
257
$input-btn-line-height: (22/15) !default;
C
codecalm 已提交
258
$input-btn-font-size: $font-size-base !default;
259

C
codecalm 已提交
260 261 262
$input-btn-font-size-sm: $h5-font-size !default;
$input-btn-padding-x-sm: .5rem !default;
$input-btn-padding-y-sm: .125rem !default;
263

C
codecalm 已提交
264 265 266
$input-btn-font-size-lg: $h2-font-size !default;
$input-btn-padding-x-lg: 1.5rem !default;
$input-btn-padding-y-lg: .5rem !default;
267 268 269 270

$input-height: null !default;
$input-height-sm: null !default;
$input-height-lg: null !default;
C
codecalm 已提交
271 272
$input-color: inherit !default;
$input-focus-color: inherit !default;
273

C
codecalm 已提交
274
//buttons
275
$btn-padding-x: 1rem !default;
C
codecalm 已提交
276
$btn-font-weight: 500 !default;
277 278
$btn-border-radius: 3px !default;

C
codecalm 已提交
279 280 281
//cards
$card-border-color: $border-color !default;
$card-border-radius: $border-radius !default;
282
$card-cap-bg: $min-black !default;
C
codecalm 已提交
283

C
codecalm 已提交
284 285 286
$card-cap-padding-x: 1.25rem !default;
$card-cap-padding-y: .75rem !default;

C
codecalm 已提交
287
$card-active-border-color: $primary !default;
C
codecalm 已提交
288
$card-status-size: $border-width-wide !default;
C
codecalm 已提交
289
$card-group-margin: 1.5rem !default;
C
codecalm 已提交
290
$card-group-margin-sm: .75rem !default;
C
codecalm 已提交
291

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

C
codecalm 已提交
295 296 297 298
$cards-grid-gap: 1.25rem !default;
$cards-grid-gap-sm: .75rem !default;
$cards-grid-breakpoint: lg !default;

C
codecalm 已提交
299 300 301 302 303 304 305
//carousel
$carousel-control-color: $white !default;
$carousel-control-icon-width: 1.5rem !default;
$carousel-control-prev-icon-bg: 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='#{$carousel-control-color}' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='15 18 9 12 15 6'></polyline></svg>") !default;
$carousel-control-next-icon-bg: 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='#{$carousel-control-color}' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'></polyline></svg>") !default;


C
codecalm 已提交
306

C
chomik 已提交
307 308 309 310
//close
$close-font-weight: 400 !default;
$close-font-size: 1.5rem !default;

C
codecalm 已提交
311 312
//dropdown
$dropdown-item-padding-x: 1rem !default;
C
codecalm 已提交
313
$dropdown-font-size: $h4-font-size !default;
C
codecalm 已提交
314
$dropdown-divider-bg: $border-color !default;
C
codecalm 已提交
315
$dropdown-padding-y: .5rem !default;
316 317
$dropdown-link-hover-bg: $hover-bg !default;
$dropdown-link-hover-color: inherit !default;
C
codecalm 已提交
318
$dropdown-spacer: 1px !default;
C
codecalm 已提交
319
$dropdown-min-width: 12rem !default;
320

C
codecalm 已提交
321 322 323
$dropdown-link-active-color: $primary !default;
$dropdown-link-active-bg: $active-bg !default;

C
codecalm 已提交
324 325
$dropdown-border-color: $border-color !default;
$dropdown-menu-max-width: 25rem !default;
326

C
codecalm 已提交
327
//grid
C
css fix  
codecalm 已提交
328
$grid-gutter-width: 1.5rem !default;
C
codecalm 已提交
329 330 331 332

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

333 334 335 336
//lists
$list-group-item-padding-y: .5rem !default;
$list-group-item-padding-x: .75rem !default;

C
codecalm 已提交
337 338 339 340 341 342 343
//modals
$modal-backdrop-opacity: .24 !default;
$modal-backdrop-bg: $dark !default;
$modal-backdrop-blur: 2px !default;

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

C
modals  
codecalm 已提交
344 345
$modal-content-border-color: $border-color-light !default;
$modal-content-bg: $gray-50 !default;
C
codecalm 已提交
346 347
$modal-content-border-radius: $border-radius !default;

C
modals  
codecalm 已提交
348 349 350 351 352
$modal-header-padding: 1.5rem !default;
$modal-header-height: 3.5rem !default;
$modal-header-border-width: 1px !default;
$modal-header-border-color: $border-color-light !default;
$modal-header-bg: $white !default;
C
codecalm 已提交
353
$modal-inner-padding: 1.5rem !default;
C
codecalm 已提交
354
$modal-footer-border-width: 0 !default;
C
modals  
codecalm 已提交
355
$modal-footer-margin-between: .75rem !default;
C
codecalm 已提交
356 357

$modal-xl: 1140px !default;
C
modals  
codecalm 已提交
358
$modal-lg: 720px !default;
C
codecalm 已提交
359
$modal-md: 540px !default;
C
codecalm 已提交
360
$modal-sm: 380px !default;
C
codecalm 已提交
361

362
//navbar
C
codecalm 已提交
363
$navbar-padding-y: .5rem !default;
C
codecalm 已提交
364
$navbar-height: 3.5rem !default;
365
$navbar-border-color: $border-color !default;
C
codecalm 已提交
366

C
codecalm 已提交
367 368 369 370 371
$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 已提交
372
$navbar-toggler-item-height: 2px !default;
C
codecalm 已提交
373 374
$navbar-toggler-item-spacing: 7px !default;
$navbar-toggler-transform-time: .2s !default;
C
codecalm 已提交
375

C
codecalm 已提交
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393
//sidenav
$navbar-vertical-width: 15.625rem !default;
$navbar-vertical-narrow-width: 4rem !default;
$navbar-vertical-dark-bg: $dark !default;
$navbar-vertical-dark-color: $white !default;
$navbar-vertical-padding: 1rem !default;
$navbar-vertical-active-accent-color: $primary !default;

$navbar-nav-link-padding-x: .75rem !default;

//$navbar-light-color: rgba($body-color, .64) !default;
//$navbar-light-active-color: $primary !default;
//$navbar-light-hover-color: $body-color !default;

//$navbar-dark-color: rgba($white, .64) !default;
//$navbar-dark-active-color: $white !default;
//$navbar-dark-hover-color: $white !default;

C
codecalm 已提交
394 395 396
//popover
$popover-border-color: $border-color !default;

397 398 399 400 401
//footer
$footer-bg: $white !default;
$footer-border-color: $border-color !default;
$footer-border-color: $border-color !default;

C
codecalm 已提交
402

C
chomik 已提交
403 404 405 406 407
//pagination
$pagination-border-width: 0 !default;
$pagination-padding-y: .25rem !default;
$pagination-padding-x: .25rem !default;
$pagination-color: $text-muted !default;
C
chomik 已提交
408 409
$pagination-bg: transparent !default;
$pagination-disabled-bg: transparent !default;
C
codecalm 已提交
410
$pagination-disabled-color: rgba($text-muted, .5) !default;
C
chomik 已提交
411

C
chomik 已提交
412

C
chomik 已提交
413 414 415 416
//steps
$steps-border-width: 2px !default;
$steps-color-inactive: #f3f5f5 !default;

C
chomik 已提交
417 418 419
//spinner
$spinner-width: 1.5rem !default;
$spinner-height: 1.5rem !default;
C
codecalm 已提交
420 421
$spinner-width-sm: 1rem !default;
$spinner-height-sm: 1rem !default;
C
chomik 已提交
422
$spinner-border-width: 2px !default;
C
codecalm 已提交
423
$spinner-border-width-sm: 1px !default;
C
chomik 已提交
424

425 426 427
//tables
$table-head-border-color: $border-color !default;

C
chomik 已提交
428 429 430 431 432
//toasts
$toast-border-color: $border-color !default;
$toast-header-color: $text-muted !default;

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

435
//progress
C
codecalm 已提交
436
$progress-bg: $light-mix !default;
C
codecalm 已提交
437
$progress-height: .5rem !default;
438

C
codecalm 已提交
439 440 441
//ribbons
$ribbon-margin: .25rem !default;

C
codecalm 已提交
442

C
chomik 已提交
443
$list-group-border-color: $border-color !default;
C
chomik 已提交
444 445
$list-group-action-color: inherit !default;

C
chomik 已提交
446 447
$input-disabled-bg: $gray-100 !default;
$input-border-color: $border-color !default;
C
codecalm 已提交
448
$input-placeholder-color: $text-muted !default;
C
chomik 已提交
449

C
codecalm 已提交
450
$input-group-addon-bg: $min-black !default;
C
chomik 已提交
451 452 453 454
$input-group-addon-color: $text-muted !default;

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

455 456

//Forms
C
codecalm 已提交
457 458
$form-check-input-width: 1rem !default;
$form-check-padding-left: $form-check-input-width + .5rem !default;
C
codecalm 已提交
459
$form-check-input-bg: $white !default;
C
codecalm 已提交
460 461
$form-check-input-border: 1px solid $border-color !default;
$form-check-input-border-radius: $border-radius !default;
C
codecalm 已提交
462
$form-check-input-checked-bg-size: 1rem !default;
463

C
codecalm 已提交
464
$form-check-input-checked-color: $white !default;
C
codecalm 已提交
465 466 467 468
$form-check-input-checked-bg-repeat: repeat !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' transform='scale(.8)' transform-origin='50% 50%'/></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' transform='scale(.8)' transform-origin='50% 50%'/></svg>") !default;
$form-check-radio-checked-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle r='3' fill='#{$form-check-input-checked-color}' cx='8' cy='8' /></svg>") !default;
C
codecalm 已提交
469

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

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

C
codecalm 已提交
474 475
$form-switch-width: 1.75rem !default;
$form-switch-padding-left: $form-switch-width + .5rem !default;
C
codecalm 已提交
476 477
$form-switch-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$border-color}'/></svg>") !default;

C
codecalm 已提交
478

C
codecalm 已提交
479
$form-range-track-height: .25rem !default;
C
codecalm 已提交
480 481 482 483
$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;
484

C
codecalm 已提交
485 486
$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 已提交
487

C
codecalm 已提交
488
$caret-width: .32em !default;
489 490

//Flags
C
chomik 已提交
491 492 493 494 495 496
$generate-flags: true !default;
$flag-sizes: (
  "md": 2rem,
  "lg": 3rem,
  "xl": 4rem
) !default;
497

M
memorte03 已提交
498 499
//Payments
$payment-sizes: (
500
  "sm": 1.5rem,
M
memorte03 已提交
501 502 503
  "lg": 3rem,
  "xl": 4rem
) !default;
504 505 506 507 508

$enable-social-colors: true !default;
$enable-ghost-buttons: true !default;
$enable-extra-colors: true !default;
$enable-gradients: false !default;
C
codecalm 已提交
509
$enable-navbar-vertical: true !default;
510
$enable-dark-mode: true !default;