summaryrefslogtreecommitdiff
path: root/static/theme.css
diff options
context:
space:
mode:
authorJames Mills <prologic@shortcircuit.net.au>2020-03-28 18:40:43 +1000
committerJames Mills <prologic@shortcircuit.net.au>2020-03-28 18:40:43 +1000
commit668f6cba15b06086845ae29da6accfe0e6411d6c (patch)
tree912163a0076cae200f1254c577d17549fcbd5229 /static/theme.css
parent5f209d48323355d2c3746c5c430ae8bb691d8b64 (diff)
Refactored UI to be more mobile friendly with new quality navsv1.1.6
Diffstat (limited to 'static/theme.css')
-rw-r--r--static/theme.css39
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;
}