-
-
-
-
+
Revuo Weekly
diff --git a/_sass/layout.scss b/_sass/layout.scss
index b34aa6d..87c603b 100644
--- a/_sass/layout.scss
+++ b/_sass/layout.scss
@@ -52,12 +52,20 @@ body {
#nav-list {
- .nav-actions {
- /* Will turn to flex on mobile */
- display: none;
+ .nav-actions-static {
+ position: absolute;
+ right: 1px;
+ left: 1px;
+ bottom: 1%;
+ }
+
+ .nav-actions-static,
+ .nav-actions-flex {
gap: 12px;
justify-content: center;
align-items: center;
+ /* only *-flex will be overritten if the screen is small */
+ display: flex;
.icon {
padding: 0;
@@ -68,7 +76,6 @@ body {
}
}
-
/* Separator after menu */
&:after {
display: block;
@@ -80,6 +87,8 @@ body {
}
}
+
+
/* Icon menu */
#nav-menu {
diff --git a/_sass/responsive.scss b/_sass/responsive.scss
deleted file mode 100644
index 564fc35..0000000
--- a/_sass/responsive.scss
+++ /dev/null
@@ -1,13 +0,0 @@
-@media (max-width: 700px) {
- #header {
- .action-container {
- display: none !important;
- }
- }
-
- #nav-list {
- .nav-actions {
- display: flex;
- }
- }
-}
\ No newline at end of file
diff --git a/css/main.scss b/css/main.scss
index 1380955..2942a22 100644
--- a/css/main.scss
+++ b/css/main.scss
@@ -3,7 +3,7 @@
---
//Import
-@import "base", "mixin", "typography", "layout", "syntax.scss", "custom.scss", "responsive.scss";
+@import "base", "mixin", "typography", "layout", "syntax.scss", "custom.scss";
// Default Style (Dark)
:root {
@@ -110,6 +110,19 @@
#menu-toggle:checked~#nav {
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
@@ -163,7 +176,7 @@ p.by-line-post {
}
align-items: center;
- display: flex;
+ display: none;
flex-direction: row;
gap: 12px;
height: 36px;
@@ -177,4 +190,4 @@ p.by-line-post {
display: block;
padding-bottom: 0;
}
-}
\ No newline at end of file
+}
diff --git a/img/nostr-icon.png b/img/nostr-icon.png
new file mode 100644
index 0000000..c05ba54
Binary files /dev/null and b/img/nostr-icon.png differ
diff --git a/img/xcom-icon.png b/img/xcom-icon.png
new file mode 100644
index 0000000..ff13cad
Binary files /dev/null and b/img/xcom-icon.png differ
diff --git a/js/main.js b/js/main.js
index 7fed2e7..a343cc3 100644
--- a/js/main.js
+++ b/js/main.js
@@ -20,7 +20,7 @@ checkTheme()
// Make the theme switcher in the hamburger menu on mobile devices work.
if (document.body.clientWidth < 940) {
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.
navActionsContainer.appendChild(themeSwitcher);