aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2020-03-30 00:26:48 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2020-03-30 00:26:48 +0200
commit57f20be5f9d3e52abdd6b300b7f03e6f608b8089 (patch)
tree2ab3d7e4d9c5a6818da48cf5181e8f832c2fd67f
parent9ae60d45fb8fc7998cc4de8a4d9d39aebc7ffea1 (diff)
downloadmitjafelicijan.com-57f20be5f9d3e52abdd6b300b7f03e6f608b8089.tar.gz
Added theme to website
-rw-r--r--static/style.css63
1 files changed, 46 insertions, 17 deletions
diff --git a/static/style.css b/static/style.css
index 8d96a37..25a88a4 100644
--- a/static/style.css
+++ b/static/style.css
@@ -1,3 +1,5 @@
1@import url('https://fonts.googleapis.com/css?family=PT+Serif:400,400i,700,700i&display=swap&subset=latin-ext');
2
1* { 3* {
2 box-sizing: border-box; 4 box-sizing: border-box;
3} 5}
@@ -5,12 +7,20 @@
5body { 7body {
6 line-height: 150%; 8 line-height: 150%;
7 margin-bottom: 100px; 9 margin-bottom: 100px;
8 font-family: serif; 10 font-family: 'PT Serif', serif;
9 font-size: 16px; 11 font-size: 20px;
12}
13
14a {
15 color: #000;
16 font-style: italic;
17 text-decoration: underline;
18 text-decoration-style: dotted;
19 text-decoration-color: #ccc;
10} 20}
11 21
12main { 22main {
13 max-width: 760px; 23 max-width: 800px;
14 padding: 20px 30px; 24 padding: 20px 30px;
15 margin: 0 auto; 25 margin: 0 auto;
16} 26}
@@ -28,6 +38,10 @@ header {
28 margin-block-end: 40px; 38 margin-block-end: 40px;
29} 39}
30 40
41p {
42 line-height: 1.5;
43}
44
31blockquote { 45blockquote {
32 position: relative; 46 position: relative;
33 margin-block-start: 30px; 47 margin-block-start: 30px;
@@ -51,17 +65,17 @@ blockquote p {
51} 65}
52 66
53h1 { 67h1 {
54 font-size: 280%; 68 font-size: 260%;
55 line-height: initial; 69 line-height: initial;
56} 70}
57 71
58h2 { 72h2 {
59 font-size: 200%; 73 font-size: 180%;
60 line-height: initial; 74 line-height: initial;
61} 75}
62 76
63h3 { 77h3 {
64 font-size: 160%; 78 font-size: 140%;
65 line-height: initial; 79 line-height: initial;
66} 80}
67 81
@@ -71,17 +85,24 @@ img, video {
71 display: block; 85 display: block;
72} 86}
73 87
74ul.article-list li { 88ul li {
75 margin-bottom: 10px; 89 list-style-type: square;
76} 90}
77 91
78ul.article-list li div { 92ul.article-list {
79 display: flex; 93 margin-block-end: 60px;
94}
95
96ul.article-list li {
97 margin-bottom: 35px;
80} 98}
81 99
82ul.article-list time { 100ul.article-list time {
83 display: inline-block; 101 display: block;
84 min-width: 150px; 102}
103
104ul.article-list li a {
105 font-size: 120%;
85} 106}
86 107
87ul.project-list li { 108ul.project-list li {
@@ -92,10 +113,6 @@ article .info {
92 font-style: oblique; 113 font-style: oblique;
93} 114}
94 115
95pre {
96 overflow: auto;
97}
98
99table { 116table {
100 width: 100%; 117 width: 100%;
101} 118}
@@ -109,8 +126,12 @@ th, td {
109 padding: 5px 10px; 126 padding: 5px 10px;
110} 127}
111 128
129pre {
130 overflow: auto;
131}
132
112code, pre { 133code, pre {
113 font-size: 13px; 134 font-size: 16px;
114} 135}
115 136
116code { 137code {
@@ -140,6 +161,10 @@ p.modified {
140} 161}
141 162
142@media only screen and (max-width:480px) { 163@media only screen and (max-width:480px) {
164 body {
165 font-size: 18px;
166 }
167
143 main { 168 main {
144 padding: 20px; 169 padding: 20px;
145 } 170 }
@@ -183,6 +208,10 @@ p.modified {
183 h3 { 208 h3 {
184 font-size: 160%; 209 font-size: 160%;
185 } 210 }
211
212 code, pre {
213 font-size: 14px;
214 }
186} 215}
187 216
188@media (prefers-color-scheme: light) { 217@media (prefers-color-scheme: light) {