aboutsummaryrefslogtreecommitdiff
path: root/p/themes/base-theme/template.css
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2021-12-31 13:17:38 +0100
committerGravatar GitHub <noreply@github.com> 2021-12-31 13:17:38 +0100
commit5cac8cce7426bf8fe654bb4bebe586ffc661f68f (patch)
treea1d64ebe30b95264ac77d1e76d9fd714ee2793e6 /p/themes/base-theme/template.css
parentf27b25d9a685bd8cab48540c067685160535f438 (diff)
Improve: Aside slider: close slider when click on the outside of slider (#4061)
* CSS + PHTML * give some grey background * fixed whitespace * fixed RTL * close area just for mobile view
Diffstat (limited to 'p/themes/base-theme/template.css')
-rw-r--r--p/themes/base-theme/template.css17
1 files changed, 17 insertions, 0 deletions
diff --git a/p/themes/base-theme/template.css b/p/themes/base-theme/template.css
index d6c7f3337..5238ebbdb 100644
--- a/p/themes/base-theme/template.css
+++ b/p/themes/base-theme/template.css
@@ -664,6 +664,10 @@ input[type="search"] {
vertical-align: top;
}
+.aside + .close-aside {
+ display: none;
+}
+
/*=== Aside main page */
.aside_feed .category .title {
width: calc(100% - 35px);
@@ -1431,6 +1435,19 @@ input:checked + .slide-container .properties {
display: inline-block;
}
+ .aside:target + .close-aside {
+ background: rgba(0, 0, 0, 0.2);
+ display: block;
+ font-size: 0;
+ position: fixed;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ cursor: pointer;
+ z-index: 99;
+ }
+
.nav_mobile {
display: block;
}