-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathRadioButtonListItem.scss
More file actions
88 lines (76 loc) · 1.59 KB
/
RadioButtonListItem.scss
File metadata and controls
88 lines (76 loc) · 1.59 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
@import '../../theme/fonts.scss';
@import '../../theme/theme.scss';
@import '../../theme/layout';
@import '../../kai-font/style.scss';
:root {
--rbl-text-focused: var(--color-gs00);
--rbl-radio-unfocused: var(--color-zeta);
}
.kai-rbl {
width: auto;
min-height: var(--list-item-height);
display: flex;
flex-direction: row;
align-items: center;
overflow: hidden;
outline: none;
&:focus {
color: var(--rbl-text-focused);
}
&-button {
margin: 0 1rem;
&-input-focused {
color: var(--rbl-text-focused);
}
&-input-unfocused {
color: var(--rbl-radio-unfocused);
}
> input[type='radio'] {
-webkit-appearance: none;
-moz-appearance: none;
position: relative;
width: 2rem;
height: 2rem;
border-radius: 35%;
}
> input[type='radio']::before {
font-family: $icomoon-font-family;
position: absolute;
font-size: 2rem;
}
> input[type='radio']:not(:checked)::before {
content: $kai-icon-radio-button-unselected;
}
> input[type='radio']:checked::before {
content: $kai-icon-radio-button-selected;
}
}
&-line {
font-family: 'Open Sans';
display: flex;
flex-direction: column;
justify-content: center;
height: 100%;
width: 100%;
span,
label {
padding: 0;
width: 100%;
overflow: hidden;
}
}
.left {
box-sizing: border-box;
padding: 1rem 0 1rem 1rem;
}
.right {
box-sizing: border-box;
padding: 1rem 1rem 1rem 0;
}
&-primary {
@extend .p-pri;
}
&-secondary {
@extend .p-sec;
}
}