bullframe.css 5.1.0 → 6.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.
Files changed (117) hide show
  1. package/CHANGELOG.md +39 -2
  2. package/LICENSE +1 -1
  3. package/README.md +34 -458
  4. package/dist/css/bullframe-classless-dark.css +1270 -909
  5. package/dist/css/bullframe-classless-dark.css.map +1 -1
  6. package/dist/css/bullframe-classless-dark.min.css +1 -3
  7. package/dist/css/bullframe-classless-dark.min.css.map +1 -1
  8. package/dist/css/bullframe-classless-system-default.css +1339 -899
  9. package/dist/css/bullframe-classless-system-default.css.map +1 -1
  10. package/dist/css/bullframe-classless-system-default.min.css +1 -3
  11. package/dist/css/bullframe-classless-system-default.min.css.map +1 -1
  12. package/dist/css/bullframe-classless.css +1098 -713
  13. package/dist/css/bullframe-classless.css.map +1 -1
  14. package/dist/css/bullframe-classless.min.css +1 -3
  15. package/dist/css/bullframe-classless.min.css.map +1 -1
  16. package/dist/css/bullframe-dark.css +2105 -1541
  17. package/dist/css/bullframe-dark.css.map +1 -1
  18. package/dist/css/bullframe-dark.min.css +1 -3
  19. package/dist/css/bullframe-dark.min.css.map +1 -1
  20. package/dist/css/bullframe-system-default.css +2107 -1529
  21. package/dist/css/bullframe-system-default.css.map +1 -1
  22. package/dist/css/bullframe-system-default.min.css +1 -3
  23. package/dist/css/bullframe-system-default.min.css.map +1 -1
  24. package/dist/css/bullframe-utilities.css +766 -490
  25. package/dist/css/bullframe-utilities.css.map +1 -1
  26. package/dist/css/bullframe-utilities.min.css +1 -2
  27. package/dist/css/bullframe-utilities.min.css.map +1 -1
  28. package/dist/css/bullframe.css +1900 -1310
  29. package/dist/css/bullframe.css.map +1 -1
  30. package/dist/css/bullframe.min.css +1 -3
  31. package/dist/css/bullframe.min.css.map +1 -1
  32. package/package.json +70 -28
  33. package/.browserslistrc +0 -3
  34. package/.editorconfig +0 -15
  35. package/.htmlhintrc +0 -12
  36. package/.prettierignore +0 -1
  37. package/.stylelintignore +0 -3
  38. package/.stylelintrc.json +0 -26
  39. package/dist/apple-touch-icon.png +0 -0
  40. package/dist/css/bullframe-classless-dark-prefers.css +0 -1280
  41. package/dist/css/bullframe-classless-dark-prefers.css.map +0 -1
  42. package/dist/css/bullframe-classless-dark-prefers.min.css +0 -3
  43. package/dist/css/bullframe-classless-dark-prefers.min.css.map +0 -1
  44. package/dist/css/bullframe-dark-prefers.css +0 -2296
  45. package/dist/css/bullframe-dark-prefers.css.map +0 -1
  46. package/dist/css/bullframe-dark-prefers.min.css +0 -3
  47. package/dist/css/bullframe-dark-prefers.min.css.map +0 -1
  48. package/dist/docs/demo/index.html +0 -1154
  49. package/dist/favicon-16x16.png +0 -0
  50. package/dist/favicon-32x32.png +0 -0
  51. package/dist/favicon.ico +0 -0
  52. package/dist/index.css +0 -1
  53. package/dist/index.js.map +0 -1
  54. package/dist/placeholder-img-800x400.jpg +0 -0
  55. package/dist/video-poster.png +0 -0
  56. package/prettier.config.js +0 -26
  57. package/src/scss/bullframe-classless-dark-prefers.scss +0 -2
  58. package/src/scss/bullframe-classless-dark.scss +0 -2
  59. package/src/scss/bullframe-classless-system-default.scss +0 -2
  60. package/src/scss/bullframe-classless.scss +0 -49
  61. package/src/scss/bullframe-dark-prefers.scss +0 -2
  62. package/src/scss/bullframe-dark.scss +0 -2
  63. package/src/scss/bullframe-system-default.scss +0 -2
  64. package/src/scss/bullframe-utilities.scss +0 -21
  65. package/src/scss/bullframe.scss +0 -49
  66. package/src/scss/custom/_author-styles.scss +0 -5
  67. package/src/scss/forms/_forms-normalization.scss +0 -300
  68. package/src/scss/forms/_forms-styling-radio-checkbox.scss +0 -81
  69. package/src/scss/forms/_forms-styling-range.scss +0 -106
  70. package/src/scss/forms/_forms-styling-select.scss +0 -58
  71. package/src/scss/forms/_forms-styling.scss +0 -118
  72. package/src/scss/miscellaneous/_misc-accessibility.scss +0 -36
  73. package/src/scss/miscellaneous/_misc-anchors.scss +0 -37
  74. package/src/scss/miscellaneous/_misc-embedded-content.scss +0 -117
  75. package/src/scss/miscellaneous/_misc-focus.scss +0 -80
  76. package/src/scss/miscellaneous/_misc-interactive.scss +0 -48
  77. package/src/scss/miscellaneous/_misc-layout.scss +0 -30
  78. package/src/scss/miscellaneous/_misc-lists.scss +0 -53
  79. package/src/scss/miscellaneous/_misc-scrolling.scss +0 -5
  80. package/src/scss/miscellaneous/_misc-shame.scss +0 -37
  81. package/src/scss/miscellaneous/_misc-tables.scss +0 -53
  82. package/src/scss/mixins/_mixin-dark-prefers.scss +0 -413
  83. package/src/scss/mixins/_mixin-dark.scss +0 -415
  84. package/src/scss/mixins/_mixin-grid-flex.scss +0 -80
  85. package/src/scss/mixins/_mixin-layout.scss +0 -42
  86. package/src/scss/mixins/_mixin-texts.scss +0 -37
  87. package/src/scss/typography/_typography-blockquotes.scss +0 -28
  88. package/src/scss/typography/_typography-headings.scss +0 -45
  89. package/src/scss/typography/_typography-html-body.scss +0 -75
  90. package/src/scss/typography/_typography-misc.scss +0 -90
  91. package/src/scss/typography/_typography-monospaced-elements.scss +0 -59
  92. package/src/scss/utilities/_utility-buttons.scss +0 -73
  93. package/src/scss/utilities/_utility-debugging.scss +0 -31
  94. package/src/scss/utilities/_utility-embeds.scss +0 -34
  95. package/src/scss/utilities/_utility-filters.scss +0 -21
  96. package/src/scss/utilities/_utility-form-states.scss +0 -89
  97. package/src/scss/utilities/_utility-global-dark-classless.scss +0 -3
  98. package/src/scss/utilities/_utility-global-dark-prefers-classless.scss +0 -3
  99. package/src/scss/utilities/_utility-global-dark-prefers.scss +0 -3
  100. package/src/scss/utilities/_utility-global-dark-scrollbars.scss +0 -34
  101. package/src/scss/utilities/_utility-global-dark.scss +0 -4
  102. package/src/scss/utilities/_utility-global-system-default-classless.scss +0 -3
  103. package/src/scss/utilities/_utility-global-system-default.scss +0 -3
  104. package/src/scss/utilities/_utility-grid-system.scss +0 -140
  105. package/src/scss/utilities/_utility-layout.scss +0 -187
  106. package/src/scss/utilities/_utility-lists.scss +0 -17
  107. package/src/scss/utilities/_utility-print.scss +0 -101
  108. package/src/scss/utilities/_utility-reduced-motion.scss +0 -29
  109. package/src/scss/utilities/_utility-spacing.scss +0 -148
  110. package/src/scss/utilities/_utility-tables.scss +0 -34
  111. package/src/scss/utilities/_utility-texts.scss +0 -225
  112. package/src/scss/utilities/_utility-z-index.scss +0 -83
  113. package/src/scss/variables/_variables-breakpoints.scss +0 -6
  114. package/src/scss/variables/_variables-colors.scss +0 -34
  115. package/src/scss/variables/_variables-spacing.scss +0 -24
  116. package/src/scss/variables/_variables-texts.scss +0 -8
  117. package/vite.config.js +0 -148
@@ -1,58 +0,0 @@
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
- // custom <select> arrow and appearance with a base64 embedded SVG icon
8
- // https://css-tricks.com/probably-dont-base64-svg/#article-header-id-2
9
- //
10
- // this is inspired from https://github.com/kognise/water.css
11
- // and from Bootstrap custom select
12
- // https://getbootstrap.com/docs/4.4/components/input-group/#custom-select
13
-
14
- // ! 12px = the icon width/height, and must be in pixels because
15
- // calc() is just for values
16
- // https://css-tricks.com/a-complete-guide-to-calc-in-css/#0-calc-is-for-values
17
- //
18
- // a select with a [multiple] attribute doesn't show an arrow by default
19
- // a select with a [size] attribute gets and arrow on iOS (Webkit) for instance
20
- // but on Chrome and FF desktop
21
- // so, is not safe to style every kind of <select>
22
- //
23
- // remove the arrow and the appearance, especially on Webkit
24
- :where(select):not([size], select[multiple]) {
25
- appearance: none;
26
-
27
- // add a new svg arrow
28
- background: bf-v-color.$bf-white
29
- 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='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e")
30
- no-repeat right 0.85rem center/8px 10px;
31
-
32
- // space the arrow
33
- padding-right: bf-v-space.$bf-spacing-lg-rem + bf-v-space.$bf-spacing-lg-rem;
34
- }
35
-
36
- // Legacy Edge browser support
37
- :where(select)::-ms-expand {
38
- display: none;
39
- }
40
-
41
- // add support for RTL languages
42
- // 'appearance: none' removes the default styling but introduces a bug
43
- // that occurs when a right to the left language (e.g. Arabic) is set
44
- //
45
- // Read more
46
- // 1. http://bootstrap.rtlcss.com
47
- // 2. https://rtlstyling.com/
48
- :where(*[dir="rtl"]) :where(select):not([size], select[multiple]),
49
- :where(select[dir="rtl"]):not([size], select[multiple]) {
50
- // move the arrow icon to the left
51
- background-position: left 0.85rem top 50%;
52
-
53
- // go back to default forms padding
54
- padding-right: (bf-v-space.$bf-spacing-lg-rem * 0.75);
55
-
56
- // add custom left padding, matching the custom LTR one
57
- padding-left: bf-v-space.$bf-spacing-lg-rem + bf-v-space.$bf-spacing-lg-rem;
58
- }
@@ -1,118 +0,0 @@
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
- :where(
8
- [type="email"],
9
- [type="number"],
10
- [type="password"],
11
- [type="tel"],
12
- [type="search"],
13
- [type="text"],
14
- [type="date"],
15
- [type="datetime-local"],
16
- [type="month"],
17
- [type="week"],
18
- [type="time"],
19
- [type="url"],
20
- input[list],
21
- select,
22
- textarea
23
- ) {
24
- background-color: bf-v-color.$bf-white;
25
- border: 1px solid bf-v-color.$bf-gray;
26
- padding: bf-v-space.$bf-spacing-md-rem (bf-v-space.$bf-spacing-lg-rem * 0.75);
27
- }
28
-
29
- :where(
30
- [type="email"],
31
- [type="number"],
32
- [type="password"],
33
- [type="tel"],
34
- [type="search"],
35
- [type="text"],
36
- [type="date"],
37
- [type="datetime-local"],
38
- [type="month"],
39
- [type="week"],
40
- [type="time"],
41
- [type="url"],
42
- input[list],
43
- select,
44
- textarea,
45
- [type="radio"],
46
- [type="checkbox"]
47
- ) {
48
- &:active,
49
- &:focus {
50
- transition: border 0.2s, background-color 0.2s, box-shadow 0.2s;
51
- border-color: bf-v-color.$bf-blue;
52
- box-shadow: 0 0 0 3px rgb(0 86 179 / 25%);
53
- }
54
- }
55
-
56
- :where(button, [type="button"], [type="reset"], [type="submit"]) {
57
- color: bf-v-color.$bf-dark;
58
- padding: calc(bf-v-space.$bf-spacing-xl-rem / 3)
59
- (calc(bf-v-space.$bf-spacing-xl-rem / 3) * 2);
60
- background: bf-v-color.$bf-gray-light;
61
- transition: color 0.2s, background 0.2s, box-shadow 0.2s;
62
-
63
- &:hover,
64
- &:active,
65
- &:focus {
66
- text-decoration: none;
67
- color: bf-v-color.$bf-dark;
68
- background: color.adjust(bf-v-color.$bf-gray-light, $lightness: -10%);
69
- }
70
-
71
- &:active,
72
- &:focus {
73
- box-shadow: 0 0 0 3px rgb(0 0 0 / 15%);
74
- }
75
- }
76
-
77
- // disabled groups
78
- :where(
79
- fieldset[disabled] button,
80
- fieldset[disabled] input,
81
- fieldset[disabled] input::after,
82
- fieldset[disabled] input::before,
83
- fieldset[disabled] input:checked,
84
- fieldset[disabled] select,
85
- fieldset[disabled] textarea,
86
- fieldset[disabled] label,
87
- button[disabled],
88
- input[disabled],
89
- input[disabled]::after,
90
- input[disabled]::before,
91
- input[disabled]:checked,
92
- select[disabled],
93
- textarea[disabled],
94
- label[disabled],
95
- button:disabled,
96
- input:disabled,
97
- input:disabled::after,
98
- input:disabled::before,
99
- input:disabled:checked,
100
- select:disabled,
101
- textarea:disabled,
102
- label:disabled,
103
- button[aria-disabled="true"],
104
- input[aria-disabled="true"],
105
- input[aria-disabled="true"]::after,
106
- input[aria-disabled="true"]::before,
107
- input[aria-disabled="true"]:checked,
108
- select[aria-disabled="true"],
109
- textarea[aria-disabled="true"],
110
- label[aria-disabled="true"]
111
- ) {
112
- cursor: default !important; // fallback
113
- cursor: not-allowed !important;
114
- pointer-events: none !important;
115
- user-select: none !important;
116
- box-shadow: none !important;
117
- opacity: 0.5 !important;
118
- }
@@ -1,36 +0,0 @@
1
- // Taken from sanitize.css
2
- // https://github.com/csstools/sanitize.css/blob/v13.0.0/sanitize.css
3
-
4
- /* Accessibility
5
- * ========================================================================== */
6
-
7
- /**
8
- * Change the cursor on busy elements in all browsers (opinionated).
9
- */
10
-
11
- :where([aria-busy='true' i]) {
12
- cursor: progress;
13
- }
14
-
15
- /*
16
- * Change the cursor on disabled, not-editable, or otherwise
17
- * inoperable elements in all browsers (opinionated).
18
- */
19
-
20
- :where([aria-disabled='true' i], [disabled]) {
21
- cursor: not-allowed;
22
- }
23
-
24
- /*
25
- * Change the display on visually hidden accessible elements
26
- * in all browsers (opinionated).
27
- */
28
-
29
- :where([aria-hidden='false' i][hidden]) {
30
- display: initial;
31
- }
32
-
33
- :where([aria-hidden='false' i][hidden]:not(:focus)) {
34
- clip: rect(0, 0, 0, 0);
35
- position: absolute;
36
- }
@@ -1,37 +0,0 @@
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
- a {
8
- color: bf-v-color.$bf-blue; // bootstrap blue
9
- text-decoration: none;
10
-
11
- // Edge Legacy: Remove grey background on active links
12
- background-color: transparent;
13
-
14
- &:hover,
15
- &:focus {
16
- text-decoration: underline;
17
- color: bf-v-color.$bf-blue-light;
18
- }
19
- }
20
-
21
- // this is taken from Bootstrap's reboot
22
- // https://getbootstrap.com/docs/4.4/content/reboot/
23
-
24
- a:not([href], [tabindex]) {
25
- color: inherit;
26
- text-decoration: none;
27
- }
28
-
29
- a:not([href], [class]),
30
- a:not([href], [class]):hover {
31
- color: inherit;
32
- text-decoration: none;
33
- }
34
-
35
- a:not([href], [tabindex]):focus {
36
- outline: 0;
37
- }
@@ -1,117 +0,0 @@
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
- audio,
8
- canvas,
9
- progress,
10
- video {
11
- display: inline-block;
12
- }
13
-
14
- img,
15
- canvas,
16
- audio,
17
- video,
18
- iframe,
19
- object,
20
- embed {
21
- max-width: 100%;
22
- }
23
-
24
- audio,
25
- video,
26
- canvas,
27
- img,
28
- svg {
29
- vertical-align: middle;
30
- }
31
-
32
- img {
33
- height: auto;
34
- border-style: none;
35
- }
36
-
37
- figure {
38
- margin: 0;
39
- }
40
-
41
- figure,
42
- figcaption {
43
- display: block;
44
- }
45
-
46
- figcaption {
47
- line-height: 1.375;
48
- font-size: 90%;
49
- }
50
-
51
- video {
52
- height: auto;
53
- }
54
-
55
- audio {
56
- width: 100%;
57
- }
58
-
59
- audio:not([controls]) {
60
- display: none;
61
- height: 0;
62
- }
63
-
64
- svg:not(:root) {
65
- overflow: hidden;
66
- }
67
-
68
- svg:not([fill]) {
69
- fill: currentColor;
70
- }
71
-
72
- progress,
73
- meter {
74
- display: inline-block;
75
- vertical-align: baseline;
76
- width: 100%;
77
- max-width: 100%;
78
- }
79
-
80
- // <progress> normalization
81
- //
82
- // https://css-tricks.com/html5-progress-element/
83
- progress[value] {
84
- appearance: none; // reset the default appearance
85
- border: none; // Get rid of default border in Firefox
86
-
87
- height: 20px;
88
- height: 2rem;
89
-
90
- // progress bar background color
91
- background: bf-v-color.$bf-gray-light;
92
-
93
- // progress value background color in IE10+
94
- color: bf-v-color.$bf-blue;
95
- }
96
-
97
- // progress value background color in webkit
98
- progress[value]::-webkit-progress-bar {
99
- background: bf-v-color.$bf-gray-light;
100
- }
101
- progress[value]::-webkit-progress-value {
102
- background: bf-v-color.$bf-blue;
103
- }
104
-
105
- // remove default border in old browsers
106
- // and for embeds (e.g. youtube) that don't remove the border with the attribute
107
- // frameborder="0"
108
- //
109
- // e.g.
110
- // <iframe
111
- // width=" 560 "
112
- // height=" 315 "
113
- // src=" https:
114
- // www.youtube-nocookie.com/embed/Z-4v4I7Gzk0"
115
- iframe {
116
- border-style: none;
117
- }
@@ -1,80 +0,0 @@
1
- // remove focus if is not keyboard
2
- // and if these elements are not focused globally
3
- :where(:focus:not(:focus-visible)) {
4
- outline: none;
5
- }
6
-
7
- // Suppress the focus outline on elements that cannot be accessed via keyboard.
8
- // This prevents an unwanted focus outline from appearing around elements that
9
- // might still respond to pointer events.
10
- //
11
- // Taken from SuitCSS https://github.com/suitcss/base
12
- //
13
- // Copyright 2020 Harry Roberts
14
-
15
- // Licensed under the Apache License, Version 2.0 (the "License");
16
- // you may not use this file except in compliance with the License.
17
- // You may obtain a copy of the License at
18
-
19
- // http://www.apache.org/licenses/LICENSE-2.0
20
-
21
- // Unless required by applicable law or agreed to in writing, software
22
- // distributed under the License is distributed on an "AS IS" BASIS,
23
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
- // See the License for the specific language governing permissions and
25
- // limitations under the License.
26
-
27
- :where([tabindex="-1"]:focus:not(:focus-visible)) {
28
- outline: 0 !important;
29
- }
30
-
31
- :where(a:focus, input:focus) {
32
- outline: 2px solid orange;
33
- }
34
-
35
- // style it again (must be separated)
36
- :where(:focus-visible) {
37
- outline: 2px solid orange;
38
- }
39
-
40
- // these form elements get some ':focus' styles that enhance and improve the focus
41
- // see '_form-elements.scss'
42
- // so, we can remove it safely
43
- //
44
- // ! but do not touch
45
- // [type="color"]
46
- // [type="range"]
47
- // [type="file"]
48
- // because usually are replaced with a custom version
49
- // with JS or extra <div>s
50
- // https://getbootstrap.com/docs/4.4/components/input-group/#custom-file-input
51
- :where(
52
- button,
53
- [type="button"],
54
- [type="reset"],
55
- [type="submit"],
56
- [type="email"],
57
- [type="number"],
58
- [type="password"],
59
- [type="tel"],
60
- [type="search"],
61
- [type="text"],
62
- [type="date"],
63
- [type="datetime-local"],
64
- [type="month"],
65
- [type="time"],
66
- [type="week"],
67
- [type="url"],
68
- [type="radio"],
69
- [type="checkbox"],
70
- input[list],
71
- select,
72
- textarea
73
- ) {
74
- &:focus {
75
- outline: 0;
76
- }
77
- }
78
-
79
- // More resources to read on this matter
80
- // https://gist.github.com/chrisdemars/a74c5bd210dc739fa63e9b985c937bcb
@@ -1,48 +0,0 @@
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,30 +0,0 @@
1
- *,
2
- *::before,
3
- *::after {
4
- box-sizing: border-box;
5
- }
6
-
7
- article,
8
- aside,
9
- dialog,
10
- figcaption,
11
- figure,
12
- footer,
13
- header,
14
- hgroup,
15
- main,
16
- menu,
17
- nav,
18
- section,
19
- details {
20
- display: block;
21
- }
22
-
23
- template {
24
- display: none;
25
- }
26
-
27
- // Always hide an element with the `hidden` HTML attribute
28
- [hidden] {
29
- display: none !important;
30
- }
@@ -1,53 +0,0 @@
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
- menu,
8
- ol,
9
- ul,
10
- dl {
11
- margin: 0 0 bf-v-space.$bf-spacing-xl-rem 0;
12
- padding: 0;
13
- }
14
-
15
- menu ul,
16
- menu ol,
17
- ul ul,
18
- ul ol,
19
- ol ol,
20
- ol ul,
21
- dd {
22
- margin-bottom: 0;
23
- }
24
-
25
- ul,
26
- ol {
27
- margin-left: bf-v-space.$bf-spacing-xl-rem;
28
- }
29
-
30
- nav ol,
31
- nav ul {
32
- list-style: none;
33
- list-style-image: none;
34
- margin-left: 0;
35
- }
36
-
37
- dt {
38
- font-weight: 700;
39
- }
40
-
41
- dd {
42
- margin-left: 0;
43
- }
44
-
45
- // taken from https://github.com/jensimmons/cssremedy
46
- //
47
- // 1. Add zero-width-space to prevent VoiceOver disable
48
- // 2. Absolute position ensures no extra space
49
- // See: https://unfetteredthoughts.net/2017/09/26/voiceover-and-list-style-type-none/
50
- nav li::before {
51
- content: '\200B';
52
- position: absolute;
53
- }
@@ -1,5 +0,0 @@
1
- @media (prefers-reduced-motion: no-preference) {
2
- :root {
3
- scroll-behavior: smooth;
4
- }
5
- }
@@ -1,37 +0,0 @@
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
- // shamy quick fixes...
8
- //
9
- // Credits: https://csswizardry.com/2013/04/shame-css/
10
- //
11
- // The rules
12
-
13
- // Obviously you need some kind of rules and criteria:
14
-
15
- // If it’s a hack, it goes in shame.css.
16
- // Document all hacks fully:
17
- // What part of the codebase does it relate to?
18
- // Why was this needed?
19
- // How does this fix it?
20
- // How might you fix it properly, given more time?
21
- // Do not blame the developer; if they explained why they had to do it then their reasons are probably (hopefully) valid.
22
- // Try and clean shame.css up when you have some down time.
23
- // Even better, get a tech-debt story in which you can dedicate actual sprint time to it.
24
-
25
- // Example
26
-
27
- // /**
28
- // * Nav specificity fix.
29
- // *
30
- // * Someone used an ID in the header code (`#header a {}`) which trumps the
31
- // * nav selectors (`.site-nav a {}`). Use !important to override it until I
32
- // * have time to refactor the header stuff.
33
- // */
34
- // .site-nav a {
35
- // color: #BADA55 !important;
36
- // }
37
- //
@@ -1,53 +0,0 @@
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
- table {
8
- caption-side: bottom;
9
- max-width: 100%;
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;
17
- }
18
-
19
- thead,
20
- tbody,
21
- tfoot,
22
- tr,
23
- td,
24
- th {
25
- border-color: inherit;
26
- border-style: solid;
27
- border-width: 0;
28
- }
29
-
30
- thead th {
31
- vertical-align: bottom;
32
- }
33
-
34
- th,
35
- td {
36
- vertical-align: top;
37
- }
38
-
39
- th {
40
- text-align: inherit;
41
- text-align: -webkit-match-parent;
42
- font-weight: 700;
43
- }
44
-
45
- caption {
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;
49
- text-align: left;
50
- caption-side: bottom;
51
- line-height: 1.375;
52
- font-size: 90%;
53
- }