@rypen-dev/shared-components 5.1.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rypen-dev/shared-components",
3
3
  "description": "Shared styles and Vuejs ui components for Rypen projects.",
4
- "version": "5.1.0",
4
+ "version": "5.1.2",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
7
7
  "build": "webpack --config ./webpack.config.js",
@@ -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: 3.5rem;
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: 4.5rem;
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(3.5rem - 4px);
805
+ line-height: calc($button-height - 4px);
806
806
 
807
807
  &.tiny {
808
- line-height: calc(2.75rem - 4px) !important;
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: 2.75rem !important;
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: 5rem;
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: 4rem;
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(4rem - 4px);
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: 6.875rem;
971
+ line-height: $button-large-height-medium;
972
972
 
973
973
  &.stroke {
974
- line-height: calc(6.875rem - 4px);
974
+ line-height: calc($button-large-height-medium - 4px);
975
975
  }
976
976
 
977
977
  &.multi-line {
@@ -468,7 +468,7 @@ label {
468
468
  display: block;
469
469
  margin-bottom: 0.5rem;
470
470
  font-size: 1rem;
471
- color: $gloabl-form-label-color;
471
+ color: $global-form-label-color;
472
472
  font-family: $headline-font-family;
473
473
  letter-spacing: 2px;
474
474
  font-weight: $body-weight-normal;
@@ -483,7 +483,7 @@ $label-color-alt: $white;
483
483
  $label-palette: $foundation-palette;
484
484
  $label-font-size: 0.8rem;
485
485
  $label-padding: 0.33333rem 0.5rem;
486
- $label-radius: $gloabl-badge-radius;
486
+ $label-radius: $global-badge-radius;
487
487
 
488
488
  // 22. Media Object
489
489
  // ----------------