-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgpio-pin-select.css
73 lines (62 loc) · 1.39 KB
/
gpio-pin-select.css
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
.gpio-pin-select--raspberry {
width: 400px;
height: 500px;
background-image: url('./default-background.svg');
background-repeat: no-repeat;
background-size: contain;
position: relative;
margin: 30px 0;
}
.gpio-pin-select--pins {
width: 150px;
height: 455px;
background-color: rgba(0, 0, 0, 0.7);
position: absolute;
right: 0;
top: -25px;
display: grid;
grid-template-columns: 1fr 20px 20px 1fr;
grid-template-rows: repeat(20, 18px);
column-gap: 5px;
row-gap: 5px;
padding: 45px 10px;
border-radius: 20px;
}
.gpio-pin-select--first-label {
text-align: end;
}
.gpio-pin-select--second-label {
text-align: start;
}
.gpio-pin-select--first-label, .gpio-pin-select--second-label {
color: white;
}
.gpio-pin-select--first-label {
grid-column-start: 1;
}
.gpio-pin-select--first-radio {
grid-column-start: 2;
}
.gpio-pin-select--second-radio {
grid-column-start: 3;
}
.gpio-pin-select--second-label {
grid-column-start: 4;
}
.gpio-pin-select--radio input {
display: none !important;
}
.gpio-pin-select--radio input + label span {
display: inline-block;
width: 15px;
height: 15px;
vertical-align: bottom;
background-image: url('./radio.svg');
background-size: 15px 15px;
margin-bottom: 2px;
background-repeat: no-repeat;
cursor: pointer;
}
.gpio-pin-select--radio input:checked + label span {
background-image: url('./radio-checked.svg');
}