diff options
Diffstat (limited to 'static/theme.css')
| -rw-r--r-- | static/theme.css | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/static/theme.css b/static/theme.css index 54e7f93..0dcbd1a 100644 --- a/static/theme.css +++ b/static/theme.css @@ -520,6 +520,10 @@ footer p a:hover { font-size: 17px; } +.topnav a:not(:first-child) { + display: none; +} + /* Change the color of links on hover */ .topnav a:hover { background-color: #ddd; @@ -534,28 +538,21 @@ footer p a:hover { /* Hide the link that should open and close the topnav on small screens */ .topnav .icon { - display: none; + float: right; + display: block; } -/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */ -@media screen and (max-width: 600px) { - .topnav a:not(:first-child) {display: none;} - .topnav a.icon { - float: right; - display: block; - } + +.topnav.responsive { + position: relative; +} +.topnav.responsive a.icon { + position: absolute; + right: 0; + top: 0; } -/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */ -@media screen and (max-width: 600px) { - .topnav.responsive {position: relative;} - .topnav.responsive a.icon { - position: absolute; - right: 0; - top: 0; - } - .topnav.responsive a { - float: none; - display: block; - text-align: left; - } +.topnav.responsive a { + float: none; + display: block; + text-align: left; } |
