Summary Files Commits Branches @commit @diff @stats
path: root / src / styles.css
diff options
context:
space:
mode:
Commit1a89b2f3c72789a9343e393ad35f1c690eff60fb (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-09-11 09:19:33 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-09-11 09:19:33 +0300
Files266b046476993aacbcd17f928486d2b13924874a /src/styles.css
syndamia.com-1a89b2f3c72789a9343e393ad35f1c690eff60fb.tar
syndamia.com-1a89b2f3c72789a9343e393ad35f1c690eff60fb.tar.gz
syndamia.com-1a89b2f3c72789a9343e393ad35f1c690eff60fb.zip
Parent6e2555f0895218e3324cab1e2b79fa019896d7e7 (diff)
Implemented javascript functionality for hiding and unhiding the sidebar on small screens and updated sidebar scalability
1 files changed, 60 insertions, 45 deletions
-rw-r--r--src/styles.css105
diff --git a/src/styles.css b/src/styles.css
index 66e2242..02f6a75 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -348,7 +348,7 @@ dd code {
}
.sidebar {
- width: 11.2em;
+ max-width: 11.2em;
display: flex;
flex-direction: column;
text-align: left;
@@ -434,6 +434,12 @@ dd code {
margin-block-end: calc(1em + 10px);
}
+/* Script-specific styling */
+
+#expandNavbarBtn {
+ display: none;
+}
+
/* Small screen support */
@media screen and (max-width: 610px) {
@@ -442,13 +448,17 @@ dd code {
}
#content-wrapper {
- flex-direction: column-reverse;
+ flex-direction: column;
}
.sidebar {
min-height: auto;
}
+ .sidebar-hidden > :not(.header) {
+ display: none;
+ }
+
#index-contents {
display: initial;
}
@@ -465,6 +475,54 @@ dd code {
table td, table th {
word-break: break-all;
}
+
+ #expandNavbarBtn {
+ display: initial;
+ margin-left: 1.4em;
+ }
+}
+
+/* Script specific styling */
+
+.btn:hover {
+ cursor: pointer;
+}
+
+.clicked-image {
+ position: absolute;
+ width: 100vw;
+ height: 100vh;
+ max-width: none !important;
+ max-height: none !important;
+ border: none;
+ object-fit: contain;
+ left: 0;
+ top: 0;
+ padding: 1em;
+ z-index: 2;
+ background-color: var(--bg-color);
+}
+
+.body-on-clicked-image {
+ overflow: hidden;
+}
+
+#scrollBtn {
+ font-size: 1rem;
+ position: fixed;
+ right: 1em;
+ bottom: 1em;
+ z-index: 1;
+ border: 1px solid;
+ transition-duration: 0.5s;
+ padding: 0.3em;
+
+ display: none;
+}
+
+.setting-btn {
+ vertical-align: middle;
+ border: none !important;
}
/* File tables */
@@ -544,49 +602,6 @@ dd code {
color: #afaf00;
}
-/* Script specific styling */
-
-.btn:hover {
- cursor: pointer;
-}
-
-.clicked-image {
- position: absolute;
- width: 100vw;
- height: 100vh;
- max-width: none !important;
- max-height: none !important;
- border: none;
- object-fit: contain;
- left: 0;
- top: 0;
- padding: 1em;
- z-index: 2;
- background-color: var(--bg-color);
-}
-
-.body-on-clicked-image {
- overflow: hidden;
-}
-
-#scrollBtn {
- font-size: 1rem;
- position: fixed;
- right: 1em;
- bottom: 1em;
- z-index: 1;
- border: 1px solid;
- transition-duration: 0.5s;
- padding: 0.3em;
-
- display: none;
-}
-
-.setting-btn {
- vertical-align: middle;
- border: none !important;
-}
-
/* OpenSans font */
@font-face {