tangled
alpha
login
or
join now
da157.id
/
website
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
rizz up nav
0xda157
3 months ago
b6a80a48
609f93fe
+54
-11
3 changed files
expand all
collapse all
unified
split
sass
style.scss
templates
partials
footer.html
nav.html
+47
-7
sass/style.scss
···
52
52
body {
53
53
margin: 0;
54
54
padding: 0.5rem;
55
55
+
padding-top: 1rem;
55
56
min-height: calc(100vh - 1rem);
56
57
min-height: calc(100dvh - 1rem);
57
58
display: grid;
58
59
grid-template-columns: 1fr min(46rem,90%) 1fr;
59
59
-
grid-template-rows: auto 1fr auto;
60
60
-
& > * {
61
61
-
grid-column: 2;
62
62
-
}
63
63
-
grid-row-gap: .625rem;
60
60
+
grid-template-rows: 1fr auto;
61
61
+
grid-template-areas:
62
62
+
"nav main ."
63
63
+
"nav footer .";
64
64
+
gap: 1rem;
64
65
65
66
.footnotes-list {
66
67
border-top: 1px solid var(--secondary);
···
77
78
}
78
79
79
80
nav {
81
81
+
position: sticky;
82
82
+
top: 0.5rem;
83
83
+
grid-area: nav;
84
84
+
justify-self: end;
85
85
+
height: fit-content;
80
86
display: flex;
81
81
-
margin-top: 1rem;
87
87
+
flex-direction: column;
82
88
gap: 1rem;
83
89
justify-content: space-between;
84
90
flex-wrap: wrap;
85
91
.nav-section {
86
92
display: flex;
93
93
+
flex-direction: column;
87
94
gap: 1rem;
88
95
flex-wrap: wrap;
89
96
}
···
97
104
}
98
105
99
106
main {
107
107
+
grid-area: main;
100
108
padding-inline: 0.5rem;
101
109
height: min-content;
102
110
}
103
111
104
112
footer {
105
105
-
#footer-webrings {
113
113
+
grid-area: footer;
114
114
+
display: flex;
115
115
+
flex-direction: column;
116
116
+
gap: 0.5rem;
117
117
+
118
118
+
#footer-webrings {
106
119
display: flex;
107
120
gap: 0.5rem;
108
121
}
109
122
}
110
123
124
124
+
@media (max-width: 60rem) {
125
125
+
body {
126
126
+
margin-inline: auto;
127
127
+
grid-template-areas: "nav" "main" "footer";
128
128
+
grid-template-columns: 1fr;
129
129
+
grid-template-rows: auto 1fr auto;
130
130
+
}
131
131
+
132
132
+
nav {
133
133
+
position: relative;
134
134
+
justify-self: stretch;
135
135
+
height: auto;
136
136
+
justify-content: space-between;
137
137
+
flex-direction: row;
138
138
+
align-items: center;
139
139
+
140
140
+
flex-wrap: wrap;
141
141
+
.nav-section {
142
142
+
flex-direction: row;
143
143
+
}
144
144
+
}
145
145
+
}
146
146
+
111
147
a {
112
148
color: var(--accent);
113
149
&:visited {
···
128
164
&:hover {
129
165
color: var(--accent);
130
166
}
167
167
+
}
168
168
+
169
169
+
#site-title {
170
170
+
font-size: 1.2rem;
131
171
}
132
172
133
173
.dollcode {
+3
templates/partials/footer.html
···
20
20
</span>
21
21
{%- endfor -%}
22
22
</div>
23
23
+
<div class="footer-dollcode">
24
24
+
<span class="dollcode">▖▖▘▘▌▘▌▌▘▘▘▌▌</span>
25
25
+
</div>
23
26
</footer>
+4
-4
templates/partials/nav.html
···
1
1
<nav>
2
2
-
<div class="nav-section nav-links">
2
2
+
<div class="nav-section nav-left">
3
3
+
<code id="site-title">{{ config.title }}</code>
4
4
+
</div>
5
5
+
<div class="nav-section nav-right">
3
6
{%- for link in config.extra.nav -%}
4
7
<a href="{{ link.url }}">{{ link.name }}</a>
5
8
{%- endfor -%}
6
6
-
</div>
7
7
-
<div class="nav-section nav-dollcode">
8
8
-
<span class="dollcode">▖▖▘▘▌▘▌▌▘▘▘▌▌</span>
9
9
</div>
10
10
</nav>