-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
executable file
·150 lines (130 loc) · 2.63 KB
/
style.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
@import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap");
:root {
--backgorund-color: #1d2021;
--text-color: #fbf1c7;
--main-color: #98971a;
--secondary-color: #ebdbb2;
--accent-color: #fabd2f;
}
::selection {
background-color: var(--backgorund-color);
color: var(--text-color);
}
:focus {
transition: none;
outline: 2px solid var(--accent-color);
outline-offset: 3px;
}
* {
margin: 0;
padding: 0;
font-family: Roboto;
text-align: center;
transition: color 0.2s ease-in-out;
}
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 2rem;
background-color: var(--backgorund-color);
color: var(--backgorund-color);
}
div {
padding: 2rem;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 3rem;
}
h1 {
font-size: 3rem;
font-weight: 700;
text-shadow: 1px 2px 3px #00000080;
color: var(--text-color);
}
ul {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
li {
position: relative;
display: flex;
justify-content: left;
align-items: center;
width: 100%;
height: 100%;
list-style: none;
border-radius: 1rem;
box-shadow: 0 0px 0px rgba(0,0,0,0.15);
background: linear-gradient( 0deg, var(--main-color) 20%, var(--accent-color));
background-size: 100% 200%;
animation: gradient-out 0.3s ease-in-out forwards;
}
li::after {
content: "";
position: absolute;
z-index: -1;
width: 100%;
height: 100%;
border-radius: inherit;
box-shadow: 0 0 20px 1px var(--text-color);
opacity: 0;
transition: opacity 0.2s ease-in-out;
}
li:hover {
animation: gradient-in 0.2s ease-in-out forwards;
}
li:hover a {
color: var(--backgorund-color);
}
li:hover::after {
opacity: .15;
}
@keyframes gradient-out {
0% {
background-position: 0 0;
}
100% {
background-position: 100% 100%;
}
}
@keyframes gradient-in {
0% {
background-position: 100% 100%;
}
100% {
background-position: 0 0;
}
}
a {
width: 100%;
text-align: left;
text-decoration: none;
font-size: 1.5rem;
font-weight: 500;
padding: 1rem;
border-radius: 1rem;
color: var(--text-color);
}
a::before {
content: attr(icon) " ";
margin-right: 0.5rem;
}
/* Coming Soon component */
.info {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 1rem;
padding: 2rem 1rem;
border-radius: 1rem;
box-shadow: 0 0px 0px rgba(0,0,0,0.15);
background: linear-gradient( 45deg, var(--main-color), var(--accent-color), var(--main-color));
background-size: 300% 100%;
animation: gradient-out 10s linear forwards;
}