aboutsummaryrefslogtreecommitdiff
path: root/_sass/media.scss
diff options
context:
space:
mode:
Diffstat (limited to '_sass/media.scss')
-rw-r--r--_sass/media.scss30
1 files changed, 30 insertions, 0 deletions
diff --git a/_sass/media.scss b/_sass/media.scss
new file mode 100644
index 0000000..134d0d4
--- /dev/null
+++ b/_sass/media.scss
@@ -0,0 +1,30 @@
+// no floating toc when screen too narrow
+@media only screen and (max-width: 450px) {
+ aside {
+ float: none;
+ width: unset;
+
+ border-left: none;
+ border-bottom: 1px dashed;
+ margin-left: 0px;
+ }
+}
+
+@media only screen and (prefers-color-scheme: dark) {
+ nav .item.active {
+ text-decoration: underline;
+ font-weight: bold;
+ }
+}
+
+@media print {
+ nav { display: none; }
+
+ .invert {
+ background-color: unset;
+ color: unset;
+ }
+
+ .limitwidth { max-width: 35em; }
+}
+