Mk3johnson (Talk | contribs) |
Mk3johnson (Talk | contribs) |
||
(32 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Uppsala/css_removal}} | {{Uppsala/css_removal}} | ||
{{Uppsala/javascript/iGemRemoval_js}} | {{Uppsala/javascript/iGemRemoval_js}} | ||
− | + | {{Uppsala/main_css}} | |
<html> | <html> | ||
Line 7: | Line 7: | ||
<style type="text/css" rel="stylesheet"> | <style type="text/css" rel="stylesheet"> | ||
:root { | :root { | ||
− | + | --nav-mobile-width: 100%; | |
− | + | --toggler-size: 37px; | |
− | + | --toggler-line-number: 3; | |
− | + | --toggler-line-size: 7px; | |
− | + | /* --toggler-line-size: calc(var(--toggler-size) / (var(--toggler-line-number) + var(--toggler-line-number) - 1)); */ | |
− | + | --toggler-offset-left: 20px; | |
− | + | --toggler-offset-top: 40px; | |
− | + | --toggler-color: Tomato; | |
+ | /* --toggler-color-hover: #29363B; */ | ||
+ | --toggler-color-hover: wheat; | ||
} | } | ||
+ | |||
+ | |||
+ | @import url('https://fonts.googleapis.com/css?family=Raleway|Roboto'); | ||
+ | |||
+ | |||
+ | html { | ||
+ | @import url('https://fonts.googleapis.com/css?family=Raleway|Roboto'); | ||
+ | } | ||
+ | |||
* { | * { | ||
Line 24: | Line 35: | ||
} | } | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
@media screen and (min-width: 20em) { | @media screen and (min-width: 20em) { | ||
− | + | ul#menu-mobile li.mobile-list-item a.mobile-list-link ul.mobile-nav-ul { | |
font-size: calc(0.8rem + 0.4 * (100vw - 20em) / 55); | font-size: calc(0.8rem + 0.4 * (100vw - 20em) / 55); | ||
} | } | ||
} | } | ||
@media screen and (min-width: 75em) { | @media screen and (min-width: 75em) { | ||
− | + | ul#menu-mobile li.mobile-list-item a.mobile-list-link ul.mobile-nav-ul { | |
font-size: 1.2rem; | font-size: 1.2rem; | ||
} | } | ||
Line 44: | Line 60: | ||
.wrapper-for-mobile { | .wrapper-for-mobile { | ||
min-width: 100vw; | min-width: 100vw; | ||
− | background: | + | background: transparent; |
display: flex; | display: flex; | ||
} | } | ||
Line 82: | Line 98: | ||
.mobile-list-link { | .mobile-list-link { | ||
− | + | font-family: 'Roboto', sans-serif; | |
− | + | color: white; | |
+ | font-weight: 80; | ||
text-decoration: none; | text-decoration: none; | ||
list-style: none; | list-style: none; | ||
Line 107: | Line 124: | ||
} | } | ||
− | .menu-toggler-line { | + | |
− | + | .menu-toggler-line { | |
− | + | height: 6px; | |
− | + | background: var(--toggler-color); | |
− | + | position: absolute; | |
− | + | border-radius: 10px; | |
− | + | left: 0; | |
− | + | right: 0; | |
− | } | + | transition: all .25s ease-out; |
+ | } | ||
+ | |||
+ | |||
+ | |||
.menu-toggler-line:nth-child(1) { | .menu-toggler-line:nth-child(1) { | ||
top: calc(var(--toggler-line-size) * 1 + (var(--toggler-line-size) * (1 - 2))); | top: calc(var(--toggler-line-size) * 1 + (var(--toggler-line-size) * (1 - 2))); | ||
Line 155: | Line 176: | ||
height: calc(100vh - 50px); | height: calc(100vh - 50px); | ||
} | } | ||
+ | |||
+ | |||
+ | ul.mobile-nav-ul > li { | ||
+ | color: white; | ||
+ | } | ||
+ | |||
+ | |||
+ | ul.mobile-nav-ul > li a { | ||
+ | font-family: 'Railway', sans-serif; | ||
+ | color: white; | ||
+ | font-size: calc(2vw + 1em); | ||
+ | line-height: initial; | ||
+ | padding-left: calc(2vw - -10px); | ||
+ | margin-left: 0px; | ||
+ | } | ||
+ | |||
+ | .nav-text-style { | ||
+ | /* font-family: 'Roboto', sans-serif; */ | ||
+ | text-shadow: 0px 0px 1px #eee; | ||
+ | /* font-family: 'Raleway', sans-serif; */ | ||
+ | } | ||
+ | |||
+ | a.mobile-list-link { | ||
+ | text-shadow: 0px 0px 1px #eee; | ||
+ | } | ||
+ | |||
+ | |||
+ | a.mobile-list-link:visited { | ||
+ | color: white; | ||
+ | } | ||
+ | |||
+ | |||
</style> | </style> | ||
+ | |||
+ | |||
</head> | </head> | ||
+ | |||
+ | |||
+ | |||
<body> | <body> | ||
<div class="wrapper-for-mobile"> | <div class="wrapper-for-mobile"> | ||
− | + | <input type="checkbox" id="nav-mobile-toggle" class="input-nav-toggler" value="1" /> | |
+ | |||
<label for="nav-mobile-toggle" id="nav-mobile-toggleLabel" class="menu-toggler" role="button" aria-pressed="false" aria-expanded="false" aria-label="Navigation button"> | <label for="nav-mobile-toggle" id="nav-mobile-toggleLabel" class="menu-toggler" role="button" aria-pressed="false" aria-expanded="false" aria-label="Navigation button"> | ||
− | + | <span class="menu-toggler-line"></span> | |
− | + | <span class="menu-toggler-line"></span> | |
− | + | <span class="menu-toggler-line"></span> | |
</label> | </label> | ||
+ | |||
+ | |||
<!-- Navigation for mobile --> | <!-- Navigation for mobile --> | ||
− | <nav id="nav-mobile" class="nav-mobile" role="navigation" aria-labelledby="nav-mobile-toggleLabel" | + | <nav id="nav-mobile" class="nav-mobile" role="navigation" aria-labelledby="nav-mobile-toggleLabel" hidden="true"> |
<ul id="menu-mobile" class="menu-nav-mobile" role="menu-mobile" aria-orientation="vertical"> | <ul id="menu-mobile" class="menu-nav-mobile" role="menu-mobile" aria-orientation="vertical"> | ||
− | <li class="mobile-list-item" role"none"><a class="mobile-list-link" href=" | + | <li class="mobile-list-item" role"none"><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Project </a></li> |
<ul class="mobile-nav-ul"> | <ul class="mobile-nav-ul"> | ||
− | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | |
</ul> | </ul> | ||
<li class="mobile-list-item" role"none"><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Team </a></li> | <li class="mobile-list-item" role"none"><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Team </a></li> | ||
<ul class="mobile-nav-ul"> | <ul class="mobile-nav-ul"> | ||
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
+ | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | ||
</ul> | </ul> | ||
<li class="mobile-list-item" role"none"><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Modelling </a></li> | <li class="mobile-list-item" role"none"><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Modelling </a></li> | ||
<ul class="mobile-nav-ul"> | <ul class="mobile-nav-ul"> | ||
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | |
</ul> | </ul> | ||
<li class="mobile-list-item" role"none"><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Notebook </a></li> | <li class="mobile-list-item" role"none"><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Notebook </a></li> | ||
<ul class="mobile-nav-ul"> | <ul class="mobile-nav-ul"> | ||
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | |
</ul> | </ul> | ||
<li class="mobile-list-item" role"none"><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | <li class="mobile-list-item" role"none"><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | ||
<ul class="mobile-nav-ul"> | <ul class="mobile-nav-ul"> | ||
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | |
− | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | |
</ul> | </ul> | ||
<li class="mobile-list-item" role"none"><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Human Practice </a></li> | <li class="mobile-list-item" role"none"><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Human Practice </a></li> | ||
<ul class="mobile-nav-ul"> | <ul class="mobile-nav-ul"> | ||
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> |
− | + | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | |
− | <li><a class="mobile-list-link" href="#" role="menuitem" tabindex="-1"> Parts </a></li> | + | |
</ul> | </ul> | ||
</ul> | </ul> | ||
Line 236: | Line 291: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<script> | <script> |
Latest revision as of 23:58, 11 October 2018