@rypen-dev/shared-components 5.1.1 → 5.1.3
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
CHANGED
package/scss/_variables.scss
CHANGED
|
@@ -61,10 +61,13 @@ $headline-accent-color-reversed: $white !default;
|
|
|
61
61
|
|
|
62
62
|
$headline-divider-border-color: $medium-gray !default;
|
|
63
63
|
$headline-divider-bg-color: transparent !default;
|
|
64
|
-
$headline-divider-color: $text-gray !default;
|
|
65
64
|
$headline-divider-reversed-color: $white !default;
|
|
65
|
+
$headline-divider-color: $text-gray !default;
|
|
66
66
|
$headline-divider-padding: 0 !default;
|
|
67
67
|
|
|
68
|
+
$headline-divider-lite-color: $text-gray !default;
|
|
69
|
+
$headline-divider-lite-border-color: $text-gray !default;
|
|
70
|
+
|
|
68
71
|
$headline-small-color: $text-gray !default;
|
|
69
72
|
|
|
70
73
|
$navigation-link-color: $primary !default;
|
|
@@ -171,6 +174,11 @@ $button-font-family: $body-font-family !default;
|
|
|
171
174
|
$button-large-font-family: $headline-font-family !default;
|
|
172
175
|
$button-font-weight: 600 !default;
|
|
173
176
|
$button-large-font-weight: $body-weight-normal !default;
|
|
177
|
+
$button-font-size: 0.75rem !default;
|
|
178
|
+
$button-letter-spacing: 1px !default;
|
|
179
|
+
$button-font-size-medium: 1.0625rem !default;
|
|
180
|
+
$button-letter-spacing-medium: 2px !default;
|
|
181
|
+
$button-small-font-size: 0.8125rem !default;
|
|
174
182
|
|
|
175
183
|
// Measurements
|
|
176
184
|
$form-field-padding: 0.625rem 1rem !default;
|
|
@@ -190,6 +198,17 @@ $global-base-radius: 5px !default;
|
|
|
190
198
|
// Buttons
|
|
191
199
|
$global-button-radius: $global-base-radius !default;
|
|
192
200
|
|
|
201
|
+
$button-height: 3.5rem !default;
|
|
202
|
+
$button-height-medium: 5rem !default;
|
|
203
|
+
|
|
204
|
+
$button-tiny-height: 2.75rem !default;
|
|
205
|
+
|
|
206
|
+
$button-small-height: 3.5rem !default;
|
|
207
|
+
$button-small-height-medium: 4rem !default;
|
|
208
|
+
|
|
209
|
+
$button-large-height: 4.5rem !default;
|
|
210
|
+
$button-large-height-medium: 6.875rem !default;
|
|
211
|
+
|
|
193
212
|
// Labels/Badges
|
|
194
213
|
$global-badge-radius: $global-base-radius !default;
|
|
195
214
|
|
|
@@ -623,7 +623,7 @@ button,
|
|
|
623
623
|
cursor: pointer;
|
|
624
624
|
color: $primary;
|
|
625
625
|
text-transform: uppercase;
|
|
626
|
-
letter-spacing:
|
|
626
|
+
letter-spacing: $button-letter-spacing;
|
|
627
627
|
transition: box-shadow $button-transition-time ease-out, background-color $button-transition-time ease-out, color $button-transition-time ease-out;
|
|
628
628
|
box-shadow: 0 4px 13px 1px $button-shadow-color;
|
|
629
629
|
font-size: 0.75rem;
|
|
@@ -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,22 +936,22 @@ 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
|
-
letter-spacing:
|
|
942
|
-
font-size:
|
|
941
|
+
letter-spacing: $button-letter-spacing-medium;
|
|
942
|
+
font-size: $button-font-size-medium;
|
|
943
943
|
width: 388px;
|
|
944
944
|
box-shadow: 0 12px 22px 0 $button-shadow-color;
|
|
945
945
|
|
|
946
946
|
&.small,
|
|
947
947
|
&.tiny {
|
|
948
948
|
width: 220px;
|
|
949
|
-
font-size:
|
|
950
|
-
line-height:
|
|
949
|
+
font-size: $button-small-font-size;
|
|
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 {
|
|
@@ -242,8 +242,10 @@ h5 {
|
|
|
242
242
|
|
|
243
243
|
&.lite {
|
|
244
244
|
font-size: 0.875rem;
|
|
245
|
-
padding
|
|
246
|
-
border-bottom: solid 2px $headline-divider-color;
|
|
245
|
+
padding: 0 0 0.25rem;
|
|
246
|
+
border-bottom: solid 2px $headline-divider-lite-border-color;
|
|
247
|
+
color: $headline-divider-lite-color;
|
|
248
|
+
background-color: transparent;
|
|
247
249
|
margin-bottom: 0.25rem;
|
|
248
250
|
}
|
|
249
251
|
|