Difference between revisions of "Template:Freiburg/MenubarTest"
Line 441: | Line 441: | ||
} /* end media query*/ | } /* end media query*/ | ||
− | + | /* Styles for smallnav */ | |
− | + | /* Clearfix */ | |
− | + | .clearfix:before, | |
− | + | .clearfix:after { | |
+ | content: " "; | ||
+ | display: table; | ||
+ | } | ||
+ | .clearfix:after { | ||
+ | clear: both; | ||
+ | } | ||
+ | .clearfix { | ||
+ | *zoom: 1; | ||
} | } | ||
− | + | /* Basic Styles */ | |
− | + | body { | |
+ | background-color: #ece8e5; | ||
+ | } | ||
#smallnav { | #smallnav { | ||
height: 40px; | height: 40px; | ||
Line 455: | Line 465: | ||
background: #455868; | background: #455868; | ||
font-size: 11pt; | font-size: 11pt; | ||
+ | font-family: 'PT Sans', Arial, sans-serif; | ||
font-weight: bold; | font-weight: bold; | ||
position: relative; | position: relative; | ||
border-bottom: 2px solid #283744; | border-bottom: 2px solid #283744; | ||
} | } | ||
− | |||
#smallnav ul { | #smallnav ul { | ||
padding: 0; | padding: 0; | ||
Line 466: | Line 476: | ||
height: 40px; | height: 40px; | ||
} | } | ||
− | |||
− | |||
#smallnav li { | #smallnav li { | ||
display: inline; | display: inline; | ||
float: left; | float: left; | ||
} | } | ||
− | |||
− | |||
#smallnav a { | #smallnav a { | ||
color: #fff; | color: #fff; | ||
Line 483: | Line 489: | ||
text-shadow: 1px 1px 0px #283744; | text-shadow: 1px 1px 0px #283744; | ||
} | } | ||
− | |||
#smallnav li a { | #smallnav li a { | ||
border-right: 1px solid #576979; | border-right: 1px solid #576979; | ||
Line 492: | Line 497: | ||
#smallnav li:last-child a { | #smallnav li:last-child a { | ||
border-right: 0; | border-right: 0; | ||
− | + | } | |
#smallnav a:hover, #smallnav a:active { | #smallnav a:hover, #smallnav a:active { | ||
background-color: #8c99a4; | background-color: #8c99a4; | ||
} | } | ||
− | + | #smallnav a#pull { | |
− | #smallnav #pull { | + | |
display: none; | display: none; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | /*Styles for screen 600px and lower*/ | |
+ | @media screen and (max-width: 600px) { | ||
+ | #smallnav { | ||
height: auto; | height: auto; | ||
} | } | ||
− | + | #smallnav ul { | |
width: 100%; | width: 100%; | ||
display: block; | display: block; | ||
height: auto; | height: auto; | ||
} | } | ||
− | + | #smallnav li { | |
width: 50%; | width: 50%; | ||
float: left; | float: left; | ||
position: relative; | position: relative; | ||
} | } | ||
− | + | #smallnav li a { | |
border-bottom: 1px solid #576979; | border-bottom: 1px solid #576979; | ||
border-right: 1px solid #576979; | border-right: 1px solid #576979; | ||
} | } | ||
− | + | #smallnav a { | |
text-align: left; | text-align: left; | ||
width: 100%; | width: 100%; | ||
text-indent: 25px; | text-indent: 25px; | ||
} | } | ||
− | } | + | } |
− | + | ||
+ | /*Styles for screen 515px and lower*/ | ||
@media only screen and (max-width : 480px) { | @media only screen and (max-width : 480px) { | ||
− | + | #smallnav { | |
border-bottom: 0; | border-bottom: 0; | ||
} | } | ||
− | + | #smallnav ul { | |
display: none; | display: none; | ||
height: auto; | height: auto; | ||
} | } | ||
− | + | #smallnav a#pull { | |
display: block; | display: block; | ||
background-color: #283744; | background-color: #283744; | ||
Line 557: | Line 546: | ||
position: relative; | position: relative; | ||
} | } | ||
− | + | #smallnav a#pull:after { | |
content:""; | content:""; | ||
− | background: url(' | + | background: url('#smallnav-icon.png') no-repeat; |
width: 30px; | width: 30px; | ||
height: 30px; | height: 30px; | ||
Line 567: | Line 556: | ||
top: 10px; | top: 10px; | ||
} | } | ||
− | } | + | } |
+ | /*Smartphone*/ | ||
@media only screen and (max-width : 320px) { | @media only screen and (max-width : 320px) { | ||
− | + | #smallnav li { | |
display: block; | display: block; | ||
float: none; | float: none; | ||
width: 100%; | width: 100%; | ||
} | } | ||
− | + | #smallnav li a { | |
border-bottom: 1px solid #576979; | border-bottom: 1px solid #576979; | ||
} | } | ||
} | } | ||
+ | |||
</style> | </style> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Revision as of 10:12, 16 September 2015