From 5b28677deb5e6f9499b266fd6206118f6ac96ec0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Sat, 23 Sep 2023 18:39:23 +0200 Subject: [PATCH] styling for .half .left .right .center classes and search --- themes/default.css | 53 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/themes/default.css b/themes/default.css index 0bb82b6..3ab96e6 100644 --- a/themes/default.css +++ b/themes/default.css @@ -152,6 +152,59 @@ li.task.unsure:before { content: '? ' ; color: #880; font-weight: bold; pa -li.task.done:before { content: '\25a3 '; color: #080; } */ +h1 { text-align: center; } +.center { text-align: center; } + +form.search { text-align: center; } +input.search { + min-width: 50%; + max-width: 80%; + max-width: calc(100% - 2.5em); +} +ul.searchresults, ol.searchresults { + margin-top: 1em; + margin-left: auto; margin-right: auto; + width: 100%; max-width: 540pt; + text-align: center; +} + +@media(min-width: 540pt) { + .half { + display: inline-block; + width: 50%; + padding-right: 1em; + vertical-align: top; + } + .right { + float: right; + width: 33%; + margin: .25em 0 .5em 1em; + } + .left { + float: left; + width: 33%; + margin: .25em 1em .5em 0; + } + section.left > :first-child, + section.right > :first-child { + float: none; + margin: 0 0 .5em 0; + } + .left > section:first-child > :first-child, + .right > section:first-child > :first-child { + margin-top: 0; + } + + .left input.search, + .right input.search { + width: 80%; + width: calc(100% - 2.5em); + } + ul.searchresults, ol.searchresults { + min-width: 50%; + } +} + /* === Editor === */ -- 2.39.2