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,3 +1,9 @@
|
|
|
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
|
[type='email'],
|
|
2
8
|
[type='number'],
|
|
3
9
|
[type='password'],
|
|
@@ -13,10 +19,10 @@
|
|
|
13
19
|
input[list],
|
|
14
20
|
select,
|
|
15
21
|
textarea {
|
|
16
|
-
background-color:
|
|
17
|
-
border: 1px solid
|
|
18
|
-
padding:
|
|
19
|
-
padding:
|
|
22
|
+
background-color: bf-v-color.$bf-white;
|
|
23
|
+
border: 1px solid / bf-v-color.$bf-gray;
|
|
24
|
+
padding: bf-v-space.$bf-spacing-md-px (bf-v-space.$bf-spacing-lg-px * 0.75);
|
|
25
|
+
padding: bf-v-space.$bf-spacing-md-rem (bf-v-space.$bf-spacing-lg-rem * 0.75);
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
// Old browsers and Opera Mini don't fully support all type of inputs
|
|
@@ -41,9 +47,12 @@ textarea,
|
|
|
41
47
|
[type='checkbox'] {
|
|
42
48
|
&:active,
|
|
43
49
|
&:focus {
|
|
44
|
-
transition:
|
|
45
|
-
|
|
46
|
-
|
|
50
|
+
transition:
|
|
51
|
+
border 0.2s,
|
|
52
|
+
background-color 0.2s,
|
|
53
|
+
box-shadow 0.2s;
|
|
54
|
+
border-color: bf-v-color.$bf-blue;
|
|
55
|
+
box-shadow: 0 0 0 3px rgb(0 86 179 / 25%);
|
|
47
56
|
}
|
|
48
57
|
}
|
|
49
58
|
|
|
@@ -51,61 +60,64 @@ button,
|
|
|
51
60
|
[type='button'],
|
|
52
61
|
[type='reset'],
|
|
53
62
|
[type='submit'] {
|
|
54
|
-
color:
|
|
55
|
-
padding: calc(
|
|
56
|
-
padding: calc(
|
|
57
|
-
background:
|
|
58
|
-
transition:
|
|
63
|
+
color: bf-v-color.$bf-dark;
|
|
64
|
+
padding: calc(bf-v-space.$bf-spacing-xl-px / 3) (calc(bf-v-space.$bf-spacing-xl-px / 3) * 2); // 8px 16px
|
|
65
|
+
padding: calc(bf-v-space.$bf-spacing-xl-rem / 3) (calc(bf-v-space.$bf-spacing-xl-rem / 3) * 2);
|
|
66
|
+
background: bf-v-color.$bf-gray-light;
|
|
67
|
+
transition:
|
|
68
|
+
color 0.2s,
|
|
69
|
+
background 0.2s,
|
|
70
|
+
box-shadow 0.2s;
|
|
59
71
|
|
|
60
72
|
&:hover,
|
|
61
73
|
&:active,
|
|
62
74
|
&:focus {
|
|
63
75
|
text-decoration: none;
|
|
64
|
-
color:
|
|
65
|
-
background:
|
|
76
|
+
color: bf-v-color.$bf-dark;
|
|
77
|
+
background: color.adjust(bf-v-color.$bf-gray-light, $lightness: -10%);
|
|
66
78
|
}
|
|
67
79
|
|
|
68
80
|
&:active,
|
|
69
81
|
&:focus {
|
|
70
|
-
box-shadow: 0 0 0 3px
|
|
82
|
+
box-shadow: 0 0 0 3px rgb(0 0 0 / 15%);
|
|
71
83
|
}
|
|
72
84
|
}
|
|
73
85
|
|
|
74
86
|
// disabled groups
|
|
75
87
|
fieldset[disabled] button,
|
|
76
88
|
fieldset[disabled] input,
|
|
77
|
-
fieldset[disabled] input
|
|
78
|
-
fieldset[disabled] input
|
|
89
|
+
fieldset[disabled] input::after,
|
|
90
|
+
fieldset[disabled] input::before,
|
|
79
91
|
fieldset[disabled] input:checked,
|
|
80
92
|
fieldset[disabled] select,
|
|
81
93
|
fieldset[disabled] textarea,
|
|
82
94
|
fieldset[disabled] label,
|
|
83
95
|
|
|
84
|
-
|
|
96
|
+
/* disabled singles*/
|
|
85
97
|
button[disabled],
|
|
86
98
|
input[disabled],
|
|
87
|
-
input[disabled]
|
|
88
|
-
input[disabled]
|
|
99
|
+
input[disabled]::after,
|
|
100
|
+
input[disabled]::before,
|
|
89
101
|
input[disabled]:checked,
|
|
90
102
|
select[disabled],
|
|
91
103
|
textarea[disabled],
|
|
92
104
|
label[disabled],
|
|
93
105
|
|
|
94
|
-
|
|
106
|
+
/* pseudo class*/
|
|
95
107
|
button:disabled,
|
|
96
108
|
input:disabled,
|
|
97
|
-
input:disabled
|
|
98
|
-
input:disabled
|
|
109
|
+
input:disabled::after,
|
|
110
|
+
input:disabled::before,
|
|
99
111
|
input:disabled:checked,
|
|
100
112
|
select:disabled,
|
|
101
113
|
textarea:disabled,
|
|
102
114
|
label:disabled,
|
|
103
115
|
|
|
104
|
-
|
|
116
|
+
/* aria*/
|
|
105
117
|
button[aria-disabled="true"],
|
|
106
118
|
input[aria-disabled="true"],
|
|
107
|
-
input[aria-disabled="true"]
|
|
108
|
-
input[aria-disabled="true"]
|
|
119
|
+
input[aria-disabled="true"]::after,
|
|
120
|
+
input[aria-disabled="true"]::before,
|
|
109
121
|
input[aria-disabled="true"]:checked,
|
|
110
122
|
select[aria-disabled="true"],
|
|
111
123
|
textarea[aria-disabled="true"],
|
|
@@ -1,29 +1,23 @@
|
|
|
1
|
-
//
|
|
2
|
-
// https://github.com/csstools/sanitize.css/blob/
|
|
1
|
+
// Taken from sanitize.css
|
|
2
|
+
// https://github.com/csstools/sanitize.css/blob/v13.0.0/sanitize.css
|
|
3
|
+
|
|
4
|
+
/* Accessibility
|
|
5
|
+
* ========================================================================== */
|
|
3
6
|
|
|
4
7
|
/**
|
|
5
8
|
* Change the cursor on busy elements in all browsers (opinionated).
|
|
6
9
|
*/
|
|
7
10
|
|
|
8
|
-
|
|
11
|
+
:where([aria-busy='true' i]) {
|
|
9
12
|
cursor: progress;
|
|
10
13
|
}
|
|
11
14
|
|
|
12
|
-
/*
|
|
13
|
-
* Change the cursor on control elements in all browsers (opinionated).
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
[aria-controls] {
|
|
17
|
-
cursor: pointer;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
15
|
/*
|
|
21
16
|
* Change the cursor on disabled, not-editable, or otherwise
|
|
22
17
|
* inoperable elements in all browsers (opinionated).
|
|
23
18
|
*/
|
|
24
19
|
|
|
25
|
-
[aria-disabled=
|
|
26
|
-
[disabled] {
|
|
20
|
+
:where([aria-disabled='true' i], [disabled]) {
|
|
27
21
|
cursor: not-allowed;
|
|
28
22
|
}
|
|
29
23
|
|
|
@@ -32,11 +26,11 @@
|
|
|
32
26
|
* in all browsers (opinionated).
|
|
33
27
|
*/
|
|
34
28
|
|
|
35
|
-
[aria-hidden=
|
|
29
|
+
:where([aria-hidden='false' i][hidden]) {
|
|
36
30
|
display: initial;
|
|
37
31
|
}
|
|
38
32
|
|
|
39
|
-
[aria-hidden=
|
|
33
|
+
:where([aria-hidden='false' i][hidden]:not(:focus)) {
|
|
40
34
|
clip: rect(0, 0, 0, 0);
|
|
41
35
|
position: absolute;
|
|
42
|
-
}
|
|
36
|
+
}
|
|
@@ -1,35 +1,37 @@
|
|
|
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
|
a {
|
|
2
|
-
color:
|
|
8
|
+
color: bf-v-color.$bf-blue; // bootstrap blue
|
|
3
9
|
text-decoration: none;
|
|
4
10
|
|
|
5
|
-
//
|
|
11
|
+
// Edge Legacy: Remove grey background on active links
|
|
6
12
|
background-color: transparent;
|
|
7
|
-
|
|
13
|
+
|
|
8
14
|
&:hover,
|
|
9
15
|
&:focus {
|
|
10
16
|
text-decoration: underline;
|
|
11
|
-
color:
|
|
17
|
+
color: bf-v-color.$bf-blue-light;
|
|
12
18
|
}
|
|
13
19
|
}
|
|
14
20
|
|
|
15
21
|
// this is taken from Bootstrap's reboot
|
|
16
22
|
// https://getbootstrap.com/docs/4.4/content/reboot/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
// https://caniuse.com/#feat=mdn-css_selectors_not
|
|
20
|
-
a:not([href]):not([tabindex]) {
|
|
23
|
+
|
|
24
|
+
a:not([href], [tabindex]) {
|
|
21
25
|
color: inherit;
|
|
22
26
|
text-decoration: none;
|
|
23
27
|
}
|
|
24
28
|
|
|
25
|
-
a:not([href]
|
|
26
|
-
a:not([href]
|
|
27
|
-
a:not([href]):not([class]),
|
|
28
|
-
a:not([href]):not([class]):hover {
|
|
29
|
+
a:not([href], [class]),
|
|
30
|
+
a:not([href], [class]):hover {
|
|
29
31
|
color: inherit;
|
|
30
32
|
text-decoration: none;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
|
-
a:not([href]
|
|
35
|
+
a:not([href], [tabindex]):focus {
|
|
34
36
|
outline: 0;
|
|
35
37
|
}
|
|
@@ -1,3 +1,9 @@
|
|
|
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
|
audio,
|
|
2
8
|
canvas,
|
|
3
9
|
progress,
|
|
@@ -28,13 +34,6 @@ img {
|
|
|
28
34
|
border-style: none;
|
|
29
35
|
}
|
|
30
36
|
|
|
31
|
-
// useful for CMS generated images
|
|
32
|
-
// but causes layout breaking
|
|
33
|
-
// img[width],
|
|
34
|
-
// img[height] {
|
|
35
|
-
// max-width: none;
|
|
36
|
-
// }
|
|
37
|
-
|
|
38
37
|
figure {
|
|
39
38
|
margin: 0;
|
|
40
39
|
}
|
|
@@ -89,21 +88,18 @@ progress[value] {
|
|
|
89
88
|
height: 2rem;
|
|
90
89
|
|
|
91
90
|
// progress bar background color
|
|
92
|
-
background:
|
|
91
|
+
background: bf-v-color.$bf-gray-light;
|
|
93
92
|
|
|
94
93
|
// progress value background color in IE10+
|
|
95
|
-
color:
|
|
94
|
+
color: bf-v-color.$bf-blue;
|
|
96
95
|
}
|
|
97
96
|
|
|
98
|
-
// ! this is not a standard feature, is webkit only
|
|
99
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/%3A%3A-webkit-progress-bar
|
|
100
|
-
//
|
|
101
97
|
// progress value background color in webkit
|
|
102
98
|
progress[value]::-webkit-progress-bar {
|
|
103
|
-
background:
|
|
99
|
+
background: bf-v-color.$bf-gray-light;
|
|
104
100
|
}
|
|
105
101
|
progress[value]::-webkit-progress-value {
|
|
106
|
-
background:
|
|
102
|
+
background: bf-v-color.$bf-blue;
|
|
107
103
|
}
|
|
108
104
|
|
|
109
105
|
// remove default border in old browsers
|
|
@@ -112,13 +108,10 @@ progress[value]::-webkit-progress-value {
|
|
|
112
108
|
//
|
|
113
109
|
// e.g.
|
|
114
110
|
// <iframe
|
|
115
|
-
// width="560"
|
|
116
|
-
// height="315"
|
|
117
|
-
// src="https
|
|
118
|
-
//
|
|
119
|
-
// allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
|
|
120
|
-
// allowfullscreen>
|
|
121
|
-
// </iframe>
|
|
111
|
+
// width=" 560 "
|
|
112
|
+
// height=" 315 "
|
|
113
|
+
// src=" https:
|
|
114
|
+
// www.youtube-nocookie.com/embed/Z-4v4I7Gzk0"
|
|
122
115
|
iframe {
|
|
123
116
|
border-style: none;
|
|
124
117
|
}
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
// ! ':not' is IE9+
|
|
2
|
-
// https://caniuse.com/#feat=mdn-css_selectors_not
|
|
3
|
-
//
|
|
4
|
-
// ! and ':focus-visible'
|
|
5
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible
|
|
6
|
-
//
|
|
7
|
-
// don't have some much browser support now (May 2020)
|
|
8
|
-
// https://caniuse.com/#feat=css-focus-visible
|
|
9
|
-
//
|
|
10
|
-
// but is good in a progressive enhancement future view
|
|
11
|
-
//
|
|
12
|
-
// and you could polyfill it for a wide cross-browser support right now
|
|
13
|
-
// https://github.com/WICG/focus-visible
|
|
14
|
-
//
|
|
15
1
|
// remove focus if is not keyboard
|
|
16
2
|
// and if these elements are not focused globally
|
|
17
3
|
:focus:not(:focus-visible) {
|
|
@@ -42,13 +28,6 @@
|
|
|
42
28
|
outline: 0 !important;
|
|
43
29
|
}
|
|
44
30
|
|
|
45
|
-
// style the ':focus' outline on anchors and inputs
|
|
46
|
-
// this is for consistency
|
|
47
|
-
// e.g.
|
|
48
|
-
// in webkit (Chrome, Safari) the outline is blue with a subtle box-shadow
|
|
49
|
-
// in trident (IE) is just pointed black
|
|
50
|
-
// in gecko (FF) is pointed black, but it's a thiner
|
|
51
|
-
// ...
|
|
52
31
|
a:focus,
|
|
53
32
|
input:focus {
|
|
54
33
|
outline: 2px solid orange;
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
|
|
7
|
+
address {
|
|
8
|
+
font-style: normal;
|
|
9
|
+
margin-bottom: bf-v-space.$bf-spacing-lg-px;
|
|
10
|
+
margin-bottom: bf-v-space.$bf-spacing-lg-rem;
|
|
11
|
+
line-height: inherit;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
details > summary:first-of-type {
|
|
15
|
+
display: list-item;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
summary {
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
font-weight: 700;
|
|
21
|
+
word-break: break-all;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
dialog {
|
|
25
|
+
// match body background color
|
|
26
|
+
background-color: bf-v-color.$bf-white;
|
|
27
|
+
color: bf-v-color.$bf-dark;
|
|
28
|
+
border: none;
|
|
29
|
+
border-radius: bf-v-space.$bf-spacing-sm-rem;
|
|
30
|
+
padding: bf-v-space.$bf-spacing-xl-px;
|
|
31
|
+
padding: bf-v-space.$bf-spacing-xl-rem;
|
|
32
|
+
height: fit-content;
|
|
33
|
+
min-width: 25rem;
|
|
34
|
+
max-width: calc(100vw - (bf-v-space.$bf-spacing-grid-gutter-rem * 2));
|
|
35
|
+
@media (min-width: bf-v-bp.$bf-breakpoint-md) {
|
|
36
|
+
max-width: 50rem;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Overrides 'hidden' attribute
|
|
41
|
+
// <dialog id="myDialog" hidden>...</dialog>
|
|
42
|
+
dialog[open] {
|
|
43
|
+
display: block !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
dialog::backdrop {
|
|
47
|
+
background: rgb(0 0 0 / 40%);
|
|
48
|
+
}
|
|
@@ -1,9 +1,14 @@
|
|
|
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
|
menu,
|
|
2
8
|
ol,
|
|
3
9
|
ul,
|
|
4
10
|
dl {
|
|
5
|
-
margin: 0 0
|
|
6
|
-
margin: 0 0 $bf-spacing-xl-rem 0;
|
|
11
|
+
margin: 0 0 bf-v-space.$bf-spacing-xl-rem 0;
|
|
7
12
|
padding: 0;
|
|
8
13
|
}
|
|
9
14
|
|
|
@@ -19,8 +24,7 @@ dd {
|
|
|
19
24
|
|
|
20
25
|
ul,
|
|
21
26
|
ol {
|
|
22
|
-
margin-left:
|
|
23
|
-
margin-left: $bf-spacing-xl-rem;
|
|
27
|
+
margin-left: bf-v-space.$bf-spacing-xl-rem;
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
nav ol,
|
|
@@ -43,7 +47,7 @@ dd {
|
|
|
43
47
|
// 1. Add zero-width-space to prevent VoiceOver disable
|
|
44
48
|
// 2. Absolute position ensures no extra space
|
|
45
49
|
// See: https://unfetteredthoughts.net/2017/09/26/voiceover-and-list-style-type-none/
|
|
46
|
-
nav li
|
|
50
|
+
nav li::before {
|
|
47
51
|
content: '\200B';
|
|
48
52
|
position: absolute;
|
|
49
53
|
}
|
|
@@ -1,3 +1,9 @@
|
|
|
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
|
// shamy quick fixes...
|
|
2
8
|
//
|
|
3
9
|
// Credits: https://csswizardry.com/2013/04/shame-css/
|
|
@@ -1,6 +1,19 @@
|
|
|
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
|
table {
|
|
8
|
+
caption-side: bottom;
|
|
2
9
|
max-width: 100%;
|
|
3
10
|
border-collapse: collapse;
|
|
11
|
+
// Correct table border color inheritance in Chrome and Safari
|
|
12
|
+
// https://issues.chromium.org/issues/40615503, https://bugs.webkit.org/show_bug.cgi?id=195016
|
|
13
|
+
border-color: currentcolor;
|
|
14
|
+
// Remove text indentation from table contents in Chrome and Safari
|
|
15
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297
|
|
16
|
+
text-indent: 0;
|
|
4
17
|
}
|
|
5
18
|
|
|
6
19
|
thead,
|
|
@@ -25,15 +38,14 @@ td {
|
|
|
25
38
|
|
|
26
39
|
th {
|
|
27
40
|
text-align: inherit;
|
|
41
|
+
text-align: -webkit-match-parent;
|
|
28
42
|
font-weight: 700;
|
|
29
43
|
}
|
|
30
44
|
|
|
31
45
|
caption {
|
|
32
|
-
padding-top:
|
|
33
|
-
padding-
|
|
34
|
-
|
|
35
|
-
padding-bottom: $bf-spacing-md-rem;
|
|
36
|
-
color: $bf-gray;
|
|
46
|
+
padding-top: bf-v-space.$bf-spacing-md-rem;
|
|
47
|
+
padding-bottom: bf-v-space.$bf-spacing-md-rem;
|
|
48
|
+
color: bf-v-color.$bf-gray;
|
|
37
49
|
text-align: left;
|
|
38
50
|
caption-side: bottom;
|
|
39
51
|
line-height: 1.375;
|