-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
93 lines (85 loc) · 1.69 KB
/
index.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
* {
margin-block: 0;
margin-inline: 0;
padding-block: 0;
padding-inline: 0;
border-block: 0;
border-inline: 0;
box-sizing: border-box;
}
:root {
--sparkling-red: #f33031;
--jade-glass: #0ccfce;
--nero: #262626;
}
body {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto;
grid-auto-flow: row;
gap: 1rem;
align-items: stretch;
background-color: black;
color: white;
block-size: 100vh;
padding-inline: 10rem;
@media screen and (width < 744px) {
padding-inline: 5rem;
}
@media screen and (width < 600px) {
grid-template-columns: 1fr;
}
@media screen and (width < 420px) {
padding-inline: 2rem;
}
&::after,
&::before {
content: "";
display: block;
height: 1rem;
}
p,
h1 {
grid-column: 1 / -1;
text-align: center;
color: var(--sparkling-red);
}
ul {
margin-inline: 30px;
grid-column: 1 / -1;
font-size: 1.25rem;
li {
padding-block: 0.5rem;
transition: all 0.5s ease-out 0s;
a {
color: white;
transition: all 0.5s ease-out 0s;
text-decoration-line: none;
&:hover {
color: blue;
}
code {
font-family: monospace;
}
}
&:hover {
color: blue;
}
}
}
> a {
background-color: var(--nero);
padding-inline: 2rem;
padding-block: 2rem;
border-radius: 1rem;
color: white;
font-size: 1.25rem;
text-decoration-line: none;
transition: all 0.5s ease-in 0s;
outline: 1px dashed gray;
&:hover {
box-shadow: 2px 2px 5px var(--sparkling-red),
-2px -2px 5px var(--jade-glass), 2px -2px 5px gray, -2px 2px 5px gray;
}
}
}