Skip to content

Commit ad683d0

Browse files
authored
Minor tweak to css (#89)
1 parent c78e00c commit ad683d0

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

src/layouts/Base.astro

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,16 @@ const {
8989
text-align: center;
9090
font-size: smaller;
9191
padding-bottom: 0.5em;
92+
margin-left: 20px;
93+
margin-right: 20px;
9294
margin-bottom: 0.5em;
9395
border-bottom: 1px solid lightgray;
9496
}
9597

98+
.lang-menu a {
99+
white-space: nowrap;
100+
}
101+
96102
footer {
97103
/* padding: 0px; */
98104
/* margin: 0px; */
@@ -125,6 +131,7 @@ const {
125131
height: 1em;
126132
content: "";
127133
display: inline-block;
134+
margin-left: -1.5em;
128135
margin-right: 0.5em;
129136
}
130137

@@ -136,6 +143,7 @@ const {
136143
height: 1em;
137144
content: "";
138145
display: inline-block;
146+
margin-left: -1.5em;
139147
margin-right: 0.5em;
140148
}
141149

@@ -147,6 +155,7 @@ const {
147155
height: 1em;
148156
content: "";
149157
display: inline-block;
158+
margin-left: -1.5em;
150159
margin-right: 0.5em;
151160
}
152161

@@ -158,6 +167,7 @@ const {
158167
height: 1em;
159168
content: "";
160169
display: inline-block;
170+
margin-left: -1.5em;
161171
margin-right: 0.5em;
162172
}
163173

@@ -169,11 +179,12 @@ const {
169179
height: 1em;
170180
content: "";
171181
display: inline-block;
182+
margin-left: -1.5em;
172183
margin-right: 0.5em;
173184
}
174185

175186
.header-icons {
176-
position: absolute;
187+
float: right;
177188
right: 1rem;
178189
z-index: 1000;
179190
display: inline-flex;

src/layouts/Default.astro

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ const languageEntries = Object.entries(languages);
4242
{lockdown_banner ?? "LOCKDOWN"}<br/><span id="countdown">&nbsp;</span>
4343
</div>
4444
<header>
45-
<h1>{title}<span class="header-icons"><a href="https://techhub.social/@keepandroidopen" class="header-icon-link" aria-label="Mastodon" title="Mastodon" rel="me" target="_blank"><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M16.45 17.77c2.77-.33 5.18-2.03 5.49-3.58.47-2.45.44-5.97.44-5.97 0-4.77-3.15-6.17-3.15-6.17-1.58-.72-4.3-1.03-7.13-1.05h-.07c-2.83.02-5.55.33-7.13 1.05 0 0-3.14 1.4-3.14 6.17v.91c-.01.88-.02 1.86 0 2.88.12 4.67.87 9.27 5.2 10.4 2 .53 3.72.64 5.1.57 2.51-.14 3.92-.9 3.92-.9l-.08-1.8s-1.8.56-3.8.5c-2-.08-4.1-.22-4.43-2.66a4.97 4.97 0 0 1-.04-.68s1.96.48 4.44.59c1.51.07 2.94-.09 4.38-.26Zm2.22-3.4h-2.3v-5.6c0-1.19-.5-1.79-1.5-1.79-1.1 0-1.66.71-1.66 2.12v3.07h-2.3V9.1c0-1.4-.55-2.12-1.65-2.12-1 0-1.5.6-1.5 1.78v5.61h-2.3V8.6c0-1.18.3-2.12.9-2.81a3.17 3.17 0 0 1 2.47-1.05c1.18 0 2.07.45 2.66 1.35l.57.96.58-.96a2.97 2.97 0 0 1 2.66-1.35c1.01 0 1.83.36 2.46 1.05.6.7.9 1.63.9 2.81v5.78Z"></path></svg></a><ThemeToggle /></span></h1>
45+
<span class="header-icons"><a href="https://techhub.social/@keepandroidopen" class="header-icon-link" aria-label="Mastodon" title="Mastodon" rel="me" target="_blank"><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M16.45 17.77c2.77-.33 5.18-2.03 5.49-3.58.47-2.45.44-5.97.44-5.97 0-4.77-3.15-6.17-3.15-6.17-1.58-.72-4.3-1.03-7.13-1.05h-.07c-2.83.02-5.55.33-7.13 1.05 0 0-3.14 1.4-3.14 6.17v.91c-.01.88-.02 1.86 0 2.88.12 4.67.87 9.27 5.2 10.4 2 .53 3.72.64 5.1.57 2.51-.14 3.92-.9 3.92-.9l-.08-1.8s-1.8.56-3.8.5c-2-.08-4.1-.22-4.43-2.66a4.97 4.97 0 0 1-.04-.68s1.96.48 4.44.59c1.51.07 2.94-.09 4.38-.26Zm2.22-3.4h-2.3v-5.6c0-1.19-.5-1.79-1.5-1.79-1.1 0-1.66.71-1.66 2.12v3.07h-2.3V9.1c0-1.4-.55-2.12-1.65-2.12-1 0-1.5.6-1.5 1.78v5.61h-2.3V8.6c0-1.18.3-2.12.9-2.81a3.17 3.17 0 0 1 2.47-1.05c1.18 0 2.07.45 2.66 1.35l.57.96.58-.96a2.97 2.97 0 0 1 2.66-1.35c1.01 0 1.83.36 2.46 1.05.6.7.9 1.63.9 2.81v5.78Z"></path></svg></a><ThemeToggle /></span>
46+
<h1>{title}</h1>
4647
<div class="lang-menu">
4748
{languageEntries.map(([_code, { label, path }], i) => (
4849
<>
@@ -57,7 +58,7 @@ const languageEntries = Object.entries(languages);
5758
</main>
5859
<footer>
5960
<div style="display: flex; flex-wrap: wrap; justify-content: space-between; padding-top: 2em; margin-left: auto; margin-right: auto;">
60-
<div style="flex: 1; min-width: 22em; margin: 5px;">
61+
<div style="flex: 1; min-width: 22em; margin: 20px;">
6162
<h4 style="margin-top: 0; margin-bottom: 10px; font-size: 16px;">
6263
{contact_header}
6364
</h4>
@@ -67,7 +68,7 @@ const languageEntries = Object.entries(languages);
6768
<li style="list-style: none; margin-bottom: 5px;">{site_problems_header}: <a target="_blank" href="https://github.com/keepandroidopen/keepandroidopen.github.io/issues" style="text-decoration: none;">{site_report_issues}</a></li>
6869
</ul>
6970
</div>
70-
<div style="flex: 3; min-width: 300px; margin: 20px;">
71+
<div style="flex: 3; min-width: 280px; margin: 20px;">
7172
<p><Fragment set:html={markdownify(site_disclaimer)} /></p>
7273
<p><Fragment set:html={markdownify(site_privacy)} /></p>
7374
<p>

0 commit comments

Comments
 (0)