@sd-angular/core 19.0.0-beta.84 → 19.0.0-beta.85

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 (130) hide show
  1. package/README.md +716 -716
  2. package/assets/fonts/fonts.scss +115 -115
  3. package/assets/scss/bootstrap-4.6.2/_alert.scss +52 -52
  4. package/assets/scss/bootstrap-4.6.2/_badge.scss +54 -54
  5. package/assets/scss/bootstrap-4.6.2/_breadcrumb.scss +42 -42
  6. package/assets/scss/bootstrap-4.6.2/_button-group.scss +163 -163
  7. package/assets/scss/bootstrap-4.6.2/_buttons.scss +142 -142
  8. package/assets/scss/bootstrap-4.6.2/_card.scss +286 -286
  9. package/assets/scss/bootstrap-4.6.2/_carousel.scss +200 -200
  10. package/assets/scss/bootstrap-4.6.2/_close.scss +40 -40
  11. package/assets/scss/bootstrap-4.6.2/_code.scss +48 -48
  12. package/assets/scss/bootstrap-4.6.2/_custom-forms.scss +526 -526
  13. package/assets/scss/bootstrap-4.6.2/_dropdown.scss +192 -192
  14. package/assets/scss/bootstrap-4.6.2/_forms.scss +347 -347
  15. package/assets/scss/bootstrap-4.6.2/_functions.scss +190 -190
  16. package/assets/scss/bootstrap-4.6.2/_grid.scss +73 -73
  17. package/assets/scss/bootstrap-4.6.2/_images.scss +42 -42
  18. package/assets/scss/bootstrap-4.6.2/_input-group.scss +211 -211
  19. package/assets/scss/bootstrap-4.6.2/_jumbotron.scss +17 -17
  20. package/assets/scss/bootstrap-4.6.2/_list-group.scss +154 -154
  21. package/assets/scss/bootstrap-4.6.2/_media.scss +8 -8
  22. package/assets/scss/bootstrap-4.6.2/_mixins.scss +47 -47
  23. package/assets/scss/bootstrap-4.6.2/_modal.scss +240 -240
  24. package/assets/scss/bootstrap-4.6.2/_nav.scss +125 -125
  25. package/assets/scss/bootstrap-4.6.2/_navbar.scss +332 -332
  26. package/assets/scss/bootstrap-4.6.2/_pagination.scss +74 -74
  27. package/assets/scss/bootstrap-4.6.2/_popover.scss +170 -170
  28. package/assets/scss/bootstrap-4.6.2/_print.scss +132 -132
  29. package/assets/scss/bootstrap-4.6.2/_progress.scss +47 -47
  30. package/assets/scss/bootstrap-4.6.2/_reboot.scss +484 -484
  31. package/assets/scss/bootstrap-4.6.2/_root.scss +19 -19
  32. package/assets/scss/bootstrap-4.6.2/_spinners.scss +65 -65
  33. package/assets/scss/bootstrap-4.6.2/_tables.scss +185 -185
  34. package/assets/scss/bootstrap-4.6.2/_toasts.scss +46 -46
  35. package/assets/scss/bootstrap-4.6.2/_tooltip.scss +115 -115
  36. package/assets/scss/bootstrap-4.6.2/_transitions.scss +26 -26
  37. package/assets/scss/bootstrap-4.6.2/_type.scss +125 -125
  38. package/assets/scss/bootstrap-4.6.2/_utilities.scss +18 -18
  39. package/assets/scss/bootstrap-4.6.2/_variables.scss +1150 -1150
  40. package/assets/scss/bootstrap-4.6.2/bootstrap-grid.scss +30 -30
  41. package/assets/scss/bootstrap-4.6.2/bootstrap-reboot.scss +12 -12
  42. package/assets/scss/bootstrap-4.6.2/bootstrap.scss +44 -44
  43. package/assets/scss/bootstrap-4.6.2/mixins/_alert.scss +13 -13
  44. package/assets/scss/bootstrap-4.6.2/mixins/_background-variant.scss +23 -23
  45. package/assets/scss/bootstrap-4.6.2/mixins/_badge.scss +17 -17
  46. package/assets/scss/bootstrap-4.6.2/mixins/_border-radius.scss +76 -76
  47. package/assets/scss/bootstrap-4.6.2/mixins/_box-shadow.scss +20 -20
  48. package/assets/scss/bootstrap-4.6.2/mixins/_breakpoints.scss +123 -123
  49. package/assets/scss/bootstrap-4.6.2/mixins/_buttons.scss +110 -110
  50. package/assets/scss/bootstrap-4.6.2/mixins/_caret.scss +62 -62
  51. package/assets/scss/bootstrap-4.6.2/mixins/_clearfix.scss +7 -7
  52. package/assets/scss/bootstrap-4.6.2/mixins/_deprecate.scss +10 -10
  53. package/assets/scss/bootstrap-4.6.2/mixins/_float.scss +14 -14
  54. package/assets/scss/bootstrap-4.6.2/mixins/_forms.scss +195 -195
  55. package/assets/scss/bootstrap-4.6.2/mixins/_gradients.scss +45 -45
  56. package/assets/scss/bootstrap-4.6.2/mixins/_grid-framework.scss +80 -80
  57. package/assets/scss/bootstrap-4.6.2/mixins/_grid.scss +69 -69
  58. package/assets/scss/bootstrap-4.6.2/mixins/_hover.scss +37 -37
  59. package/assets/scss/bootstrap-4.6.2/mixins/_image.scss +36 -36
  60. package/assets/scss/bootstrap-4.6.2/mixins/_list-group.scss +21 -21
  61. package/assets/scss/bootstrap-4.6.2/mixins/_lists.scss +7 -7
  62. package/assets/scss/bootstrap-4.6.2/mixins/_nav-divider.scss +11 -11
  63. package/assets/scss/bootstrap-4.6.2/mixins/_pagination.scss +22 -22
  64. package/assets/scss/bootstrap-4.6.2/mixins/_reset-text.scss +17 -17
  65. package/assets/scss/bootstrap-4.6.2/mixins/_resize.scss +6 -6
  66. package/assets/scss/bootstrap-4.6.2/mixins/_screen-reader.scss +34 -34
  67. package/assets/scss/bootstrap-4.6.2/mixins/_size.scss +7 -7
  68. package/assets/scss/bootstrap-4.6.2/mixins/_table-row.scss +39 -39
  69. package/assets/scss/bootstrap-4.6.2/mixins/_text-emphasis.scss +17 -17
  70. package/assets/scss/bootstrap-4.6.2/mixins/_text-hide.scss +11 -11
  71. package/assets/scss/bootstrap-4.6.2/mixins/_text-truncate.scss +8 -8
  72. package/assets/scss/bootstrap-4.6.2/mixins/_transition.scss +26 -26
  73. package/assets/scss/bootstrap-4.6.2/mixins/_visibility.scss +8 -8
  74. package/assets/scss/bootstrap-4.6.2/utilities/_align.scss +8 -8
  75. package/assets/scss/bootstrap-4.6.2/utilities/_background.scss +19 -19
  76. package/assets/scss/bootstrap-4.6.2/utilities/_borders.scss +75 -75
  77. package/assets/scss/bootstrap-4.6.2/utilities/_clearfix.scss +3 -3
  78. package/assets/scss/bootstrap-4.6.2/utilities/_display.scss +26 -26
  79. package/assets/scss/bootstrap-4.6.2/utilities/_embed.scss +39 -39
  80. package/assets/scss/bootstrap-4.6.2/utilities/_flex.scss +51 -51
  81. package/assets/scss/bootstrap-4.6.2/utilities/_float.scss +11 -11
  82. package/assets/scss/bootstrap-4.6.2/utilities/_interactions.scss +5 -5
  83. package/assets/scss/bootstrap-4.6.2/utilities/_overflow.scss +5 -5
  84. package/assets/scss/bootstrap-4.6.2/utilities/_position.scss +32 -32
  85. package/assets/scss/bootstrap-4.6.2/utilities/_screenreaders.scss +11 -11
  86. package/assets/scss/bootstrap-4.6.2/utilities/_shadows.scss +6 -6
  87. package/assets/scss/bootstrap-4.6.2/utilities/_sizing.scss +20 -20
  88. package/assets/scss/bootstrap-4.6.2/utilities/_spacing.scss +73 -73
  89. package/assets/scss/bootstrap-4.6.2/utilities/_stretched-link.scss +19 -19
  90. package/assets/scss/bootstrap-4.6.2/utilities/_text.scss +72 -72
  91. package/assets/scss/bootstrap-4.6.2/utilities/_visibility.scss +13 -13
  92. package/assets/scss/bootstrap-4.6.2/vendor/_rfs.scss +228 -228
  93. package/assets/scss/core/print.scss +47 -47
  94. package/assets/scss/core/scrollbar.scss +30 -30
  95. package/assets/scss/core/typography.scss +121 -121
  96. package/fesm2022/sd-angular-core-components-anchor-v2.mjs +4 -4
  97. package/fesm2022/sd-angular-core-components-anchor-v2.mjs.map +1 -1
  98. package/fesm2022/sd-angular-core-components-avatar.mjs +2 -2
  99. package/fesm2022/sd-angular-core-components-avatar.mjs.map +1 -1
  100. package/fesm2022/sd-angular-core-components-chart.mjs +40 -40
  101. package/fesm2022/sd-angular-core-components-chart.mjs.map +1 -1
  102. package/fesm2022/sd-angular-core-components-quick-action.mjs.map +1 -1
  103. package/fesm2022/sd-angular-core-components-tab-router.mjs +4 -4
  104. package/fesm2022/sd-angular-core-components-tab-router.mjs.map +1 -1
  105. package/fesm2022/sd-angular-core-components-table.mjs +18 -14
  106. package/fesm2022/sd-angular-core-components-table.mjs.map +1 -1
  107. package/fesm2022/sd-angular-core-components-upload-file.mjs +4 -4
  108. package/fesm2022/sd-angular-core-components-upload-file.mjs.map +1 -1
  109. package/fesm2022/sd-angular-core-directives.mjs.map +1 -1
  110. package/fesm2022/sd-angular-core-forms-directives.mjs.map +1 -1
  111. package/fesm2022/sd-angular-core-forms-models.mjs.map +1 -1
  112. package/fesm2022/sd-angular-core-forms-select.mjs +2 -2
  113. package/fesm2022/sd-angular-core-forms-select.mjs.map +1 -1
  114. package/fesm2022/sd-angular-core-forms.mjs.map +1 -1
  115. package/fesm2022/sd-angular-core-modules-authom.mjs.map +1 -1
  116. package/fesm2022/sd-angular-core-modules-layout.mjs +2 -2
  117. package/fesm2022/sd-angular-core-modules-layout.mjs.map +1 -1
  118. package/fesm2022/sd-angular-core-pipes.mjs.map +1 -1
  119. package/fesm2022/sd-angular-core-services-api.mjs.map +1 -1
  120. package/fesm2022/sd-angular-core-services-cache.mjs.map +1 -1
  121. package/fesm2022/sd-angular-core-services-confirm.mjs.map +1 -1
  122. package/fesm2022/sd-angular-core-services-firebase.mjs.map +1 -1
  123. package/fesm2022/sd-angular-core-services-license.mjs.map +1 -1
  124. package/fesm2022/sd-angular-core-services-storage.mjs.map +1 -1
  125. package/fesm2022/sd-angular-core-utilities-extensions.mjs.map +1 -1
  126. package/fesm2022/sd-angular-core-utilities-models.mjs.map +1 -1
  127. package/fesm2022/sd-angular-core.mjs.map +1 -1
  128. package/package.json +66 -66
  129. package/sd-angular-core-19.0.0-beta.85.tgz +0 -0
  130. package/sd-angular-core-19.0.0-beta.84.tgz +0 -0
@@ -1,163 +1,163 @@
1
- // stylelint-disable selector-no-qualifying-type
2
-
3
- // Make the div behave like a button
4
- .btn-group,
5
- .btn-group-vertical {
6
- position: relative;
7
- display: inline-flex;
8
- vertical-align: middle; // match .btn alignment given font-size hack above
9
-
10
- > .btn {
11
- position: relative;
12
- flex: 1 1 auto;
13
-
14
- // Bring the hover, focused, and "active" buttons to the front to overlay
15
- // the borders properly
16
- @include hover() {
17
- z-index: 1;
18
- }
19
- &:focus,
20
- &:active,
21
- &.active {
22
- z-index: 1;
23
- }
24
- }
25
- }
26
-
27
- // Optional: Group multiple button groups together for a toolbar
28
- .btn-toolbar {
29
- display: flex;
30
- flex-wrap: wrap;
31
- justify-content: flex-start;
32
-
33
- .input-group {
34
- width: auto;
35
- }
36
- }
37
-
38
- .btn-group {
39
- // Prevent double borders when buttons are next to each other
40
- > .btn:not(:first-child),
41
- > .btn-group:not(:first-child) {
42
- margin-left: -$btn-border-width;
43
- }
44
-
45
- // Reset rounded corners
46
- > .btn:not(:last-child):not(.dropdown-toggle),
47
- > .btn-group:not(:last-child) > .btn {
48
- @include border-right-radius(0);
49
- }
50
-
51
- > .btn:not(:first-child),
52
- > .btn-group:not(:first-child) > .btn {
53
- @include border-left-radius(0);
54
- }
55
- }
56
-
57
- // Sizing
58
- //
59
- // Remix the default button sizing classes into new ones for easier manipulation.
60
-
61
- .btn-group-sm > .btn { @extend .btn-sm; }
62
- .btn-group-lg > .btn { @extend .btn-lg; }
63
-
64
-
65
- //
66
- // Split button dropdowns
67
- //
68
-
69
- .dropdown-toggle-split {
70
- padding-right: $btn-padding-x * .75;
71
- padding-left: $btn-padding-x * .75;
72
-
73
- &::after,
74
- .dropup &::after,
75
- .dropright &::after {
76
- margin-left: 0;
77
- }
78
-
79
- .dropleft &::before {
80
- margin-right: 0;
81
- }
82
- }
83
-
84
- .btn-sm + .dropdown-toggle-split {
85
- padding-right: $btn-padding-x-sm * .75;
86
- padding-left: $btn-padding-x-sm * .75;
87
- }
88
-
89
- .btn-lg + .dropdown-toggle-split {
90
- padding-right: $btn-padding-x-lg * .75;
91
- padding-left: $btn-padding-x-lg * .75;
92
- }
93
-
94
-
95
- // The clickable button for toggling the menu
96
- // Set the same inset shadow as the :active state
97
- .btn-group.show .dropdown-toggle {
98
- @include box-shadow($btn-active-box-shadow);
99
-
100
- // Show no shadow for `.btn-link` since it has no other button styles.
101
- &.btn-link {
102
- @include box-shadow(none);
103
- }
104
- }
105
-
106
-
107
- //
108
- // Vertical button groups
109
- //
110
-
111
- .btn-group-vertical {
112
- flex-direction: column;
113
- align-items: flex-start;
114
- justify-content: center;
115
-
116
- > .btn,
117
- > .btn-group {
118
- width: 100%;
119
- }
120
-
121
- > .btn:not(:first-child),
122
- > .btn-group:not(:first-child) {
123
- margin-top: -$btn-border-width;
124
- }
125
-
126
- // Reset rounded corners
127
- > .btn:not(:last-child):not(.dropdown-toggle),
128
- > .btn-group:not(:last-child) > .btn {
129
- @include border-bottom-radius(0);
130
- }
131
-
132
- > .btn:not(:first-child),
133
- > .btn-group:not(:first-child) > .btn {
134
- @include border-top-radius(0);
135
- }
136
- }
137
-
138
-
139
- // Checkbox and radio options
140
- //
141
- // In order to support the browser's form validation feedback, powered by the
142
- // `required` attribute, we have to "hide" the inputs via `clip`. We cannot use
143
- // `display: none;` or `visibility: hidden;` as that also hides the popover.
144
- // Simply visually hiding the inputs via `opacity` would leave them clickable in
145
- // certain cases which is prevented by using `clip` and `pointer-events`.
146
- // This way, we ensure a DOM element is visible to position the popover from.
147
- //
148
- // See https://github.com/twbs/bootstrap/pull/12794 and
149
- // https://github.com/twbs/bootstrap/pull/14559 for more information.
150
-
151
- .btn-group-toggle {
152
- > .btn,
153
- > .btn-group > .btn {
154
- margin-bottom: 0; // Override default `<label>` value
155
-
156
- input[type="radio"],
157
- input[type="checkbox"] {
158
- position: absolute;
159
- clip: rect(0, 0, 0, 0);
160
- pointer-events: none;
161
- }
162
- }
163
- }
1
+ // stylelint-disable selector-no-qualifying-type
2
+
3
+ // Make the div behave like a button
4
+ .btn-group,
5
+ .btn-group-vertical {
6
+ position: relative;
7
+ display: inline-flex;
8
+ vertical-align: middle; // match .btn alignment given font-size hack above
9
+
10
+ > .btn {
11
+ position: relative;
12
+ flex: 1 1 auto;
13
+
14
+ // Bring the hover, focused, and "active" buttons to the front to overlay
15
+ // the borders properly
16
+ @include hover() {
17
+ z-index: 1;
18
+ }
19
+ &:focus,
20
+ &:active,
21
+ &.active {
22
+ z-index: 1;
23
+ }
24
+ }
25
+ }
26
+
27
+ // Optional: Group multiple button groups together for a toolbar
28
+ .btn-toolbar {
29
+ display: flex;
30
+ flex-wrap: wrap;
31
+ justify-content: flex-start;
32
+
33
+ .input-group {
34
+ width: auto;
35
+ }
36
+ }
37
+
38
+ .btn-group {
39
+ // Prevent double borders when buttons are next to each other
40
+ > .btn:not(:first-child),
41
+ > .btn-group:not(:first-child) {
42
+ margin-left: -$btn-border-width;
43
+ }
44
+
45
+ // Reset rounded corners
46
+ > .btn:not(:last-child):not(.dropdown-toggle),
47
+ > .btn-group:not(:last-child) > .btn {
48
+ @include border-right-radius(0);
49
+ }
50
+
51
+ > .btn:not(:first-child),
52
+ > .btn-group:not(:first-child) > .btn {
53
+ @include border-left-radius(0);
54
+ }
55
+ }
56
+
57
+ // Sizing
58
+ //
59
+ // Remix the default button sizing classes into new ones for easier manipulation.
60
+
61
+ .btn-group-sm > .btn { @extend .btn-sm; }
62
+ .btn-group-lg > .btn { @extend .btn-lg; }
63
+
64
+
65
+ //
66
+ // Split button dropdowns
67
+ //
68
+
69
+ .dropdown-toggle-split {
70
+ padding-right: $btn-padding-x * .75;
71
+ padding-left: $btn-padding-x * .75;
72
+
73
+ &::after,
74
+ .dropup &::after,
75
+ .dropright &::after {
76
+ margin-left: 0;
77
+ }
78
+
79
+ .dropleft &::before {
80
+ margin-right: 0;
81
+ }
82
+ }
83
+
84
+ .btn-sm + .dropdown-toggle-split {
85
+ padding-right: $btn-padding-x-sm * .75;
86
+ padding-left: $btn-padding-x-sm * .75;
87
+ }
88
+
89
+ .btn-lg + .dropdown-toggle-split {
90
+ padding-right: $btn-padding-x-lg * .75;
91
+ padding-left: $btn-padding-x-lg * .75;
92
+ }
93
+
94
+
95
+ // The clickable button for toggling the menu
96
+ // Set the same inset shadow as the :active state
97
+ .btn-group.show .dropdown-toggle {
98
+ @include box-shadow($btn-active-box-shadow);
99
+
100
+ // Show no shadow for `.btn-link` since it has no other button styles.
101
+ &.btn-link {
102
+ @include box-shadow(none);
103
+ }
104
+ }
105
+
106
+
107
+ //
108
+ // Vertical button groups
109
+ //
110
+
111
+ .btn-group-vertical {
112
+ flex-direction: column;
113
+ align-items: flex-start;
114
+ justify-content: center;
115
+
116
+ > .btn,
117
+ > .btn-group {
118
+ width: 100%;
119
+ }
120
+
121
+ > .btn:not(:first-child),
122
+ > .btn-group:not(:first-child) {
123
+ margin-top: -$btn-border-width;
124
+ }
125
+
126
+ // Reset rounded corners
127
+ > .btn:not(:last-child):not(.dropdown-toggle),
128
+ > .btn-group:not(:last-child) > .btn {
129
+ @include border-bottom-radius(0);
130
+ }
131
+
132
+ > .btn:not(:first-child),
133
+ > .btn-group:not(:first-child) > .btn {
134
+ @include border-top-radius(0);
135
+ }
136
+ }
137
+
138
+
139
+ // Checkbox and radio options
140
+ //
141
+ // In order to support the browser's form validation feedback, powered by the
142
+ // `required` attribute, we have to "hide" the inputs via `clip`. We cannot use
143
+ // `display: none;` or `visibility: hidden;` as that also hides the popover.
144
+ // Simply visually hiding the inputs via `opacity` would leave them clickable in
145
+ // certain cases which is prevented by using `clip` and `pointer-events`.
146
+ // This way, we ensure a DOM element is visible to position the popover from.
147
+ //
148
+ // See https://github.com/twbs/bootstrap/pull/12794 and
149
+ // https://github.com/twbs/bootstrap/pull/14559 for more information.
150
+
151
+ .btn-group-toggle {
152
+ > .btn,
153
+ > .btn-group > .btn {
154
+ margin-bottom: 0; // Override default `<label>` value
155
+
156
+ input[type="radio"],
157
+ input[type="checkbox"] {
158
+ position: absolute;
159
+ clip: rect(0, 0, 0, 0);
160
+ pointer-events: none;
161
+ }
162
+ }
163
+ }
@@ -1,142 +1,142 @@
1
- // stylelint-disable selector-no-qualifying-type
2
-
3
- //
4
- // Base styles
5
- //
6
-
7
- .btn {
8
- display: inline-block;
9
- font-family: $btn-font-family;
10
- font-weight: $btn-font-weight;
11
- color: $body-color;
12
- text-align: center;
13
- text-decoration: if($link-decoration == none, null, none);
14
- white-space: $btn-white-space;
15
- vertical-align: middle;
16
- user-select: none;
17
- background-color: transparent;
18
- border: $btn-border-width solid transparent;
19
- @include button-size($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-line-height, $btn-border-radius);
20
- @include transition($btn-transition);
21
-
22
- @include hover() {
23
- color: $body-color;
24
- text-decoration: none;
25
- }
26
-
27
- &:focus,
28
- &.focus {
29
- outline: 0;
30
- box-shadow: $btn-focus-box-shadow;
31
- }
32
-
33
- // Disabled comes first so active can properly restyle
34
- &.disabled,
35
- &:disabled {
36
- opacity: $btn-disabled-opacity;
37
- @include box-shadow(none);
38
- }
39
-
40
- &:not(:disabled):not(.disabled) {
41
- cursor: if($enable-pointer-cursor-for-buttons, pointer, null);
42
-
43
- &:active,
44
- &.active {
45
- @include box-shadow($btn-active-box-shadow);
46
-
47
- &:focus {
48
- @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
49
- }
50
- }
51
- }
52
- }
53
-
54
- // Future-proof disabling of clicks on `<a>` elements
55
- a.btn.disabled,
56
- fieldset:disabled a.btn {
57
- pointer-events: none;
58
- }
59
-
60
-
61
- //
62
- // Alternate buttons
63
- //
64
-
65
- @each $color, $value in $theme-colors {
66
- .btn-#{$color} {
67
- @include button-variant($value, $value);
68
- }
69
- }
70
-
71
- @each $color, $value in $theme-colors {
72
- .btn-outline-#{$color} {
73
- @include button-outline-variant($value);
74
- }
75
- }
76
-
77
-
78
- //
79
- // Link buttons
80
- //
81
-
82
- // Make a button look and behave like a link
83
- .btn-link {
84
- font-weight: $font-weight-normal;
85
- color: $link-color;
86
- text-decoration: $link-decoration;
87
-
88
- @include hover() {
89
- color: $link-hover-color;
90
- text-decoration: $link-hover-decoration;
91
- }
92
-
93
- &:focus,
94
- &.focus {
95
- text-decoration: $link-hover-decoration;
96
- }
97
-
98
- &:disabled,
99
- &.disabled {
100
- color: $btn-link-disabled-color;
101
- pointer-events: none;
102
- }
103
-
104
- // No need for an active state here
105
- }
106
-
107
-
108
- //
109
- // Button Sizes
110
- //
111
-
112
- .btn-lg {
113
- @include button-size($btn-padding-y-lg, $btn-padding-x-lg, $btn-font-size-lg, $btn-line-height-lg, $btn-border-radius-lg);
114
- }
115
-
116
- .btn-sm {
117
- @include button-size($btn-padding-y-sm, $btn-padding-x-sm, $btn-font-size-sm, $btn-line-height-sm, $btn-border-radius-sm);
118
- }
119
-
120
-
121
- //
122
- // Block button
123
- //
124
-
125
- .btn-block {
126
- display: block;
127
- width: 100%;
128
-
129
- // Vertically space out multiple block buttons
130
- + .btn-block {
131
- margin-top: $btn-block-spacing-y;
132
- }
133
- }
134
-
135
- // Specificity overrides
136
- input[type="submit"],
137
- input[type="reset"],
138
- input[type="button"] {
139
- &.btn-block {
140
- width: 100%;
141
- }
142
- }
1
+ // stylelint-disable selector-no-qualifying-type
2
+
3
+ //
4
+ // Base styles
5
+ //
6
+
7
+ .btn {
8
+ display: inline-block;
9
+ font-family: $btn-font-family;
10
+ font-weight: $btn-font-weight;
11
+ color: $body-color;
12
+ text-align: center;
13
+ text-decoration: if($link-decoration == none, null, none);
14
+ white-space: $btn-white-space;
15
+ vertical-align: middle;
16
+ user-select: none;
17
+ background-color: transparent;
18
+ border: $btn-border-width solid transparent;
19
+ @include button-size($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-line-height, $btn-border-radius);
20
+ @include transition($btn-transition);
21
+
22
+ @include hover() {
23
+ color: $body-color;
24
+ text-decoration: none;
25
+ }
26
+
27
+ &:focus,
28
+ &.focus {
29
+ outline: 0;
30
+ box-shadow: $btn-focus-box-shadow;
31
+ }
32
+
33
+ // Disabled comes first so active can properly restyle
34
+ &.disabled,
35
+ &:disabled {
36
+ opacity: $btn-disabled-opacity;
37
+ @include box-shadow(none);
38
+ }
39
+
40
+ &:not(:disabled):not(.disabled) {
41
+ cursor: if($enable-pointer-cursor-for-buttons, pointer, null);
42
+
43
+ &:active,
44
+ &.active {
45
+ @include box-shadow($btn-active-box-shadow);
46
+
47
+ &:focus {
48
+ @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
49
+ }
50
+ }
51
+ }
52
+ }
53
+
54
+ // Future-proof disabling of clicks on `<a>` elements
55
+ a.btn.disabled,
56
+ fieldset:disabled a.btn {
57
+ pointer-events: none;
58
+ }
59
+
60
+
61
+ //
62
+ // Alternate buttons
63
+ //
64
+
65
+ @each $color, $value in $theme-colors {
66
+ .btn-#{$color} {
67
+ @include button-variant($value, $value);
68
+ }
69
+ }
70
+
71
+ @each $color, $value in $theme-colors {
72
+ .btn-outline-#{$color} {
73
+ @include button-outline-variant($value);
74
+ }
75
+ }
76
+
77
+
78
+ //
79
+ // Link buttons
80
+ //
81
+
82
+ // Make a button look and behave like a link
83
+ .btn-link {
84
+ font-weight: $font-weight-normal;
85
+ color: $link-color;
86
+ text-decoration: $link-decoration;
87
+
88
+ @include hover() {
89
+ color: $link-hover-color;
90
+ text-decoration: $link-hover-decoration;
91
+ }
92
+
93
+ &:focus,
94
+ &.focus {
95
+ text-decoration: $link-hover-decoration;
96
+ }
97
+
98
+ &:disabled,
99
+ &.disabled {
100
+ color: $btn-link-disabled-color;
101
+ pointer-events: none;
102
+ }
103
+
104
+ // No need for an active state here
105
+ }
106
+
107
+
108
+ //
109
+ // Button Sizes
110
+ //
111
+
112
+ .btn-lg {
113
+ @include button-size($btn-padding-y-lg, $btn-padding-x-lg, $btn-font-size-lg, $btn-line-height-lg, $btn-border-radius-lg);
114
+ }
115
+
116
+ .btn-sm {
117
+ @include button-size($btn-padding-y-sm, $btn-padding-x-sm, $btn-font-size-sm, $btn-line-height-sm, $btn-border-radius-sm);
118
+ }
119
+
120
+
121
+ //
122
+ // Block button
123
+ //
124
+
125
+ .btn-block {
126
+ display: block;
127
+ width: 100%;
128
+
129
+ // Vertically space out multiple block buttons
130
+ + .btn-block {
131
+ margin-top: $btn-block-spacing-y;
132
+ }
133
+ }
134
+
135
+ // Specificity overrides
136
+ input[type="submit"],
137
+ input[type="reset"],
138
+ input[type="button"] {
139
+ &.btn-block {
140
+ width: 100%;
141
+ }
142
+ }