Browse Source

CSS podle Anet -- 1. verze

remotes/origin/vysl deploy-prod-2015-09-11-11-02-xlfd
Jan Musílek 9 years ago
parent
commit
1c9ae330dd
  1. 16
      mamweb/static/css/bootstrap.css
  2. 94
      mamweb/static/css/mamweb.css
  3. BIN
      mamweb/static/images/header-bg.png
  4. BIN
      mamweb/static/images/logo.png
  5. BIN
      mamweb/static/images/menu-bg-horizontal.png
  6. BIN
      mamweb/static/images/menu-bg-vertical.png
  7. BIN
      mamweb/static/images/submenu-bg-horizontal.png
  8. BIN
      mamweb/static/images/submenu-bg-vertical.png
  9. 27
      mamweb/templates/base.html

16
mamweb/static/css/bootstrap.css

@ -1403,11 +1403,11 @@ pre code {
width: 970px; width: 970px;
} }
} }
@media (min-width: 1200px) { /*@media (min-width: 1200px) {
.container { .container {
width: 1170px; width: 1170px;
} }
} }*/
.container-fluid { .container-fluid {
padding-right: 15px; padding-right: 15px;
padding-left: 15px; padding-left: 15px;
@ -1896,7 +1896,7 @@ pre code {
margin-left: 0; margin-left: 0;
} }
} }
@media (min-width: 1200px) { /*@media (min-width: 1200px) {
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
float: left; float: left;
} }
@ -2053,7 +2053,7 @@ pre code {
.col-lg-offset-0 { .col-lg-offset-0 {
margin-left: 0; margin-left: 0;
} }
} }*/
table { table {
background-color: transparent; background-color: transparent;
} }
@ -6232,7 +6232,7 @@ button.close {
display: inline-block !important; display: inline-block !important;
} }
} }
@media (min-width: 1200px) { /*@media (min-width: 1200px) {
.visible-lg { .visible-lg {
display: block !important; display: block !important;
} }
@ -6261,7 +6261,7 @@ button.close {
.visible-lg-inline-block { .visible-lg-inline-block {
display: inline-block !important; display: inline-block !important;
} }
} }*/
@media (max-width: 767px) { @media (max-width: 767px) {
.hidden-xs { .hidden-xs {
display: none !important; display: none !important;
@ -6277,11 +6277,11 @@ button.close {
display: none !important; display: none !important;
} }
} }
@media (min-width: 1200px) { /*@media (min-width: 1200px) {
.hidden-lg { .hidden-lg {
display: none !important; display: none !important;
} }
} }*/
.visible-print { .visible-print {
display: none !important; display: none !important;
} }

94
mamweb/static/css/mamweb.css

@ -33,6 +33,18 @@ table .border-b {
border: solid 2px; border: solid 2px;
} }
div.container {
background-color: #fff8eb;
padding: 0px;
}
div.content {
padding: 15px 30px;
}
h2 {
margin-top: 0px;
}
/* Comments */ /* Comments */
@ -43,36 +55,17 @@ table .border-b {
/* Headline & Header */ /* Headline & Header */
#headline {
padding: 6px 10px;
font-size: 150%;
font-weight: 400;
background: #00c322; /* @mamgreen */
}
#header { #header {
position: relative; position: relative;
z-index: -1;
}
.header-lg {
font-size: 250%; font-size: 250%;
background-color: rgba(255,195,0,0.8); background: url("../images/header-bg.png") no-repeat left top;
height: 220px; height: 353px;
position: relative; top: -1px;
} }
.header-md {
font-size: 250%;
background-color: rgba(255,195,0,0.8);
height: 220px;
position: relative;
}
#header img.logo { #header img.logo {
position: absolute; position: absolute;
top: 25px; top: 20px;
left: 25px; left: 45px;
height: 110px;
} }
#header h1 { #header h1 {
font-size: 130%; font-size: 130%;
@ -91,9 +84,10 @@ table .border-b {
/* Menu */ /* Menu */
#menu { #menu {
background: #00c322; /* @mamgreen */ position: relative;
border-bottom-left-radius: 8px; top: -1px;
border-bottom-right-radius: 8px; background: url("../images/menu-bg-vertical.png") no-repeat left top, url("../images/menu-bg-horizontal.png") repeat-x left top;
background-color: #ffb52d;
} }
#menu ul { #menu ul {
padding: 0px; padding: 0px;
@ -117,36 +111,41 @@ table .border-b {
#menu a { #menu a {
display: block; display: block;
padding: 8px 10px; padding: 8px 10px;
color: black; color: #006400;
} }
#menu a:hover { #menu a:hover {
background: #ffb000; background: url("../images/submenu-bg-vertical.png") no-repeat left top, url("../images/submenu-bg-horizontal.png") repeat-x left top;
border-bottom-left-radius: 8px; background-color: #ffa500;
border-bottom-right-radius: 8px;
text-decoration: none; text-decoration: none;
color: #003c00;
}
#menu a.selected {
color: #003c00;
} }
#submenu { #submenu {
/*border: 1px solid black;*/ position: relative;
top: -1px;
background: url("../images/submenu-bg-vertical.png") no-repeat left top, url("../images/submenu-bg-horizontal.png") repeat-x left top;
background-color: #ffa500;
} }
#submenu ul { #submenu ul {
padding: 0px 0px; padding: 0px 15px;
margin: 20px 0px 20px 0px; font-size: 150%;
background: #00c322; /* @mamgreen */ font-weight: 400;
border-radius: 8px;
list-style-position: inside;
width: 100%;
} }
#submenu li { #submenu li {
border-radius: 0px; padding: 6px 20px;
padding: 6px 15px; display: inline-block;
margin-right: 0px;
font-size: 120%;
} }
#submenu li:hover { #submenu li>a {
background: #ffb000; color: #003c00;
text-decoration: none;
} }
#submenu li:first-child { #submenu li>a:hover {
color: #3c003c;
}
/*#submenu li:first-child {
border-top-left-radius: 7px; border-top-left-radius: 7px;
border-top-right-radius: 7px; border-top-right-radius: 7px;
padding-top: 8px; padding-top: 8px;
@ -156,9 +155,6 @@ table .border-b {
border-bottom-right-radius: 7px; border-bottom-right-radius: 7px;
padding-bottom: 8px; padding-bottom: 8px;
} }
#submenu li>a {
color: #000;
}
#submenu li>a:hover { #submenu li>a:hover {
text-decoration: none; text-decoration: none;
} }*/

BIN
mamweb/static/images/header-bg.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 679 KiB

BIN
mamweb/static/images/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
mamweb/static/images/menu-bg-horizontal.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

BIN
mamweb/static/images/menu-bg-vertical.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 572 B

BIN
mamweb/static/images/submenu-bg-horizontal.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

BIN
mamweb/static/images/submenu-bg-vertical.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

27
mamweb/templates/base.html

@ -33,28 +33,11 @@
{% endif %} {% endif %}
<div class="container"> <div class="container">
<div class='row'>
<div class='col-md-12'>
<div id="headline">
Studentský korespondenční seminář a časopis MFF UK
</div>
</div>
</div>
<div class='row'> <div class='row'>
<div class='col-md-12'> <div class='col-md-12'>
<div id="header"> <div id="header">
<div class='header-lg visible-lg-block'> <img class="logo" src="{% static 'images/logo.png' %}" />
<img class="logo" src="{% static 'images/logocb.png' %}" /> <!--<h1>{% block nadpis1b %}Nadpis 1. úrovně{% endblock %}</h1>-->
<h1>{% block nadpis1a %}Nadpis 1. úrovně{% endblock %}</h1>
<img class="header" src="{% static 'images/liska6.png' %}" />
<!--<a href="/">Korespondenční seminář M&amp;M</a>-->
</div>
<div class='header-md visible-md-block'>
<img class="logo" src="{% static 'images/logocb.png' %}" />
<h1>{% block nadpis1b %}Nadpis 1. úrovně{% endblock %}</h1>
<img class="header" src="{% static 'images/liska6.png' %}" />
<!--<a href="/">Korespondenční seminář M&amp;M</a>-->
</div>
</div> </div>
</div> </div>
</div> </div>
@ -66,13 +49,15 @@
</div> </div>
</div> </div>
<div class='row'> <div class='row'>
<div class='col-md-3'> <div class='col-md-12'>
<div id='submenu'> <div id='submenu'>
{% block submenu %} {% block submenu %}
{% endblock %} {% endblock %}
</div> </div>
</div> </div>
<div class='col-md-9'> </div>
<div class='row content'>
<div class='col-md-12'>
{% block content %} {% block content %}
{% endblock content %} {% endblock content %}
</div> </div>

Loading…
Cancel
Save