hugo-theme-terminal

My Fork of the Terminal Hugo Theme
git clone https://git.repetitions.de/hugo-theme-terminal

main.css (5290B)


  1 html {
  2     box-sizing: border-box;
  3     scroll-behavior: smooth;
  4 }
  5 
  6 *,
  7 *:before,
  8 *:after {
  9     box-sizing: inherit;
 10 }
 11 
 12 body {
 13     margin: 0;
 14     padding: 0;
 15     font-family: 'Fira Code', Monaco, Consolas, Ubuntu Mono, monospace;
 16     font-size: 1rem;
 17     line-height: 1.54;
 18     letter-spacing: -0.02em;
 19     overflow-wrap: break-word;
 20     text-rendering: optimizeLegibility;
 21     -webkit-font-smoothing: antialiased;
 22     font-feature-settings: "liga", "tnum", "zero", "ss01", "locl";
 23     font-variant-ligatures: contextual;
 24     -webkit-overflow-scrolling: touch;
 25     -webkit-text-size-adjust: 100%;
 26 
 27     @media (var(--phone-width)) {
 28         font-size: 1rem;
 29     }
 30 }
 31 
 32 .headings--one-size {
 33     h1 {
 34         line-height: 1.3;
 35         margin-top: 0px;
 36     }
 37 
 38     h2,
 39     h3,
 40     h4,
 41     h5,
 42     h6 {
 43         line-height: 1.3;
 44 
 45         &:not(first-child) {
 46             margin-top: 40px;
 47         }
 48     }
 49 
 50     h1,
 51     h2,
 52     h3 {
 53         font-size: 1.4rem;
 54     }
 55 
 56     h4,
 57     h5,
 58     h6 {
 59         font-size: 1.2rem;
 60     }
 61 }
 62 
 63 a {
 64     color: inherit;
 65 
 66     &:focus {
 67         border-color: var(--color);
 68         outline: 2px solid var(--color);
 69     }
 70 }
 71 
 72 img {
 73     display: block;
 74     max-width: 100%;
 75 
 76     &.left {
 77         margin-right: auto;
 78     }
 79 
 80     &.center {
 81         margin-left: auto;
 82         margin-right: auto;
 83     }
 84 
 85     &.right {
 86         margin-left: auto;
 87     }
 88 }
 89 
 90 p {
 91     margin-bottom: 20px;
 92 }
 93 
 94 figure {
 95     display: table;
 96     max-width: 100%;
 97     margin: 25px 0;
 98 
 99     &.left {
100         margin-right: 25px;
101         float: left;
102     }
103 
104     &.center {
105         margin-left: auto;
106         margin-right: auto;
107     }
108 
109     &.right {
110         margin-left: 25px;
111         float: right;
112     }
113 
114     img {
115         margin-left: auto;
116         margin-right: auto;
117     }
118 
119     figcaption {
120         font-size: 14px;
121         padding: 5px 10px;
122         margin-top: 5px;
123         background: var(--accent);
124         color: var(--bg-color);
125 
126         &.left {
127             text-align: left;
128         }
129 
130         &.center {
131             text-align: center;
132         }
133 
134         &.right {
135             text-align: right;
136         }
137     }
138 }
139 
140 code, kbd {
141     font-family: 'Fira Code', Monaco, Consolas, Ubuntu Mono, monospace !important;
142     font-feature-settings: normal;
143     background: var(--trans-accent);
144     color: var(--accent);
145     padding: 1px 6px;
146     margin: 0 2px;
147     font-size: .95rem;
148 
149     code, kbd {
150         background: transparent;
151         padding: 0;
152         margin: 0;
153     }
154 }
155 
156 pre {
157     background: transparent !important;
158     padding: 20px 10px;
159     margin: 40px 0;
160     font-size: .95rem !important;
161     overflow: auto;
162     border-top: 1px solid var(--border-color);
163     border-bottom: 1px solid var(--border-color);
164 
165     + pre {
166         border-top: 0;
167         margin-top: -40px;
168     }
169 
170     @media (var(--phone-width)) {
171         white-space: pre-wrap;
172         word-wrap: break-word;
173     }
174 
175     code {
176         background: none !important;
177         margin: 0;
178         padding: 0;
179         font-size: inherit;
180         border: none;
181     }
182 }
183 
184 blockquote {
185     // border-top: 1px solid var(--accent);
186     // border-bottom: 1px solid var(--accent);
187     // margin: 40px 0;
188     padding: 5px;
189 
190     @media (var(--phone-width)) {
191         padding-right: 0;
192     }
193 
194     p:first-of-type {
195         margin-top: 0;
196     }
197 
198     p:last-of-type {
199         margin-bottom: 0;
200     }
201 
202     p {
203         position: relative;
204     }
205 
206     p:first-of-type:before {
207         content: '>';
208         display: block;
209         position: absolute;
210         left: -25px;
211         color: var(--accent);
212     }
213 }
214 
215 table {
216     table-layout: auto;
217     border-collapse: collapse;
218     width: 100%;
219     margin: 40px 0;
220 }
221 
222 table,
223 th,
224 td {
225     border: 1px dashed var(--accent);
226     padding: 10px;
227 }
228 
229 th {
230     color: var(--accent);
231 }
232 
233 ul,
234 ol {
235     margin-left: 22px;
236     padding: 0;
237 
238     li {
239         position: relative;
240     }
241 
242     @media (var(--phone-width)) {
243         margin-left: 20px;
244     }
245 }
246 
247 ol {
248     list-style: none;
249     counter-reset: li;
250 
251     > li {
252         counter-increment: li;
253 
254         &:before {
255             content: counter(li);
256             position: absolute;
257             right: calc(100% + 10px);
258             color: var(--accent);
259             display: inline-block;
260             text-align: right;
261         }
262 
263         > ol {
264             margin-left: 38px;
265 
266             > li {
267                 counter-increment: li;
268 
269                 &:before {
270                     content: counters(li, ".") " ";
271                 }
272             }
273         }
274     }
275 }
276 
277 mark {
278     background: var(--accent);
279     color: var(--bg-color);
280 }
281 
282 .container {
283     display: flex;
284     flex-direction: column;
285     padding: 40px;
286     max-width: 864px;
287     min-height: 100vh;
288     border-right: 1px solid var(--border-color);
289 
290     &.full,
291     &.center {
292         border: none;
293         margin: 0 auto;
294     }
295 
296     &.full {
297         max-width: 100%;
298     }
299 
300     @media (var(--phone-width)) {
301         padding: 20px;
302     }
303 
304     @media print {
305         display: initial;
306     }
307 }
308 
309 .content {
310     display: flex;
311     flex-direction: column;
312 
313     margin-top: 2rem;
314     margin-bottom: 2rem;
315 
316     @media print {
317         display: initial;
318     }
319 }
320 
321 hr {
322     width: 100%;
323     border: none;
324     background: var(--border-color);
325     height: 1px;
326 }
327 
328 .hidden {
329     display: none;
330 }
331 
332 sup {
333     line-height: 0;
334 }
335