bullframe.css 4.2.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.browserslistrc +2 -3
- package/.editorconfig +15 -0
- package/.gitattributes +1 -0
- package/.htmlhintrc +12 -0
- package/.prettierignore +1 -0
- package/.stylelintignore +3 -0
- package/.stylelintrc.json +21 -5
- package/CHANGELOG.md +289 -301
- package/README.md +371 -327
- package/dist/css/bullframe-classless-dark-prefers.css +378 -267
- package/dist/css/bullframe-classless-dark-prefers.css.map +1 -0
- package/dist/css/bullframe-classless-dark-prefers.min.css +2 -3
- package/dist/css/bullframe-classless-dark-prefers.min.css.map +1 -1
- package/dist/css/bullframe-classless-dark.css +384 -251
- package/dist/css/bullframe-classless-dark.css.map +1 -0
- package/dist/css/bullframe-classless-dark.min.css +2 -3
- package/dist/css/bullframe-classless-dark.min.css.map +1 -1
- package/dist/css/bullframe-classless-system-default.css +378 -267
- package/dist/css/bullframe-classless-system-default.css.map +1 -0
- package/dist/css/bullframe-classless-system-default.min.css +2 -3
- package/dist/css/bullframe-classless-system-default.min.css.map +1 -1
- package/dist/css/bullframe-classless.css +343 -227
- package/dist/css/bullframe-classless.css.map +1 -0
- package/dist/css/bullframe-classless.min.css +2 -2
- package/dist/css/bullframe-classless.min.css.map +1 -1
- package/dist/css/bullframe-dark-prefers.css +399 -462
- package/dist/css/bullframe-dark-prefers.css.map +1 -0
- package/dist/css/bullframe-dark-prefers.min.css +2 -2
- package/dist/css/bullframe-dark-prefers.min.css.map +1 -1
- package/dist/css/bullframe-dark.css +401 -373
- package/dist/css/bullframe-dark.css.map +1 -0
- package/dist/css/bullframe-dark.min.css +2 -2
- package/dist/css/bullframe-dark.min.css.map +1 -1
- package/dist/css/bullframe-system-default.css +396 -389
- package/dist/css/bullframe-system-default.css.map +1 -0
- package/dist/css/bullframe-system-default.min.css +2 -2
- package/dist/css/bullframe-system-default.min.css.map +1 -1
- package/dist/css/bullframe-utilities.css +69 -109
- package/dist/css/bullframe-utilities.css.map +1 -0
- package/dist/css/bullframe-utilities.min.css +1 -1
- package/dist/css/bullframe-utilities.min.css.map +1 -1
- package/dist/css/bullframe.css +370 -348
- package/dist/css/bullframe.css.map +1 -0
- package/dist/css/bullframe.min.css +2 -1
- package/dist/css/bullframe.min.css.map +1 -1
- package/dist/docs/demo/css/style.css +131 -0
- package/{docs/test-page → dist/docs/demo}/index.html +166 -358
- package/dist/docs/github-readme/bf-logo-full-dark.png +0 -0
- package/package.json +26 -30
- package/prettier.config.js +26 -0
- package/src/docs/demo/css/style.css +131 -0
- package/src/docs/demo/icons/android-chrome-192x192.png +0 -0
- package/src/docs/demo/icons/android-chrome-384x384.png +0 -0
- package/src/docs/demo/icons/apple-touch-icon.png +0 -0
- package/src/docs/demo/icons/favicon-16x16.png +0 -0
- package/src/docs/demo/icons/favicon-32x32.png +0 -0
- package/src/docs/demo/icons/favicon.ico +0 -0
- package/src/docs/demo/icons/mstile-150x150.png +0 -0
- package/src/docs/demo/icons/safari-pinned-tab.svg +28 -0
- package/src/docs/demo/images/logo.png +0 -0
- package/src/docs/demo/images/placeholder-img-130x140.jpg +0 -0
- package/src/docs/demo/images/placeholder-img-16x16.jpg +0 -0
- package/src/docs/demo/images/placeholder-img-800x400.jpg +0 -0
- package/src/docs/demo/images/video-poster.png +0 -0
- package/src/docs/demo/index.html +1152 -0
- package/src/docs/github-readme/bf-logo-full-dark.png +0 -0
- package/src/docs/github-readme/bf-logo-full-light.png +0 -0
- package/src/scss/bullframe-classless-dark-prefers.scss +2 -5
- package/src/scss/bullframe-classless-dark.scss +2 -5
- package/src/scss/bullframe-classless-system-default.scss +2 -5
- package/src/scss/bullframe-classless.scss +49 -43
- package/src/scss/bullframe-dark-prefers.scss +2 -4
- package/src/scss/bullframe-dark.scss +2 -4
- package/src/scss/bullframe-system-default.scss +2 -4
- package/src/scss/bullframe-utilities.scss +21 -61
- package/src/scss/bullframe.scss +49 -121
- package/src/scss/custom/_author-styles.scss +5 -0
- package/src/scss/forms/_forms-normalization.scss +68 -58
- package/src/scss/forms/_forms-styling-radio-checkbox.scss +64 -66
- package/src/scss/forms/_forms-styling-range.scss +88 -74
- package/src/scss/forms/_forms-styling-select.scss +18 -16
- package/src/scss/forms/_forms-styling.scss +38 -26
- package/src/scss/miscellaneous/_misc-accessibility.scss +10 -16
- package/src/scss/miscellaneous/_misc-anchors.scss +15 -13
- package/src/scss/miscellaneous/_misc-embedded-content.scss +14 -21
- package/src/scss/miscellaneous/_misc-focus.scss +0 -21
- package/src/scss/miscellaneous/_misc-interactive.scss +48 -0
- package/src/scss/miscellaneous/_misc-lists.scss +9 -5
- package/src/scss/miscellaneous/_misc-scrolling.scss +5 -0
- package/src/scss/miscellaneous/_misc-shame.scss +6 -0
- package/src/scss/miscellaneous/_misc-tables.scss +17 -5
- package/src/scss/mixins/_mixin-dark-prefers.scss +414 -0
- package/src/scss/mixins/_mixin-dark.scss +396 -0
- package/src/scss/mixins/_mixin-grid-flex.scss +0 -3
- package/src/scss/mixins/_mixin-layout.scss +1 -1
- package/src/scss/mixins/_mixin-texts.scss +2 -3
- package/src/scss/typography/_typography-blockquotes.scss +10 -5
- package/src/scss/typography/_typography-headings.scss +9 -8
- package/src/scss/typography/_typography-html-body.scss +17 -14
- package/src/scss/typography/_typography-misc.scss +19 -22
- package/src/scss/typography/_typography-monospaced-elements.scss +21 -12
- package/src/scss/utilities/_utility-buttons.scss +20 -18
- package/src/scss/utilities/_utility-debugging.scss +2 -88
- package/src/scss/utilities/_utility-embeds.scss +1 -1
- package/src/scss/utilities/_utility-filters.scss +0 -3
- package/src/scss/utilities/_utility-form-states.scss +30 -21
- package/src/scss/utilities/_utility-global-dark-classless.scss +3 -157
- package/src/scss/utilities/_utility-global-dark-prefers-classless.scss +3 -3
- package/src/scss/utilities/_utility-global-dark-prefers.scss +3 -3
- package/src/scss/utilities/_utility-global-dark-scrollbars.scss +11 -6
- package/src/scss/utilities/_utility-global-dark.scss +4 -213
- package/src/scss/utilities/_utility-global-system-default-classless.scss +3 -3
- package/src/scss/utilities/_utility-global-system-default.scss +3 -3
- package/src/scss/utilities/_utility-grid-system.scss +51 -115
- package/src/scss/utilities/_utility-layout.scss +7 -15
- package/src/scss/utilities/_utility-print.scss +5 -5
- package/src/scss/utilities/_utility-spacing.scss +42 -40
- package/src/scss/utilities/_utility-tables.scss +12 -18
- package/src/scss/utilities/_utility-texts.scss +48 -22
- package/src/scss/utilities/_utility-z-index.scss +1 -1
- package/src/scss/variables/_variables-breakpoints.scss +1 -0
- package/src/scss/variables/_variables-colors.scss +8 -5
- package/src/scss/variables/_variables-spacing.scss +3 -5
- package/src/scss/variables/_variables-texts.scss +5 -9
- package/vite.config.js +116 -0
- package/.nvmrc +0 -1
- package/LICENSE +0 -21
- package/gulpfile.js +0 -74
- package/netlify.toml +0 -3
- package/src/scss/miscellaneous/_misc-author-styles-in-css.scss +0 -76
- /package/{docs/test-page/assets → dist/docs/demo}/icons/android-chrome-192x192.png +0 -0
- /package/{docs/test-page/assets → dist/docs/demo}/icons/android-chrome-384x384.png +0 -0
- /package/{docs/test-page/assets → dist/docs/demo}/icons/apple-touch-icon.png +0 -0
- /package/{docs/test-page/assets → dist/docs/demo}/icons/favicon-16x16.png +0 -0
- /package/{docs/test-page/assets → dist/docs/demo}/icons/favicon-32x32.png +0 -0
- /package/{docs/test-page/assets → dist/docs/demo}/icons/favicon.ico +0 -0
- /package/{docs/test-page/assets → dist/docs/demo}/icons/mstile-150x150.png +0 -0
- /package/{docs/test-page/assets → dist/docs/demo}/icons/safari-pinned-tab.svg +0 -0
- /package/{docs/test-page/assets → dist/docs/demo}/images/logo.png +0 -0
- /package/{docs/test-page/assets → dist/docs/demo}/images/placeholder-img-130x140.jpg +0 -0
- /package/{docs/test-page/assets → dist/docs/demo}/images/placeholder-img-16x16.jpg +0 -0
- /package/{docs/test-page/assets → dist/docs/demo}/images/placeholder-img-800x400.jpg +0 -0
- /package/{docs/test-page/assets → dist/docs/demo}/images/video-poster.png +0 -0
- /package/{docs/assets/images/branding/logo-full.png → dist/docs/github-readme/bf-logo-full-light.png} +0 -0
|
@@ -1,39 +1,40 @@
|
|
|
1
|
+
@use '../variables/variables-colors' as bf-v-color;
|
|
2
|
+
@use '../variables/variables-texts' as bf-v-text;
|
|
3
|
+
@use '../variables/variables-spacing' as bf-v-space;
|
|
4
|
+
@use '../variables/variables-breakpoints' as bf-v-bp;
|
|
5
|
+
@use 'sass:color';
|
|
6
|
+
|
|
1
7
|
.bf-btn {
|
|
2
8
|
display: inline-block;
|
|
3
9
|
cursor: pointer;
|
|
4
|
-
color:
|
|
5
|
-
padding: calc(
|
|
6
|
-
padding: calc($bf-spacing-xl-rem / 3) (calc($bf-spacing-xl-rem / 3) * 2);
|
|
10
|
+
color: bf-v-color.$bf-dark;
|
|
11
|
+
padding: calc(bf-v-space.$bf-spacing-xl-rem / 3) (calc(bf-v-space.$bf-spacing-xl-rem / 3) * 2); // 8px 16px
|
|
7
12
|
line-height: normal;
|
|
8
13
|
text-align: center;
|
|
9
14
|
margin: 0;
|
|
10
15
|
background-clip: padding-box;
|
|
11
16
|
vertical-align: baseline;
|
|
12
17
|
overflow: visible;
|
|
13
|
-
-webkit-tap-highlight-color:
|
|
18
|
+
-webkit-tap-highlight-color: rgb(0 0 0 / 0%);
|
|
14
19
|
user-select: none;
|
|
15
|
-
|
|
16
|
-
// ! IE9+
|
|
17
|
-
// https://caniuse.com/#feat=border-radius
|
|
18
|
-
border-radius: $bf-spacing-sm-px;
|
|
19
|
-
border-radius: $bf-spacing-sm-rem;
|
|
20
|
+
border-radius: bf-v-space.$bf-spacing-sm-rem;
|
|
20
21
|
|
|
21
22
|
border: 0;
|
|
22
23
|
background-image: none; // FF mobile
|
|
23
|
-
background-color:
|
|
24
|
+
background-color: bf-v-color.$bf-gray-light;
|
|
24
25
|
transition: all 0.2s;
|
|
25
26
|
|
|
26
27
|
&:hover,
|
|
27
28
|
&:active,
|
|
28
29
|
&:focus {
|
|
29
30
|
text-decoration: none;
|
|
30
|
-
color:
|
|
31
|
-
background:
|
|
31
|
+
color: bf-v-color.$bf-dark;
|
|
32
|
+
background: color.adjust(bf-v-color.$bf-gray-light, $lightness: -10%);
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
&:active,
|
|
35
36
|
&:focus {
|
|
36
|
-
box-shadow: 0 0 0 3px
|
|
37
|
+
box-shadow: 0 0 0 3px rgb(0 0 0 / 15%);
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
&:focus {
|
|
@@ -41,19 +42,19 @@
|
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
&.bf-btn--primary {
|
|
44
|
-
color:
|
|
45
|
-
background:
|
|
45
|
+
color: bf-v-color.$bf-white;
|
|
46
|
+
background: bf-v-color.$bf-blue;
|
|
46
47
|
|
|
47
48
|
&:hover,
|
|
48
49
|
&:active,
|
|
49
50
|
&:focus {
|
|
50
|
-
color:
|
|
51
|
-
background:
|
|
51
|
+
color: bf-v-color.$bf-white;
|
|
52
|
+
background: color.adjust(bf-v-color.$bf-blue, $lightness: -10%);
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
&:active,
|
|
55
56
|
&:focus {
|
|
56
|
-
box-shadow: 0 0 0 3px
|
|
57
|
+
box-shadow: 0 0 0 3px rgb(0 86 179 / 25%);
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
}
|
|
@@ -68,4 +69,5 @@ fieldset[disabled] .bf-btn,
|
|
|
68
69
|
user-select: none !important;
|
|
69
70
|
box-shadow: none !important;
|
|
70
71
|
opacity: 0.5 !important;
|
|
72
|
+
background-color: bf-v-color.$bf-gray-light;
|
|
71
73
|
}
|
|
@@ -4,19 +4,16 @@ $debug: false;
|
|
|
4
4
|
|
|
5
5
|
// visualizing layout internals
|
|
6
6
|
* {
|
|
7
|
-
@if
|
|
7
|
+
@if $debug {
|
|
8
8
|
outline: 1px solid hotpink !important;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
// ...or something more powerful
|
|
13
|
-
//
|
|
13
|
+
//
|
|
14
14
|
// Debug CSS
|
|
15
15
|
// https://gist.github.com/zaydek-old/6b2e55258734deabbd2b4a284321d6f6
|
|
16
16
|
//
|
|
17
|
-
// ! :not is IE9+
|
|
18
|
-
// https://caniuse.com/#feat=mdn-css_selectors_not
|
|
19
|
-
//
|
|
20
17
|
// :not(g):not(path) {
|
|
21
18
|
// @if ($debug) {
|
|
22
19
|
// color: hsla(210, 100%, 100%, 0.9) !important;
|
|
@@ -28,89 +25,6 @@ $debug: false;
|
|
|
28
25
|
// }
|
|
29
26
|
// }
|
|
30
27
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
// -----------------------------------------------------------------------------
|
|
34
|
-
|
|
35
|
-
// // CSS used to highlight potential performance issues
|
|
36
|
-
// // https://gist.github.com/tkadlec/683b26344cde774170b94c0fcf0088b4
|
|
37
|
-
|
|
38
|
-
// :root {
|
|
39
|
-
// --violation-color: red; /* used for clear issues */
|
|
40
|
-
// --warning-color: orange; /* used for potential issues we should look into */
|
|
41
|
-
// }
|
|
42
|
-
|
|
43
|
-
// /* IMAGES */
|
|
44
|
-
|
|
45
|
-
// /*
|
|
46
|
-
// * Lazy-Loaded Images Check
|
|
47
|
-
// * ====
|
|
48
|
-
// * Highlight any lazy loaded images so we can see if any are inside the viewport
|
|
49
|
-
// *
|
|
50
|
-
// * Uses an outline so it can pair with Unsized Images and Legacy Format checks
|
|
51
|
-
// * Credit: https://twitter.com/csswizardry/status/1346477682544951296
|
|
52
|
-
// */
|
|
53
|
-
// img[loading='lazy'] {
|
|
54
|
-
// outline: 10px solid var(--warning-color) !important;
|
|
55
|
-
// }
|
|
56
|
-
|
|
57
|
-
// /*
|
|
58
|
-
// * Unsized Images Check
|
|
59
|
-
// * ====
|
|
60
|
-
// * Highlight images that don't have a height or width attribute set
|
|
61
|
-
// *
|
|
62
|
-
// * Uses a border so it can pair with Lazy-Loaded and Legacy Format checks
|
|
63
|
-
// */
|
|
64
|
-
// img:not([height]),
|
|
65
|
-
// img:not([width]) {
|
|
66
|
-
// border: 10px solid var(--violation-color) !important;
|
|
67
|
-
// }
|
|
68
|
-
|
|
69
|
-
// /*
|
|
70
|
-
// * Legacy Format Check
|
|
71
|
-
// * ====
|
|
72
|
-
// * Highlight tiff's and bmp's because we can do better
|
|
73
|
-
// * Also JPG's because maybe we can use something like webp or avif instead
|
|
74
|
-
// *
|
|
75
|
-
// * Use opacity so we don't conflict with Lazy-Loaded and Unsized Images checks
|
|
76
|
-
// */
|
|
77
|
-
// img[src*='.jpg'],
|
|
78
|
-
// img[src*='.tiff'],
|
|
79
|
-
// img[src*='.bmp'] {
|
|
80
|
-
// opacity: .5 !important;
|
|
81
|
-
// }
|
|
82
|
-
|
|
83
|
-
// /* SCRIPTS */
|
|
84
|
-
|
|
85
|
-
// /* Synchronous Scripts Check
|
|
86
|
-
// * ====
|
|
87
|
-
// * Display any blocking synchronous scripts
|
|
88
|
-
// *
|
|
89
|
-
// * Credit: https://twitter.com/csswizardry/status/1336007323337285633
|
|
90
|
-
// */
|
|
91
|
-
// head,
|
|
92
|
-
// script[src] {
|
|
93
|
-
// display: block;
|
|
94
|
-
// border: 10px solid var(--violation-color);
|
|
95
|
-
// }
|
|
96
|
-
// /*
|
|
97
|
-
// * Display the URL/filepath of external scripts
|
|
98
|
-
// */
|
|
99
|
-
// script[src]::before {
|
|
100
|
-
// content: attr(src);
|
|
101
|
-
// font-size: 1rem;
|
|
102
|
-
// }
|
|
103
|
-
|
|
104
|
-
// /*
|
|
105
|
-
// * Hide other head content and non-blocking scripts
|
|
106
|
-
// */
|
|
107
|
-
// head *,
|
|
108
|
-
// script[src][async],
|
|
109
|
-
// script[src][defer],
|
|
110
|
-
// script[src][type='module'] {
|
|
111
|
-
// display: none;
|
|
112
|
-
// }
|
|
113
|
-
|
|
114
28
|
// Read more
|
|
115
29
|
//
|
|
116
30
|
// a interesting guide about CSS debugging from Ben Frain
|
|
@@ -1,15 +1,24 @@
|
|
|
1
|
+
@use '../variables/variables-colors' as bf-v-color;
|
|
2
|
+
@use '../variables/variables-texts' as bf-v-text;
|
|
3
|
+
@use '../variables/variables-spacing' as bf-v-space;
|
|
4
|
+
@use '../variables/variables-breakpoints' as bf-v-bp;
|
|
5
|
+
@use 'sass:color';
|
|
6
|
+
|
|
1
7
|
.bf-focused {
|
|
2
|
-
transition:
|
|
3
|
-
|
|
4
|
-
|
|
8
|
+
transition:
|
|
9
|
+
border 0.2s,
|
|
10
|
+
background-color 0.2s,
|
|
11
|
+
box-shadow 0.2s !important;
|
|
12
|
+
border-color: bf-v-color.$bf-blue !important;
|
|
13
|
+
box-shadow: 0 0 0 3px rgb(0 86 179 / 25%) !important;
|
|
5
14
|
}
|
|
6
15
|
|
|
7
16
|
.bf-disabled,
|
|
8
17
|
.bf-disabled:hover,
|
|
9
18
|
.bf-disabled:active,
|
|
10
19
|
.bf-disabled:focus,
|
|
11
|
-
.bf-disabled
|
|
12
|
-
.bf-disabled
|
|
20
|
+
.bf-disabled::after,
|
|
21
|
+
.bf-disabled::before,
|
|
13
22
|
.bf-disabled:invalid,
|
|
14
23
|
.bf-disabled:checked {
|
|
15
24
|
cursor: default !important; // IE8-10 fallback
|
|
@@ -17,10 +26,10 @@
|
|
|
17
26
|
pointer-events: none !important;
|
|
18
27
|
user-select: none !important;
|
|
19
28
|
box-shadow: none !important;
|
|
20
|
-
opacity: .5 !important;
|
|
29
|
+
opacity: 0.5 !important;
|
|
21
30
|
|
|
22
|
-
background-color:
|
|
23
|
-
border-color:
|
|
31
|
+
background-color: bf-v-color.$bf-white;
|
|
32
|
+
border-color: bf-v-color.$bf-gray;
|
|
24
33
|
}
|
|
25
34
|
|
|
26
35
|
label.bf-disabled {
|
|
@@ -38,17 +47,17 @@ button.bf-disabled,
|
|
|
38
47
|
pointer-events: none;
|
|
39
48
|
user-select: none;
|
|
40
49
|
box-shadow: none;
|
|
41
|
-
opacity: .5;
|
|
50
|
+
opacity: 0.5;
|
|
42
51
|
|
|
43
|
-
color:
|
|
44
|
-
background:
|
|
52
|
+
color: bf-v-color.$bf-dark;
|
|
53
|
+
background: bf-v-color.$bf-gray-light;
|
|
45
54
|
|
|
46
55
|
&:hover,
|
|
47
56
|
&:active,
|
|
48
57
|
&:focus {
|
|
49
58
|
box-shadow: none;
|
|
50
|
-
color:
|
|
51
|
-
background:
|
|
59
|
+
color: bf-v-color.$bf-dark;
|
|
60
|
+
background: bf-v-color.$bf-gray-light;
|
|
52
61
|
}
|
|
53
62
|
}
|
|
54
63
|
|
|
@@ -58,23 +67,23 @@ button.bf-disabled,
|
|
|
58
67
|
pointer-events: none;
|
|
59
68
|
user-select: none;
|
|
60
69
|
box-shadow: none;
|
|
61
|
-
opacity: .5;
|
|
70
|
+
opacity: 0.5;
|
|
62
71
|
|
|
63
|
-
color:
|
|
64
|
-
background:
|
|
72
|
+
color: bf-v-color.$bf-white;
|
|
73
|
+
background: bf-v-color.$bf-blue;
|
|
65
74
|
|
|
66
75
|
&:hover,
|
|
67
76
|
&:active,
|
|
68
77
|
&:focus {
|
|
69
78
|
box-shadow: none;
|
|
70
|
-
color:
|
|
71
|
-
background:
|
|
79
|
+
color: bf-v-color.$bf-white;
|
|
80
|
+
background: bf-v-color.$bf-blue;
|
|
72
81
|
}
|
|
73
82
|
}
|
|
74
83
|
|
|
75
84
|
.bf-invalid,
|
|
76
85
|
.bf-invalid:focus {
|
|
77
|
-
color:
|
|
78
|
-
border-color:
|
|
79
|
-
box-shadow: 0 0 0 3px
|
|
86
|
+
color: bf-v-color.$bf-red !important;
|
|
87
|
+
border-color: bf-v-color.$bf-red !important;
|
|
88
|
+
box-shadow: 0 0 0 3px rgb(255 0 0 / 25%) !important;
|
|
80
89
|
}
|
|
@@ -1,157 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
@import 'utility-global-dark-scrollbars';
|
|
5
|
-
|
|
6
|
-
// the basics: background and texts
|
|
7
|
-
html {
|
|
8
|
-
color: $bf-light;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
body {
|
|
12
|
-
background-color: lighten($bf-dark-extra, 7.5%);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// anchors
|
|
16
|
-
a {
|
|
17
|
-
color: lighten($bf-blue, 20%);
|
|
18
|
-
|
|
19
|
-
&:hover,
|
|
20
|
-
&:focus {
|
|
21
|
-
color: lighten($bf-blue-light, 20%);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// typography elements that need tiny adjustments
|
|
26
|
-
mark {
|
|
27
|
-
background-color: darken($bf-yellow, 10%);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
ins {
|
|
31
|
-
background-color: darken($bf-yellow-light, 45%);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// forms
|
|
35
|
-
|
|
36
|
-
[type='email'],
|
|
37
|
-
[type='number'],
|
|
38
|
-
[type='password'],
|
|
39
|
-
[type='tel'],
|
|
40
|
-
[type='search'],
|
|
41
|
-
[type='text'],
|
|
42
|
-
[type='date'],
|
|
43
|
-
[type='datetime-local'],
|
|
44
|
-
[type='month'],
|
|
45
|
-
[type='week'],
|
|
46
|
-
[type='time'],
|
|
47
|
-
[type='url'],
|
|
48
|
-
[type='range'],
|
|
49
|
-
input[list],
|
|
50
|
-
select,
|
|
51
|
-
select:not([size]):not([multiple]),
|
|
52
|
-
textarea {
|
|
53
|
-
background-color: $bf-dark-extra;
|
|
54
|
-
border-color: $bf-black;
|
|
55
|
-
color: $bf-gray-light;
|
|
56
|
-
|
|
57
|
-
&:active,
|
|
58
|
-
&:focus {
|
|
59
|
-
background-color: $bf-dark-extra;
|
|
60
|
-
border-color: lighten($bf-blue, 10%);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
[type='email'],
|
|
65
|
-
[type='number'],
|
|
66
|
-
[type='password'],
|
|
67
|
-
[type='tel'],
|
|
68
|
-
[type='search'],
|
|
69
|
-
[type='text'],
|
|
70
|
-
[type='date'],
|
|
71
|
-
[type='datetime-local'],
|
|
72
|
-
[type='month'],
|
|
73
|
-
[type='week'],
|
|
74
|
-
[type='time'],
|
|
75
|
-
[type='url'],
|
|
76
|
-
input[list],
|
|
77
|
-
select,
|
|
78
|
-
select:not([size]):not([multiple]),
|
|
79
|
-
textarea {
|
|
80
|
-
&:active,
|
|
81
|
-
&:focus {
|
|
82
|
-
box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.5);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
select:not([size]):not([multiple]) {
|
|
87
|
-
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23f0f0f0' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// IE9 only hack
|
|
91
|
-
// https://gist.github.com/marcop135/cf5163ab23d1cb208248b955c990b2ea#ie-9-only
|
|
92
|
-
@media screen and (min-width: 0\0) and (min-resolution: 0.001dpcm) {
|
|
93
|
-
// hide custom arrow
|
|
94
|
-
select:not([size]):not([multiple]),
|
|
95
|
-
// RTL
|
|
96
|
-
*[dir="rtl"] select:not([size]):not([multiple]),
|
|
97
|
-
select[dir="rtl"]:not([size]):not([multiple]) {
|
|
98
|
-
background-image: none;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// range
|
|
103
|
-
|
|
104
|
-
// all modern browsers but not IE
|
|
105
|
-
@supports (appearance: none) {
|
|
106
|
-
// override above declaration
|
|
107
|
-
[type='range'] {
|
|
108
|
-
background-color: transparent;
|
|
109
|
-
|
|
110
|
-
&:focus {
|
|
111
|
-
background-color: transparent;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
// darker background
|
|
116
|
-
// the rulesets must be separated
|
|
117
|
-
[type='range']::-webkit-slider-runnable-track {
|
|
118
|
-
background-color: $bf-dark-extra;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
[type='range']::-moz-range-track {
|
|
122
|
-
background-color: $bf-dark-extra;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
input::placeholder,
|
|
127
|
-
textarea::placeholder {
|
|
128
|
-
color: $bf-gray;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
button,
|
|
132
|
-
[type='button'],
|
|
133
|
-
[type='reset'],
|
|
134
|
-
[type='submit'] {
|
|
135
|
-
background: $bf-gray-light;
|
|
136
|
-
|
|
137
|
-
&:hover,
|
|
138
|
-
&:active,
|
|
139
|
-
&:focus {
|
|
140
|
-
background: darken($bf-gray-light, 10%);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
&:active,
|
|
144
|
-
&:focus {
|
|
145
|
-
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
// focus
|
|
150
|
-
a:focus,
|
|
151
|
-
input:focus {
|
|
152
|
-
outline-color: darken(orange, 15%);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
:focus-visible {
|
|
156
|
-
outline-color: darken(orange, 15%);
|
|
157
|
-
}
|
|
1
|
+
@use '../mixins/mixin-dark' as bf-mix-dark;
|
|
2
|
+
@use 'utility-global-dark-scrollbars' as bfUtilGlobalDarkScrollbars;
|
|
3
|
+
@include bf-mix-dark.bf-global-dark-classless;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
@use "../variables/variables-colors" as bf-v-color;
|
|
2
|
+
@use "../mixins/mixin-dark-prefers" as bf-mix-dark-prefers;
|
|
3
|
+
@include bf-mix-dark-prefers.bf-global-dark-classless-prefers;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
@use "../variables/variables-colors" as bf-v-color;
|
|
2
|
+
@use "../mixins/mixin-dark-prefers" as bf-mix-dark-prefers;
|
|
3
|
+
@include bf-mix-dark-prefers.bf-global-dark-classless-prefers;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
@use '../variables/variables-colors' as bf-v-color;
|
|
2
|
+
@use '../variables/variables-texts' as bf-v-text;
|
|
3
|
+
@use '../variables/variables-spacing' as bf-v-space;
|
|
4
|
+
@use '../variables/variables-breakpoints' as bf-v-bp;
|
|
5
|
+
@use 'sass:color';
|
|
6
|
+
|
|
1
7
|
// standard property
|
|
2
8
|
// 'scrollbar-color'
|
|
3
9
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color
|
|
4
|
-
// currently (June 2020) Firefox only
|
|
5
|
-
// https://caniuse.com/#feat=mdn-css_properties_scrollbar-color
|
|
6
10
|
html {
|
|
7
|
-
scrollbar-color:
|
|
11
|
+
scrollbar-color: color.adjust(bf-v-color.$bf-gray-dark, $lightness: -5%)
|
|
12
|
+
bf-v-color.$bf-dark-extra;
|
|
8
13
|
}
|
|
9
14
|
|
|
10
15
|
// these features are not standard, and blink and webkit only
|
|
@@ -17,13 +22,13 @@ html {
|
|
|
17
22
|
}
|
|
18
23
|
|
|
19
24
|
::-webkit-scrollbar-track {
|
|
20
|
-
background-color:
|
|
25
|
+
background-color: bf-v-color.$bf-dark-extra;
|
|
21
26
|
}
|
|
22
27
|
|
|
23
28
|
::-webkit-scrollbar-thumb {
|
|
24
|
-
background-color:
|
|
29
|
+
background-color: color.adjust(bf-v-color.$bf-gray-dark, $lightness: -5%);
|
|
25
30
|
}
|
|
26
31
|
|
|
27
32
|
::-webkit-scrollbar-thumb:hover {
|
|
28
|
-
background-color:
|
|
33
|
+
background-color: color.adjust(bf-v-color.$bf-gray-dark, $lightness: 10%);
|
|
29
34
|
}
|