_variables.scss 8.6 KB
Newer Older
C
codecalm 已提交
1 2 3 4 5 6
$enable-social-colors: true !default;
$enable-ghost-buttons: true !default;
$enable-color-hues: true !default;
$enable-extra-colors: true !default;
$enable-gradients: false !default;

C
codecalm 已提交
7 8
$assets-base: "../../static" !default;

C
chomik 已提交
9
// FONTS
C
codecalm 已提交
10
$google-font: "Source Sans Pro" !default;
11

C
codecalm 已提交
12
$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 已提交
13 14 15
$font-family-serif: "Georgia", "Times New Roman", times, serif !default;

// EXTERNAL FONTS
16
$icon-fonts: () !default;
C
chomik 已提交
17 18

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

C
chomik 已提交
21 22
$light-black: rgba(0, 0, 0, .4) !default;
$light-white: rgba(255, 255, 255, .4) !default;
23 24
$min-black: rgba(135, 150, 165, .032) !default;
$min-white: rgba(255, 255, 255, .032) !default;
C
chomik 已提交
25

C
codecalm 已提交
26 27 28 29 30 31 32 33 34 35 36 37
$light: #f5f7fb !default;
$dark: #354052 !default;

$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 已提交
38

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

C
codecalm 已提交
54
$primary: $blue !default;
C
codecalm 已提交
55
$secondary: $white !default;
C
codecalm 已提交
56
$success: $green !default;
C
codecalm 已提交
57
$info: $azure !default;
C
codecalm 已提交
58 59
$warning: $yellow !default;
$danger: $red !default;
C
chomik 已提交
60

C
codecalm 已提交
61 62
$body-bg: $light !default;
$body-color: $dark !default;
C
chomik 已提交
63

C
codecalm 已提交
64 65 66
$text-muted: $gray-700 !default;
$border-color: $gray-400 !default;
$hover-bg: $gray-200 !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
  "sm": 2rem,
C
chomik 已提交
106 107 108
  "md": 3rem,
  "lg": 4.5rem,
  "xl": 6rem
C
chomik 已提交
109 110
) !default;

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

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

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

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

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

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

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

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

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

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

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

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

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

C
chomik 已提交
170

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

C
chomik 已提交
180

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

A
Anton 已提交
188
//alerts
C
codecalm 已提交
189
$alert-link-font-weight: $font-weight-bold !default;
A
Anton 已提交
190

191 192
//breadcrumb
$breadcrumb-variants: (
C
codecalm 已提交
193 194 195
  dots: "·",
  arrows: "›",
  bullets: "\02022",
196 197 198
) !default;

//badges
C
codecalm 已提交
199
$badge-font-weight: $font-weight-bold !default;
C
codecalm 已提交
200
$badge-empty-size: .5rem !default;
201 202

//buttons
C
codecalm 已提交
203
$input-btn-line-height: (22/15) !default;
C
codecalm 已提交
204
$input-btn-font-size: $font-size-base !default;
205

C
codecalm 已提交
206 207 208
$input-btn-font-size-sm: $h5-font-size !default;
$input-btn-padding-x-sm: .5rem !default;
$input-btn-padding-y-sm: .125rem !default;
209

C
codecalm 已提交
210 211 212
$input-btn-font-size-lg: $h2-font-size !default;
$input-btn-padding-x-lg: 1.5rem !default;
$input-btn-padding-y-lg: .5rem !default;
213 214 215 216 217 218

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

$btn-padding-x: 1rem !default;
C
codecalm 已提交
219
$btn-font-weight: $font-weight-bold !default;
220 221
$btn-border-radius: 3px !default;

C
codecalm 已提交
222
//cards
C
codecalm 已提交
223
$card-border-color: $border-color !default;
C
codecalm 已提交
224
$card-border-radius: $border-radius !default;
225
$card-cap-bg: $min-black !default;
C
codecalm 已提交
226

C
codecalm 已提交
227
$card-active-border-color: $primary !default;
C
codecalm 已提交
228
$card-status-size: $border-width-wide !default;
C
codecalm 已提交
229
$card-group-margin: 1.5rem !default;
C
codecalm 已提交
230

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

C
chomik 已提交
234 235 236 237
//close
$close-font-weight: 400 !default;
$close-font-size: 1.5rem !default;

C
codecalm 已提交
238 239
//dropdown
$dropdown-item-padding-x: 1rem !default;
C
codecalm 已提交
240
$dropdown-font-size: $h4-font-size !default;
C
codecalm 已提交
241
$dropdown-divider-bg: $border-color !default;
C
codecalm 已提交
242
$dropdown-padding-y: .5rem !default;
243 244
$dropdown-link-hover-bg: $hover-bg !default;
$dropdown-link-hover-color: inherit !default;
C
codecalm 已提交
245
$dropdown-spacer: 1px !default;
246

C
codecalm 已提交
247
//grid
C
codecalm 已提交
248
$grid-gutter-width: 1.5rem !default;
C
codecalm 已提交
249 250 251 252

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

253 254
//navbar
$navbar-bg: $white !default;
C
codecalm 已提交
255
$navbar-height: 3.5rem !default;
C
codecalm 已提交
256
$navbar-border-color: $border-color !default;
C
codecalm 已提交
257

C
codecalm 已提交
258
//nav
C
codecalm 已提交
259 260 261 262 263 264 265 266
$nav-link-padding-y: 1rem !default;

$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 已提交
267

C
chomik 已提交
268 269 270 271 272
//pagination
$pagination-border-width: 0 !default;
$pagination-padding-y: .25rem !default;
$pagination-padding-x: .25rem !default;
$pagination-color: $text-muted !default;
C
chomik 已提交
273 274
$pagination-bg: transparent !default;
$pagination-disabled-bg: transparent !default;
C
codecalm 已提交
275
$pagination-disabled-color: rgba($text-muted, .5) !default;
C
chomik 已提交
276

C
codecalm 已提交
277

C
chomik 已提交
278 279 280 281
//steps
$steps-border-width: 2px !default;
$steps-color-inactive: #f3f5f5 !default;

C
chomik 已提交
282 283 284 285 286 287
//spinner
$spinner-width: 1.5rem !default;
$spinner-height: 1.5rem !default;
$spinner-border-width: 2px !default;
$spinner-border-width-sm: 2px !default;

288 289 290
//tables
$table-head-border-color: $border-color !default;

C
chomik 已提交
291 292 293 294 295
//toasts
$toast-border-color: $border-color !default;
$toast-header-color: $text-muted !default;

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

298
//progress
299
$progress-bg: $gray-200 !default;
300 301
$progress-height: .75rem !default;

C
codecalm 已提交
302 303 304
//ribbons
$ribbon-margin: .25rem !default;

C
codecalm 已提交
305

C
chomik 已提交
306
$list-group-border-color: $border-color !default;
C
chomik 已提交
307 308
$list-group-action-color: inherit !default;

C
chomik 已提交
309 310
$input-disabled-bg: $gray-100 !default;
$input-border-color: $border-color !default;
C
codecalm 已提交
311
$input-placeholder-color: $text-muted !default;
C
chomik 已提交
312 313 314 315 316 317 318 319

$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;

320 321

//Forms
C
codecalm 已提交
322 323
$form-check-input-width: 1rem !default;
$form-check-padding-left: $form-check-input-width + .5rem !default;
C
codecalm 已提交
324
$form-check-input-bg: $white !default;
C
codecalm 已提交
325 326 327
$form-check-input-border: 1px solid $border-color !default;
$form-check-input-border-radius: $border-radius !default;
$form-check-input-checked-bg-size: .75rem !default;
328

C
codecalm 已提交
329 330
$form-switch-width: 1.75rem !default;
$form-switch-padding-left: $form-switch-width + .5rem !default;
C
codecalm 已提交
331

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

C
codecalm 已提交
334 335
$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 已提交
336

C
codecalm 已提交
337
$caret-width: .32em !default;
338 339

//Flags
C
chomik 已提交
340 341 342 343 344 345
$generate-flags: true !default;
$flag-sizes: (
  "md": 2rem,
  "lg": 3rem,
  "xl": 4rem
) !default;
346

M
memorte03 已提交
347 348 349 350 351 352
//Payments
$payment-sizes: (
  "md": 2rem,
  "lg": 3rem,
  "xl": 4rem
) !default;