@rypen-dev/shared-components 3.0.8 → 3.0.9
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 +1 -0
- package/scss/partials/_forms.scss +66 -2
package/package.json
CHANGED
package/scss/_variables.scss
CHANGED
|
@@ -73,6 +73,7 @@ $button-hover-bg-color: $white !default;
|
|
|
73
73
|
$button-shadow-color: $shadow-color !default;
|
|
74
74
|
$button-stroke-color: $primary !default;
|
|
75
75
|
|
|
76
|
+
$input-background-color: $white !default;
|
|
76
77
|
$input-border-color: $secondary-alt !default;
|
|
77
78
|
$input-border-focus-color: $primary !default;
|
|
78
79
|
$input-highlight-color: $tertiary !default;
|
|
@@ -40,6 +40,7 @@ textarea,
|
|
|
40
40
|
select {
|
|
41
41
|
padding: $form-field-padding;
|
|
42
42
|
color: $body-font-color;
|
|
43
|
+
background-color: $input-background-color;
|
|
43
44
|
font-family: $body-font-family;
|
|
44
45
|
font-size: 1rem;
|
|
45
46
|
border: solid 1px $input-border-color;
|
|
@@ -676,6 +677,20 @@ label {
|
|
|
676
677
|
}
|
|
677
678
|
}
|
|
678
679
|
|
|
680
|
+
&.disabled {
|
|
681
|
+
input {
|
|
682
|
+
color: $medium-gray;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
.steps {
|
|
686
|
+
a {
|
|
687
|
+
background: $light-gray;
|
|
688
|
+
color: $medium-gray;
|
|
689
|
+
cursor: not-allowed;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
|
|
679
694
|
@media print, screen and (min-width: map-get($breakpoints, medium)) {
|
|
680
695
|
input {
|
|
681
696
|
height: 4rem;
|
|
@@ -819,13 +834,13 @@ label {
|
|
|
819
834
|
|
|
820
835
|
@media print, screen and (min-width: map-get($breakpoints, medium)) {
|
|
821
836
|
&.medium-no-margin {
|
|
822
|
-
margin-bottom: 0;
|
|
837
|
+
margin-bottom: 0 !important;
|
|
823
838
|
}
|
|
824
839
|
}
|
|
825
840
|
|
|
826
841
|
@media print, screen and (min-width: map-get($breakpoints, large)) {
|
|
827
842
|
&.large-no-margin {
|
|
828
|
-
margin-bottom: 0;
|
|
843
|
+
margin-bottom: 0 !important;
|
|
829
844
|
}
|
|
830
845
|
}
|
|
831
846
|
}
|
|
@@ -846,6 +861,10 @@ select {
|
|
|
846
861
|
option:checked {
|
|
847
862
|
background: $input-highlight-color linear-gradient(0deg, $input-highlight-color 0%, $input-highlight-color 100%);
|
|
848
863
|
}
|
|
864
|
+
|
|
865
|
+
option:disabled {
|
|
866
|
+
color: $text-gray;
|
|
867
|
+
}
|
|
849
868
|
}
|
|
850
869
|
|
|
851
870
|
.swatch-input {
|
|
@@ -1042,6 +1061,26 @@ select {
|
|
|
1042
1061
|
}
|
|
1043
1062
|
}
|
|
1044
1063
|
|
|
1064
|
+
&.tiny {
|
|
1065
|
+
li {
|
|
1066
|
+
width: 24px;
|
|
1067
|
+
height: 24px;
|
|
1068
|
+
padding: 2px;
|
|
1069
|
+
margin-right: 4px;
|
|
1070
|
+
margin-bottom: 4px;
|
|
1071
|
+
|
|
1072
|
+
&.current::before {
|
|
1073
|
+
width: 26px;
|
|
1074
|
+
height: 26px;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
a {
|
|
1078
|
+
width: 18px;
|
|
1079
|
+
height: 18px;
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1045
1084
|
@media screen and (max-width: map-get($breakpoints, medium) - 1px) {
|
|
1046
1085
|
a .preview {
|
|
1047
1086
|
display: none !important;
|
|
@@ -1526,4 +1565,29 @@ input:checked ~ .switch-paddle {
|
|
|
1526
1565
|
border-right-color: $secondary;
|
|
1527
1566
|
}
|
|
1528
1567
|
}
|
|
1568
|
+
|
|
1569
|
+
&.no-outline {
|
|
1570
|
+
[type='text'],
|
|
1571
|
+
[type='password'],
|
|
1572
|
+
[type='date'],
|
|
1573
|
+
[type='datetime'],
|
|
1574
|
+
[type='datetime-local'],
|
|
1575
|
+
[type='month'],
|
|
1576
|
+
[type='week'],
|
|
1577
|
+
[type='email'],
|
|
1578
|
+
[type='number'],
|
|
1579
|
+
[type='search'],
|
|
1580
|
+
[type='tel'],
|
|
1581
|
+
[type='time'],
|
|
1582
|
+
[type='url'],
|
|
1583
|
+
[type='color'],
|
|
1584
|
+
textarea,
|
|
1585
|
+
select {
|
|
1586
|
+
border-color: $input-background-color;
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
&.no-margin {
|
|
1591
|
+
margin-bottom: 0 !important;
|
|
1592
|
+
}
|
|
1529
1593
|
}
|