@rypen-dev/shared-components 8.1.11 → 8.1.12

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. Starting with version 8, this package is built with Vite 7 and Vue 3.",
4
- "version": "8.1.11",
4
+ "version": "8.1.12",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "scripts": {
@@ -194,6 +194,7 @@ $button-large-font-weight: $body-weight-normal !default;
194
194
  $button-font-size: 0.75rem !default;
195
195
  $button-font-size-medium: 1.0625rem !default;
196
196
  $button-small-font-size: 0.8125rem !default;
197
+ $button-extra-small-font-size: 0.75rem !default;
197
198
 
198
199
  $button-letter-spacing: 1px !default;
199
200
  $button-letter-spacing-medium: 2px !default;
@@ -220,6 +221,7 @@ $button-height: 56px !default; //3.5rem !default;
220
221
  $button-height-medium: 80px !default; //5rem !default;
221
222
 
222
223
  $button-tiny-height: 44px !default; //2.75rem !default;
224
+ $button-extra-tiny-height: 30px !default;
223
225
 
224
226
  $button-small-height: 56px !default; //3.5rem !default;
225
227
  $button-small-height-medium: 64px !default; //4rem !default;
@@ -827,14 +827,14 @@ button,
827
827
  }
828
828
 
829
829
  &.small,
830
- &.tiny {
830
+ &.tiny,
831
+ &.extra-tiny {
831
832
  font-family: $button-font-family;
832
833
  font-weight: $button-font-weight;
833
834
  }
834
835
 
835
- &.tiny {
836
- line-height: $button-tiny-height !important;
837
-
836
+ &.tiny,
837
+ &.extra-tiny {
838
838
  &.multi-line {
839
839
  line-height: $button-multi-line-line-height !important;
840
840
  padding-top: $button-tiny-multi-line-vertical-padding;
@@ -842,6 +842,14 @@ button,
842
842
  }
843
843
  }
844
844
 
845
+ &.extra-tiny {
846
+ line-height: $button-tiny-height !important;
847
+ }
848
+
849
+ &.tiny {
850
+ line-height: $button-extra-tiny-height !important;
851
+ }
852
+
845
853
  &.full {
846
854
  width: 100% !important;
847
855
  margin-left: 0;
@@ -884,6 +892,11 @@ button,
884
892
  width: auto !important;
885
893
  padding-left: 1rem;
886
894
  padding-right: 1rem;
895
+
896
+ &.extra-tiny {
897
+ padding-left: 0.75rem;
898
+ padding-right: 0.75rem;
899
+ }
887
900
  }
888
901
 
889
902
  &.qr-button {
@@ -965,7 +978,8 @@ button,
965
978
  }
966
979
 
967
980
  &.small,
968
- &.tiny {
981
+ &.tiny,
982
+ &.extra-tiny {
969
983
  width: 220px;
970
984
  font-size: $button-small-font-size;
971
985
  line-height: $button-small-height-medium;
@@ -987,6 +1001,15 @@ button,
987
1001
  width: 200px;
988
1002
  }
989
1003
 
1004
+ &.extra-tiny {
1005
+ font-size: $button-extra-small-font-size;
1006
+ width: 180px;
1007
+
1008
+ &.stroke:not(.disabled):not(:disabled) {
1009
+ line-height: calc($button-extra-tiny-height - 4px);
1010
+ }
1011
+ }
1012
+
990
1013
  &.large {
991
1014
  width: 456px;
992
1015
  line-height: $button-large-height-medium;
@@ -1017,6 +1040,11 @@ button,
1017
1040
  &.auto-width {
1018
1041
  padding-left: 2rem;
1019
1042
  padding-right: 2rem;
1043
+
1044
+ &.extra-tiny {
1045
+ padding-left: 1rem;
1046
+ padding-right: 1rem;
1047
+ }
1020
1048
  }
1021
1049
 
1022
1050
  &:disabled,
@@ -484,4 +484,19 @@ hr {
484
484
  }
485
485
  }
486
486
  }
487
+ }
488
+
489
+ .information-message {
490
+ padding: 1rem;
491
+ border-radius: 5px;
492
+ color: $body-font-color;
493
+ background-color: $medium-gray;
494
+
495
+ &.attention {
496
+ background-color: $attention;
497
+ }
498
+
499
+ &.compact {
500
+ padding: 0.5rem;
501
+ }
487
502
  }
@@ -1,10 +1,10 @@
1
1
  /// <reference path="../variables" />
2
2
  /// <reference path="../vendor/foundation-settings" />
3
3
 
4
- @import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700|Ubuntu:300,400,500');
4
+ @import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700|Ubuntu:300,400,500,700');
5
5
 
6
6
  // OpenSans: Light = 300, Regular = 400, Semi-Bold = 600, Bold = 700 (Extra-Bold = 800)
7
- // Ubuntu: Light = 300, Regular = 400, Medium = 500 (Bold = 700)
7
+ // Ubuntu: Light = 300, Regular = 400, Medium = 500, Bold = 700
8
8
 
9
9
  body {
10
10
  font-weight: $body-weight-normal;