Skip to content

Commit f08b17e

Browse files
committed
update: put templates' styles all together
1 parent da2a77d commit f08b17e

File tree

6 files changed

+56
-58
lines changed

6 files changed

+56
-58
lines changed

assets/css/baseof.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@
99
}
1010

1111
html,
12-
body,
12+
body {
13+
height: 100dvh;
14+
}
15+
1316
main {
14-
width: clamp(320px, 100vw, 100vw);
1517
height: 100dvh;
18+
display: grid;
1619
}
1720

1821
a {

assets/css/home.css

Lines changed: 0 additions & 39 deletions
This file was deleted.

assets/css/layouts.css

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
main.home {
1+
.home {
22
display: grid;
33
justify-content: center;
44
justify-items: center;
@@ -8,13 +8,56 @@ main.home {
88
align-self: center;
99
}
1010
}
11+
.home.hero {
12+
background-color: #111111;
13+
padding: 2rem 2rem 2rem 1rem;
14+
15+
> h1 {
16+
padding-left: 1rem;
17+
border-left: .3rem solid #fff;
18+
color: #fff;
19+
font-family: var(--font-mono);
20+
&::first-letter {
21+
color: magenta;
22+
}
23+
&::after{
24+
content: "_";
25+
animation: .5s blinking alternate infinite;
26+
}
27+
}
28+
}
29+
.home.links {
30+
display: flex;
31+
flex-direction: column;
32+
gap: 1rem;
33+
34+
font-size: 18px;
35+
}
36+
.home.category {
37+
font-size: 22px;
38+
margin-top: 4rem;
1139

12-
main.section {
1340
display: flex;
1441
flex-direction: column;
42+
gap: 1rem;
43+
}
44+
45+
46+
.section {
47+
grid-template-rows: auto auto 1fr auto;
48+
align-content: start;
49+
justify-items: center;
1550

1651
> h2 {
17-
margin: 2rem auto;
18-
align-self: center;
52+
margin: 4rem;
1953
}
2054
}
55+
56+
57+
.single {
58+
grid-template-rows: min-content auto;
59+
}
60+
.single.breadcrumb {
61+
place-self: center;
62+
margin: 1rem 0;
63+
}

assets/css/partials/article.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
display: flex;
55
flex-direction: column;
6-
76
}
87

98
.article.header {
@@ -19,13 +18,14 @@
1918

2019
> li {
2120
list-style-type: none;
22-
margin: 1rem;
21+
margin: 1rem 0 0 0;
2322
font-size: 1rem;
2423
}
2524
}
2625
}
2726

2827
.article.content {
28+
2929
> * {
3030
margin: 1rem 0 1rem 1rem;
3131
}
@@ -43,7 +43,6 @@
4343
margin-top: .4rem;
4444
content: '';
4545
display: block;
46-
width: 120%;
4746
height: .1rem;
4847
background-color: light-dark(var(--light-minor), var(--dark-minor) 0%);
4948
}

assets/css/partials/list.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
margin: 1rem auto;
33
}
44

5-
.list.articles {
5+
.list.items {
66
overflow: auto;
7+
font-size: 20px;
78
margin: 1rem auto;
89
> li {
910
list-style-type: none;

assets/css/single.css

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)