-
Notifications
You must be signed in to change notification settings - Fork 3
/
style.css
126 lines (111 loc) · 1.89 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
:root {
--red: #c96565;
--yellow: #c9b065;
--lime: #8cba5d;
--green: #65b87a;
--cyan: #60b5a8;
--blue: #658fc9;
--purple: #8665c9;
--pink: #c965c1;
--accent: var(--blue);
--background: #fff;
--backdrop: #eee;
--foreground: #444;
--shadow: 0 0 30px 0 rgba(0, 0, 0, 0.2);
}
body {
background: var(--background);
max-width: 900px;
margin: 30px auto;
padding: 40px 20px 20px 30px;
border-radius: 8px;
box-shadow: var(--shadow);
transition: margin 100ms;
}
html {
color: var(--foreground);
background: var(--backdrop);
font-family: "Noto Sans", Roboto, sans-serif;
}
h1 {
font-weight: 600;
}
h2 {
margin-left: 20px;
}
a,
h2,
.accent {
color: var(--accent);
}
a {
text-align: right;
margin-right: 20px;
text-decoration: none;
font-weight: 500;
}
h1 {
text-align: center;
}
.links p > span {
display: block;
}
@media (min-width: 600px) {
.links p {
display: grid;
grid-template-columns: 12ch calc(100% - 12ch);
margin-left: 12px;
margin: 8px 0px;
}
}
@media (max-width: 940px) {
body {
margin-top: 0px;
}
}
/* Animation code was kindly supplied by paradox - github.com/safinsingh */
.gradient {
background: linear-gradient(
to right,
var(--red),
var(--yellow),
var(--lime),
var(--green),
var(--cyan),
var(--blue),
var(--purple),
var(--pink)
);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
animation: rainbow 5s ease infinite;
background-size: 400% 100%;
}
@keyframes rainbow {
0%,
100% {
background-position: 0 0;
}
50% {
background-position: 100% 0;
}
}
/* dark mode */
@media (prefers-color-scheme:dark) {
:root {
--red: #f76e6e;
--yellow: #f7d564;
--lime: #b3f76e;
--green: #6ef790;
--cyan: #6ef7f7;
--blue: #83a0f7;
--purple: #b36ef7;
--pink: #f76ed5;
--accent: var(--blue);
--background: #1c1c1c;
--backdrop: #131313;
--foreground: #ddd;
--shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
}
}