bullframe.css 5.0.1 → 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 (142) hide show
  1. package/CHANGELOG.md +276 -234
  2. package/LICENSE +2 -2
  3. package/README.md +34 -455
  4. package/dist/css/bullframe-classless-dark.css +1218 -932
  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 +1316 -936
  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 +1038 -715
  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 +1943 -1459
  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 +2005 -1489
  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 +769 -491
  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 +1911 -1383
  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 +71 -29
  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/css/bullframe-classless-dark-prefers.css +0 -1340
  40. package/dist/css/bullframe-classless-dark-prefers.css.map +0 -1
  41. package/dist/css/bullframe-classless-dark-prefers.min.css +0 -3
  42. package/dist/css/bullframe-classless-dark-prefers.min.css.map +0 -1
  43. package/dist/css/bullframe-dark-prefers.css +0 -2356
  44. package/dist/css/bullframe-dark-prefers.css.map +0 -1
  45. package/dist/css/bullframe-dark-prefers.min.css +0 -3
  46. package/dist/css/bullframe-dark-prefers.min.css.map +0 -1
  47. package/dist/docs/demo/css/style.css +0 -131
  48. package/dist/docs/demo/icons/android-chrome-192x192.png +0 -0
  49. package/dist/docs/demo/icons/android-chrome-384x384.png +0 -0
  50. package/dist/docs/demo/icons/apple-touch-icon.png +0 -0
  51. package/dist/docs/demo/icons/favicon-16x16.png +0 -0
  52. package/dist/docs/demo/icons/favicon-32x32.png +0 -0
  53. package/dist/docs/demo/icons/favicon.ico +0 -0
  54. package/dist/docs/demo/icons/mstile-150x150.png +0 -0
  55. package/dist/docs/demo/icons/safari-pinned-tab.svg +0 -28
  56. package/dist/docs/demo/images/logo.png +0 -0
  57. package/dist/docs/demo/images/placeholder-img-130x140.jpg +0 -0
  58. package/dist/docs/demo/images/placeholder-img-16x16.jpg +0 -0
  59. package/dist/docs/demo/images/placeholder-img-800x400.jpg +0 -0
  60. package/dist/docs/demo/images/video-poster.png +0 -0
  61. package/dist/docs/demo/index.html +0 -1152
  62. package/dist/docs/github-readme/bf-logo-full-dark.png +0 -0
  63. package/dist/docs/github-readme/bf-logo-full-light.png +0 -0
  64. package/prettier.config.js +0 -26
  65. package/src/docs/demo/css/style.css +0 -131
  66. package/src/docs/demo/icons/android-chrome-192x192.png +0 -0
  67. package/src/docs/demo/icons/android-chrome-384x384.png +0 -0
  68. package/src/docs/demo/icons/apple-touch-icon.png +0 -0
  69. package/src/docs/demo/icons/favicon-16x16.png +0 -0
  70. package/src/docs/demo/icons/favicon-32x32.png +0 -0
  71. package/src/docs/demo/icons/favicon.ico +0 -0
  72. package/src/docs/demo/icons/mstile-150x150.png +0 -0
  73. package/src/docs/demo/icons/safari-pinned-tab.svg +0 -28
  74. package/src/docs/demo/images/logo.png +0 -0
  75. package/src/docs/demo/images/placeholder-img-130x140.jpg +0 -0
  76. package/src/docs/demo/images/placeholder-img-16x16.jpg +0 -0
  77. package/src/docs/demo/images/placeholder-img-800x400.jpg +0 -0
  78. package/src/docs/demo/images/video-poster.png +0 -0
  79. package/src/docs/demo/index.html +0 -1152
  80. package/src/docs/github-readme/bf-logo-full-dark.png +0 -0
  81. package/src/docs/github-readme/bf-logo-full-light.png +0 -0
  82. package/src/scss/bullframe-classless-dark-prefers.scss +0 -2
  83. package/src/scss/bullframe-classless-dark.scss +0 -2
  84. package/src/scss/bullframe-classless-system-default.scss +0 -2
  85. package/src/scss/bullframe-classless.scss +0 -49
  86. package/src/scss/bullframe-dark-prefers.scss +0 -2
  87. package/src/scss/bullframe-dark.scss +0 -2
  88. package/src/scss/bullframe-system-default.scss +0 -2
  89. package/src/scss/bullframe-utilities.scss +0 -21
  90. package/src/scss/bullframe.scss +0 -49
  91. package/src/scss/custom/_author-styles.scss +0 -5
  92. package/src/scss/forms/_forms-normalization.scss +0 -316
  93. package/src/scss/forms/_forms-styling-radio-checkbox.scss +0 -82
  94. package/src/scss/forms/_forms-styling-range.scss +0 -113
  95. package/src/scss/forms/_forms-styling-select.scss +0 -65
  96. package/src/scss/forms/_forms-styling.scss +0 -131
  97. package/src/scss/miscellaneous/_misc-accessibility.scss +0 -36
  98. package/src/scss/miscellaneous/_misc-anchors.scss +0 -37
  99. package/src/scss/miscellaneous/_misc-embedded-content.scss +0 -117
  100. package/src/scss/miscellaneous/_misc-focus.scss +0 -79
  101. package/src/scss/miscellaneous/_misc-interactive.scss +0 -48
  102. package/src/scss/miscellaneous/_misc-layout.scss +0 -30
  103. package/src/scss/miscellaneous/_misc-lists.scss +0 -53
  104. package/src/scss/miscellaneous/_misc-scrolling.scss +0 -5
  105. package/src/scss/miscellaneous/_misc-shame.scss +0 -37
  106. package/src/scss/miscellaneous/_misc-tables.scss +0 -53
  107. package/src/scss/mixins/_mixin-dark-prefers.scss +0 -414
  108. package/src/scss/mixins/_mixin-dark.scss +0 -396
  109. package/src/scss/mixins/_mixin-grid-flex.scss +0 -80
  110. package/src/scss/mixins/_mixin-layout.scss +0 -42
  111. package/src/scss/mixins/_mixin-texts.scss +0 -37
  112. package/src/scss/typography/_typography-blockquotes.scss +0 -28
  113. package/src/scss/typography/_typography-headings.scss +0 -45
  114. package/src/scss/typography/_typography-html-body.scss +0 -75
  115. package/src/scss/typography/_typography-misc.scss +0 -90
  116. package/src/scss/typography/_typography-monospaced-elements.scss +0 -59
  117. package/src/scss/utilities/_utility-buttons.scss +0 -73
  118. package/src/scss/utilities/_utility-debugging.scss +0 -31
  119. package/src/scss/utilities/_utility-embeds.scss +0 -34
  120. package/src/scss/utilities/_utility-filters.scss +0 -21
  121. package/src/scss/utilities/_utility-form-states.scss +0 -89
  122. package/src/scss/utilities/_utility-global-dark-classless.scss +0 -3
  123. package/src/scss/utilities/_utility-global-dark-prefers-classless.scss +0 -3
  124. package/src/scss/utilities/_utility-global-dark-prefers.scss +0 -3
  125. package/src/scss/utilities/_utility-global-dark-scrollbars.scss +0 -34
  126. package/src/scss/utilities/_utility-global-dark.scss +0 -4
  127. package/src/scss/utilities/_utility-global-system-default-classless.scss +0 -3
  128. package/src/scss/utilities/_utility-global-system-default.scss +0 -3
  129. package/src/scss/utilities/_utility-grid-system.scss +0 -140
  130. package/src/scss/utilities/_utility-layout.scss +0 -187
  131. package/src/scss/utilities/_utility-lists.scss +0 -17
  132. package/src/scss/utilities/_utility-print.scss +0 -101
  133. package/src/scss/utilities/_utility-reduced-motion.scss +0 -29
  134. package/src/scss/utilities/_utility-spacing.scss +0 -148
  135. package/src/scss/utilities/_utility-tables.scss +0 -34
  136. package/src/scss/utilities/_utility-texts.scss +0 -225
  137. package/src/scss/utilities/_utility-z-index.scss +0 -83
  138. package/src/scss/variables/_variables-breakpoints.scss +0 -6
  139. package/src/scss/variables/_variables-colors.scss +0 -34
  140. package/src/scss/variables/_variables-spacing.scss +0 -24
  141. package/src/scss/variables/_variables-texts.scss +0 -8
  142. package/vite.config.js +0 -116
@@ -1,65 +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
- // ! :not and calc() are IE9+
15
- // https://caniuse.com/#feat=mdn-css_selectors_not
16
- // https://caniuse.com/#feat=calc
17
-
18
- // ! 12px = the icon width/height, and must be in pixels because
19
- // calc() is just for values
20
- // https://css-tricks.com/a-complete-guide-to-calc-in-css/#0-calc-is-for-values
21
- //
22
- // a select with a [multiple] attribute doesn't show an arrow by default
23
- // a select with a [size] attribute gets and arrow on iOS (Webkit) for instance
24
- // but on Chrome and FF desktop
25
- // so, is not safe to style every kind of <select>
26
- //
27
- // remove the arrow and the appearance, especially on Webkit
28
- select:not([size], [multiple]) {
29
- appearance: none;
30
-
31
- // add a new svg arrow
32
- background: bf-v-color.$bf-white
33
- 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")
34
- no-repeat right 0.85rem center/8px 10px;
35
-
36
- // space the arrow
37
- padding-right: bf-v-space.$bf-spacing-lg-px + bf-v-space.$bf-spacing-lg-px;
38
- padding-right: bf-v-space.$bf-spacing-lg-rem + bf-v-space.$bf-spacing-lg-rem;
39
- }
40
-
41
- // Legacy Edge browser support
42
- select::-ms-expand {
43
- display: none;
44
- }
45
-
46
- // add support for RTL languages
47
- // 'appearance: none' removes the default styling but introduces a bug
48
- // that occurs when a right to the left language (e.g. Arabic) is set
49
- //
50
- // Read more
51
- // 1. http://bootstrap.rtlcss.com
52
- // 2. https://rtlstyling.com/
53
- *[dir='rtl'] select:not([size], [multiple]),
54
- select[dir='rtl']:not([size], [multiple]) {
55
- // move the arrow icon to the left
56
- background-position: left 0.85rem top 50%;
57
-
58
- // go back to default forms padding
59
- padding-right: (bf-v-space.$bf-spacing-lg-px * 0.75);
60
- padding-right: (bf-v-space.$bf-spacing-lg-rem * 0.75);
61
-
62
- // add custom left padding, matching the custom LTR one
63
- padding-left: bf-v-space.$bf-spacing-lg-px + bf-v-space.$bf-spacing-lg-px;
64
- padding-left: bf-v-space.$bf-spacing-lg-rem + bf-v-space.$bf-spacing-lg-rem;
65
- }
@@ -1,131 +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
- [type='email'],
8
- [type='number'],
9
- [type='password'],
10
- [type='tel'],
11
- [type='search'],
12
- [type='text'],
13
- [type='date'],
14
- [type='datetime-local'],
15
- [type='month'],
16
- [type='week'],
17
- [type='time'],
18
- [type='url'],
19
- input[list],
20
- select,
21
- textarea {
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);
26
- }
27
-
28
- // Old browsers and Opera Mini don't fully support all type of inputs
29
- // e.g. [type="range"]
30
- // so, let's try to add styles carefully and selective
31
- [type='email'],
32
- [type='number'],
33
- [type='password'],
34
- [type='tel'],
35
- [type='search'],
36
- [type='text'],
37
- [type='date'],
38
- [type='datetime-local'],
39
- [type='month'],
40
- [type='week'],
41
- [type='time'],
42
- [type='url'],
43
- input[list],
44
- select,
45
- textarea,
46
- [type='radio'],
47
- [type='checkbox'] {
48
- &:active,
49
- &:focus {
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%);
56
- }
57
- }
58
-
59
- button,
60
- [type='button'],
61
- [type='reset'],
62
- [type='submit'] {
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;
71
-
72
- &:hover,
73
- &:active,
74
- &:focus {
75
- text-decoration: none;
76
- color: bf-v-color.$bf-dark;
77
- background: color.adjust(bf-v-color.$bf-gray-light, $lightness: -10%);
78
- }
79
-
80
- &:active,
81
- &:focus {
82
- box-shadow: 0 0 0 3px rgb(0 0 0 / 15%);
83
- }
84
- }
85
-
86
- // disabled groups
87
- fieldset[disabled] button,
88
- fieldset[disabled] input,
89
- fieldset[disabled] input::after,
90
- fieldset[disabled] input::before,
91
- fieldset[disabled] input:checked,
92
- fieldset[disabled] select,
93
- fieldset[disabled] textarea,
94
- fieldset[disabled] label,
95
-
96
- /* disabled singles*/
97
- button[disabled],
98
- input[disabled],
99
- input[disabled]::after,
100
- input[disabled]::before,
101
- input[disabled]:checked,
102
- select[disabled],
103
- textarea[disabled],
104
- label[disabled],
105
-
106
- /* pseudo class*/
107
- button:disabled,
108
- input:disabled,
109
- input:disabled::after,
110
- input:disabled::before,
111
- input:disabled:checked,
112
- select:disabled,
113
- textarea:disabled,
114
- label:disabled,
115
-
116
- /* aria*/
117
- button[aria-disabled="true"],
118
- input[aria-disabled="true"],
119
- input[aria-disabled="true"]::after,
120
- input[aria-disabled="true"]::before,
121
- input[aria-disabled="true"]:checked,
122
- select[aria-disabled="true"],
123
- textarea[aria-disabled="true"],
124
- label[aria-disabled="true"] {
125
- cursor: default !important; // fallback
126
- cursor: not-allowed !important;
127
- pointer-events: none !important;
128
- user-select: none !important;
129
- box-shadow: none !important;
130
- opacity: 0.5 !important;
131
- }
@@ -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,79 +0,0 @@
1
- // remove focus if is not keyboard
2
- // and if these elements are not focused globally
3
- :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
- [tabindex='-1']:focus:not(:focus-visible) {
28
- outline: 0 !important;
29
- }
30
-
31
- a:focus,
32
- input:focus {
33
- outline: 2px solid orange;
34
- }
35
-
36
- // style it again (must be separated)
37
- :focus-visible {
38
- outline: 2px solid orange;
39
- }
40
-
41
- // these form elements get some ':focus' styles that enhance and improve the focus
42
- // see '_form-elements.scss'
43
- // so, we can remove it safely
44
- //
45
- // ! but do not touch
46
- // [type="color"]
47
- // [type="range"]
48
- // [type="file"]
49
- // because usually are replaced with a custom verion
50
- // with JS or extra <div>s
51
- // https://getbootstrap.com/docs/4.4/components/input-group/#custom-file-input
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
- &:focus {
74
- outline: 0;
75
- }
76
- }
77
-
78
- // More resources to read on this matter
79
- // 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
- }