|
1 | | -@import url('https://fonts.googleapis.com/css2?family=Courier+Prime&family=Cousine&display=swap'); |
| 1 | +/* https://fonts.google.com/share?selection.family=Atkinson+Hyperlegible|Courier+Prime|Cousine|Geologica|Merriweather|Ubuntu+Mono */ |
| 2 | +@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible&family=Courier+Prime&family=Cousine&family=Geologica&family=Merriweather&family=Ubuntu+Mono&display=swap'); |
2 | 3 |
|
3 | 4 | * { |
4 | 5 | box-sizing: border-box; |
5 | 6 | } |
6 | 7 |
|
7 | 8 | /* |
| 9 | +font-family: 'Atkinson Hyperlegible', sans-serif; |
| 10 | +font-family: 'Courier Prime', monospace; |
8 | 11 | font-family: 'Cousine', monospace; |
9 | | -font-family: 'Courier Prime', serif; |
| 12 | +font-family: 'Geologica', sans-serif; |
| 13 | +font-family: 'Merriweather', serif; |
| 14 | +font-family: 'Ubuntu Mono', monospace; |
10 | 15 | */ |
| 16 | + |
11 | 17 | :root { |
12 | 18 | font-size: 16px; |
13 | 19 | --mainFont: 'Cousine', monospace; |
| 20 | + --mainFontSize: 20px; |
14 | 21 | } |
15 | 22 |
|
16 | 23 | @media (max-width: 750px) { |
@@ -50,7 +57,7 @@ textarea { |
50 | 57 |
|
51 | 58 | color: #333; |
52 | 59 | tab-size: 4; |
53 | | - font-size: 1.9rem; |
| 60 | + font-size: var(--mainFontSize); |
54 | 61 | font-family: var(--mainFont), monospace; |
55 | 62 |
|
56 | 63 | word-break: normal; |
@@ -96,3 +103,17 @@ footer span.separator { |
96 | 103 | padding: 0 0.5rem; |
97 | 104 | } |
98 | 105 |
|
| 106 | +select#fontSelector { |
| 107 | + font-family: 'Cousine', monospace; |
| 108 | + padding: 0.1rem 0.2rem; |
| 109 | + border: 1px solid #CCC; |
| 110 | + max-width: 8rem; |
| 111 | + border-right: none; |
| 112 | +} |
| 113 | + |
| 114 | +input#fontSize { |
| 115 | + font-family: 'Cousine', monospace; |
| 116 | + padding: 0.1rem 0 0.1rem 0.3rem; |
| 117 | + border: 1px solid #CCC; |
| 118 | + max-width: 4rem; |
| 119 | +} |
0 commit comments