-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.css
151 lines (135 loc) · 2.76 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
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
151
/* @tailwind base; */
/* @tailwind components; */
/* exposing some theme variables */
:root {
--tw-colors-highlight: theme(colors.highlight);
--tw-colors-text-primary: theme(colors.text.primary);
--tw-background: theme(colors.background);
@media (max-width: theme(screens.md)) {
--tw-background: #122438;
}
}
h1:focus-visible {
outline: none;
}
html,
body {
min-height: 100vh;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
html {
font-size: 16px;
}
body {
background: -moz-linear-gradient(
110deg,
rgb(18, 3, 41) 0%,
var(--tw-background) 25%,
var(--tw-background) 42%,
rgba(10, 4, 23, 1) 100%
);
background: -webkit-linear-gradient(
110deg,
rgb(18, 3, 41) 0%,
var(--tw-background) 25%,
var(--tw-background) 42%,
rgba(10, 4, 23, 1) 100%
);
background: linear-gradient(
110deg,
rgb(18, 3, 41) 0%,
var(--tw-background) 25%,
var(--tw-background) 42%,
rgba(10, 4, 23, 1) 100%
);
margin: 0;
color: theme(colors.text.primary);
font-family: theme(fontFamily.serif);
background-size: cover;
background-position: center;
position: relative;
overscroll-behavior: none;
}
@media (max-width: 960px) {
body {
/* fixing white background on home page on mobile after squirrel jump animation */
background: var(--tw-background);
background: -webkit-linear-gradient(
to left,
#243b55,
#141e30
); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(
to left,
#243b55,
#141e30
); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
}
/* Tag styles */
.tags-h1,
.tags-body,
.tags-div,
.tags-div-end {
position: relative;
}
.tags-div-end {
padding-bottom: 25px;
}
.tags-body {
padding: 45px 0;
}
.tags-h1::after,
.tags-h1::before,
.tags-body::after,
.tags-body::before,
.tags-div::after,
.tags-div::before,
.tags-div-end::after {
color: theme(colors.text.subtle1);
position: absolute;
left: 0;
font-family: 'League Script', 'Inconsolata', cursive;
font-weight: 900;
font-size: 0.8rem;
text-transform: none;
}
/*
!!!!
IMPORTANT: Font for these is injected inside viteconfig to only download the characters needed
Make sure to update it if content changes
!!!!
*/
.tags-body::before {
content: '<body>';
top: 20px;
}
.tags-body::after {
content: '</body>';
bottom: 20px;
}
.tags-body::before,
.tags-body::after {
left: 2%;
}
.tags-h1::before {
content: '<h1>';
bottom: 100%;
}
.tags-h1::after {
content: '</h1>';
top: calc(100% + 0.4rem);
}
.tags-div::before {
content: '<div>';
top: 0;
}
.tags-div::after,
.tags-div-end::after {
content: '</div>';
bottom: 0px;
}
/* Tag styles end */
@tailwind utilities;