@rypen-dev/shared-components 5.1.1 → 5.1.2
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/package.json +1 -1
- package/scss/_variables.scss +12 -0
- package/scss/partials/_buttons.scss +10 -10
package/package.json
CHANGED
package/scss/_variables.scss
CHANGED
|
@@ -190,6 +190,18 @@ $global-base-radius: 5px !default;
|
|
|
190
190
|
// Buttons
|
|
191
191
|
$global-button-radius: $global-base-radius !default;
|
|
192
192
|
|
|
193
|
+
$button-height: 3.5rem !default;
|
|
194
|
+
$button-height-medium: 5rem !default;
|
|
195
|
+
|
|
196
|
+
$button-tiny-height: 2.75rem !default;
|
|
197
|
+
$button-tiny-height-medium: 2.75re !default;
|
|
198
|
+
|
|
199
|
+
$button-small-height: 3.5rem !default;
|
|
200
|
+
$button-small-height-medium: 4rem !default;
|
|
201
|
+
|
|
202
|
+
$button-large-height: 4.5rem !default;
|
|
203
|
+
$button-large-height-medium: 4rem !default;
|
|
204
|
+
|
|
193
205
|
// Labels/Badges
|
|
194
206
|
$global-badge-radius: $global-base-radius !default;
|
|
195
207
|
|
|
@@ -631,7 +631,7 @@ button,
|
|
|
631
631
|
font-weight: $button-large-font-weight;
|
|
632
632
|
width: 200px;
|
|
633
633
|
max-width: 100%;
|
|
634
|
-
line-height:
|
|
634
|
+
line-height: $button-height;
|
|
635
635
|
|
|
636
636
|
&:focus {
|
|
637
637
|
outline: none;
|
|
@@ -645,7 +645,7 @@ button,
|
|
|
645
645
|
}
|
|
646
646
|
|
|
647
647
|
&.large {
|
|
648
|
-
line-height:
|
|
648
|
+
line-height: $button-large-height;
|
|
649
649
|
|
|
650
650
|
&.multi-line {
|
|
651
651
|
padding-top: 20px;
|
|
@@ -802,10 +802,10 @@ button,
|
|
|
802
802
|
border: solid 2px $button-stroke-color;
|
|
803
803
|
|
|
804
804
|
&:not(:disabled):not(.disabled) {
|
|
805
|
-
line-height: calc(
|
|
805
|
+
line-height: calc($button-height - 4px);
|
|
806
806
|
|
|
807
807
|
&.tiny {
|
|
808
|
-
line-height: calc(
|
|
808
|
+
line-height: calc($button-tiny-height - 4px) !important;
|
|
809
809
|
}
|
|
810
810
|
}
|
|
811
811
|
}
|
|
@@ -817,7 +817,7 @@ button,
|
|
|
817
817
|
}
|
|
818
818
|
|
|
819
819
|
&.tiny {
|
|
820
|
-
line-height:
|
|
820
|
+
line-height: $button-tiny-height !important;
|
|
821
821
|
|
|
822
822
|
&.multi-line {
|
|
823
823
|
line-height: 1.8 !important;
|
|
@@ -936,7 +936,7 @@ button,
|
|
|
936
936
|
}
|
|
937
937
|
|
|
938
938
|
@media print, screen and (min-width: map-get($breakpoints, medium)) {
|
|
939
|
-
line-height:
|
|
939
|
+
line-height: $button-height-medium;
|
|
940
940
|
margin-bottom: 1rem;
|
|
941
941
|
letter-spacing: 2px;
|
|
942
942
|
font-size: 1.0625rem;
|
|
@@ -947,11 +947,11 @@ button,
|
|
|
947
947
|
&.tiny {
|
|
948
948
|
width: 220px;
|
|
949
949
|
font-size: 0.8125rem;
|
|
950
|
-
line-height:
|
|
950
|
+
line-height: $button-small-height-medium;
|
|
951
951
|
box-shadow: $button-shadow-color 0 7px 12px;
|
|
952
952
|
|
|
953
953
|
&.stroke:not(.disabled):not(:disabled) {
|
|
954
|
-
line-height: calc(
|
|
954
|
+
line-height: calc($button-small-height-medium - 4px);
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
957
|
|
|
@@ -968,10 +968,10 @@ button,
|
|
|
968
968
|
|
|
969
969
|
&.large {
|
|
970
970
|
width: 456px;
|
|
971
|
-
line-height:
|
|
971
|
+
line-height: $button-large-height-medium;
|
|
972
972
|
|
|
973
973
|
&.stroke {
|
|
974
|
-
line-height: calc(
|
|
974
|
+
line-height: calc($button-large-height-medium - 4px);
|
|
975
975
|
}
|
|
976
976
|
|
|
977
977
|
&.multi-line {
|