bullframe.css 3.8.0 → 4.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 (103) hide show
  1. package/.browserslistrc +5 -5
  2. package/.stylelintrc.json +10 -0
  3. package/CHANGELOG.md +28 -7
  4. package/LICENSE +20 -20
  5. package/README.md +25 -171
  6. package/dist/css/bullframe-classless-dark-prefers.css +357 -434
  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 -421
  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 -302
  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 -642
  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 -602
  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 -464
  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 -7
  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 +18 -18
  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 -36
  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 -1330
  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 -1310
  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 -1093
  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 -2578
  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 -2550
  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 -2259
  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
@@ -1,37 +1,38 @@
1
- @mixin bf-text-hide {
2
- font: 0/0 a !important;
3
- color: transparent !important;
4
- text-shadow: none !important;
5
- background-color: transparent !important;
6
- border: 0 !important;
7
- margin: 0 !important;
8
- padding: 0 !important;
9
- }
10
-
11
- @mixin bf-text-truncate {
12
- max-width: 100% !important;
13
- overflow: hidden !important;
14
- text-overflow: ellipsis !important;
15
- white-space: nowrap !important;
16
- word-wrap: normal !important;
17
- }
18
-
19
- // truncate a multiline text via line-clamp
20
- //
21
- // no IE support
22
- // https://caniuse.com/css-line-clamp
23
- //
24
- // demo https://codepen.io/devam-soni/pen/PoqaKWm
25
-
26
- @mixin bf-text-truncate--multiline-2 {
27
- overflow: hidden !important;
28
- text-overflow: ellipsis !important;
29
- display: -webkit-box !important;
30
- -webkit-line-clamp: 2 !important;
31
- -webkit-box-orient: vertical !important;
32
- }
33
-
34
- @mixin bf-text-truncate--multiline-3 {
35
- @include bf-text-truncate--multiline-2;
36
- -webkit-line-clamp: 3 !important;
37
- }
1
+ @mixin bf-text-hide {
2
+ /* stylelint-disable-next-line */
3
+ font: 0/0 a !important;
4
+ color: transparent !important;
5
+ text-shadow: none !important;
6
+ background-color: transparent !important;
7
+ border: 0 !important;
8
+ margin: 0 !important;
9
+ padding: 0 !important;
10
+ }
11
+
12
+ @mixin bf-text-truncate {
13
+ max-width: 100% !important;
14
+ overflow: hidden !important;
15
+ text-overflow: ellipsis !important;
16
+ white-space: nowrap !important;
17
+ word-wrap: normal !important;
18
+ }
19
+
20
+ // truncate a multiline text via line-clamp
21
+ //
22
+ // no IE support
23
+ // https://caniuse.com/css-line-clamp
24
+ //
25
+ // demo https://codepen.io/devam-soni/pen/PoqaKWm
26
+
27
+ @mixin bf-text-truncate--multiline-2 {
28
+ overflow: hidden !important;
29
+ text-overflow: ellipsis !important;
30
+ display: -webkit-box !important;
31
+ -webkit-line-clamp: 2 !important;
32
+ -webkit-box-orient: vertical !important;
33
+ }
34
+
35
+ @mixin bf-text-truncate--multiline-3 {
36
+ @include bf-text-truncate--multiline-2;
37
+ -webkit-line-clamp: 3 !important;
38
+ }
@@ -1,23 +1,23 @@
1
- blockquote {
2
- margin: 0 0 $bf-spacing-xl-px 0;
3
- margin-bottom: $bf-spacing-xl-rem;
4
- padding-left: 0;
5
- font-style: italic;
6
- }
7
-
8
- blockquote p {
9
- margin-bottom: 0;
10
- }
11
-
12
- blockquote small {
13
- color: $bf-gray;
14
- display: block;
15
- }
16
-
17
- blockquote small:before {
18
- content: '\2014 \00A0';
19
- }
20
-
21
- q {
22
- quotes: '\201C''\201D''\2018''\2019';
23
- }
1
+ blockquote {
2
+ margin: 0 0 $bf-spacing-xl-px 0;
3
+ margin-bottom: $bf-spacing-xl-rem;
4
+ padding-left: 0;
5
+ font-style: italic;
6
+ }
7
+
8
+ blockquote p {
9
+ margin-bottom: 0;
10
+ }
11
+
12
+ blockquote small {
13
+ color: $bf-gray;
14
+ display: block;
15
+ }
16
+
17
+ blockquote small:before {
18
+ content: '\2014 \00A0';
19
+ }
20
+
21
+ q {
22
+ quotes: '\201C''\201D''\2018''\2019';
23
+ }
@@ -1,44 +1,44 @@
1
- h1,
2
- h2,
3
- h3,
4
- h4,
5
- h5,
6
- h6 {
7
- margin-top: 0;
8
-
9
- font-weight: 700; // fallback
10
- font-weight: 600;
11
- font-family: inherit;
12
- color: inherit;
13
- line-height: 1.25;
14
- margin-bottom: $bf-spacing-lg-px;
15
- margin-bottom: $bf-spacing-lg-rem;
16
-
17
-
18
- }
19
-
20
- h1 {
21
- font-size: 36px;
22
- font-size: 3.6rem;
23
- }
24
-
25
- h2 {
26
- font-size: 30px;
27
- font-size: 3rem;
28
- }
29
-
30
- h3 {
31
- font-size: 24px;
32
- font-size: 2.4rem;
33
- }
34
-
35
- h4 {
36
- font-size: 20px;
37
- font-size: 2rem;
38
- }
39
-
40
- h5,
41
- h6 {
42
- font-size: 16px;
43
- font-size: 1.6rem;
1
+ h1,
2
+ h2,
3
+ h3,
4
+ h4,
5
+ h5,
6
+ h6 {
7
+ margin-top: 0;
8
+
9
+ font-weight: 700; // fallback
10
+ font-weight: 600;
11
+ font-family: inherit;
12
+ color: inherit;
13
+ line-height: 1.25;
14
+ margin-bottom: $bf-spacing-lg-px;
15
+ margin-bottom: $bf-spacing-lg-rem;
16
+
17
+
18
+ }
19
+
20
+ h1 {
21
+ font-size: 36px;
22
+ font-size: 3.6rem;
23
+ }
24
+
25
+ h2 {
26
+ font-size: 30px;
27
+ font-size: 3rem;
28
+ }
29
+
30
+ h3 {
31
+ font-size: 24px;
32
+ font-size: 2.4rem;
33
+ }
34
+
35
+ h4 {
36
+ font-size: 20px;
37
+ font-size: 2rem;
38
+ }
39
+
40
+ h5,
41
+ h6 {
42
+ font-size: 16px;
43
+ font-size: 1.6rem;
44
44
  }
@@ -1,72 +1,72 @@
1
- html {
2
- text-size-adjust: 100%;
3
-
4
- // resize the base font-size and get an easy math for rem units
5
- // https://snook.ca/archives/html_and_css/font-size-with-rem
6
- font-size: 62.5%;
7
-
8
- color: #222;
9
-
10
- // set a default font-family and line-height
11
- font-family: sans-serif;
12
- line-height: 1.15;
13
-
14
- // ! this is not a standard feature, is webkit only
15
- // https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-tap-highlight-color
16
-
17
- // remove a tap background when a link or interactive element is focused
18
- // if is touch
19
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
20
- }
21
-
22
- body {
23
- margin: 0;
24
- font-size: $bf-body-font-size-px; // '16px' by default
25
- font-size: $bf-body-font-size-rem; // '1.6rem' by default
26
- line-height: $bf-body-line-height; // '1.5' by default
27
-
28
- // this is useful to inherit values for some elements (e.g. forms)
29
- font-weight: 400;
30
- text-align: left;
31
-
32
- // native font stack for optimum text rendering on every device and OS
33
- // this stack mimics the system font UI
34
- // a web apps looks like a native app (e.g. Android = Roboto font)
35
- // Read more:
36
- // https://www.smashingmagazine.com/2015/11/using-system-ui-fonts-practical-guide/
37
- font-family:
38
-
39
- // Safari for OS X and iOS (San Francisco) -apple-system,
40
- // Chrome < 56 for OS X (San Francisco)
41
- BlinkMacSystemFont,
42
- // Windows
43
- 'Segoe UI',
44
- // Android
45
- Roboto,
46
- // Linux with KDE
47
- Oxygen-Sans,
48
- // Ubuntu (all variants)
49
- Ubuntu,
50
- // Linux with GNOME Shell
51
- Cantarell,
52
- // macOS 1.10 and below
53
- 'Helvetica Neue',
54
- Helvetica,
55
-
56
- // Basic web fallback
57
- Arial,
58
- 'Noto Sans', sans-serif,
59
-
60
- // emoji fonts
61
- 'Apple Color Emoji',
62
- 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
63
-
64
- // this enable font ligatures
65
- text-rendering: optimizeLegibility;
66
-
67
- // break very long texts by default, especially on old browsers
68
- // e.g. big <h1> or <h2> headlines
69
- word-wrap: break-word;
70
-
71
- background-color: $bf-white;
72
- }
1
+ html {
2
+ text-size-adjust: 100%;
3
+
4
+ // resize the base font-size and get an easy math for rem units
5
+ // https://snook.ca/archives/html_and_css/font-size-with-rem
6
+ font-size: 62.5%;
7
+
8
+ color: #222;
9
+
10
+ // set a default font-family and line-height
11
+ font-family: sans-serif;
12
+ line-height: 1.15;
13
+
14
+ // ! this is not a standard feature, is webkit only
15
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-tap-highlight-color
16
+
17
+ // remove a tap background when a link or interactive element is focused
18
+ // if is touch
19
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
20
+ }
21
+
22
+ body {
23
+ margin: 0;
24
+ font-size: $bf-body-font-size-px; // '16px' by default
25
+ font-size: $bf-body-font-size-rem; // '1.6rem' by default
26
+ line-height: $bf-body-line-height; // '1.5' by default
27
+
28
+ // this is useful to inherit values for some elements (e.g. forms)
29
+ font-weight: 400;
30
+ text-align: left;
31
+
32
+ // native font stack for optimum text rendering on every device and OS
33
+ // this stack mimics the system font UI
34
+ // a web apps looks like a native app (e.g. Android = Roboto font)
35
+ // Read more:
36
+ // https://www.smashingmagazine.com/2015/11/using-system-ui-fonts-practical-guide/
37
+ font-family:
38
+
39
+ // Safari for OS X and iOS (San Francisco) -apple-system,
40
+ // Chrome < 56 for OS X (San Francisco)
41
+ BlinkMacSystemFont,
42
+ // Windows
43
+ 'Segoe UI',
44
+ // Android
45
+ Roboto,
46
+ // Linux with KDE
47
+ Oxygen-Sans,
48
+ // Ubuntu (all variants)
49
+ Ubuntu,
50
+ // Linux with GNOME Shell
51
+ Cantarell,
52
+ // macOS 1.10 and below
53
+ 'Helvetica Neue',
54
+ Helvetica,
55
+
56
+ // Basic web fallback
57
+ Arial,
58
+ 'Noto Sans', sans-serif,
59
+
60
+ // emoji fonts
61
+ 'Apple Color Emoji',
62
+ 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
63
+
64
+ // this enable font ligatures
65
+ text-rendering: optimizeLegibility;
66
+
67
+ // break very long texts by default, especially on old browsers
68
+ // e.g. big <h1> or <h2> headlines
69
+ word-wrap: break-word;
70
+
71
+ background-color: $bf-white;
72
+ }
@@ -13,7 +13,6 @@ abbr[data-original-title] {
13
13
  cursor: help;
14
14
  text-decoration: underline; // 2
15
15
  text-decoration: underline dotted; // 2
16
- cursor: help; // 2
17
16
  border-bottom: 0; // 2
18
17
  }
19
18
 
@@ -36,6 +35,7 @@ strong {
36
35
  }
37
36
 
38
37
  // Add the correct font weight in Chrome, Edge, and Safari
38
+ /* stylelint-disable-next-line */
39
39
  b,
40
40
  strong {
41
41
  font-weight: bolder;
@@ -55,12 +55,12 @@ sup {
55
55
 
56
56
  sup {
57
57
  top: -8px;
58
- top: -.8rem;
58
+ top: -0.8rem;
59
59
  }
60
60
 
61
61
  sub {
62
62
  bottom: -4px;
63
- bottom: -.4rem;
63
+ bottom: -0.4rem;
64
64
  }
65
65
 
66
66
  small {
@@ -1,56 +1,50 @@
1
- pre {
2
- margin: 0 0 $bf-spacing-xl-px 0;
3
- margin: 0 0 $bf-spacing-xl-rem 0;
4
- }
5
-
6
- pre {
7
- display: block;
8
- overflow: auto;
9
- word-break: break-all; // webkit
10
- word-wrap: break-word;
11
- white-space: pre;
12
- hyphens: none;
13
-
14
- // this is a not standard CSS property, so it's for IE only
15
- // https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-overflow-style
16
- //
17
- // Disable auto-hiding scrollbar in legacy Edge
18
- // https://github.com/twbs/bootstrap/pull/30685
19
- -ms-overflow-style: auto;
20
-
21
- display: block;
22
- }
23
-
24
- pre,
25
- code,
26
- kbd,
27
- samp {
28
- font-family:
29
-
30
- /* macOS 1.10+ */ 'Menlo', /* Windows 6+ */ 'Consolas',
31
- /* Android 4+ */ 'Roboto Mono', /* Ubuntu 1.10+ */ 'Ubuntu Monospace',
32
- /* KDE Plasma 5+ */ 'Noto Mono', /* KDE Plasma 4+ */ 'Oxygen Mono',
33
- /* Linux/OpenOffice fallback */ 'Liberation Mono',
34
-
35
- /* fallback */ monospace,
36
- /* emoji fonts */ 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
37
- 'Noto Color Emoji';
38
-
39
- // a monospaced text font should looks bigger, so a smaller font-size
40
- // is preferred
41
- font-size: .875em;
42
- }
43
-
44
- code {
45
- word-wrap: break-word;
46
- }
47
-
48
- a > code {
49
- color: inherit;
50
- }
51
-
52
- pre code {
53
- font-size: inherit;
54
- color: inherit;
55
- word-break: normal;
56
- }
1
+ pre {
2
+ margin: 0 0 $bf-spacing-xl-px 0;
3
+ margin: 0 0 $bf-spacing-xl-rem 0;
4
+
5
+ display: block;
6
+ overflow: auto;
7
+ word-break: break-all; // webkit
8
+ word-wrap: break-word;
9
+ white-space: pre;
10
+ hyphens: none;
11
+
12
+ // this is a not standard CSS property, so it's for IE only
13
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-overflow-style
14
+ //
15
+ // Disable auto-hiding scrollbar in legacy Edge
16
+ // https://github.com/twbs/bootstrap/pull/30685
17
+ -ms-overflow-style: auto;
18
+ }
19
+
20
+ pre,
21
+ code,
22
+ kbd,
23
+ samp {
24
+ font-family:
25
+
26
+ /* macOS 1.10+ */ 'Menlo', /* Windows 6+ */ 'Consolas',
27
+ /* Android 4+ */ 'Roboto Mono', /* Ubuntu 1.10+ */ 'Ubuntu Monospace',
28
+ /* KDE Plasma 5+ */ 'Noto Mono', /* KDE Plasma 4+ */ 'Oxygen Mono',
29
+ /* Linux/OpenOffice fallback */ 'Liberation Mono', /* fallback */ monospace,
30
+ /* emoji fonts */ 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
31
+ 'Noto Color Emoji';
32
+
33
+ // a monospaced text font should looks bigger, so a smaller font-size
34
+ // is preferred
35
+ font-size: 0.875em;
36
+ }
37
+
38
+ code {
39
+ word-wrap: break-word;
40
+ }
41
+
42
+ a > code {
43
+ color: inherit;
44
+ }
45
+
46
+ pre code {
47
+ font-size: inherit;
48
+ color: inherit;
49
+ word-break: normal;
50
+ }
@@ -1,71 +1,71 @@
1
- .bf-btn {
2
- display: inline-block;
3
- cursor: pointer;
4
- color: $bf-dark;
5
- padding: ($bf-spacing-xl-px / 3) (($bf-spacing-xl-px / 3) * 2); // 8px 16px
6
- padding: ($bf-spacing-xl-rem / 3) (($bf-spacing-xl-rem / 3) * 2);
7
- line-height: normal;
8
- text-align: center;
9
- margin: 0;
10
- background-clip: padding-box;
11
- vertical-align: baseline;
12
- overflow: visible;
13
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
14
- user-select: none;
15
-
16
- // ! IE9+
17
- // https://caniuse.com/#feat=border-radius
18
- border-radius: $bf-spacing-sm-px;
19
- border-radius: $bf-spacing-sm-rem;
20
-
21
- border: 0;
22
- background-image: none; // FF mobile
23
- background: $bf-gray-light;
24
- transition: all .2s;
25
-
26
- &:hover,
27
- &:active,
28
- &:focus {
29
- text-decoration: none;
30
- color: $bf-dark;
31
- background: darken($bf-gray-light, 10%);
32
- }
33
-
34
- &:active,
35
- &:focus {
36
- box-shadow: 0 0 0 3px rgba(0, 0, 0, .15);
37
- }
38
-
39
- &:focus {
40
- outline: 0;
41
- }
42
-
43
- &.bf-btn--primary {
44
- color: $bf-white;
45
- background: $bf-blue;
46
-
47
- &:hover,
48
- &:active,
49
- &:focus {
50
- color: $bf-white;
51
- background: darken($bf-blue, 10%);
52
- }
53
-
54
- &:active,
55
- &:focus {
56
- box-shadow: 0 0 0 3px rgba(0, 86, 179, .25);
57
- }
58
- }
59
- }
60
-
61
- fieldset[disabled] .bf-btn,
62
- .bf-btn[disabled],
63
- .bf-btn:disabled,
64
- .bf-btn[aria-disabled='true'] {
65
- cursor: default !important; // fallback
66
- cursor: not-allowed !important;
67
- pointer-events: none !important;
68
- user-select: none !important;
69
- box-shadow: none !important;
70
- opacity: .5 !important;
71
- }
1
+ .bf-btn {
2
+ display: inline-block;
3
+ cursor: pointer;
4
+ color: $bf-dark;
5
+ padding: calc($bf-spacing-xl-px / 3) (calc($bf-spacing-xl-px / 3) * 2); // 8px 16px
6
+ padding: calc($bf-spacing-xl-rem / 3) (calc($bf-spacing-xl-rem / 3) * 2);
7
+ line-height: normal;
8
+ text-align: center;
9
+ margin: 0;
10
+ background-clip: padding-box;
11
+ vertical-align: baseline;
12
+ overflow: visible;
13
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
14
+ user-select: none;
15
+
16
+ // ! IE9+
17
+ // https://caniuse.com/#feat=border-radius
18
+ border-radius: $bf-spacing-sm-px;
19
+ border-radius: $bf-spacing-sm-rem;
20
+
21
+ border: 0;
22
+ background-image: none; // FF mobile
23
+ background-color: $bf-gray-light;
24
+ transition: all 0.2s;
25
+
26
+ &:hover,
27
+ &:active,
28
+ &:focus {
29
+ text-decoration: none;
30
+ color: $bf-dark;
31
+ background: darken($bf-gray-light, 10%);
32
+ }
33
+
34
+ &:active,
35
+ &:focus {
36
+ box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
37
+ }
38
+
39
+ &:focus {
40
+ outline: 0;
41
+ }
42
+
43
+ &.bf-btn--primary {
44
+ color: $bf-white;
45
+ background: $bf-blue;
46
+
47
+ &:hover,
48
+ &:active,
49
+ &:focus {
50
+ color: $bf-white;
51
+ background: darken($bf-blue, 10%);
52
+ }
53
+
54
+ &:active,
55
+ &:focus {
56
+ box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.25);
57
+ }
58
+ }
59
+ }
60
+
61
+ fieldset[disabled] .bf-btn,
62
+ .bf-btn[disabled],
63
+ .bf-btn:disabled,
64
+ .bf-btn[aria-disabled='true'] {
65
+ cursor: default !important; // fallback
66
+ cursor: not-allowed !important;
67
+ pointer-events: none !important;
68
+ user-select: none !important;
69
+ box-shadow: none !important;
70
+ opacity: 0.5 !important;
71
+ }