From 7d6e5921b84f5d26d2f9e3a927911402c2d90ddf Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 1 Jul 2023 01:04:37 +0200 Subject: [PATCH] fixes --- build.py | 51 +++++++++++++++++++++++++-------------------------- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/build.py b/build.py index ea26256..c9ebef7 100755 --- a/build.py +++ b/build.py @@ -108,6 +108,14 @@ def main(): ''' css_file = os.path.join(css, 'index.css') css_text = f'''\ +@media screen and (max-width: 1200px) {{ + +body {{ +font-size: 2em; +}} + +}} + body {{ background: rgb(255,255,255); color: rgb(0,0,0); @@ -120,6 +128,8 @@ color: rgb(160,160,160); header {{ // background-image: url("../img/debian.jpeg"); +display: flex; +flex-wrap: wrap; }} .tabs {{ @@ -146,25 +156,28 @@ border: 1px solid; margin: 1em 0; }} .tabs > input:checked + label {{ -background-color: gray; +background: linear-gradient(rgba(128,128,128,1), rgba(128,128,128,0)); }} .tabs > label {{ -padding: 10px; +padding: 1em; }} .tabs > div {{ -padding: 10px; +padding: 1em 0; +}} + +a {{ +text-decoration: none; +}} + +img {{ +border: 1px solid; +border-color: rgb(192,192,192); +border-radius: 1em; +height: 8em; }} /******************************************************************************* -@media screen and (max-width: 1200px) {{ - -html {{ -font-size: 2em; -}} - -}} - * {{ border: 1px solid; }} header {{ background: #800000; }} nav {{ background: #008000; }} @@ -211,17 +224,6 @@ display: flex; flex-wrap: wrap; }} -img {{ -border: 1px solid; -border-color: rgb(192,192,192); -border-radius: 1em; -height: 8em; -}} - -a {{ -text-decoration: none; -}} - nav a {{ background: linear-gradient(rgba(64,64,64,1), rgba(64,64,64,0)); border-color: rgb(128,128,128); @@ -233,9 +235,6 @@ font-weight: bold; padding: .25em .5em; //transition: all .5s; }} -nav a.active {{ -background: linear-gradient(rgba(128,128,128,1), rgba(128,128,128,0)); -}} a {{ color: rgb(0,192,192); @@ -312,7 +311,7 @@ function main() {{ }} const dark = document.getElementById('dark') if (dark) {{ - dark.checked = true + dark.click() }} }}