-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
36 lines (31 loc) · 925 Bytes
/
Copy pathstyles.css
File metadata and controls
36 lines (31 loc) · 925 Bytes
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
:root {
--shadow-color: #444444;
}
.plant {
--tree-size: 200px;
--plant-color: lightgreen;
display: flex;
justify-content: center;
align-items: center;
border: 4px solid black;
border-radius: 50%;
width: var(--tree-size, 100px);
height: var(--tree-size, 100px);
background-color: var(--plant-color, lightgreen);
/* Alternatively, add a single box-shadow declaration here. */
}
.stem {
border-radius: 50%;
width: calc(var(--tree-size, 100px) / 10);
height: calc(var(--tree-size, 100px) / 10);
background-color: black;
}
.plant__sm {
box-shadow: 4px 4px 3px var(--shadow-color);
}
.plant__md {
box-shadow: 8px 8px 5px var(--shadow-color);
}
.plant__lg {
box-shadow: 16px 16px 10px var(--shadow-color);
}