Browse Source

lišta přihlášeného orga (malý displej)

middleware_test
Kateřina Čížková 5 years ago
parent
commit
3cb2b76f15
  1. 10
      mamweb/static/css/mamweb.css
  2. 2
      mamweb/templates/base.html

10
mamweb/static/css/mamweb.css

@ -20,7 +20,7 @@ div.container {
div.login-bar {
background: #6a0043;
color: #fffbf6;
color: #f9d59e;
width: 100%;
position: fixed;
@ -33,12 +33,12 @@ div.login-bar {
}
div.login-bar div {
display: inline-block;
display: inline;
}
a.login-ref-admin {
display: inline;
color: inherit;
color: #fffbf6;
}
/* odkazy a nadpisy */
@ -432,6 +432,10 @@ ul.submenu {
/* malý tablet, mobil */
@media (max-width: 650px) {
#hide-if-small.login-bar-flatpage {
display: none;
}
#title {
display: none;
}

2
mamweb/templates/base.html

@ -43,7 +43,7 @@
{% if view.object.admin_url %}<a class="login-ref-admin" href='{{ view.object.admin_url }}'>[admin]</a>{% endif %}
{% endif %}
{% if flatpage %}
<div class="login-bar-stránka"> Stránka <tt>{{ flatpage.url }}</tt> ({{ flatpage.title }})</div>
<div class="login-bar-flatpage" id="hide-if-small"> Stránka <tt>{{ flatpage.url }}</tt> ({{ flatpage.title }})</div>
<a class="login-ref-admin" href='{% url 'admin:flatpages_flatpage_change' flatpage.id %}'>[admin]</a>
{% endif %}
<a class="login-ref-admin" href='/admin'>[admin mainpage]</a>

Loading…
Cancel
Save