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.
- package/.browserslistrc +10 -6
- package/.stylelintrc.json +10 -0
- package/CHANGELOG.md +20 -4
- package/LICENSE +20 -20
- package/README.md +28 -179
- package/dist/css/bullframe-classless-dark-prefers.css +357 -425
- 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 +328 -412
- 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.css +237 -293
- 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 +468 -633
- 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 +402 -593
- package/dist/css/bullframe-dark.min.css +2 -2
- package/dist/css/bullframe-dark.min.css.map +1 -1
- package/dist/css/bullframe-utilities.css +87 -125
- package/dist/css/bullframe-utilities.min.css +1 -1
- package/dist/css/bullframe-utilities.min.css.map +1 -1
- package/dist/css/bullframe.css +288 -455
- package/dist/css/bullframe.min.css +1 -1
- package/dist/css/bullframe.min.css.map +1 -1
- package/docs/test/css/style.css +130 -130
- package/docs/test/icons/safari-pinned-tab.svg +28 -28
- package/docs/test/js/vendor/html5shiv.js +335 -335
- package/docs/test/js/vendor/ie10-viewport-bug-workaround.js +20 -20
- package/gulpfile.js +5 -2
- package/index.html +1214 -1223
- package/package.json +14 -11
- package/src/scss/bullframe-classless-dark-prefers.scss +5 -5
- package/src/scss/bullframe-classless-dark.scss +5 -5
- package/src/scss/bullframe-classless.scss +1 -9
- package/src/scss/bullframe-dark-prefers.scss +4 -4
- package/src/scss/bullframe-dark.scss +4 -4
- package/src/scss/bullframe-utilities.scss +1 -1
- package/src/scss/bullframe.scss +0 -7
- package/src/scss/forms/_forms-normalization.scss +4 -2
- package/src/scss/forms/_forms-styling-radio-checkbox.scss +84 -85
- package/src/scss/forms/_forms-styling-range.scss +99 -103
- package/src/scss/forms/_forms-styling-select.scss +63 -63
- package/src/scss/forms/_forms-styling.scss +119 -121
- package/src/scss/miscellaneous/_misc-focus.scss +0 -1
- package/src/scss/miscellaneous/_misc-layout.scss +1 -24
- package/src/scss/mixins/_mixin-grid-flex.scss +83 -83
- package/src/scss/mixins/_mixin-layout.scss +42 -42
- package/src/scss/mixins/_mixin-texts.scss +38 -37
- package/src/scss/typography/_typography-blockquotes.scss +23 -23
- package/src/scss/typography/_typography-headings.scss +43 -43
- package/src/scss/typography/_typography-html-body.scss +72 -72
- package/src/scss/typography/_typography-misc.scss +3 -3
- package/src/scss/typography/_typography-monospaced-elements.scss +50 -56
- package/src/scss/utilities/_utility-buttons.scss +71 -71
- package/src/scss/utilities/_utility-embeds.scss +34 -34
- package/src/scss/utilities/_utility-filters.scss +24 -24
- package/src/scss/utilities/_utility-form-states.scss +80 -80
- package/src/scss/utilities/_utility-global-dark-classless.scss +157 -169
- 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 +29 -29
- package/src/scss/utilities/_utility-global-dark.scss +213 -224
- package/src/scss/utilities/_utility-grid-system.scss +204 -204
- package/src/scss/utilities/_utility-layout.scss +195 -196
- package/src/scss/utilities/_utility-lists.scss +17 -17
- package/src/scss/utilities/_utility-print.scss +101 -111
- package/src/scss/utilities/_utility-reduced-motion.scss +29 -29
- package/src/scss/utilities/_utility-tables.scss +40 -40
- package/src/scss/utilities/_utility-texts.scss +199 -199
- package/src/scss/utilities/_utility-z-index.scss +82 -82
- package/src/scss/variables/_variables-breakpoints.scss +5 -5
- package/src/scss/variables/_variables-colors.scss +31 -31
- package/src/scss/variables/_variables-spacing.scss +25 -25
- package/src/scss/variables/_variables-texts.scss +12 -12
- package/dist/css/bullframe-classless-dark-ie10+.css +0 -1321
- package/dist/css/bullframe-classless-dark-ie10+.min.css +0 -4
- package/dist/css/bullframe-classless-dark-ie10+.min.css.map +0 -1
- package/dist/css/bullframe-classless-dark-prefers-ie10+.css +0 -1301
- package/dist/css/bullframe-classless-dark-prefers-ie10+.min.css +0 -4
- package/dist/css/bullframe-classless-dark-prefers-ie10+.min.css.map +0 -1
- package/dist/css/bullframe-classless-ie10+.css +0 -1084
- package/dist/css/bullframe-classless-ie10+.min.css +0 -3
- package/dist/css/bullframe-classless-ie10+.min.css.map +0 -1
- package/dist/css/bullframe-dark-ie10+.css +0 -2569
- package/dist/css/bullframe-dark-ie10+.min.css +0 -3
- package/dist/css/bullframe-dark-ie10+.min.css.map +0 -1
- package/dist/css/bullframe-dark-prefers-ie10+.css +0 -2541
- package/dist/css/bullframe-dark-prefers-ie10+.min.css +0 -3
- package/dist/css/bullframe-dark-prefers-ie10+.min.css.map +0 -1
- package/dist/css/bullframe-ie10+.css +0 -2250
- package/dist/css/bullframe-ie10+.min.css +0 -2
- package/dist/css/bullframe-ie10+.min.css.map +0 -1
- package/docs/images-readme/browserstack-logo.png +0 -0
- package/src/scss/bullframe-classless-dark-ie10+.scss +0 -5
- package/src/scss/bullframe-classless-dark-prefers-ie10+.scss +0 -5
- package/src/scss/bullframe-classless-ie10+.scss +0 -43
- package/src/scss/bullframe-dark-ie10+.scss +0 -4
- package/src/scss/bullframe-dark-prefers-ie10+.scss +0 -4
- package/src/scss/bullframe-ie10+.scss +0 -121
- package/src/scss/forms/_forms-styling-ie-hacks.scss +0 -56
- 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": "
|
|
4
|
-
"description": "Solid, fluid,
|
|
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.
|
|
48
|
-
"cssnano": "^
|
|
44
|
+
"browser-sync": "^2.27.10",
|
|
45
|
+
"cssnano": "^5.1.12",
|
|
49
46
|
"gulp": "^4.0.2",
|
|
50
|
-
"gulp-autoprefixer": "^
|
|
51
|
-
"gulp-postcss": "^
|
|
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": "^
|
|
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';
|
package/src/scss/bullframe.scss
CHANGED
|
@@ -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
|
-
|
|
154
|
-
|
|
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
|
-
//
|
|
6
|
-
// https://
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
[type='
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
margin-left: $bf-spacing-md-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
//
|
|
33
|
-
//
|
|
34
|
-
//
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
margin-
|
|
39
|
-
margin-right: $bf-spacing-md-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
border:
|
|
76
|
-
border-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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:
|
|
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::-
|
|
83
|
-
box-shadow: 0 0 0 .1rem $bf-white, 0 0 0 .2rem rgba(0, 123, 255, .25);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
&::-
|
|
96
|
-
background-color: $bf-gray-light;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
//
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
+
}
|