-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
152 lines (126 loc) · 2.64 KB
/
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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/*
* Ethereum logo recreation using HTML and pure CSS.
* By FrontendCrypto.
* https://twitter.com/FrontendCrypto
*/
:root {
--lighter: hsl(0, 0%, 90%);
--light: hsl(0, 0%, 55%);
--dark: hsl(0, 0%, 20%);
--darker: hsl(0, 0%, 8%);
--transition: 0.3s ease-in-out;
}
h1 {
font-size: 3rem;
text-align: center;
margin-bottom: 0;
}
pre {
margin: 0;
}
.grid {
display: inline-grid;
grid-gap: 2rem;
grid-template-columns: repeat(2, max-content);
justify-content: center;
width: 100%;
}
.ethereum {
height: 400px;
margin: 30px auto 0;
position: relative;
width: 400px;
}
.circle {
align-items: center;
background-color: var(--lighter);
border: 25px solid var(--dark);
border-radius: 50%;
display: flex;
height: 350px;
transform: rotate(0);
transition: var(--transition);
width: 350px;
will-change: transform;
}
.wrapper {
height: 194px;
margin: 0 auto;
position: relative;
transform: translatey(-8%);
width: 121px;
}
.element {
position: absolute;
}
.upper {
border-style: solid;
border-width: 64px 0 55px 38px;
height: 0;
transform: rotate(31deg) translatex(31px);
width: 0;
}
.middle {
border-style: solid;
border-width: 27px 62px 37px 0;
height: 0;
transform: translatex(-1px);
width: 0;
}
.bottom {
border-style: solid;
border-width: 0 40px 29px 65px;
height: 0;
transform: rotate(54deg) translatex(-33px);
width: 0;
}
.element-2 {
right: 1px;
transform: scalex(-1);
}
.element-3,
.element-4 {
bottom: 41px;
}
.element-4 {
right: 0;
transform: scalex(-1);
}
.element-5 {
left: 9px;
}
.element-6 {
right: 9px;
transform: scalex(-1);
}
.element-5,
.element-6 {
bottom: -7px;
}
.element-1 .upper {
border-color: transparent transparent transparent var(--light);
}
.element-2 .upper {
border-color: transparent transparent transparent var(--dark);
}
.element-3 .middle {
border-color: transparent var(--dark) transparent transparent;
}
.element-4 .middle {
border-color: transparent var(--darker) transparent transparent;
}
.element-5 .bottom {
border-color: transparent transparent var(--light) transparent;
}
.element-6 .bottom {
border-color: transparent transparent var(--dark) transparent;
}
.ethereum:hover .circle,
.ethereum.hover .circle {
border: 25px solid var(--dark);
filter: brightness(0.9);
transform: rotate(-15deg);
}
.author {
text-align: center;
}