forked from jeremynoesen/Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.css
executable file
·117 lines (100 loc) · 2.21 KB
/
theme.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
/*
This is a custom theme by Jeremy Noesen
*/
@import url('https://fonts.googleapis.com/css2?family=Nunito&display=swap');
@keyframes show {
0% {
opacity: 0;
transform: translateY(2.5vh);
}
100% {
opacity: 1
}
}
body {
background-color: #0d288a;
background-image: linear-gradient(240deg, #0d257c, #09112c);
background-attachment: fixed;
font-family: "Nunito", sans-serif;
color: white;
text-align: center;
line-height: 26px;
font-size: 16px;
font-weight: lighter;
animation-name: show;
animation-duration: 0.2s;
}
/* Add coloring to non-button-box links */
a:link {
color: turquoise;
}
a:visited {
color: hotpink;
}
/* Disallow colors on button boxes, it looks weird */
a.button.box {
color: inherit;
}
.grid {
display: grid;
place-content: center;
grid-gap: 16px;
margin: 5vw auto;
grid-auto-columns: 180px;
grid-auto-rows: 180px;
}
.box {
transition: transform 0.2s cubic-bezier(0.5, 0, 0.25, 2), background-color 0.2s, box-shadow 0.2s cubic-bezier(0.5, 0, 0.25, 2);
padding: 32px;
background-color: #565E8720;
box-shadow: 0 12px 12px #000000BB;
color: inherit;
text-decoration: none;
display: flex;
align-items: center;
justify-content: center;
border-radius: 32px;
overflow: hidden;
}
.box:hover {
background-color: #565E8730;
transform: scale(1.01);
box-shadow: 0 14px 14px #000000AA;
}
.button:hover {
background-color: #4F58877C;
transform: translateY(-6px);
box-shadow: 0 16px 16px #000000AA;
}
::-moz-selection {
color: #0e1736;
background: white;
}
::selection {
color: #0e1736;
background: white;
}
@media screen and (max-width: 1080px) {
.grid {
grid-gap: 2vw;
margin: 2.5vw auto;
grid-auto-columns: 22vw;
grid-auto-rows: 22vw;
}
body {
line-height: 3.25vw;
font-size: 2.25vw;
}
.box {
padding: 4vw;
box-shadow: 0 1.5vw 1.5vw #000000BB;
border-radius: 4vw;
}
.box:hover {
box-shadow: 0 1.75vw 1.75vw #000000AA;
}
.button:hover {
transform: translateY(-0.75vw);
box-shadow: 0 2vw 2vw #000000AA;
}
}