Skip to content

Commit 64bd832

Browse files
committed
Fix(css): Changing colors and fixing mobile header image location.
1 parent 4733152 commit 64bd832

File tree

4 files changed

+86
-11
lines changed

4 files changed

+86
-11
lines changed

html/_footer.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<hr>
22

33
<footer>
4-
<h3>Made with Vim and Go</h3>
4+
<h3>made with vim and go</h3>
55
<nav>
66
<ul>
7-
<li><a href="https://github.com/mini-eggs/mini-eggs.github.io">Source</a></li>
8-
<li><a href="/rss">RSS</a></li>
7+
<li><a href="https://github.com/mini-eggs/mini-eggs.github.io">source</a></li>
8+
<li><a href="/rss">rss</a></li>
99
</ul>
1010
</nav>
1111
</footer>

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package main
1+
package handler
22

33
import (
44
"net/http"

static/css/main.css

Lines changed: 81 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
border: 0;
66
font-family: Segoe UI,SegoeUI,"Helvetica Neue",Helvetica,Arial,sans-serif;
77
line-height: 1.4;
8+
color: #2c3e50;
89
}
910

1011

1112
body {
1213
text-align: center;
1314
padding-top: 50px;
1415
padding-bottom: 50px;
15-
background: lightgrey;
16+
background: white;
1617
}
1718

1819
body > * {
@@ -28,7 +29,6 @@ body > * {
2829

2930
hr {
3031
background: blue;
31-
border-radius: 4px;
3232
height: 4px;
3333
overflow: hidden;
3434
}
@@ -39,7 +39,37 @@ main article * {
3939
}
4040

4141
main article h1 {
42-
font-size: 36px;
42+
font-size: 38px;
43+
}
44+
45+
main article h2 {
46+
font-size: 34px;
47+
}
48+
49+
main article h3 {
50+
font-size: 30px;
51+
}
52+
53+
main article h4 {
54+
font-size: 26px;
55+
}
56+
57+
main article h5 {
58+
font-size: 22px;
59+
}
60+
61+
main article h6 {
62+
font-size: 18px;
63+
}
64+
65+
main article h1,
66+
main article h2,
67+
main article h3,
68+
main article h4,
69+
main article h5,
70+
main article h6 {
71+
color: blue;
72+
font-weight: 900;
4373
}
4474

4575
main {
@@ -113,7 +143,7 @@ main ul .image-container .text {
113143

114144
main ul .image-container .text h3 {
115145
color: black;
116-
font-size: 36px;
146+
font-size: 38px;
117147
line-height: 42px;
118148
text-align: center;
119149
padding: 30px;
@@ -140,7 +170,7 @@ img {
140170
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
141171
border-radius: 4px;
142172
overflow: hidden;
143-
background-color: rgba(0,0,0,0.25);
173+
background-color: rgba(0,0,0,0.1);
144174
}
145175

146176
.image-container img {
@@ -158,9 +188,10 @@ img {
158188
code {
159189
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
160190
padding: 15px;
161-
background: white;
191+
background: rgba(0, 0, 0, 0.1);
162192
display: block;
163193
border-radius: 4px;
194+
overflow: auto;
164195
}
165196

166197
blockquote {
@@ -203,6 +234,7 @@ main article .desc a:hover {
203234

204235
main {
205236
padding: 15px;
237+
margin-bottom: 0;
206238
}
207239

208240
main ul .image-container .text h3 {
@@ -216,4 +248,47 @@ main article .desc a:hover {
216248
.image-container {
217249
margin-bottom: 15px;
218250
}
251+
252+
footer,
253+
header {
254+
flex-direction: column;
255+
align-items: flex-start;
256+
background-position: right center;
257+
background: none;
258+
position: relative;
259+
}
260+
261+
header:after {
262+
content: " ";
263+
z-index: 1;
264+
background: url('/static/img/Artboard 5.svg');
265+
background-size: auto 125%;
266+
background-position: center center;
267+
background-repeat: no-repeat;
268+
width: 50%;
269+
height: 100%;
270+
position: absolute;
271+
top: 0;
272+
right: 0;
273+
}
274+
275+
header > * {
276+
position: relative;
277+
z-index: 2;
278+
}
279+
280+
footer nav li a:after,
281+
header nav li a:after {
282+
content: ",";
283+
}
284+
285+
footer nav li:last-of-type a:after,
286+
header nav li:last-of-type a:after {
287+
content: "";
288+
}
289+
290+
footer nav li:first-of-type a,
291+
header nav li:first-of-type a{
292+
margin-left: 0;
293+
}
219294
}

static/img/Artboard 5.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)