-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchrome.css
More file actions
66 lines (45 loc) · 1.44 KB
/
chrome.css
File metadata and controls
66 lines (45 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
62
63
64
65
66
.chrome {
/* Variables */
--frame-gradient: linear-gradient(to bottom, #ffffff, #515151, #b7b7b7);
--inner-gradient: linear-gradient(to bottom, #b2b2b2, #7d8483);
--text-color: rgb(240, 240, 255);
--hover-inner-gradient: linear-gradient(to top, rgb(210, 210, 210), rgb(129, 140, 138));
--hover-text-color: rgba(255, 255, 255, .75);
--width: 3rem;
--height: 3rem;
position: relative;
width: var(--width);
height: var(--height);
display: flex;
justify-content: center;
align-items: center;
text-shadow: 0 2px 2px rgb(0, 0, 0, .25);
border-radius: 999999px;
background: var(--frame-gradient);
} .chrome::after {
position: absolute;
content: "";
width: calc(100% - .5rem);
height: calc(100% - .5rem);
display: flex;
align-items: center;
justify-content: center;
border-radius: 999999px;
background: var(--inner-gradient);
filter: blur(calc(var(--height) * .0125));
color: var(--text-color);
font-weight: 700;
font-size: calc(var(--height) / 3.25);
text-align: center;
line-height: calc(var(--height) / 3.25);
} .chrome * {
z-index: 2;
fill: url(#buttonContentGradient);
} .chrome svg {
filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.4));
} .chrome.button:hover {
cursor: pointer;
} .chrome.button:hover::after {
color: var(--hover-text-color);
background: var(--hover-inner-gradient);
}