aboutsummaryrefslogtreecommitdiff
path: root/template/style.css
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2022-07-22 23:27:00 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2022-07-22 23:27:00 +0200
commit45c89b984d3f2b3bf97c8c5ee52e62aa6a4af6dc (patch)
tree098417a178a0fe4e054722a84e696d4574c98b16 /template/style.css
parent773829d1848f1f18ef587ed5608dd72483c9be53 (diff)
downloadmitjafelicijan.com-45c89b984d3f2b3bf97c8c5ee52e62aa6a4af6dc.tar.gz
Added front end search
Diffstat (limited to 'template/style.css')
-rwxr-xr-xtemplate/style.css145
1 files changed, 124 insertions, 21 deletions
diff --git a/template/style.css b/template/style.css
index af0d7bc..ebb2b26 100755
--- a/template/style.css
+++ b/template/style.css
@@ -29,7 +29,7 @@ body {
29 background: white; 29 background: white;
30 /*font-family: 'Times New Roman', Times, serif;*/ 30 /*font-family: 'Times New Roman', Times, serif;*/
31 /*font-family: 'IBM Plex Sans', sans-serif;*/ 31 /*font-family: 'IBM Plex Sans', sans-serif;*/
32 font-family: "SF Pro Text","SF Pro Icons","Helvetica Neue","Helvetica","Arial",sans-serif; 32 font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
33 color: var(--base-color); 33 color: var(--base-color);
34 font-size: var(--base-font-size); 34 font-size: var(--base-font-size);
35 line-height: var(--base-line-heigh); 35 line-height: var(--base-line-heigh);
@@ -54,6 +54,10 @@ hr {
54 color: #000; 54 color: #000;
55} 55}
56 56
57.cursor {
58 cursor: pointer;
59}
60
57/* width of the page */ 61/* width of the page */
58 62
59.wrapper { 63.wrapper {
@@ -74,12 +78,35 @@ a:hover {
74 78
75/* headings */ 79/* headings */
76 80
77h1 { font-size: 220%; line-height: 1.2em; } 81h1 {
78h2 { font-size: 180%; line-height: 1.2em; } 82 font-size: 220%;
79h3 { font-size: 160%; line-height: 1.2em; } 83 line-height: 1.2em;
80h4 { font-size: 140%; line-height: 1.2em; } 84}
81h5 { font-size: 120%; line-height: 1.2em; } 85
82h6 { font-size: 100%; line-height: 1.2em; } 86h2 {
87 font-size: 180%;
88 line-height: 1.2em;
89}
90
91h3 {
92 font-size: 160%;
93 line-height: 1.2em;
94}
95
96h4 {
97 font-size: 140%;
98 line-height: 1.2em;
99}
100
101h5 {
102 font-size: 120%;
103 line-height: 1.2em;
104}
105
106h6 {
107 font-size: 100%;
108 line-height: 1.2em;
109}
83 110
84h1[itemtype="headline"] { 111h1[itemtype="headline"] {
85 padding-bottom: 0; 112 padding-bottom: 0;
@@ -95,12 +122,15 @@ table {
95 width: 100%; 122 width: 100%;
96} 123}
97 124
98table, th, td { 125table,
126th,
127td {
99 border: 1px solid black; 128 border: 1px solid black;
100 text-align: left; 129 text-align: left;
101} 130}
102 131
103th, td { 132th,
133td {
104 padding: 5px 10px; 134 padding: 5px 10px;
105} 135}
106 136
@@ -268,7 +298,7 @@ code {
268 font-weight: 500; 298 font-weight: 500;
269} 299}
270 300
271pre > code { 301pre>code {
272 background: unset; 302 background: unset;
273 padding: unset; 303 padding: unset;
274 304
@@ -285,7 +315,8 @@ pre {
285 margin-block-end: 40px; 315 margin-block-end: 40px;
286} 316}
287 317
288img, video { 318img,
319video {
289 max-width: 100%; 320 max-width: 100%;
290 margin: 30px auto; 321 margin: 30px auto;
291 display: block; 322 display: block;
@@ -357,14 +388,14 @@ audio {
357 388
358/* comments */ 389/* comments */
359 390
360.comments input{ 391.comments input {
361 width: 100%; 392 width: 100%;
362 font: var(--comment-form-font); 393 font: var(--comment-form-font);
363 border: 1px solid #bbb; 394 border: 1px solid #bbb;
364 padding: 5px; 395 padding: 5px;
365} 396}
366 397
367.comments textarea{ 398.comments textarea {
368 width: 100%; 399 width: 100%;
369 height: 100px; 400 height: 100px;
370 resize: vertical; 401 resize: vertical;
@@ -384,13 +415,69 @@ audio {
384 border-top: initial !important; 415 border-top: initial !important;
385} 416}
386 417
418/* search form */
419
420.search-form {
421 position: fixed;
422 top: 120px;
423 left: 50%;
424 margin-left: -250px;
425 width: 500px;
426 padding: 30px;
427 background: #eee;
428 border-radius: 5px;
429}
430
431.blur {
432 position: fixed;
433 top: 0;
434 left: 0;
435 right: 0;
436 bottom: 0;
437 backdrop-filter: blur(15px);
438}
439
440.hidden {
441 display: none;
442}
443
444.search-form input {
445 width: 100%;
446 margin-bottom: 20px;
447 border: 1px solid #ffffff;
448 padding: 5px 10px;
449 border-radius: 3px;
450 outline: none;
451}
452
453.search-form ul {
454 list-style-type: none;
455 padding: 0;
456 margin: 0;
457}
458
459.search-form ul li {
460 margin-bottom: 5px;
461}
462
387/* responsive */ 463/* responsive */
388 464
389@media only screen and (max-width: 960px) { 465@media only screen and (max-width: 960px) {
390 main { padding: 0 20px; } 466 main {
391 footer { padding: 0 20px; } 467 padding: 0 20px;
392 h1[itemtype="headline"] { font-size: 220%; } 468 }
393 .navigation header { padding: 0 20px; } 469
470 footer {
471 padding: 0 20px;
472 }
473
474 h1[itemtype="headline"] {
475 font-size: 220%;
476 }
477
478 .navigation header {
479 padding: 0 20px;
480 }
394 481
395 article img { 482 article img {
396 max-width: 100%; 483 max-width: 100%;
@@ -400,10 +487,26 @@ audio {
400} 487}
401 488
402@media only screen and (max-width: 600px) { 489@media only screen and (max-width: 600px) {
403 .navigation header { display: block; } 490 .navigation header {
404 .navigation header h3 { text-align: center; margin-bottom: 10px; } 491 display: block;
405 .navigation header nav { text-align: center; } 492 }
406 .post-list li a h2 { font-weight: 500; } 493
494 .navigation header h3 {
495 text-align: center;
496 margin-bottom: 10px;
497 }
498
499 .navigation header nav {
500 text-align: center;
501 }
502
503 .post-list li a h2 {
504 font-weight: 500;
505 }
506
507 .search-trigger {
508 display: none;
509 }
407} 510}
408 511
409/* light/dark mode */ 512/* light/dark mode */