forked from zombieFox/nightTab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcoffee.css
More file actions
61 lines (54 loc) · 1.44 KB
/
Copy pathcoffee.css
File metadata and controls
61 lines (54 loc) · 1.44 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
.coffee {
margin-right: 1em;
font-size: 1em;
width: calc(calc(calc(var(--coffee-size) / 100) * 1.25) * 1em);
}
.coffee-lid {
position: relative;
width: 100%;
}
.coffee-lid-top,
.coffee-lid-bottom {
position: relative;
left: 50%;
transform: translateX(-50%);
height: calc(calc(calc(var(--coffee-size) / 100) * 0.25) * 1em);
}
.coffee-lid-top {
background-color: rgb(var(--theme-color-12));
width: 95%;
clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%);
}
.coffee-lid-bottom {
background-color: rgb(var(--theme-color-10));
width: 130%;
}
.coffee-body {
background-color: rgb(var(--theme-color-20));
width: 100%;
height: calc(calc(calc(var(--coffee-size) / 100) * 2) * 1em);
position: relative;
transition: background-color var(--layout-transition-extra-fast);
clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
}
.coffee-body-label {
background-color: rgb(var(--theme-color-06));
width: 100%;
height: calc(calc(var(--coffee-size) / 100) * 1em);
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
transition: background-color var(--layout-transition-extra-fast);
}
.coffee-body-label:before {
background-color: rgb(var(--theme-accent));
content: "";
border-radius: 100%;
width: calc(calc(calc(var(--coffee-size) / 100) * 0.75) * 1em);
height: calc(calc(calc(var(--coffee-size) / 100) * 0.75) * 1em);
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}