Line 153: | Line 153: | ||
/* This styles the links within the dropdwn-content */ | /* This styles the links within the dropdwn-content */ | ||
.nav .dropdwn .dropdwn-content a{ | .nav .dropdwn .dropdwn-content a{ | ||
− | + | float: none; | |
+ | padding: 5px; auto; | ||
+ | margin: auto auto; | ||
text-decoration: none; | text-decoration: none; | ||
− | + | color: black; | |
+ | display: block; | ||
+ | min-width: inherit; | ||
+ | font-size: 1.1em; | ||
+ | font-family: "Montserrat"; | ||
+ | font-weight: 400; | ||
+ | letter-spacing: 0.2em; | ||
} | } | ||
+ | |||
/* Add the hover colors and the reveal of the menu */ | /* Add the hover colors and the reveal of the menu */ | ||
.dropdwn:hover { | .dropdwn:hover { | ||
Line 167: | Line 176: | ||
background-color: #dddddd; | background-color: #dddddd; | ||
} | } | ||
+ | |||
/* A sticky class cause this fking mediawiki doesn't have one */ | /* A sticky class cause this fking mediawiki doesn't have one */ | ||
.sticky{ | .sticky{ | ||
Line 173: | Line 183: | ||
left: 0; | left: 0; | ||
} | } | ||
+ | |||
+ | /* Hide the link that should open and close the topnav on small screens */ | ||
+ | .topnav .icon { | ||
+ | display: none; | ||
+ | } | ||
+ | |||
+ | |||
+ | /* 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) { | ||
+ | .nav a:not(:first-child), .dropdown .dropdwn button { | ||
+ | display: none; | ||
+ | } | ||
+ | .nav a.icon { | ||
+ | float: right; | ||
+ | display: block; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | /* 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) { | ||
+ | .nav.responsive {position: relative;} | ||
+ | .nav.responsive a.icon { | ||
+ | position: absolute; | ||
+ | right: 0; | ||
+ | top: 0; | ||
+ | } | ||
+ | .dropdwn-content.responsive a { | ||
+ | float: none; | ||
+ | display: block; | ||
+ | text-align: left; | ||
+ | } | ||
+ | .nav.responsive .dropdwn {float: none;} | ||
+ | .nav.responsive .dropdwn-content {position: relative;} | ||
+ | .nav.responsive .dropdwn .dropdwn button { | ||
+ | display: block; | ||
+ | width: 100%; | ||
+ | text-align: left; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | |||
/* Positioning and sizing of the social media icons */ | /* Positioning and sizing of the social media icons */ | ||
.instalogo{ | .instalogo{ | ||
Line 212: | Line 265: | ||
color: black; | color: black; | ||
} | } | ||
+ | |||
/*Responsive Design*/ | /*Responsive Design*/ | ||
Line 255: | Line 309: | ||
/************************************************** Back to top button style **************************************************/ | /************************************************** Back to top button style **************************************************/ | ||
+ | |||
#BacktoTopBtn { | #BacktoTopBtn { | ||
display: none; | display: none; |
Revision as of 20:14, 15 October 2018
CONNECT WITH US