Skip to content

Commit 7290ea8

Browse files
style: make site responsive for smaller screens
1 parent f38af05 commit 7290ea8

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

public/styles.css

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,47 @@ td:nth-child(6) {
107107
.expand:hover {
108108
text-decoration: underline;
109109
}
110+
111+
@media (max-width: 768px) {
112+
table {
113+
display: block;
114+
overflow-x: auto;
115+
white-space: nowrap;
116+
}
117+
118+
th, td {
119+
padding: 8px;
120+
font-size: 12px;
121+
}
122+
123+
.container {
124+
padding: 15px;
125+
}
126+
127+
h1 {
128+
font-size: 20px;
129+
}
130+
131+
p {
132+
font-size: 14px;
133+
}
134+
}
135+
136+
@media (max-width: 480px) {
137+
th, td {
138+
padding: 6px;
139+
font-size: 11px;
140+
}
141+
142+
h1 {
143+
font-size: 18px;
144+
}
145+
146+
p {
147+
font-size: 12px;
148+
}
149+
150+
.expand {
151+
font-size: 10px;
152+
}
153+
}

0 commit comments

Comments
 (0)