_variables.scss 9.2 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 17 18
$light: #f5f7fb !default;
$dark: #354052 !default;

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

$min-black: rgba($dark, .024) !default;
$min-white: rgba($light, .024) !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
chomik 已提交
44 45 46 47
$lime: #7bd235 !default;
$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 54
$body-bg: $light !default;
$body-color: $dark !default;

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


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

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

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

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

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

C
codecalm 已提交
117 118 119 120
$line-height-base: 1.6 !default;
$line-height-sm: 1.3333334 !default;
$line-height-lg: 2 !default;

C
codecalm 已提交
121 122
$border-width: 1px !default;
$border-width-wide: 2px !default;
C
chomik 已提交
123 124
$border-radius: 3px !default;

125
//Typography
C
codecalm 已提交
126
$headings-font-weight: $font-weight-bold !default;
C
chomik 已提交
127

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

C
codecalm 已提交
130 131 132 133 134 135
$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 已提交
136 137

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

C
codecalm 已提交
139 140 141
$code-font-size: 80% !default;
$code-color: $primary !default;

142 143
$lead-font-size: $h4-font-size !default;
$lead-font-weight: 400 !default;
C
chomik 已提交
144

C
codecalm 已提交
145 146 147
$hr-opacity: .1 !default;
$hr-margin-y: 1rem !default;

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

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

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

C
chomik 已提交
171

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

C
chomik 已提交
181

C
chomik 已提交
182 183 184 185 186 187 188
$container-max-widths: (
  sm: 540px,
  md: 720px,
  lg: 960px,
  xl: 1200px
) !default;

A
Anton 已提交
189
//alerts
C
codecalm 已提交
190
$alert-link-font-weight: $font-weight-bold !default;
C
codecalm 已提交
191 192 193
$alert-bg-level: -8 !default;
$alert-border-level: -6 !default;
$alert-color-level: 8 !default;
A
Anton 已提交
194

195 196
//breadcrumb
$breadcrumb-variants: (
C
codecalm 已提交
197 198 199
  dots: "·",
  arrows: "›",
  bullets: "\02022",
200 201 202
) !default;

//badges
C
codecalm 已提交
203
$badge-font-weight: $font-weight-bold !default;
C
codecalm 已提交
204
$badge-empty-size: .5rem !default;
205 206

//buttons
207
$input-color: $body-color !default;
C
codecalm 已提交
208
$input-btn-line-height: (22/15) !default;
C
codecalm 已提交
209
$input-btn-font-size: $font-size-base !default;
210

C
codecalm 已提交
211 212 213
$input-btn-font-size-sm: $h5-font-size !default;
$input-btn-padding-x-sm: .5rem !default;
$input-btn-padding-y-sm: .125rem !default;
214

C
codecalm 已提交
215 216 217
$input-btn-font-size-lg: $h2-font-size !default;
$input-btn-padding-x-lg: 1.5rem !default;
$input-btn-padding-y-lg: .5rem !default;
218 219 220 221 222 223

$input-height: null !default;
$input-height-sm: null !default;
$input-height-lg: null !default;

$btn-padding-x: 1rem !default;
224
$btn-font-weight: 500 !default;
225 226
$btn-border-radius: 3px !default;

C
codecalm 已提交
227
//cards
C
codecalm 已提交
228
$card-border-color: $border-color !default;
C
codecalm 已提交
229
$card-border-radius: $border-radius !default;
230
$card-cap-bg: $min-black !default;
C
codecalm 已提交
231

C
codecalm 已提交
232
$card-active-border-color: $primary !default;
C
codecalm 已提交
233
$card-status-size: $border-width-wide !default;
C
codecalm 已提交
234
$card-group-margin: 1.5rem !default;
C
codecalm 已提交
235

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

C
codecalm 已提交
239

C
chomik 已提交
240 241 242 243
//close
$close-font-weight: 400 !default;
$close-font-size: 1.5rem !default;

C
codecalm 已提交
244 245
//dropdown
$dropdown-item-padding-x: 1rem !default;
C
codecalm 已提交
246
$dropdown-font-size: $h4-font-size !default;
C
codecalm 已提交
247
$dropdown-divider-bg: $border-color !default;
C
codecalm 已提交
248
$dropdown-padding-y: .5rem !default;
249 250
$dropdown-link-hover-bg: $hover-bg !default;
$dropdown-link-hover-color: inherit !default;
C
codecalm 已提交
251
$dropdown-spacer: 1px !default;
252

C
codecalm 已提交
253 254 255
$dropdown-link-active-color: $primary !default;
$dropdown-link-active-bg: $active-bg !default;

C
codecalm 已提交
256
//grid
C
codecalm 已提交
257
$grid-gutter-width: 1.5rem !default;
C
codecalm 已提交
258 259 260 261

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

262 263 264 265
//lists
$list-group-item-padding-y: .5rem !default;
$list-group-item-padding-x: .75rem !default;

266 267
//navbar
$navbar-bg: $white !default;
C
codecalm 已提交
268
$navbar-height: 3.5rem !default;
C
codecalm 已提交
269
$navbar-border-color: $border-color !default;
C
codecalm 已提交
270

C
codecalm 已提交
271 272 273
//popover
$popover-border-color: $border-color !default;

C
codecalm 已提交
274
//nav
275
//$nav-link-padding-y: 1rem !default;
C
codecalm 已提交
276 277 278 279 280 281 282

$navbar-padding-x: .75rem !default;
$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 已提交
283

C
chomik 已提交
284 285 286 287 288
//pagination
$pagination-border-width: 0 !default;
$pagination-padding-y: .25rem !default;
$pagination-padding-x: .25rem !default;
$pagination-color: $text-muted !default;
C
chomik 已提交
289 290
$pagination-bg: transparent !default;
$pagination-disabled-bg: transparent !default;
C
codecalm 已提交
291
$pagination-disabled-color: rgba($text-muted, .5) !default;
C
chomik 已提交
292

C
codecalm 已提交
293

C
chomik 已提交
294 295 296 297
//steps
$steps-border-width: 2px !default;
$steps-color-inactive: #f3f5f5 !default;

C
chomik 已提交
298 299 300 301 302 303
//spinner
$spinner-width: 1.5rem !default;
$spinner-height: 1.5rem !default;
$spinner-border-width: 2px !default;
$spinner-border-width-sm: 2px !default;

304 305 306
//tables
$table-head-border-color: $border-color !default;

C
chomik 已提交
307 308 309 310 311
//toasts
$toast-border-color: $border-color !default;
$toast-header-color: $text-muted !default;

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

314
//progress
C
codecalm 已提交
315
$progress-bg: $light-mix !default;
316 317
$progress-height: .75rem !default;

C
codecalm 已提交
318 319 320
//ribbons
$ribbon-margin: .25rem !default;

C
codecalm 已提交
321

C
chomik 已提交
322
$list-group-border-color: $border-color !default;
C
chomik 已提交
323 324
$list-group-action-color: inherit !default;

C
chomik 已提交
325 326
$input-disabled-bg: $gray-100 !default;
$input-border-color: $border-color !default;
C
codecalm 已提交
327
$input-placeholder-color: $text-muted !default;
C
chomik 已提交
328 329 330 331 332 333 334 335

$input-group-addon-bg: $gray-100 !default;
$input-group-addon-color: $text-muted !default;

$dropdown-border-color: $border-color !default;

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

336 337

//Forms
C
codecalm 已提交
338 339
$form-check-input-width: 1rem !default;
$form-check-padding-left: $form-check-input-width + .5rem !default;
C
codecalm 已提交
340
$form-check-input-bg: $white !default;
C
codecalm 已提交
341 342
$form-check-input-border: 1px solid $border-color !default;
$form-check-input-border-radius: $border-radius !default;
C
codecalm 已提交
343 344 345
$form-check-input-checked-bg-size: .8rem !default;

$form-check-input-checked-border-color: $border-color !default;
346

C
codecalm 已提交
347 348
$form-switch-width: 1.75rem !default;
$form-switch-padding-left: $form-switch-width + .5rem !default;
C
codecalm 已提交
349

C
codecalm 已提交
350
$form-range-track-height: .25rem !default;
351

C
codecalm 已提交
352 353
$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 已提交
354

C
codecalm 已提交
355
$caret-width: .32em !default;
356 357

//Flags
C
chomik 已提交
358 359 360 361 362 363
$generate-flags: true !default;
$flag-sizes: (
  "md": 2rem,
  "lg": 3rem,
  "xl": 4rem
) !default;
364

M
memorte03 已提交
365 366
//Payments
$payment-sizes: (
367
  "sm": 1.5rem,
M
memorte03 已提交
368 369 370
  "lg": 3rem,
  "xl": 4rem
) !default;
371 372 373 374 375

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