all repos — archie @ 57ff9c6ee9d44c0aac539c5b0b57c87370995c1a

A minimal Hugo Theme

assets/css/main.css (view raw)

  1/* Markdown */
  2:root{
  3--maincolor: red;
  4--bordercl:rebeccapurple;
  5--callouctcolor:dodgerblue;
  6--hovercolor:navy;
  7--darkMaincolor: #50fa7b;
  8}
  9html {
 10  color: #232333;
 11  font-family: 'Roboto Mono', monospace;
 12  font-size: 15px;
 13  line-height: 1.6em;
 14}
 15body{
 16  display: block;
 17  margin: 8px;
 18}
 19* {
 20  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
 21}
 22
 23::selection {
 24  background: var(--maincolor);
 25  color: #fff;
 26}
 27
 28p {
 29  font-family: 'Fira Sans', sans-serif;
 30  line-height: 1.5;
 31}
 32
 33hr {
 34  border: 0;
 35  border-top: 3px dotted var(--bordercl);
 36  margin: 1em 0;
 37}
 38
 39blockquote {
 40  border-left: 3px solid var(--bordercl);
 41  color: #737373;
 42  margin: 0;
 43  padding-left: 1em;
 44}
 45
 46a {
 47  border-bottom: 3px solid var(--maincolor);
 48  color: inherit;
 49  text-decoration: none;
 50}
 51a:hover {
 52    background-color: var(--hovercolor);
 53    color: #fff;
 54}
 55
 56ul {
 57  list-style: none;
 58  padding-left: 2ch;
 59}
 60ul li {
 61  text-indent: -2ch;
 62}
 63ul > li::before {
 64  content: '* ';
 65  font-weight: bold;
 66}
 67
 68/* Images */
 69img {
 70  border: 3px solid #ececec;
 71  max-width: 100%;
 72}
 73
 74figure {
 75  box-sizing: border-box;
 76  display: inline-block;
 77  margin: 0;
 78  max-width: 100%;
 79}
 80
 81figure img {
 82  max-height: 500px;
 83}
 84
 85@media screen and (min-width: 600px) {
 86  figure {
 87    padding: 0 40px;
 88  }
 89}
 90
 91figure h4 {
 92  font-size: 1rem;
 93  margin: 0;
 94  margin-bottom: 1em;
 95}
 96figure h4::before {
 97  content: '↳ ';
 98}
 99
100/* Code blocks */
101code {
102  background-color: #f1f1f1;
103  padding: .1em .2em;
104}
105
106pre {
107  background-color: #ececec;
108  line-height: 1.4;
109  overflow-x: auto;
110  padding: 1em;
111}
112
113.highlight pre ::selection {
114  background: rgba(255, 255, 255, 0.2);
115  color: inherit;
116}
117
118pre code {
119  background-color: transparent;
120  color: inherit;
121  font-size: 100%;
122  padding: 0;
123}
124
125/* Containers */
126.content {
127  margin-bottom: 4em;
128  margin-left: auto;
129  margin-right: auto;
130  max-width: 800px;
131  padding: 0 1ch;
132  word-wrap: break-word;
133}
134
135/* Header */
136header {
137  display: flex;
138  flex-wrap: wrap;
139  justify-content: space-between;
140  margin: 1em 0;
141}
142
143header .main {
144  font-size: 1.5rem;
145}
146h1, h2, h3, h4, h5, h6 {
147  font-size: 1.2rem;
148  margin-top: 2em;
149}
150
151h1::before { color: var(--maincolor); content: '# '; }
152h2::before { color: var(--maincolor); content: '## '; }
153h3::before { color: var(--maincolor); content: '### '; }
154h4::before { color: var(--maincolor); content: '#### '; }
155h5::before { color: var(--maincolor); content: '##### '; }
156h6::before { color: var(--maincolor); content: '###### '; }
157
158.meta {
159  color: #999;
160  letter-spacing: -0.5px;
161}
162
163/* Footer */
164footer {
165  display: flex;
166  align-items: center;
167  border-top: 0.4rem dotted var(--bordercl);
168  padding: 2rem 0rem;
169  margin-top: 2rem;
170}
171.soc {
172  display: flex;
173  align-items: center;
174  padding-right: 1rem;
175  margin-right: 1rem;
176  border-right: 2px solid;
177  border-bottom: none;
178}
179.footer-info {
180  padding: var(--footer-padding);
181}
182
183/* Common */
184.title h1 {
185  margin-bottom: 0;
186}
187
188time {
189  color: grey;
190}
191
192/* Posts */
193article .title {
194  margin-bottom: 1em;
195}
196
197
198/* Callout */
199.callout {
200  background-color: var(--callouctcolor);
201  color: #fff;
202  padding: 1em;
203}
204
205.callout p {
206  font-family: 'IBM Plex Mono', monospace;
207  margin: 0;
208}
209
210.callout a {
211  border-bottom: 3px solid #fff;
212}
213
214.callout a:hover {
215  background-color: #fff;
216  color: var(--callouctcolor);
217}
218
219.site-description {
220display: flex;
221justify-content: space-between;
222}
223.tags li::before{
224  content: "🏷 ";
225}
226.tags a{
227  border-bottom: 3px solid var(--maincolor); 
228}
229.tags a:hover{
230  color:white;
231  background-color: var(--hovercolor); 
232}
233svg{
234  max-height: 15px;
235}
236.soc:hover{
237  color: white;
238}
239.draft-label{ 
240    color: var(--bordercl);
241    text-decoration: none;
242    padding: 2px 4px;
243    border-radius: 4px;
244    margin-left: 6px;
245    background-color: #f9f2f4;
246}
247.highlight {
248  position: relative;
249  -webkit-overflow-scrolling: touch;
250}
251.highlight pre code[class*="language-"] {
252  -webkit-overflow-scrolling: touch;
253}
254.highlight pre code[class*="language-"]::before {
255  background: black;
256  border-radius: 0 0 0.25rem 0.25rem;
257  color: white;
258  font-size: 12px;
259  letter-spacing: 0.025rem;
260  padding: 0.1rem 0.5rem;
261  position: absolute;
262  right: 1rem;
263  text-align: right;
264  text-transform: uppercase;
265  top: 0;
266}
267
268.highlight pre code[class=language-javaScript]::before,
269.highlight pre code[class="language-js"]::before {
270content: "js";
271background: #f7df1e;
272color: black;
273}
274.highlight pre code[class*='language-yml']::before,
275.highlight pre code[class*='language-yaml']::before {
276content: 'yaml';
277background: #f71e6a;
278color: white;
279}
280.highlight pre code[class*='language-shell']::before,
281.highlight pre code[class*='language-bash']::before,
282.highlight pre code[class*='language-sh']::before {
283content: 'shell';
284background: green;
285color:white
286}
287.highlight pre code[class*='language-json']::before{
288content: 'json';
289background: dodgerblue;
290 color: #000000 
291}
292.highlight pre code[class*='language-python']::before,
293.highlight pre code[class*='language-py']::before {
294content: 'py';
295background: blue;
296color: yellow ;
297}
298.highlight pre code[class*='language-css']::before{
299content: 'css';
300background: cyan;
301color: black ;
302}
303.highlight pre code[class*='language-go']::before{
304content: 'Go';
305background: cyan;
306color: royalblue ;
307}
308.highlight pre code[class*='language-md']::before,
309.highlight pre code[class*='language-md']::before{
310content: 'Markdown';
311background: royalblue;
312color: whitesmoke ;
313}
314
315/* table */
316table {
317  border-spacing: 0;
318  border-collapse: collapse;
319}
320
321table th{
322  padding: 6px 13px;
323  border: 1px solid #dfe2e5;
324  font-size: large;
325}
326
327table td{
328  padding: 6px 13px;
329  border: 1px solid #dfe2e5;
330}