update burger menu for social acc.s
move responsive.scss to main.scss to fix different acting @media add social media account links to burger menu for; x.com and nitter update CSS formating
This commit is contained in:
parent
7cb7fc7b02
commit
b2da0a9288
7 changed files with 40 additions and 25 deletions
|
@ -1,8 +1,14 @@
|
||||||
<nav {% if site.reverse == true %}id="nav-left"{% else %}id="nav"{% endif %}>
|
<nav {% if site.reverse == true %}id="nav-left"{% else %}id="nav"{% endif %}>
|
||||||
<div id="nav-list">
|
<div id="nav-list">
|
||||||
<div id="nav-actions-container" class="nav-actions">
|
<div class="nav-actions">
|
||||||
|
<div id="nav-actions-flex-container" class="nav-actions-flex">
|
||||||
<a class="icon" href="https://revuo-xmr.com/support/" target="_blank"><img src="/img/donate.png" alt="Donate" title="Donate" /></a>
|
<a class="icon" href="https://revuo-xmr.com/support/" target="_blank"><img src="/img/donate.png" alt="Donate" title="Donate" /></a>
|
||||||
<a class="icon" href="/atom.xml" target="_blank"><img src="/img/rss_1.png" alt="ATOM Feed" title="ATOM Feed" /></a>
|
<a class="icon" href="/atom.xml" target="_blank"><img src="/img/rss_1.png" alt="ATOM Feed" title="ATOM Feed" /></a>
|
||||||
|
</div>
|
||||||
|
<div id="nav-actions-static-container" class="nav-actions-static">
|
||||||
|
<a class="icon" href="https://primal.net/p/npub1tn8spk9zhxrctg2qym3gj8r7eq2wk6z3phrl8304wc54vt9qam4qvzw6jx" target="_blank"><img src="/img/nostr-icon.png" alt="Nostr" title="Nostr" /></a>
|
||||||
|
<a class="icon" href="https://xcancel.com/revuoxmr" target="_blank"><img src="/img/xcom-icon.png" alt="x.com" title="x.com" /></a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="{{ site.baseurl }}">Revuo Weekly</a>
|
<a href="{{ site.baseurl }}">Revuo Weekly</a>
|
||||||
|
|
||||||
|
|
|
@ -52,12 +52,20 @@ body {
|
||||||
|
|
||||||
#nav-list {
|
#nav-list {
|
||||||
|
|
||||||
.nav-actions {
|
.nav-actions-static {
|
||||||
/* Will turn to flex on mobile */
|
position: absolute;
|
||||||
display: none;
|
right: 1px;
|
||||||
|
left: 1px;
|
||||||
|
bottom: 1%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-actions-static,
|
||||||
|
.nav-actions-flex {
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
/* only *-flex will be overritten if the screen is small */
|
||||||
|
display: flex;
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@ -68,7 +76,6 @@ body {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Separator after menu */
|
/* Separator after menu */
|
||||||
&:after {
|
&:after {
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -80,6 +87,8 @@ body {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Icon menu */
|
/* Icon menu */
|
||||||
|
|
||||||
#nav-menu {
|
#nav-menu {
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
@media (max-width: 700px) {
|
|
||||||
#header {
|
|
||||||
.action-container {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#nav-list {
|
|
||||||
.nav-actions {
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -3,7 +3,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
//Import
|
//Import
|
||||||
@import "base", "mixin", "typography", "layout", "syntax.scss", "custom.scss", "responsive.scss";
|
@import "base", "mixin", "typography", "layout", "syntax.scss", "custom.scss";
|
||||||
|
|
||||||
// Default Style (Dark)
|
// Default Style (Dark)
|
||||||
:root {
|
:root {
|
||||||
|
@ -110,6 +110,19 @@
|
||||||
#menu-toggle:checked~#nav {
|
#menu-toggle:checked~#nav {
|
||||||
width: 30%;
|
width: 30%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Sets burger menu for small screens */
|
||||||
|
#header {
|
||||||
|
.action-container {
|
||||||
|
display: flex !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#nav-list {
|
||||||
|
.nav-actions-flex {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// END menu toggle
|
// END menu toggle
|
||||||
|
@ -163,7 +176,7 @@ p.by-line-post {
|
||||||
}
|
}
|
||||||
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: none;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
|
|
BIN
img/nostr-icon.png
Normal file
BIN
img/nostr-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 841 B |
BIN
img/xcom-icon.png
Normal file
BIN
img/xcom-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
|
@ -20,7 +20,7 @@ checkTheme()
|
||||||
// Make the theme switcher in the hamburger menu on mobile devices work.
|
// Make the theme switcher in the hamburger menu on mobile devices work.
|
||||||
if (document.body.clientWidth < 940) {
|
if (document.body.clientWidth < 940) {
|
||||||
const themeSwitcherLabel = document.getElementById('main-theme-switcher');
|
const themeSwitcherLabel = document.getElementById('main-theme-switcher');
|
||||||
const navActionsContainer = document.getElementById('nav-actions-container');
|
const navActionsContainer = document.getElementById('nav-actions-flex-container');
|
||||||
|
|
||||||
// Move the theme switcher to inside the hamburger menu.
|
// Move the theme switcher to inside the hamburger menu.
|
||||||
navActionsContainer.appendChild(themeSwitcher);
|
navActionsContainer.appendChild(themeSwitcher);
|
||||||
|
|
Loading…
Reference in a new issue