@asd20/ui 3.2.1022 → 3.2.1024
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
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
<div
|
|
3
3
|
:class="[
|
|
4
4
|
'asd20-checkbox',
|
|
5
|
-
{ 'asd20-checkbox__no-icon': !icon && !checkbox },
|
|
6
|
-
{ 'asd20-checkbox__checkbox': !icon && checkbox },
|
|
5
|
+
{ 'asd20-checkbox__no-icon': !icon && !checkbox && !radio },
|
|
6
|
+
{ 'asd20-checkbox__checkbox': !icon && checkbox && !radio },
|
|
7
|
+
{ 'asd20-checkbox__radio': !icon && !checkbox && radio },
|
|
7
8
|
]"
|
|
8
9
|
>
|
|
9
10
|
<input
|
|
@@ -38,6 +39,7 @@ export default {
|
|
|
38
39
|
count: { type: Number, default: 0 },
|
|
39
40
|
icon: { type: String, default: '' },
|
|
40
41
|
checkbox: { type: Boolean, default: false },
|
|
42
|
+
radio: { type: Boolean, default: false },
|
|
41
43
|
},
|
|
42
44
|
data() {
|
|
43
45
|
return {
|
|
@@ -161,6 +163,33 @@ export default {
|
|
|
161
163
|
opacity: 1;
|
|
162
164
|
}
|
|
163
165
|
}
|
|
166
|
+
&.asd20-checkbox__radio {
|
|
167
|
+
label:before {
|
|
168
|
+
display: none;
|
|
169
|
+
}
|
|
170
|
+
label:after {
|
|
171
|
+
content: '';
|
|
172
|
+
display: block;
|
|
173
|
+
width: space(1);
|
|
174
|
+
height: space(1);
|
|
175
|
+
margin-right: space(-0.5);
|
|
176
|
+
flex-shrink: 0;
|
|
177
|
+
border-radius: 50%;
|
|
178
|
+
border: 2px solid var(--color__accent);
|
|
179
|
+
background: #fff;
|
|
180
|
+
|
|
181
|
+
order: 1;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
input:checked + label:before {
|
|
185
|
+
}
|
|
186
|
+
input:checked + label:after {
|
|
187
|
+
border: 2px solid var(--color__accent);
|
|
188
|
+
box-shadow: inset 3px 3px 0px 0px #fff;
|
|
189
|
+
box-shadow: inset 0px 0px 0px 3px #fff;
|
|
190
|
+
background: var(--color__accent);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
164
193
|
|
|
165
194
|
input:focus + label:after {
|
|
166
195
|
@include asd20-focus;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
:count="option.count"
|
|
12
12
|
:description="option.description"
|
|
13
13
|
:value="checkedValues.indexOf(option.value) > -1"
|
|
14
|
+
:radio="radio"
|
|
14
15
|
@input="onInput($event, option)"
|
|
15
16
|
/>
|
|
16
17
|
<slot
|
|
@@ -34,6 +35,7 @@ export default {
|
|
|
34
35
|
props: {
|
|
35
36
|
checkedValues: { type: Array, default: () => [] },
|
|
36
37
|
options: { type: Array, default: () => [] },
|
|
38
|
+
radio: { type: Boolean, default: false },
|
|
37
39
|
},
|
|
38
40
|
methods: {
|
|
39
41
|
onInput(checked, option) {
|
|
@@ -695,13 +695,13 @@ export default {
|
|
|
695
695
|
&__secondary-content {
|
|
696
696
|
padding: space(1);
|
|
697
697
|
display: flex;
|
|
698
|
-
flex-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
698
|
+
flex-wrap: wrap;
|
|
699
|
+
gap: space(1); /* modern flex gap */
|
|
700
|
+
/* single column by default */
|
|
701
|
+
.asd20-school-details__category-offerings {
|
|
702
|
+
flex: 1 1 100%;
|
|
703
|
+
max-width: 100%;
|
|
704
|
+
padding-right: 0; /* override any prior rule */
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
707
|
|
|
@@ -740,10 +740,14 @@ export default {
|
|
|
740
740
|
&__secondary-content {
|
|
741
741
|
padding: space(2);
|
|
742
742
|
display: flex;
|
|
743
|
-
flex-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
743
|
+
flex-wrap: wrap;
|
|
744
|
+
gap: space(1);
|
|
745
|
+
|
|
746
|
+
.asd20-school-details__category-offerings {
|
|
747
|
+
/* two columns: equal widths */
|
|
748
|
+
flex: 1 1 calc(50% - #{space(0.5)});
|
|
749
|
+
max-width: calc(50% - #{space(0.5)});
|
|
750
|
+
padding-right: 0;
|
|
747
751
|
}
|
|
748
752
|
}
|
|
749
753
|
}
|
|
@@ -757,13 +761,6 @@ export default {
|
|
|
757
761
|
.asd20-notification-group--floating {
|
|
758
762
|
position: absolute;
|
|
759
763
|
top: space(1);
|
|
760
|
-
// .bell {
|
|
761
|
-
// span {
|
|
762
|
-
// background: var(--color__accent);
|
|
763
|
-
// top: -0.6em !important;
|
|
764
|
-
// right: -0.6em !important;
|
|
765
|
-
// }
|
|
766
|
-
// }
|
|
767
764
|
}
|
|
768
765
|
.notification-group--inline {
|
|
769
766
|
margin: space(2) space(3) space(1) space(3);
|
|
@@ -795,11 +792,20 @@ export default {
|
|
|
795
792
|
.asd20-school-details {
|
|
796
793
|
&__primary-content {
|
|
797
794
|
padding: space(2);
|
|
795
|
+
padding-right: 0;
|
|
798
796
|
.primary-section {
|
|
799
|
-
width:
|
|
797
|
+
width: 31%;
|
|
800
798
|
padding: 0 1vw 3rem 1vw;
|
|
801
799
|
}
|
|
802
800
|
}
|
|
801
|
+
&__secondary-content {
|
|
802
|
+
padding: space(2);
|
|
803
|
+
padding-right: 0;
|
|
804
|
+
.asd20-school-details__category-offerings {
|
|
805
|
+
flex: 1 1 calc(32% - #{space(0.5)});
|
|
806
|
+
max-width: calc(32% - #{space(0.5)});
|
|
807
|
+
}
|
|
808
|
+
}
|
|
803
809
|
.asd20-contact {
|
|
804
810
|
padding: space(1) space(3);
|
|
805
811
|
}
|