-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
56 lines (48 loc) · 839 Bytes
/
styles.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
body {
background: #555;
margin-top: 60px;
}
.stoplight-body {
background: #f2b738;
border-radius: 8px;
border: 3px solid black;
margin: 0 auto;
max-width: 180px;
height: 420px;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
}
.stoplight-light {
width: 100px;
height: 100px;
border-radius: 100%;
position: relative;
opacity: .3;
}
.stoplight-light::before {
background: rgba(0, 0, 0, .6);
display: block;
width: 100px;
height: 100px;
content: '';
border-radius: 100%;
position: relative;
}
.stoplight-light.active::before {
z-index: -1;
}
.stoplight-light.active {
opacity: 1;
border: 3px solid black;
}
.stoplight-go {
background: #37ba18;
}
.stoplight-warning {
background: #eadd15;
}
.stoplight-stop {
background: #e11d1d;
}