-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
139 lines (120 loc) · 2.42 KB
/
index.css
File metadata and controls
139 lines (120 loc) · 2.42 KB
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
@font-face {
font-family: 'Space Mono';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/spacemono/v17/i7dPIFZifjKcF5UAWdDRYE58RWq7.woff2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
html {
font-family: "Space Mono", monospace;
--color: #e0e0e0;
--primary: #d54444;
--big-text: 30px;
--medium-text: 26px;
--small-text: 20px;
--code-text: 12px;
--desktop-content-width: 600px;
}
body {
background-color: #20202f;
color: var(--color);
display: flex;
flex-direction: row;
justify-content: center;
}
main {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
min-height: 100vh;
}
.content {
min-width: min(90%, var(--desktop-content-width));
max-width: min(90%, var(--desktop-content-width));
}
h1 {
margin: 40px 0;
font-size: var(--big-text);
}
h2 {
font-weight: 500;
font-size: var(--medium-text);
margin-bottom: 0;
}
ul {
list-style: square;
padding: 20px;
margin-top: 0;
}
li::marker {
color: var(--primary);
border: 0;
}
a {
color: var(--color);
text-transform: lowercase;
font-size: var(--small-text);
text-decoration: double;
}
a:hover {
border-bottom: 1px solid var(--primary);
}
p {
max-width: 100%;
overflow: hidden;
margin-top: 8px;
}
img {
max-width: 100%;
height: auto;
border-radius: 8px;
margin: 20px 0;
}
button {
background-color: var(--primary);
color: var(--color);
border: none;
padding: 10px 20px;
border-radius: 8px;
font-size: var(--small-text);
cursor: pointer;
transition: background-color 0.3s ease;
margin-top: 20px;
}
.codeBlock {
background-color: #2a2a3d;
padding: 20px;
border-radius: 8px;
font-size: var(--code-text);
font-family: "Space Mono", monospace;
max-height: calc(var(--code-text) + 20px);
overflow-y: hidden;
overflow-x: scroll;
white-space: nowrap;
margin: 20px 0;
}
/* remove scroll bar track when not needed */
.codeBlock::-webkit-scrollbar {
height: 8px;
}
.codeBlock::-webkit-scrollbar-thumb {
background: var(--primary);
border-radius: 8px;
}
.titleContainer {
display: flex;
flex-direction: row;
align-items: baseline;
}
.square {
width: var(--big-text);
height: var(--big-text);
background-color: var(--primary);
margin-right: 14px;
transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}
.square:hover {
border-radius: 50%;
}