blob: bd6029700e26e218867ecfacff44c01ad5b0ad1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
@mixin valo-optiongroup ($primary-stylename: v-optiongroup) {
.v-radiobutton {
:root & > input {
&:checked ~ label:after {
$size: ceil($v-unit-size/6);
$offset: round($v-unit-size/6);
width: $size;
height: $size;
top: $offset;
left: $offset;
background: $v-selection-color;
}
& ~ label:before,
& ~ label:after {
border-radius: 50%;
content: "";
}
}
}
.v-select-optiongroup {
.v-radiobutton,
.v-checkbox {
display: block;
margin: round($v-unit-size/4) $v-font-size 0 0;
&:first-child {
margin-top: round($v-unit-size/6);
}
&:last-child {
margin-bottom: round($v-unit-size/6);
}
}
&.v-has-width label {
white-space: normal;
}
}
}
@mixin valo-optiongroup-horizontal {
white-space: nowrap;
.v-radiobutton,
.v-checkbox {
display: inline-block;
}
&.v-has-width {
white-space: normal;
label {
white-space: nowrap;
}
}
}
|