diff --git a/mamweb/static/css/mamweb.css b/mamweb/static/css/mamweb.css index c1c1f106..8c9c5d6c 100644 --- a/mamweb/static/css/mamweb.css +++ b/mamweb/static/css/mamweb.css @@ -11,6 +11,10 @@ div.container { margin: auto; } +div.login-bar { + background: #6a0043; +} + /* odkazy a nadpisy */ a { @@ -180,16 +184,6 @@ h1 { display: none; } -/* -#header h1 { - font-size: 130%; - position: absolute; - top: 125px; - left: 30px; - height: 110px; -} -*/ - #header img.header { margin: -25px 20px 0px 0px; height: 145px; @@ -206,51 +200,6 @@ div.menu.mobile { div.menu.desktop { display: block; } -div.menu { - position: relative; - height: 60px; - top: 12px; -} -/* -div.menu ul { - padding: 0px; - margin: 0px; -} -*/ -div.menu li { - display: inline-block; - border-radius: 0px; - - padding: 6px 0px 0px 0px; - width: 16.66%; - min-width: 140px; - text-align: center; - - font-size: 140%; - font-weight: 400; - font-variant: small-caps; - border-bottom-left-radius: 8px; - border-bottom-right-radius: 8px; -} -div.menu a { - display: block; - padding: 8px 10px; - color: #6f2509; - height: 48px; - text-shadow: none; -} -div.menu a:hover { - color: black; - text-decoration: none; - /*background: url("../images/menu-selected.svg") no-repeat center -4px;*/ -} - -div.menu li.selected a { - /*background: url("../images/menu-selected.svg") no-repeat center -4px; - background-size: 98% 68px;*/ - text-decoration: none; - color: black; -} h1 a:hover { text-decoration: none; @@ -263,100 +212,67 @@ img.decor { /*todo bug při zmenšování okna */ filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.4)); } -/* testování nového menu */ +/* nové menu */ -ul.row-menu { - background-color: green; - display: inline-block; +ul.menu { + width: 100%; + padding: 0px; + margin: 20px 0px 0px 0px; + padding: 6px 0px 0px 0px; + + font-variant: small-caps; } -div.menu-item { - display: inline-block; - background-color: yellow; +ul.menu a { + text-decoration: none; } - -div.menu-item li.active { - background-color: black; +ul.menu li>a:active { + color: black; } -ul.row-menu li { +ul.menu li { display: inline-block; - border-radius: 0px; + width: 16.3%; + - padding: 6px 0px 0px 0px; - width: 16.66%; min-width: 140px; text-align: center; font-size: 140%; font-weight: 400; - font-variant: small-caps; - border-bottom-left-radius: 8px; - border-bottom-right-radius: 8px; } -ul.row-submenu { - position: absolute; - left: -400px; +ul.submenu { + + background-color: #e84e10; + margin: 10px 0px 10px 0px; + padding-top: 10px; + padding-bottom: 5px; + filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.4)); } -ul.row-submenu li { - background-color: red; - padding: 0px; - min-width: 100px; - font-size:80%; - display: inline-block; -} - - - -/* konec testování nového menu */ - -#submenu { - position: relative; - top: 3px; +ul.submenu { background-color: #e84e10; - width: 100%; z-index: 5; -} - -#submenu ul { - font-size: 120%; font-weight: 400; - margin-bottom: 0px; } -#submenu li { - padding: 15px 20px 0px 20px; + +ul.submenu li { + width: auto; + padding: 0px 20px 0px 20px; display: inline-block; } -#submenu li>a { +ul.submenu li>a { color: #f9d59e; text-decoration: none; text-shadow: none; } -#submenu li>a:hover { - color: black; -} - -#submenu li.selected>a { +ul.submenu li>a:hover { color: black; } -/* -#submenu li:first-child { - border-top-left-radius: 7px; - border-top-right-radius: 7px; - padding-top: 8px; -} -#submenu li:last-child { - border-bottom-left-radius: 7px; - border-bottom-right-radius: 7px; - padding-bottom: 8px; -} -#submenu li>a:hover { - text-decoration: none; -}*/ +/* konec nového menu */ div.novinky_name { text-align: right; diff --git a/mamweb/templates/base.html b/mamweb/templates/base.html index c79b0e79..87c04b56 100644 --- a/mamweb/templates/base.html +++ b/mamweb/templates/base.html @@ -12,6 +12,7 @@ + {% include 'autocomplete_light/static.html' %} @@ -36,10 +37,10 @@ -
+
{% if user.is_staff %} -