Skip to content

Commit a1a729d

Browse files
committed
Improve font size and overflow handling
1 parent d8e6565 commit a1a729d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

style.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ body {
44
align-items: center;
55
font-family: Open Sans,Arial;
66
color: #454545;
7-
font-size: 100% !important;
8-
max-width: 1000px;
7+
max-width: min(1000px, 100vw);
98
margin: 0 auto;
109
padding: 1em;
1110
line-height: 1.4;
@@ -15,6 +14,7 @@ body {
1514
-webkit-hyphens: auto;
1615
-ms-hyphens: auto;
1716
hyphens: auto;
17+
font-size: min(3.2vw, 1em);
1818
}
1919
.last-updated {
2020
font-size: 0.8em;
@@ -24,6 +24,7 @@ body {
2424
display: flex;
2525
flex-direction: column;
2626
align-items: center;
27+
max-width: 100%;
2728
}
2829
.header .title {
2930
display: block;
@@ -54,6 +55,8 @@ body {
5455
display: flex;
5556
flex-direction: row;
5657
justify-content: center;
58+
max-width: 100%;
59+
overflow-x: auto;
5760
}
5861
a.link {
5962
display: flex;
@@ -84,6 +87,8 @@ a.link:active {
8487
border-radius: 0.5em;
8588
margin-top: 0.5em;
8689
margin-bottom: 0.5em;
90+
max-width: 100%;
91+
overflow-x: auto;
8792
}
8893
.tab:first-child {
8994
border-top-left-radius: 0.5em;
@@ -119,7 +124,7 @@ a.link:active {
119124

120125
.content {
121126
display: flex;
122-
max-width: 800px;
127+
max-width: min(800px, 100%);
123128
flex-direction: column;
124129
align-items: stretch;
125130
text-align: justify;
@@ -183,5 +188,4 @@ video {
183188

184189
button {
185190
color: #454545;
186-
font-size: 100% !important;
187191
}

0 commit comments

Comments
 (0)