179 lines
3.4 KiB
CSS
179 lines
3.4 KiB
CSS
nav a {
|
|
color: #ffffff;
|
|
opacity: 0.75;
|
|
cursor: pointer;
|
|
}
|
|
nav a:hover,
|
|
nav a:focus {
|
|
opacity: 1;
|
|
}
|
|
|
|
|
|
/* Menu */
|
|
|
|
#light-menu {
|
|
position: fixed; z-index: 10;
|
|
list-style: none;
|
|
width: 140px;
|
|
height: 100%; overflow-y: auto;
|
|
margin: 0; padding: 0;
|
|
text-indent: 0;
|
|
background: #22292c; box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
#logo {
|
|
position: relative; display: block;
|
|
width: 100%;
|
|
margin-bottom: 10px;
|
|
opacity: 1;
|
|
background: -moz-linear-gradient(top, #bf1c11, #ba1203);
|
|
background: -webkit-linear-gradient(top, #bf1c11, #ba1203);
|
|
background: #bf1c11;
|
|
transition: .15s ease;
|
|
}
|
|
#logo img {
|
|
width: 40%;
|
|
margin: 0 0 -4.5px 7px; padding: 0;
|
|
filter: drop-shadow(0 0 2px rgba(0, 0, 0, .0));
|
|
transition: filter .15s ease;
|
|
}
|
|
#logo:hover,
|
|
#logo:focus {
|
|
background: #d72411;
|
|
}
|
|
#logo:hover img,
|
|
#logo:focus img {
|
|
filter: drop-shadow(0 0 2px rgba(0, 0, 0, .7));
|
|
}
|
|
|
|
#light-menu li {
|
|
width: 100%; height: 45px;
|
|
color: #ffffff;
|
|
}
|
|
#light-menu li > a {
|
|
display: flex; flex-direction: row; flex-grow: 0;
|
|
align-items: center; justify-content: flex-start;
|
|
width: 100%; height: 100%;
|
|
transition: opacity .15s ease; /* because Chrome sucks */
|
|
}
|
|
|
|
#light-menu li > a > svg {
|
|
display: block; width: 25px; flex-shrink: 0; flex-grow: 0;
|
|
margin: 0 7px;
|
|
}
|
|
#light-menu li div {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
|
|
/* Overlay */
|
|
#menu {
|
|
position: fixed; z-index: 5;
|
|
left: -160px; width: 300px; /* default: left-to-right animation */
|
|
height: 100%; overflow-x: hidden; overflow-y: auto;
|
|
background: #1c2124; box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
|
transition: .15s ease;
|
|
}
|
|
#menu.opened {
|
|
left: 140px;
|
|
}
|
|
|
|
/* Just apply class="scroll-animation" to menu to change to scroll animation */
|
|
#menu.scroll-animation {
|
|
left: 140px; width: 0;
|
|
}
|
|
#menu.scroll-animation.opened {
|
|
width: 300px;
|
|
}
|
|
|
|
|
|
#menu > div {
|
|
width: 300px;
|
|
padding: 16px;
|
|
display: none;
|
|
}
|
|
#menu > div.opened {
|
|
display: block;
|
|
}
|
|
|
|
#menu h2 {
|
|
margin: 0 0 20px 0;
|
|
font-family: Cantarell; font-weight: bold; font-size: 18px;
|
|
color: #ffffff;
|
|
display: flex; align-items: center;
|
|
}
|
|
#menu h2 a {
|
|
margin: 0;
|
|
font-size: inherit; opacity: inherit;
|
|
}
|
|
#menu h2 > svg {
|
|
width: 32px; vertical-align: middle; margin-right: 8px;
|
|
}
|
|
#menu h2 img {
|
|
height: 48px; vertical-align: middle; margin-right: 10px;
|
|
}
|
|
#menu h2 a:hover,
|
|
#menu h2 a:focus {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
#menu h3 {
|
|
margin: 16px 0;
|
|
font-family: Cantarell; font-weight: bold; font-size: 15px;
|
|
color: #ffffff;
|
|
}
|
|
#menu hr {
|
|
margin: 15px 0;
|
|
border: none;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
#menu ul {
|
|
margin: 0; padding: 0; list-style: none;
|
|
}
|
|
#menu a,
|
|
#menu li {
|
|
display: block; margin: 10px 0;
|
|
transition: opacity .15s ease;
|
|
}
|
|
#menu li {
|
|
color: #b8b8b8;
|
|
}
|
|
#menu li > a {
|
|
display: inline;
|
|
margin: 0; font-style: normal;
|
|
font-size: 13px;
|
|
}
|
|
#menu a > img {
|
|
vertical-align: middle;
|
|
margin-right: 15px;
|
|
}
|
|
#menu a > svg {
|
|
width: 20px; height: 20px; vertical-align: middle;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
#menu form {
|
|
padding: 0 8%;
|
|
}
|
|
#menu form input[type="text"],
|
|
#menu form input[type="password"] {
|
|
margin: 8px 0; padding: 5px 2%;
|
|
font-size: 14px; color: inherit;
|
|
border: none; border-color: #141719;
|
|
border-radius: 2px;
|
|
}
|
|
#menu form input[type="text"]:focus,
|
|
#menu form input[type="password"]:focus {
|
|
background: #ffffff;
|
|
box-shadow: 0 0 0 4px rgba(87, 143, 228, 0.65);
|
|
border-color: #325871;
|
|
}
|
|
#menu form input[type="submit"] {
|
|
width: 100%;
|
|
margin: 8px 0 5px 0;
|
|
}
|
|
#menu form label {
|
|
font-size: 13px; color: #FFFFFF; opacity: .7;
|
|
}
|