-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
129 lines (113 loc) · 2.2 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
*,
*::after,
*::before {
padding: 0;
margin: 0;
box-sizing: border-box;
}
::selection {
background: white
}
body {
--white: #fff;
--snow: color(display-p3 170% 170% 170%);
font-family: Georgia;
background: var(--white);
}
main {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 40px;
text-align: center;
padding: 56px 48px;
max-width: 800px;
margin: 0 auto;
}
h1,
p,
a {
background: var(--snow);
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
background-clip: text;
text-wrap: balance;
}
h1 {
font-size: 112px;
font-weight: 700;
}
p,
a {
font-size: 40px;
line-height: 140%;
}
hr {
position: relative;
width: 100%;
max-width: 400px;
height: 2px;
background: linear-gradient(
to right,
transparent 0%,
var(--snow) 50%,
transparent 100%
);
border: none;
}
.colors {
--red: color(display-p3 170% 110% 110%);
--yellow: color(display-p3 170% 170% 110%);
--green: color(display-p3 110% 170% 110%);
--cyan: color(display-p3 110% 170% 170%);
--blue: color(display-p3 110% 110% 170%);
--pink: color(display-p3 170% 110% 170%);
display: flex;
justify-content: center;
margin-bottom: 24px;
margin-top: 24px;
}
.colors:hover {
--red: color(display-p3 170% 0% 0%);
--yellow: color(display-p3 170% 170% 0%);
--green: color(display-p3 0% 170% 0%);
--cyan: color(display-p3 0% 170% 170%);
--blue: color(display-p3 0% 0% 170%);
--pink: color(display-p3 170% 0% 170%);
}
.colors * + * {
margin-left: -12px;
}
.color {
width: 56px;
height: 56px;
background: var(--snow);
border-radius: 50%;
border: 4px solid var(--white);
}
.red {
background-color: var(--red);
}
.yellow {
background-color: var(--yellow);
}
.green {
background-color: var(--green);
}
.cyan {
background-color: var(--cyan);
}
.blue {
background-color: var(--blue);
}
.pink {
background-color: var(--pink);
}
a {
display: block;
text-decoration: none;
border: 4px solid var(--snow);
border-radius: 16px;
padding: 4px 16px;
}