forked from itsecd/web-base
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
128 lines (105 loc) · 2.11 KB
/
styles.css
File metadata and controls
128 lines (105 loc) · 2.11 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
body {
font-family: Arial, sans-serif;
background-color: #f9f9f9;
padding: 20px;
margin: 0;
}
.text-block {
padding: 20px;
margin: 20px auto;
border: 2px solid #8a1c85;
border-radius: 8px;
max-width: 700px;
box-sizing: border-box;
}
.text-block--variant8 {
background-color: #A91FA3;
}
.text-block__content {
text-align: center;
color: #ABC0B0;
font-size: 16px;
line-height: 1.5;
}
.image-stack {
position: relative;
width: 300px;
height: 300px;
margin: 50px auto;
overflow: hidden;
}
.image-stack__image {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
.image-stack__image--bottom {
z-index: 1;
}
.image-stack__image--top {
z-index: 2;
}
.traffic-light {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
margin: 30px auto;
width: 80px;
background: #222;
padding: 20px;
border-radius: 12px;
}
.traffic-light__lamp {
width: 60px;
height: 60px;
border-radius: 50%;
}
.traffic-light__lamp--red {
background-color: red;
}
.traffic-light__lamp--yellow {
background-color: yellow;
}
.traffic-light__lamp--green {
background-color: green;
}
.maze {
display: grid;
grid-template-columns: repeat(6, 150px);
grid-template-rows: repeat(4, 150px);
gap: 0;
background: #0000003b;
padding: 10px;
width: fit-content;
margin: 50px auto;
}
.maze__cell {
box-sizing: border-box;
}
.maze__cell:nth-child(6n + 1),
.maze__cell:nth-child(6n + 3),
.maze__cell:nth-child(6n + 5) {
background: #818080;
}
.maze__cell:nth-child(6n + 2),
.maze__cell:nth-child(6n + 4),
.maze__cell:nth-child(6n + 6) {
background: #ffffff;
}
.border-top {
border-top: 2px solid #000;
}
.border-right {
border-right: 2px solid #000;
}
.border-bottom {
border-bottom: 2px solid #000;
}
.border-left {
border-left: 2px solid #000;
}