all repos — archie @ fa13b875f49ce3d659ede60103ba25df199a56f4

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  border-bottom: none;
175}
176.border {
177  margin-left: 0.5rem;
178  margin-right: 0.5rem;
179  border: 1px solid;
180}
181.footer-info {
182  padding: var(--footer-padding);
183}
184
185/* Common */
186.title h1 {
187  margin-bottom: 0;
188}
189
190time {
191  color: grey;
192}
193
194/* Posts */
195article .title {
196  margin-bottom: 1em;
197}
198
199
200/* Callout */
201.callout {
202  background-color: var(--callouctcolor);
203  color: #fff;
204  padding: 1em;
205}
206
207.callout p {
208  font-family: 'IBM Plex Mono', monospace;
209  margin: 0;
210}
211
212.callout a {
213  border-bottom: 3px solid #fff;
214}
215
216.callout a:hover {
217  background-color: #fff;
218  color: var(--callouctcolor);
219}
220
221.site-description {
222display: flex;
223justify-content: space-between;
224}
225.tags li::before{
226  content: "🏷 ";
227}
228.tags a{
229  border-bottom: 3px solid var(--maincolor); 
230}
231.tags a:hover{
232  color:white;
233  background-color: var(--hovercolor); 
234}
235svg{
236  max-height: 15px;
237}
238.soc:hover{
239  color: white;
240}
241.draft-label{ 
242    color: var(--bordercl);
243    text-decoration: none;
244    padding: 2px 4px;
245    border-radius: 4px;
246    margin-left: 6px;
247    background-color: #f9f2f4;
248}
249.highlight {
250  position: relative;
251  -webkit-overflow-scrolling: touch;
252}
253.highlight pre code[class*="language-"] {
254  -webkit-overflow-scrolling: touch;
255}
256.highlight pre code[class*="language-"]::before {
257  background: black;
258  border-radius: 0 0 0.25rem 0.25rem;
259  color: white;
260  font-size: 12px;
261  letter-spacing: 0.025rem;
262  padding: 0.1rem 0.5rem;
263  position: absolute;
264  right: 1rem;
265  text-align: right;
266  text-transform: uppercase;
267  top: 0;
268}
269
270.highlight pre code[class=language-javaScript]::before,
271.highlight pre code[class="language-js"]::before {
272content: "js";
273background: #f7df1e;
274color: black;
275}
276.highlight pre code[class*='language-yml']::before,
277.highlight pre code[class*='language-yaml']::before {
278content: 'yaml';
279background: #f71e6a;
280color: white;
281}
282.highlight pre code[class*='language-shell']::before,
283.highlight pre code[class*='language-bash']::before,
284.highlight pre code[class*='language-sh']::before {
285content: 'shell';
286background: green;
287color:white
288}
289.highlight pre code[class*='language-json']::before{
290content: 'json';
291background: dodgerblue;
292 color: #000000 
293}
294.highlight pre code[class*='language-python']::before,
295.highlight pre code[class*='language-py']::before {
296content: 'py';
297background: blue;
298color: yellow ;
299}
300.highlight pre code[class*='language-css']::before{
301content: 'css';
302background: cyan;
303color: black ;
304}
305.highlight pre code[class*='language-go']::before{
306content: 'Go';
307background: cyan;
308color: royalblue ;
309}
310.highlight pre code[class*='language-md']::before,
311.highlight pre code[class*='language-md']::before{
312content: 'Markdown';
313background: royalblue;
314color: whitesmoke ;
315}
316
317/* table */
318table {
319  border-spacing: 0;
320  border-collapse: collapse;
321}
322
323table th{
324  padding: 6px 13px;
325  border: 1px solid #dfe2e5;
326  font-size: large;
327}
328
329table td{
330  padding: 6px 13px;
331  border: 1px solid #dfe2e5;
332}