Skip to content

Commit 4832963

Browse files
committed
chore: format files
1 parent d4d22fb commit 4832963

File tree

12 files changed

+205
-184
lines changed

12 files changed

+205
-184
lines changed

config.toml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
1-
# The URL the site will be built for
21
base_url = "https://aidoku.app"
3-
42
title = "Aidoku"
5-
6-
# Whether to automatically compile all Sass files in the sass directory
73
compile_sass = true
8-
9-
# Whether to build a search index to be used later on by a JavaScript library
104
build_search_index = false
115

126
[markdown]
13-
# Whether to do syntax highlighting
14-
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
157
highlight_code = false
168
external_links_target_blank = true
17-
18-
[extra]
19-
# Put all your custom variables here

sass/css/_anchor.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
@import 'theme';
1+
@import "theme";
22

33
.zola-anchor {
4-
opacity: 0;
5-
float: left;
6-
margin-left: -.87em;
7-
padding-right: .23em;
8-
margin-top: .125em;
9-
font-size: .85em;
4+
opacity: 0;
5+
float: left;
6+
margin-left: -0.87em;
7+
padding-right: 0.23em;
8+
margin-top: 0.125em;
9+
font-size: 0.85em;
1010
}
1111

1212
h1:focus .zola-anchor,
@@ -21,5 +21,5 @@ h5:focus .zola-anchor,
2121
h5:hover .zola-anchor,
2222
h6:focus .zola-anchor,
2323
h6:hover .zola-anchor {
24-
opacity: 1
24+
opacity: 1;
2525
}

sass/css/_external-links.scss

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
a:not(.no-external-icon)[target=_blank]::after {
2-
display: inline-block;
3-
vertical-align: middle;
4-
position: relative;
5-
left: 1px;
6-
content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg>');
1+
a:not(.no-external-icon)[target="_blank"]::after {
2+
display: inline-block;
3+
vertical-align: middle;
4+
position: relative;
5+
left: 1px;
6+
content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg>');
77
}
88

9-
a.nav-link[target=_blank]::after {
10-
filter: invert(31%) sepia(47%) saturate(3068%) hue-rotate(327deg) brightness(102%) contrast(101%);
11-
left: 3px;
9+
a.nav-link[target="_blank"]::after {
10+
filter: invert(31%) sepia(47%) saturate(3068%) hue-rotate(327deg)
11+
brightness(102%) contrast(101%);
12+
left: 3px;
1213
}
1314

14-
a:not(.nav-link)[target=_blank]::after {
15-
filter: invert(73%) sepia(8%) saturate(0%) hue-rotate(201deg) brightness(91%) contrast(93%)
15+
a:not(.nav-link)[target="_blank"]::after {
16+
filter: invert(73%) sepia(8%) saturate(0%) hue-rotate(201deg)
17+
brightness(91%) contrast(93%);
1618
}

sass/css/_markdown.scss

Lines changed: 58 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,64 @@
1-
@import 'theme';
1+
@import "theme";
22

3-
// Markdown styles
4-
// .doc {
3+
> h1:first-child {
4+
margin-top: -4.5rem;
5+
}
56

6-
> h1:first-child {
7-
// margin-top: 0;
8-
margin-top: -4.5rem;
9-
}
7+
h1 + h2,
8+
h1 + h3,
9+
h2 + h3 {
10+
margin-top: -3rem;
11+
}
1012

11-
// > h1:first-child + p {
12-
// // margin-top: 1.5rem;
13-
// margin-top: -2.5rem;
14-
// }
13+
h1,
14+
h2,
15+
h3,
16+
h4,
17+
h5,
18+
h6 {
19+
margin: 0;
20+
line-height: 1.25;
21+
font-weight: 500;
1522

16-
h1 + h2,
17-
h1 + h3,
18-
h2 + h3 {
19-
// margin-top: 1.5rem;
20-
// background-color: red;
23+
margin-top: -2.5rem;
24+
padding-top: 4.5rem; // to make scrolling go to correct place
25+
}
26+
h1 {
27+
font-weight: 550;
28+
font-size: 2rem;
29+
}
30+
h2 {
31+
font-size: 1.7rem;
32+
}
33+
h3 {
34+
font-size: 1.3rem;
35+
margin-top: -3rem;
36+
}
37+
h4 {
38+
font-size: 1.1rem;
39+
margin-top: -3.5rem;
40+
line-height: 1.5;
41+
}
2142

22-
margin-top: -3rem;
23-
}
43+
p {
44+
font-weight: 300;
45+
line-height: 1.7;
46+
}
47+
strong {
48+
font-weight: 500;
49+
}
50+
a {
51+
font-weight: 400;
52+
}
2453

25-
h1,
26-
h2,
27-
h3,
28-
h4,
29-
h5,
30-
h6 {
31-
margin: 0;
32-
// margin-top: 2rem;
33-
line-height: 1.25;
34-
font-weight: 500;
35-
36-
margin-top: -2.5rem;
37-
padding-top: 4.5rem; // to make scrolling go to correct place
38-
}
39-
h1 {
40-
font-weight: 550;
41-
font-size: 2rem;
42-
// margin-top: 2rem;
43-
}
44-
h2 {
45-
// margin-top: 1rem;
46-
// margin-top: -4rem;
47-
font-size: 1.7rem;
48-
// padding-bottom: 0.2rem;
49-
}
50-
h3 {
51-
font-size: 1.3rem;
52-
margin-top: -3rem;
53-
}
54-
h4 {
55-
font-size: 1.1rem;
56-
margin-top: -3.5rem;
57-
line-height: 1.5;
58-
}
59-
60-
p {
61-
font-weight: 300;
62-
line-height: 1.7;
63-
}
64-
strong {
65-
font-weight: 500;
66-
}
67-
a {
68-
font-weight: 400;
69-
// color: map-get($map: $tint, $key: 'regular');
70-
}
71-
72-
hr {
73-
height: 1px;
74-
background-color: $separatorColor;
75-
border: unset;
76-
// margin: 1.6rem 0;
77-
margin-top: 2.5rem;
78-
}
79-
ul,
80-
ol {
81-
line-height: 1.7;
82-
font-weight: 300;
83-
}
84-
// }
54+
hr {
55+
height: 1px;
56+
background-color: $separatorColor;
57+
border: unset;
58+
margin-top: 2.5rem;
59+
}
60+
ul,
61+
ol {
62+
line-height: 1.7;
63+
font-weight: 300;
64+
}

sass/css/_navbar.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
@import 'theme';
2-
@import 'external-links';
1+
@import "theme";
2+
@import "external-links";
33

4-
// Navbar
54
.navbar {
65
position: fixed;
76
top: 0;
@@ -75,7 +74,6 @@
7574
}
7675
}
7776

78-
// Hamburger menu
7977
.hamburger {
8078
cursor: pointer;
8179
height: 0.9rem;

sass/css/_sidebar.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
@import 'theme';
1+
@import "theme";
22

3-
// Sidebar
43
.sidebar {
54
position: fixed;
65
width: $sidebarWidth;
@@ -20,15 +19,15 @@
2019
display: none;
2120
flex-direction: column;
2221
row-gap: 1rem;
23-
padding: 1rem 1.5rem;
22+
padding: 1rem 1.5rem;
2423
border-bottom: 1px solid $separatorColor;
25-
24+
2625
.nav-link {
2726
font-weight: 500;
2827
color: $textColor;
2928
display: block;
3029
flex: 1;
31-
30+
3231
&.active {
3332
color: $tintColor;
3433
}
@@ -63,7 +62,8 @@
6362
line-height: 1.4;
6463
padding: 0.25rem 1rem 0.25rem 1.25rem;
6564

66-
&.active, &:hover {
65+
&.active,
66+
&:hover {
6767
color: $tintColor;
6868
}
6969
}
@@ -115,7 +115,7 @@
115115
top: 0;
116116
padding-top: $navbarHeight;
117117
transform: translateX(-100%);
118-
transition: transform .2s ease;
118+
transition: transform 0.2s ease;
119119

120120
.nav-links {
121121
display: flex;

sass/css/_theme.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// Colors
32
$tintColor: #ff375f;
43
$textColor: #4d2a32;

sass/css/global.scss

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
@import 'theme';
2-
@import 'navbar';
3-
@import 'sidebar';
1+
@import "theme";
2+
@import "navbar";
3+
@import "sidebar";
44

5-
html, body {
5+
html,
6+
body {
67
padding: 0;
78
margin: 0;
89
}
910

1011
body {
11-
font-family: -apple-system, BlinkMacSystemFont, Inter, system-ui, sans-serif;
12+
font-family:
13+
-apple-system, BlinkMacSystemFont, Inter, system-ui, sans-serif;
1214
}
1315

1416
a {
@@ -77,7 +79,12 @@ a {
7779
color: #494949;
7880

7981
// headers
80-
> h1, > h2, > h3, > h4, > h5, > h6 {
82+
> h1,
83+
> h2,
84+
> h3,
85+
> h4,
86+
> h5,
87+
> h6 {
8188
margin-top: 1rem;
8289
margin-bottom: -0.4rem;
8390
}

sass/css/home.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
@import 'theme';
1+
@import "theme";
22

3-
// Home page
43
.home {
54
flex: 1;
65
color: $textColor;
76

8-
section, header {
7+
section,
8+
header {
99
display: flex;
1010
justify-content: center;
1111
padding: 2rem 5rem 4rem;
@@ -137,7 +137,8 @@ footer {
137137

138138
@media only screen and (max-width: $TabletSize) {
139139
.home {
140-
header, section {
140+
header,
141+
section {
141142
padding: 2rem 3rem 4rem;
142143
}
143144

sass/css/page.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'theme';
1+
@import "theme";
22

33
// Markdown content container
44
.doc {
@@ -7,9 +7,9 @@
77
max-width: 52rem;
88
margin: 0 auto;
99

10-
@import 'markdown';
11-
@import 'anchor';
12-
@import 'external-links';
10+
@import "markdown";
11+
@import "anchor";
12+
@import "external-links";
1313
}
1414

1515
@media only screen and (max-width: $TabletSize) {

0 commit comments

Comments
 (0)