bullframe.css 3.8.1 → 4.0.1

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 (103) hide show
  1. package/.browserslistrc +10 -6
  2. package/.stylelintrc.json +10 -0
  3. package/CHANGELOG.md +20 -4
  4. package/LICENSE +20 -20
  5. package/README.md +28 -179
  6. package/dist/css/bullframe-classless-dark-prefers.css +357 -425
  7. package/dist/css/bullframe-classless-dark-prefers.min.css +2 -3
  8. package/dist/css/bullframe-classless-dark-prefers.min.css.map +1 -1
  9. package/dist/css/bullframe-classless-dark.css +328 -412
  10. package/dist/css/bullframe-classless-dark.min.css +2 -3
  11. package/dist/css/bullframe-classless-dark.min.css.map +1 -1
  12. package/dist/css/bullframe-classless.css +237 -293
  13. package/dist/css/bullframe-classless.min.css +2 -2
  14. package/dist/css/bullframe-classless.min.css.map +1 -1
  15. package/dist/css/bullframe-dark-prefers.css +468 -633
  16. package/dist/css/bullframe-dark-prefers.min.css +2 -2
  17. package/dist/css/bullframe-dark-prefers.min.css.map +1 -1
  18. package/dist/css/bullframe-dark.css +402 -593
  19. package/dist/css/bullframe-dark.min.css +2 -2
  20. package/dist/css/bullframe-dark.min.css.map +1 -1
  21. package/dist/css/bullframe-utilities.css +87 -125
  22. package/dist/css/bullframe-utilities.min.css +1 -1
  23. package/dist/css/bullframe-utilities.min.css.map +1 -1
  24. package/dist/css/bullframe.css +288 -455
  25. package/dist/css/bullframe.min.css +1 -1
  26. package/dist/css/bullframe.min.css.map +1 -1
  27. package/docs/test/css/style.css +130 -130
  28. package/docs/test/icons/safari-pinned-tab.svg +28 -28
  29. package/docs/test/js/vendor/html5shiv.js +335 -335
  30. package/docs/test/js/vendor/ie10-viewport-bug-workaround.js +20 -20
  31. package/gulpfile.js +5 -2
  32. package/index.html +1214 -1223
  33. package/package.json +14 -11
  34. package/src/scss/bullframe-classless-dark-prefers.scss +5 -5
  35. package/src/scss/bullframe-classless-dark.scss +5 -5
  36. package/src/scss/bullframe-classless.scss +1 -9
  37. package/src/scss/bullframe-dark-prefers.scss +4 -4
  38. package/src/scss/bullframe-dark.scss +4 -4
  39. package/src/scss/bullframe-utilities.scss +1 -1
  40. package/src/scss/bullframe.scss +0 -7
  41. package/src/scss/forms/_forms-normalization.scss +4 -2
  42. package/src/scss/forms/_forms-styling-radio-checkbox.scss +84 -85
  43. package/src/scss/forms/_forms-styling-range.scss +99 -103
  44. package/src/scss/forms/_forms-styling-select.scss +63 -63
  45. package/src/scss/forms/_forms-styling.scss +119 -121
  46. package/src/scss/miscellaneous/_misc-focus.scss +0 -1
  47. package/src/scss/miscellaneous/_misc-layout.scss +1 -24
  48. package/src/scss/mixins/_mixin-grid-flex.scss +83 -83
  49. package/src/scss/mixins/_mixin-layout.scss +42 -42
  50. package/src/scss/mixins/_mixin-texts.scss +38 -37
  51. package/src/scss/typography/_typography-blockquotes.scss +23 -23
  52. package/src/scss/typography/_typography-headings.scss +43 -43
  53. package/src/scss/typography/_typography-html-body.scss +72 -72
  54. package/src/scss/typography/_typography-misc.scss +3 -3
  55. package/src/scss/typography/_typography-monospaced-elements.scss +50 -56
  56. package/src/scss/utilities/_utility-buttons.scss +71 -71
  57. package/src/scss/utilities/_utility-embeds.scss +34 -34
  58. package/src/scss/utilities/_utility-filters.scss +24 -24
  59. package/src/scss/utilities/_utility-form-states.scss +80 -80
  60. package/src/scss/utilities/_utility-global-dark-classless.scss +157 -169
  61. package/src/scss/utilities/_utility-global-dark-prefers-classless.scss +3 -3
  62. package/src/scss/utilities/_utility-global-dark-prefers.scss +3 -3
  63. package/src/scss/utilities/_utility-global-dark-scrollbars.scss +29 -29
  64. package/src/scss/utilities/_utility-global-dark.scss +213 -224
  65. package/src/scss/utilities/_utility-grid-system.scss +204 -204
  66. package/src/scss/utilities/_utility-layout.scss +195 -196
  67. package/src/scss/utilities/_utility-lists.scss +17 -17
  68. package/src/scss/utilities/_utility-print.scss +101 -111
  69. package/src/scss/utilities/_utility-reduced-motion.scss +29 -29
  70. package/src/scss/utilities/_utility-tables.scss +40 -40
  71. package/src/scss/utilities/_utility-texts.scss +199 -199
  72. package/src/scss/utilities/_utility-z-index.scss +82 -82
  73. package/src/scss/variables/_variables-breakpoints.scss +5 -5
  74. package/src/scss/variables/_variables-colors.scss +31 -31
  75. package/src/scss/variables/_variables-spacing.scss +25 -25
  76. package/src/scss/variables/_variables-texts.scss +12 -12
  77. package/dist/css/bullframe-classless-dark-ie10+.css +0 -1321
  78. package/dist/css/bullframe-classless-dark-ie10+.min.css +0 -4
  79. package/dist/css/bullframe-classless-dark-ie10+.min.css.map +0 -1
  80. package/dist/css/bullframe-classless-dark-prefers-ie10+.css +0 -1301
  81. package/dist/css/bullframe-classless-dark-prefers-ie10+.min.css +0 -4
  82. package/dist/css/bullframe-classless-dark-prefers-ie10+.min.css.map +0 -1
  83. package/dist/css/bullframe-classless-ie10+.css +0 -1084
  84. package/dist/css/bullframe-classless-ie10+.min.css +0 -3
  85. package/dist/css/bullframe-classless-ie10+.min.css.map +0 -1
  86. package/dist/css/bullframe-dark-ie10+.css +0 -2569
  87. package/dist/css/bullframe-dark-ie10+.min.css +0 -3
  88. package/dist/css/bullframe-dark-ie10+.min.css.map +0 -1
  89. package/dist/css/bullframe-dark-prefers-ie10+.css +0 -2541
  90. package/dist/css/bullframe-dark-prefers-ie10+.min.css +0 -3
  91. package/dist/css/bullframe-dark-prefers-ie10+.min.css.map +0 -1
  92. package/dist/css/bullframe-ie10+.css +0 -2250
  93. package/dist/css/bullframe-ie10+.min.css +0 -2
  94. package/dist/css/bullframe-ie10+.min.css.map +0 -1
  95. package/docs/images-readme/browserstack-logo.png +0 -0
  96. package/src/scss/bullframe-classless-dark-ie10+.scss +0 -5
  97. package/src/scss/bullframe-classless-dark-prefers-ie10+.scss +0 -5
  98. package/src/scss/bullframe-classless-ie10+.scss +0 -43
  99. package/src/scss/bullframe-dark-ie10+.scss +0 -4
  100. package/src/scss/bullframe-dark-prefers-ie10+.scss +0 -4
  101. package/src/scss/bullframe-ie10+.scss +0 -121
  102. package/src/scss/forms/_forms-styling-ie-hacks.scss +0 -56
  103. package/src/scss/forms/_forms-styling-select-ie-hacks.scss +0 -30
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bullframe.css",
3
- "version": "3.8.1",
4
- "description": "Solid, fluid, IE-friendly Sass (SCSS) framework",
3
+ "version": "4.0.1",
4
+ "description": "Solid, fluid, cross-browser Sass (SCSS) framework.",
5
5
  "jsdelivr": "dist/css/bullframe.css",
6
6
  "unpkg": "dist/css/bullframe.css",
7
7
  "main": "dist/css/bullframe.css",
@@ -20,9 +20,6 @@
20
20
  "css-framework",
21
21
  "internet-explorer",
22
22
  "cross-browser",
23
- "ie8",
24
- "ie9",
25
- "ie10",
26
23
  "ie11",
27
24
  "responsive-web-design",
28
25
  "fluid",
@@ -44,14 +41,20 @@
44
41
  },
45
42
  "homepage": "https://marcop135.github.io/bullframe.css/",
46
43
  "devDependencies": {
47
- "browser-sync": "^2.26.12",
48
- "cssnano": "^4.1.11",
44
+ "browser-sync": "^2.27.10",
45
+ "cssnano": "^5.1.12",
49
46
  "gulp": "^4.0.2",
50
- "gulp-autoprefixer": "^7.0.1",
51
- "gulp-postcss": "^8.0.0",
47
+ "gulp-autoprefixer": "^8.0.0",
48
+ "gulp-postcss": "^9.0.1",
52
49
  "gulp-rename": "2.0.0",
53
50
  "gulp-replace": "^1.1.3",
54
- "gulp-sass": "^4.0.2"
51
+ "gulp-sass": "^5.1.0",
52
+ "sass": "^1.54.4",
53
+ "stylelint": "^14.10.0",
54
+ "stylelint-config-recommended": "^9.0.0",
55
+ "stylelint-config-sass-guidelines": "^9.0.1"
55
56
  },
56
- "dependencies": {}
57
+ "dependencies": {
58
+ "stylelint-scss": "^4.3.0"
59
+ }
57
60
  }
@@ -1,5 +1,5 @@
1
- /*! custom build: bullframe-classless-dark-prefers */
2
- // https://css-tricks.com/no-class-css-frameworks/
3
-
4
- @import 'bullframe-classless';
5
- @import 'utilities/utility-global-dark-prefers-classless';
1
+ /*! custom build: bullframe-classless-dark-prefers */
2
+ // https://css-tricks.com/no-class-css-frameworks/
3
+
4
+ @import 'bullframe-classless';
5
+ @import 'utilities/utility-global-dark-prefers-classless';
@@ -1,5 +1,5 @@
1
- /*! custom build: bullframe-classless-dark */
2
- // https://css-tricks.com/no-class-css-frameworks/
3
-
4
- @import 'bullframe-classless';
5
- @import 'utilities/utility-global-dark-classless';
1
+ /*! custom build: bullframe-classless-dark */
2
+ // https://css-tricks.com/no-class-css-frameworks/
3
+
4
+ @import 'bullframe-classless';
5
+ @import 'utilities/utility-global-dark-classless';
@@ -30,21 +30,13 @@
30
30
  // all about form elements
31
31
  @import 'forms/forms-normalization';
32
32
  @import 'forms/forms-styling';
33
- @import 'forms/forms-styling-ie-hacks';
34
33
  @import 'forms/forms-styling-select';
35
- @import 'forms/forms-styling-select-ie-hacks';
36
34
  @import 'forms/forms-styling-radio-checkbox';
35
+ @import 'forms/forms-styling-range';
37
36
 
38
37
  // <table> and his elements
39
38
  @import 'miscellaneous/misc-tables';
40
39
 
41
- // improve several ARIA roles appearance
42
- @import 'miscellaneous/misc-accessibility';
43
-
44
- // shamy quick fixes...
45
- // https://csswizardry.com/2013/04/shame-css/
46
- @import 'miscellaneous/misc-shame';
47
-
48
40
  // this is just quick way to customise your styles
49
41
  // below these styles, you shouldn't override nothing but remove them
50
42
  // commented by default
@@ -1,4 +1,4 @@
1
- /*! custom build: bullframe-dark-prefers */
2
-
3
- @import 'bullframe';
4
- @import 'utilities/utility-global-dark-prefers';
1
+ /*! custom build: bullframe-dark-prefers */
2
+
3
+ @import 'bullframe';
4
+ @import 'utilities/utility-global-dark-prefers';
@@ -1,4 +1,4 @@
1
- /*! custom build: bullframe-dark */
2
-
3
- @import 'bullframe';
4
- @import 'utilities/utility-global-dark';
1
+ /*! custom build: bullframe-dark */
2
+
3
+ @import 'bullframe';
4
+ @import 'utilities/utility-global-dark';
@@ -1,4 +1,4 @@
1
- /*! bullframe.css v3.8.0 | MIT License | https://github.com/marcop135/bullframe.css */
1
+ /*! bullframe.css v4.0.1 | MIT License | https://github.com/marcop135/bullframe.css */
2
2
  /* custom build: bullframe-utilities */
3
3
 
4
4
  // colors, spacing and breakpoint variables
@@ -30,9 +30,7 @@
30
30
  // all about form elements
31
31
  @import 'forms/forms-normalization';
32
32
  @import 'forms/forms-styling';
33
- @import 'forms/forms-styling-ie-hacks';
34
33
  @import 'forms/forms-styling-select';
35
- @import 'forms/forms-styling-select-ie-hacks';
36
34
  @import 'forms/forms-styling-radio-checkbox';
37
35
  @import 'forms/forms-styling-range';
38
36
 
@@ -61,11 +59,6 @@
61
59
  // clearfix, sr-only, float, inline/block/flex, and more
62
60
  @import 'utilities/utility-layout';
63
61
 
64
- // CSS filters
65
- // https://developer.mozilla.org/en-US/docs/Web/CSS/filter
66
- // https://caniuse.com/css-filters
67
- @import 'utilities/utility-filters';
68
-
69
62
  @import 'utilities/utility-z-index';
70
63
 
71
64
  // reset margins and paddings adding a class
@@ -150,8 +150,10 @@ select {
150
150
  word-wrap: normal;
151
151
  }
152
152
 
153
- [list]::-webkit-calendar-picker-indicator {
154
- display: none;
153
+ // Taken from Bootstrap Reboot v5.2
154
+ // https://unpkg.com/browse/bootstrap@5.2.0/dist/css/bootstrap-reboot.css
155
+ [list]:not([type='date']):not([type='datetime-local']):not([type='month']):not([type='week']):not([type='time'])::-webkit-calendar-picker-indicator {
156
+ display: none !important;
155
157
  }
156
158
 
157
159
  optgroup {
@@ -1,85 +1,84 @@
1
- // heavily inspired by '2020 toggles' by Aaron Iker
2
- // https://css-tricks.com/custom-styling-form-inputs-with-modern-css-features/
3
- // https://codepen.io/aaroniker/pen/ZEYoxEY?editors=0100
4
- //
5
- // currently (June 2020), a few modern browsers support the "@supports" media rules
6
- // https://developer.mozilla.org/en-US/docs/Web/CSS/@supports
7
- // https://caniuse.com/#feat=mdn-css_at-rules_supports_selector
8
- //
9
- // Anyway are safe and future-friendly because more browser compatibility
10
- // will come
11
-
12
- @supports (appearance: none) {
13
- [type='checkbox'],
14
- [type='radio'] {
15
- appearance: none;
16
-
17
- height: 1.8rem;
18
- width: 1.8rem;
19
-
20
- vertical-align: top;
21
- position: relative;
22
-
23
- border: 1px solid $bf-gray;
24
-
25
- + label {
26
- line-height: 1.8rem;
27
- vertical-align: top;
28
- margin-left: $bf-spacing-md-px;
29
- margin-left: $bf-spacing-md-rem;
30
- }
31
-
32
- // add support for RTL languages
33
- // Read more
34
- // 1. http://bootstrap.rtlcss.com
35
- // 2. https://rtlstyling.com/
36
- *[dir='rtl'] & + label,
37
- &[dir='rtl'] + label {
38
- margin-left: 0;
39
- margin-right: $bf-spacing-md-px;
40
- margin-right: $bf-spacing-md-rem;
41
- }
42
-
43
- &:after {
44
- content: '';
45
- display: block;
46
- position: absolute;
47
- }
48
-
49
- &:checked {
50
- background-color: $bf-blue;
51
- border-color: $bf-black;
52
- }
53
- }
54
-
55
- [type='radio'] {
56
- &:after {
57
- width: 1.8rem;
58
- height: 1.8rem;
59
-
60
- left: -.05rem;
61
- top: -.05rem;
62
-
63
- border-radius: 50%;
64
- background: $bf-white;
65
-
66
- transform: scale(.35);
67
- }
68
- }
69
-
70
- [type='checkbox'] {
71
- &:after {
72
- width: .6rem;
73
- height: .8rem;
74
-
75
- border: 2px solid $bf-white;
76
- border-top: 0;
77
- border-left: 0;
78
-
79
- left: 35%;
80
- top: 20%;
81
-
82
- transform: rotate(43deg);
83
- }
84
- }
85
- }
1
+ // heavily inspired by '2020 toggles' by Aaron Iker
2
+ // https://css-tricks.com/custom-styling-form-inputs-with-modern-css-features/
3
+ // https://codepen.io/aaroniker/pen/ZEYoxEY?editors=0100
4
+ //
5
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/@supports
6
+ // https://caniuse.com/#feat=mdn-css_at-rules_supports_selector
7
+ //
8
+ // Anyway are safe and future-friendly because more browser compatibility
9
+ // will come
10
+
11
+ @supports (appearance: none) {
12
+ [type='checkbox'],
13
+ [type='radio'] {
14
+ appearance: none;
15
+
16
+ height: 1.8rem;
17
+ width: 1.8rem;
18
+
19
+ vertical-align: top;
20
+ position: relative;
21
+
22
+ border: 1px solid $bf-gray;
23
+
24
+ + label {
25
+ line-height: 1.8rem;
26
+ vertical-align: top;
27
+ margin-left: $bf-spacing-md-px;
28
+ margin-left: $bf-spacing-md-rem;
29
+ }
30
+
31
+ // add support for RTL languages
32
+ // Read more
33
+ // 1. http://bootstrap.rtlcss.com
34
+ // 2. https://rtlstyling.com/
35
+ *[dir='rtl'] & + label,
36
+ &[dir='rtl'] + label {
37
+ margin-left: 0;
38
+ margin-right: $bf-spacing-md-px;
39
+ margin-right: $bf-spacing-md-rem;
40
+ }
41
+
42
+ &:after {
43
+ content: '';
44
+ display: block;
45
+ position: absolute;
46
+ }
47
+
48
+ &:checked {
49
+ background-color: $bf-blue;
50
+ border-color: $bf-black;
51
+ }
52
+ }
53
+
54
+ [type='radio'] {
55
+ &:after {
56
+ width: 1.8rem;
57
+ height: 1.8rem;
58
+
59
+ left: -0.05rem;
60
+ top: -0.05rem;
61
+
62
+ border-radius: 50%;
63
+ background: $bf-white;
64
+
65
+ transform: scale(0.35);
66
+ }
67
+ }
68
+
69
+ [type='checkbox'] {
70
+ &:after {
71
+ width: 0.6rem;
72
+ height: 0.8rem;
73
+
74
+ border: 2px solid $bf-white;
75
+ border-top: 0;
76
+ border-left: 0;
77
+
78
+ left: 35%;
79
+ top: 20%;
80
+
81
+ transform: rotate(43deg);
82
+ }
83
+ }
84
+ }
@@ -1,103 +1,99 @@
1
- // styling input range in modern browsers safely using the @supports CSS-at-rule
2
- // https://developer.mozilla.org/en-US/docs/Web/CSS/@supports
3
- //
4
- // standalone CodePen demo https://codepen.io/marcop135/pen/JjGrNMx
5
-
6
- @supports (appearance: none) {
7
- [type='range'] {
8
- appearance: none;
9
- width: 100%;
10
- height: 1.4rem;
11
- }
12
-
13
- [type='range']::-webkit-slider-thumb {
14
- border: 0;
15
- appearance: none;
16
-
17
- width: 1.5rem;
18
- height: 1.5rem;
19
- margin-top: -.25rem;
20
- background-color: $bf-blue;
21
- border-radius: 1.5rem;
22
- transition: background-color .15s ease-in-out,
23
- border-color .15s ease-in-out, box-shadow .15s ease-in-out;
24
-
25
- &:active {
26
- background-color: $bf-blue;
27
- }
28
- }
29
-
30
- [type='range']::-moz-range-thumb {
31
- border: 0;
32
- appearance: none;
33
-
34
- width: 1.5rem;
35
- height: 1.5rem;
36
- background-color: $bf-blue;
37
- border-radius: 1.5rem;
38
- transition: background-color .15s ease-in-out,
39
- border-color .15s ease-in-out, box-shadow .15s ease-in-out;
40
-
41
- &:active {
42
- background-color: $bf-blue;
43
- }
44
- }
45
-
46
- [type='range']::-webkit-slider-runnable-track {
47
- color: transparent;
48
- border-color: transparent;
49
-
50
- width: 100%;
51
- height: .65rem;
52
- cursor: pointer;
53
- background-color: $bf-gray-light-extra;
54
- }
55
-
56
- [type='range']::-moz-range-track {
57
- color: transparent;
58
- border-color: transparent;
59
-
60
- width: 100%;
61
- height: .65rem;
62
- cursor: pointer;
63
- background-color: $bf-gray-light-extra;
64
- }
65
-
66
- [type='range']:focus {
67
- outline: none;
68
-
69
- &::-webkit-slider-thumb {
70
- box-shadow: 0 0 0 .1rem $bf-white, 0 0 0 .2rem rgba(0, 123, 255, .25);
71
- }
72
-
73
- &::-moz-slider-thumb {
74
- box-shadow: 0 0 0 .1rem $bf-white, 0 0 0 .2rem rgba(0, 123, 255, .25);
75
- }
76
- }
77
-
78
- [type='range']::-moz-focus-outer {
79
- border: 0;
80
- }
81
-
82
- [type='range']:focus::-webkit-slider-thumb {
83
- box-shadow: 0 0 0 .1rem $bf-white, 0 0 0 .2rem rgba(0, 123, 255, .25);
84
- }
85
-
86
- [type='range']:focus::-moz-range-thumb {
87
- box-shadow: 0 0 0 .1rem $bf-white, 0 0 0 .2rem rgba(0, 123, 255, .25);
88
- }
89
-
90
- // disabled
91
-
92
- [type='range']:disabled {
93
- pointer-events: none;
94
-
95
- &::-webkit-slider-thumb {
96
- background-color: $bf-gray-light;
97
- }
98
-
99
- &::-moz-slider-thumb {
100
- background-color: $bf-gray-light;
101
- }
102
- }
103
- }
1
+ // styling input range in modern browsers safely using the @supports CSS-at-rule
2
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/@supports
3
+ //
4
+ // standalone CodePen demo https://codepen.io/marcop135/pen/JjGrNMx
5
+
6
+ @supports (appearance: none) {
7
+ [type='range'] {
8
+ appearance: none;
9
+ width: 100%;
10
+ height: 1.4rem;
11
+ }
12
+
13
+ [type='range']::-webkit-slider-thumb {
14
+ border: 0;
15
+ appearance: none;
16
+
17
+ width: 1.5rem;
18
+ height: 1.5rem;
19
+ margin-top: -0.25rem;
20
+ background-color: $bf-blue;
21
+ border-radius: 1.5rem;
22
+ transition: background-color 0.15s ease-in-out,
23
+ border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
24
+
25
+ &:active {
26
+ background-color: $bf-blue;
27
+ }
28
+ }
29
+
30
+ [type='range']::-moz-range-thumb {
31
+ border: 0;
32
+ appearance: none;
33
+
34
+ width: 1.5rem;
35
+ height: 1.5rem;
36
+ background-color: $bf-blue;
37
+ border-radius: 1.5rem;
38
+ transition: background-color 0.15s ease-in-out,
39
+ border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
40
+
41
+ &:active {
42
+ background-color: $bf-blue;
43
+ }
44
+ }
45
+
46
+ [type='range']::-webkit-slider-runnable-track {
47
+ color: transparent;
48
+ border-color: transparent;
49
+
50
+ width: 100%;
51
+ height: 0.65rem;
52
+ cursor: pointer;
53
+ background-color: $bf-gray-light-extra;
54
+ }
55
+
56
+ [type='range']::-moz-range-track {
57
+ color: transparent;
58
+ border-color: transparent;
59
+
60
+ width: 100%;
61
+ height: 0.65rem;
62
+ cursor: pointer;
63
+ background-color: $bf-gray-light-extra;
64
+ }
65
+
66
+ [type='range']:focus {
67
+ outline: none;
68
+
69
+ &::-webkit-slider-thumb {
70
+ box-shadow: 0 0 0 0.1rem $bf-white, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
71
+ }
72
+
73
+ &::-moz-slider-thumb {
74
+ box-shadow: 0 0 0 0.1rem $bf-white, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
75
+ }
76
+ }
77
+
78
+ [type='range']::-moz-focus-outer {
79
+ border: 0;
80
+ }
81
+
82
+ [type='range']:focus::-moz-range-thumb {
83
+ box-shadow: 0 0 0 0.1rem $bf-white, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
84
+ }
85
+
86
+ // disabled
87
+
88
+ [type='range']:disabled {
89
+ pointer-events: none;
90
+
91
+ &::-webkit-slider-thumb {
92
+ background-color: $bf-gray-light;
93
+ }
94
+
95
+ &::-moz-slider-thumb {
96
+ background-color: $bf-gray-light;
97
+ }
98
+ }
99
+ }
@@ -1,63 +1,63 @@
1
- // custom <select> arrow and appearance with a base64 embedded SVG icon
2
- // https://css-tricks.com/probably-dont-base64-svg/#article-header-id-2
3
- //
4
- // this is inspired from https://github.com/kognise/water.css
5
- // and from Bootstrap custom select
6
- // https://getbootstrap.com/docs/4.4/components/input-group/#custom-select
7
-
8
- // ! :not and calc() are IE9+
9
- // https://caniuse.com/#feat=mdn-css_selectors_not
10
- // https://caniuse.com/#feat=calc
11
- //
12
- // ! 12px = the icon width/height, and must be in pixels because
13
- // calc() is just for values
14
- // https://css-tricks.com/a-complete-guide-to-calc-in-css/#0-calc-is-for-values
15
- //
16
- // a select with a [multiple] attribute doesn't show an arrow by default
17
- // a select with a [size] attribute gets and arrow on iOS (Webkit) for instance
18
- // but on Chrome and FF desktop
19
- // so, is not safe to style every kind of <select>
20
- //
21
- // remove the arrow and the appearance, especially on Webkit
22
- select:not([size]):not([multiple]) {
23
- appearance: none;
24
- }
25
-
26
- // IE10+
27
- // The '::-ms-expand' CSS pseudo-element is a Microsoft extension that represents
28
- // the button of a <select> menu control that opens or closes the drop-down
29
- // menu. Typically it is a triangle that points downward.
30
- // https://developer.mozilla.org/en-US/docs/Web/CSS/::-ms-expand
31
- select::-ms-expand {
32
- display: none;
33
- }
34
-
35
- select:not([size]):not([multiple]) {
36
- background: $bf-white
37
- 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")
38
- no-repeat right .85rem center/8px 10px;
39
-
40
- padding-right: $bf-spacing-lg-px + $bf-spacing-lg-px;
41
- padding-right: $bf-spacing-lg-rem + $bf-spacing-lg-rem;
42
- }
43
-
44
- // add support for RTL languages
45
- // 'appearance: none' removes the default styling but introduces a bug
46
- // that occurs when a right to the left language (e.g. Arabic) is set
47
- //
48
- // Read more
49
- // 1. http://bootstrap.rtlcss.com
50
- // 2. https://rtlstyling.com/
51
- *[dir='rtl'] select:not([size]):not([multiple]),
52
- select[dir='rtl']:not([size]):not([multiple]) {
53
- // move the arrow icon to the left
54
- background-position: left .85rem top 50%;
55
-
56
- // go back to default forms padding
57
- padding-right: ($bf-spacing-lg-px * .75);
58
- padding-right: ($bf-spacing-lg-rem * .75);
59
-
60
- // add custom left padding, matching the custom LTR one
61
- padding-left: $bf-spacing-lg-px + $bf-spacing-lg-px;
62
- padding-left: $bf-spacing-lg-rem + $bf-spacing-lg-rem;
63
- }
1
+ // custom <select> arrow and appearance with a base64 embedded SVG icon
2
+ // https://css-tricks.com/probably-dont-base64-svg/#article-header-id-2
3
+ //
4
+ // this is inspired from https://github.com/kognise/water.css
5
+ // and from Bootstrap custom select
6
+ // https://getbootstrap.com/docs/4.4/components/input-group/#custom-select
7
+
8
+ // ! :not and calc() are IE9+
9
+ // https://caniuse.com/#feat=mdn-css_selectors_not
10
+ // https://caniuse.com/#feat=calc
11
+ //
12
+ // ! 12px = the icon width/height, and must be in pixels because
13
+ // calc() is just for values
14
+ // https://css-tricks.com/a-complete-guide-to-calc-in-css/#0-calc-is-for-values
15
+ //
16
+ // a select with a [multiple] attribute doesn't show an arrow by default
17
+ // a select with a [size] attribute gets and arrow on iOS (Webkit) for instance
18
+ // but on Chrome and FF desktop
19
+ // so, is not safe to style every kind of <select>
20
+ //
21
+ // remove the arrow and the appearance, especially on Webkit
22
+ select:not([size]):not([multiple]) {
23
+ appearance: none;
24
+
25
+ // add a new svg arrow
26
+ background: $bf-white
27
+ 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")
28
+ no-repeat right 0.85rem center/8px 10px;
29
+
30
+ // space the arrow
31
+ padding-right: $bf-spacing-lg-px + $bf-spacing-lg-px;
32
+ padding-right: $bf-spacing-lg-rem + $bf-spacing-lg-rem;
33
+ }
34
+
35
+ // IE10+
36
+ // The '::-ms-expand' CSS pseudo-element is a Microsoft extension that represents
37
+ // the button of a <select> menu control that opens or closes the drop-down
38
+ // menu. Typically it is a triangle that points downward.
39
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/::-ms-expand
40
+ select::-ms-expand {
41
+ display: none;
42
+ }
43
+
44
+ // add support for RTL languages
45
+ // 'appearance: none' removes the default styling but introduces a bug
46
+ // that occurs when a right to the left language (e.g. Arabic) is set
47
+ //
48
+ // Read more
49
+ // 1. http://bootstrap.rtlcss.com
50
+ // 2. https://rtlstyling.com/
51
+ *[dir='rtl'] select:not([size]):not([multiple]),
52
+ select[dir='rtl']:not([size]):not([multiple]) {
53
+ // move the arrow icon to the left
54
+ background-position: left 0.85rem top 50%;
55
+
56
+ // go back to default forms padding
57
+ padding-right: ($bf-spacing-lg-px * 0.75);
58
+ padding-right: ($bf-spacing-lg-rem * 0.75);
59
+
60
+ // add custom left padding, matching the custom LTR one
61
+ padding-left: $bf-spacing-lg-px + $bf-spacing-lg-px;
62
+ padding-left: $bf-spacing-lg-rem + $bf-spacing-lg-rem;
63
+ }