summaryrefslogtreecommitdiff
path: root/alabaster-lite/css
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2023-11-25 16:38:20 -0500
committerFrederick Yin <fkfd@fkfd.me>2023-11-25 16:38:20 -0500
commitea24059bb0de208607f1d584cc09707650c5d90d (patch)
tree28cc94f33c5b6becbb80b73ceb307239abf4b8d8 /alabaster-lite/css
parent8b7affb9896d8d68fc37bc81ace19cb05d0f2eba (diff)
sidebar shows up on mobile
Diffstat (limited to 'alabaster-lite/css')
-rw-r--r--alabaster-lite/css/fkfd.css24
1 files changed, 20 insertions, 4 deletions
diff --git a/alabaster-lite/css/fkfd.css b/alabaster-lite/css/fkfd.css
index aa27b35..901dcaa 100644
--- a/alabaster-lite/css/fkfd.css
+++ b/alabaster-lite/css/fkfd.css
@@ -135,6 +135,17 @@ div.footer a {
}
}
+@media screen and (max-width: 870px) {
+ div.sphinxsidebar {
+ float: none;
+ width: 100%;
+ margin: 0 -20px 0;
+ padding: 0 20px;
+ background-color: transparent;
+ color: #ccc;
+ }
+}
+
/*
* Custom home page for fkfd.me
* Created on 2022-12-28
@@ -150,7 +161,7 @@ div.footer a {
.webring-block-container {
display: grid;
gap: 0px;
- grid-template-columns: 120px 120px 120px;
+ grid-template-columns: 60px 60px 60px;
}
@media screen and (max-width: 870px) {
@@ -171,8 +182,6 @@ div.footer a {
.category-icon, .webring-icon {
display: block;
- width: 120px;
- height: 120px;
background-color: #3E4349;
background-size: contain;
background-repeat: no-repeat;
@@ -182,7 +191,14 @@ div.footer a {
-webkit-mask-repeat: no-repeat;
}
-@media screen and (max-width: 870px) {
+.category-icon {
+ width: 120px;
+ height: 120px;
+}
+
+.webring-icon {
+ width: 60px;
+ height: 60px;
}
@media (prefers-color-scheme: dark) {