Skip to content

Commit 30c04ba

Browse files
chore: update css
Signed-off-by: Henry Gressmann <[email protected]>
1 parent 12aa273 commit 30c04ba

File tree

11 files changed

+168
-254
lines changed

11 files changed

+168
-254
lines changed

config.toml

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,27 @@
1-
base_url = "https://blog.henrygressmann.de"
2-
build_search_index = true
3-
compile_sass = true
4-
description = "a blog about software development, technology and other stuff"
5-
generate_feed = true
1+
base_url="https://blog.henrygressmann.de"
2+
build_search_index=true
3+
compile_sass=true
4+
description="a blog about software development, technology and other stuff"
5+
generate_feed=true
66

7-
taxonomies = [
8-
{name = "tags"},
9-
{name = "series", feed = true},
10-
]
7+
taxonomies=[{name="tags"}, {name="series", feed=true}]
118

12-
title = "henry's blog"
9+
title="henry's blog"
1310

1411
[markdown]
15-
extra_syntaxes_and_themes = ["highlight_themes", "syntaxes"]
16-
highlight_code = true
17-
highlight_theme = "dracula"
12+
extra_syntaxes_and_themes=["highlight_themes", "syntaxes"]
13+
highlight_code=true
14+
highlight_theme="dracula"
1815

1916
[extra]
20-
accent_color = "blue"
21-
background_color = "green"
22-
23-
logo_text = "henry's blog"
17+
accent_color="blue"
18+
background_color="green"
2419

2520
# Whether to show links to earlier and later posts
2621
# on each post page (defaults to true).
27-
enable_post_view_navigation = true
22+
enable_post_view_navigation=true
2823

2924
# The text shown at the bottom of a post,
3025
# before earlier/later post links.
3126
# Defaults to "Thanks for reading! Read other posts?"
32-
post_view_navigation_prompt = "Thanks for reading! Read other posts?"
27+
post_view_navigation_prompt="Thanks for reading! Read other posts?"

content/rust-os/1-hello-riscv/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This series requires pre-requisite knowledge of Rust or a similar programming la
2626

2727
To follow along, I've also created a [GitHub Repo](https://github.com/explodingcamera/pogos) with a branch for each part of the series. You can find the code for this part [here](https://github.com/explodingcamera/pogos/tree/part-1).
2828

29-
{{toc}}
29+
<!-- {{toc}} -->
3030

3131
# CPU Architectures and RISC-V
3232

content/rust-os/2-shell/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The first thing I want to do is create a simple shell that will allow us to run
2020

2121
Like I mentioned in the previous post, we can't yet use heap allocated data structures, so we'll start with implementing a Global Allocator. This will allow us to use APIs like `Box` and `Vec` anywhere in our kernel which will make our lives much easier.
2222

23-
{{toc}}
23+
<!-- {{toc}} -->
2424

2525
# Memory Allocators
2626

sass/footer.scss

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
@import "variables";
22

33
.footer {
4+
position: absolute;
5+
display: flex;
6+
bottom: 0;
47
padding: 40px 0;
58
flex-grow: 0;
6-
opacity: 0.5;
7-
margin-top: auto;
89

910
&__inner {
1011
display: flex;
1112
align-items: center;
1213
justify-content: space-between;
1314
margin: 0;
1415
max-width: 100%;
15-
16-
@media (max-width: $tablet-max-width) {
17-
flex-direction: column;
18-
}
1916
}
2017

2118
a {
@@ -34,28 +31,24 @@
3431
text-align: center;
3532
}
3633

37-
& > a {
38-
margin-right: 10px;
39-
@media (max-width: $tablet-max-width) {
40-
margin: 0;
34+
&>a {
35+
opacity: 0.3;
36+
transition: opacity 0.2s ease-in-out;
37+
text-decoration: none;
38+
39+
&:hover {
40+
opacity: 1;
4141
}
42-
}
4342

44-
@media (max-width: $tablet-max-width) {
45-
flex-direction: column;
46-
margin-top: 10px;
43+
margin-right: 10px;
4744
}
4845
}
4946

50-
.copyright-theme-sep {
51-
@media (max-width: $tablet-max-width) {
52-
display: none;
53-
}
54-
}
47+
5548

5649
.copyright-theme {
5750
@media (max-width: $tablet-max-width) {
5851
font-size: 0.75rem;
5952
}
6053
}
61-
}
54+
}

sass/header.scss

Lines changed: 15 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -13,88 +13,27 @@
1313
}
1414

1515
.header {
16-
display: flex;
17-
flex-direction: column;
18-
position: relative;
16+
height: 4rem;
1917

20-
&__inner {
18+
ul {
19+
list-style: none;
2120
display: flex;
22-
align-items: center;
23-
justify-content: space-between;
24-
}
25-
26-
&__logo {
27-
display: flex;
28-
flex: 1;
29-
// margin: 0 20px;
30-
31-
display: flex;
32-
// justify-content: center;
33-
34-
// &:after {
35-
// content: '';
36-
// background: repeating-linear-gradient(90deg, var(--accent), var(--accent) 2px, transparent 0, transparent 16px);
37-
// display: block;
38-
// width: 100%;
39-
// right: 10px;
40-
// }
41-
42-
a {
43-
flex: 0 0 auto;
44-
max-width: 100%;
45-
}
46-
}
21+
gap: .5rem;
4722

48-
.menu {
49-
margin: 20px 0;
23+
li {
24+
color: var(--color);
25+
font-size: 2rem;
26+
opacity: .3;
27+
transition: opacity 0.2s ease-in-out;
5028

51-
&__inner {
52-
display: flex;
53-
flex-wrap: wrap;
54-
list-style: none;
55-
margin: 0;
56-
padding: 0;
57-
58-
li {
59-
&.active {
60-
color: var(--accent-alpha-70);
61-
}
62-
63-
&:not(:last-of-type) {
64-
margin-right: 20px;
65-
margin-bottom: 10px;
66-
flex: 0 0 auto;
67-
}
29+
a {
30+
text-decoration: none;
6831
}
69-
}
7032

71-
&__sub-inner {
72-
position: relative;
73-
list-style: none;
74-
padding: 0;
75-
margin: 0;
76-
77-
&:not(:only-child) {
78-
margin-left: 20px;
79-
}
80-
81-
&-more {
82-
@include menu;
83-
top: 35px;
84-
left: 0;
85-
86-
&-trigger {
87-
color: var(--accent);
88-
user-select: none;
89-
cursor: pointer;
90-
}
91-
92-
li {
93-
margin: 0;
94-
padding: 5px;
95-
white-space: nowrap;
96-
}
33+
&:hover,
34+
&.active {
35+
opacity: 0.6;
9736
}
9837
}
9938
}
100-
}
39+
}

sass/logo.scss

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
.logo {
2-
color: var(--accent);
3-
4-
color: var(--accent);
5-
background: linear-gradient(123deg, #00ffe8 30%, #effbff 100%);
6-
-webkit-background-clip: text;
7-
background-clip: text;
8-
-webkit-text-fill-color: transparent;
9-
-webkit-box-decoration-break: clone;
10-
box-decoration-break: clone;
11-
2+
color: var(--color);
123
display: flex;
134
align-items: center;
145
text-decoration: none;
15-
}
6+
font-size: 3rem;
7+
margin: 0;
8+
opacity: .3;
9+
padding: .8rem 1.4rem;
10+
}

0 commit comments

Comments
 (0)