Browse Source

Přidání zvýrazňování i do adminu.

export_seznamu_prednasek
Jonas Havelka 3 years ago
parent
commit
fb6a7b59ab
  1. 30
      mamweb/static/css/mamweb.css
  2. 29
      mamweb/static/css/rozliseni.css
  3. 3
      mamweb/templates/admin/base_site.html

30
mamweb/static/css/mamweb.css

@ -1,3 +1,5 @@
@import url("rozliseni.css");
@font-face { @font-face {
font-family: 'OpenSans'; font-family: 'OpenSans';
src: url("../fonts/OpenSans/OpenSans-Regular.ttf"); src: url("../fonts/OpenSans/OpenSans-Regular.ttf");
@ -1182,31 +1184,3 @@ div.gdpr {
label[for=id_skola] { label[for=id_skola] {
font-weight: bold; font-weight: bold;
} }
.localweb {
border-left: 20px solid greenyellow;
border-right: 20px solid greenyellow;
}
.localweb .login-bar {
margin-left: -20px;
}
.testweb {
border-left: 20px solid darkorange;
border-right: 20px solid darkorange;
}
.testweb .login-bar {
margin-left: -20px;
}
/* Produkční web z pohledu superuživatele */
.suprodweb {
border-left: 20px solid red;
border-right: 20px solid red;
}
.suprodweb .login-bar {
margin-left: -20px;
}

29
mamweb/static/css/rozliseni.css

@ -0,0 +1,29 @@
/* Rozlišení mezi lokálním, test a produkčním webem */
.localweb {
border-left: 20px solid greenyellow;
border-right: 20px solid greenyellow;
}
.localweb .login-bar {
margin-left: -20px;
}
.testweb {
border-left: 20px solid darkorange;
border-right: 20px solid darkorange;
}
.testweb .login-bar {
margin-left: -20px;
}
/* Produkční web z pohledu superuživatele */
.suprodweb {
border-left: 20px solid red;
border-right: 20px solid red;
}
.suprodweb .login-bar {
margin-left: -20px;
}

3
mamweb/templates/admin/base_site.html

@ -4,8 +4,11 @@
{% block extrahead %} {% block extrahead %}
<link rel="shortcut icon" href="{% static 'favicon.ico' %}" type="image/x-icon"> <link rel="shortcut icon" href="{% static 'favicon.ico' %}" type="image/x-icon">
<script src="{% static 'js/jquery-1.11.1.js' %}"></script> <script src="{% static 'js/jquery-1.11.1.js' %}"></script>
<link href="{% static 'css/rozliseni.css' %}?version=1" rel="stylesheet">
{% endblock %} {% endblock %}
{% block bodyclass %}{{ LOCAL_TEST_PROD }}web{% endblock %}
{% block branding %} {% block branding %}
<h1 id="site-name"><a href="/"> M&M GWP web </a></h1> <h1 id="site-name"><a href="/"> M&M GWP web </a></h1>
{% endblock %} {% endblock %}

Loading…
Cancel
Save