From 3f8756148d35e3d1616513b0f13a8f9c4290b292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Tue, 20 Feb 2024 19:34:50 +0100 Subject: [PATCH] =?UTF-8?q?Drobn=C3=A9=20=C3=BApravy=20CSSek?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mamweb/static/css/base.css | 4 ++-- mamweb/static/css/layout.css | 36 +++++++++++++++++------------------ mamweb/static/css/modules.css | 17 ++++++++--------- 3 files changed, 28 insertions(+), 29 deletions(-) diff --git a/mamweb/static/css/base.css b/mamweb/static/css/base.css index 70adda46..49fc894b 100644 --- a/mamweb/static/css/base.css +++ b/mamweb/static/css/base.css @@ -39,7 +39,7 @@ h5 { font-size: 140%; } h6 { font-size: 120%; } h1 { - margin-top: 0px; + margin-top: 0; } /*****************/ @@ -55,7 +55,7 @@ a:focus, a:hover, a:active { } .button { - margin: 10px 0px 10px 0px; + margin: 10px 0 10px 0; padding: 4px 0; /*vertikální centování textu*/ text-align: center; background-color: var(--hlavni-oranzova); diff --git a/mamweb/static/css/layout.css b/mamweb/static/css/layout.css index cabecd94..ad88656f 100644 --- a/mamweb/static/css/layout.css +++ b/mamweb/static/css/layout.css @@ -13,7 +13,7 @@ div.container { margin: auto; min-height: 100vh; position: relative; - padding: 0px; + padding: 0; } @@ -101,7 +101,7 @@ div.content { #footer p.license { text-align: center; font-weight: 400; - bottom: 0px; + bottom: 0; } #footer p.license a { @@ -110,7 +110,7 @@ div.content { p.license-mobile { display: none; - margin-bottom: 0px; + margin-bottom: 0; } @media (max-width: 650px) { @@ -207,7 +207,7 @@ a.login-ref-admin { #header { width: 100%; - top: 0px; + top: 0; background-image: none; } @@ -217,10 +217,10 @@ a.login-ref-admin { #header img.logo-mobile { display: block; - top: 0px; - left: 0px; + top: 0; + left: 0; width: 100%; - filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.4)); + filter: drop-shadow(0px 0 5px rgba(0, 0, 0, 0.4)); margin-bottom: 3px; } } @@ -246,7 +246,7 @@ div.dropdown-backdrop { /* tohle způsobuje, že funguje mobilní menu */ ul.menu { width: 100%; - padding: 0px; + padding: 0; margin-top: -5px; /* posune celé menu nahoru (pak potřeba zvětšit mezeru mezi menu a submenu) */ font-variant: small-caps; @@ -259,7 +259,7 @@ ul.menu a { } ul.menu li { - margin: 0px; + margin: 0; display: inline-block; width: 16.666667%; text-align: center; @@ -294,7 +294,7 @@ ul.submenu { ul.submenu li { width: auto; - padding: 0px 20px 0px 20px; + padding: 0 20px 0 20px; display: inline-block; } ul.submenu li>a { @@ -327,7 +327,7 @@ ul.submenu li.active>a, .parentactive ul li:first-child>a { } ul.submenu li { - margin-top: 0px; /* aby se spolu s textem hlavního menu neposunoval níže i text submenu */ + margin-top: 0; /* aby se spolu s textem hlavního menu neposunoval níže i text submenu */ } ul.submenu { @@ -346,7 +346,7 @@ ul.submenu li.active>a, .parentactive ul li:first-child>a { } ul.submenu li { - margin-top: 0px; /* aby se spolu s textem hlavního menu neposunoval níže i text submenu */ + margin-top: 0; /* aby se spolu s textem hlavního menu neposunoval níže i text submenu */ } ul.submenu { @@ -414,8 +414,8 @@ ul.submenu li.active>a, .parentactive ul li:first-child>a { background-color: var(--hlavni-oranzova); font-variant: small-caps; font-size: 160%; - border-radius: 0px; - border-width: 0px; + border-radius: 0; + border-width: 0; width: 100%; text-align: right; } @@ -514,7 +514,7 @@ body.suprodweb:before, body.suprodweb:after { background: red; } } .novinka_obrazek { - margin: 10px 0px 10px 0px; + margin: 10px 0 10px 0; width: 100%; } @@ -635,7 +635,7 @@ div.cislo_pole { div.seznam_orgu h3 { text-align: center; margin-top: 10px; - margin-bottom: 0px; + margin-bottom: 0; } div.org_email { @@ -665,8 +665,8 @@ div.zadani_termin { } div.zadani_termin .datum { - color:var(--hlavni-oranzova); - margin:0px; + color: var(--hlavni-oranzova); + margin: 0; } #obrazek_cisla_archiv { diff --git a/mamweb/static/css/modules.css b/mamweb/static/css/modules.css index 24984f67..0675e688 100644 --- a/mamweb/static/css/modules.css +++ b/mamweb/static/css/modules.css @@ -18,12 +18,12 @@ } .mam-org-only .mam-org-only { - border: 0px; + border: 0; } li.mam-org-only { - padding: 3px 0px; - margin: -2px 0px; + padding: 3px 0; + margin: -2px 0; } /**********************************/ @@ -144,8 +144,8 @@ div.cislo_odkazy a:hover { } div.cislo_odkazy ul { - margin: 0px; - padding: 0px; + margin: 0; + padding: 0; } /***********************/ @@ -357,12 +357,11 @@ table#reseni.form td, table#reseni.form tr { display:none; text-shadow: 0 1px 0 #fff; background-color: #f0f0f0 ; - border-color: #dbdbdb; position:absolute; z-index:100; - border:1px; - border-style:solid; border-width:1px; + border-color: #dbdbdb; + border-style:solid; border-radius: 5px; padding:3px; top:50px; @@ -385,7 +384,7 @@ textarea.feedback { ul.form { list-style-type: none; - padding-left: 0px; + padding-left: 0; } label.field-label { font-weight: normal;