PCv5/app/static/css/navbar.css

178 lines
3.3 KiB
CSS
Raw Normal View History

2016-10-02 17:07:47 +02:00
nav a {
2020-07-13 22:54:34 +02:00
opacity: .8;
2016-10-02 17:07:47 +02:00
cursor: pointer;
}
nav a:hover,
nav a:focus {
opacity: 1;
}
/* Menu */
2019-02-10 10:03:11 +01:00
#light-menu {
position: fixed; z-index: 10;
list-style: none;
width: 110px;
2019-02-10 10:03:11 +01:00
height: 100%; overflow-y: auto;
margin: 0; padding: 0;
text-indent: 0;
2020-07-13 22:54:34 +02:00
background: var(--background); box-shadow: var(--shadow);
2019-02-10 10:03:11 +01:00
}
2016-10-02 17:07:47 +02:00
#logo {
position: relative; display: block;
width: 100%;
margin-bottom: 10px;
opacity: 1;
2020-07-13 22:54:34 +02:00
background: var(--logo-bg);
2016-10-02 17:07:47 +02:00
transition: .15s ease;
}
#logo img {
display: block; height: 65px;
margin: 0 auto; padding: 0;
2016-10-02 17:07:47 +02:00
filter: drop-shadow(0 0 2px rgba(0, 0, 0, .0));
transition: filter .15s ease;
}
#logo:hover,
#logo:focus {
2020-07-13 22:54:34 +02:00
background: var(--logo-active);
2016-10-02 17:07:47 +02:00
}
2019-02-10 10:03:11 +01:00
#logo:hover img,
#logo:focus img {
2020-07-13 22:54:34 +02:00
filter: drop-shadow(var(--logo-shadow));
2016-10-02 17:07:47 +02:00
}
2019-02-10 10:03:11 +01:00
2016-10-02 17:07:47 +02:00
#light-menu li {
width: 100%;
2020-07-13 22:54:34 +02:00
color: var(--text);
2016-10-02 17:07:47 +02:00
}
#light-menu li > a {
display: flex; flex-direction: column; flex-grow: 0;
align-items: center; justify-content: center;
2016-10-02 17:07:47 +02:00
width: 100%; height: 100%;
margin: 20px 0;
2020-07-13 22:54:34 +02:00
color: var(--text);
2017-04-03 01:21:34 +02:00
transition: opacity .15s ease; /* because Chrome sucks */
2016-10-02 17:07:47 +02:00
}
#light-menu li > a > svg {
2019-11-29 22:11:55 +01:00
display: block; width: 25px; flex-shrink: 0; flex-grow: 0;
margin: 0 7px;
2016-10-02 17:07:47 +02:00
}
2020-07-13 22:54:34 +02:00
#light-menu li > a > svg > path {
fill: var(--icons);
}
2016-10-02 17:07:47 +02:00
#light-menu li div {
/*flex-grow: 1;*/
2016-10-02 17:07:47 +02:00
}
/* Overlay */
#menu {
2017-04-03 01:21:34 +02:00
position: fixed; z-index: 5;
left: -190px; width: 300px; /* default: left-to-right animation */
2017-04-03 01:21:34 +02:00
height: 100%; overflow-x: hidden; overflow-y: auto;
2020-07-13 22:54:34 +02:00
background: var(--background); box-shadow: var(--shadow);
2018-02-23 23:34:06 +01:00
transition: .15s ease;
2016-10-02 17:07:47 +02:00
}
#menu.opened {
left: 110px;
2017-04-03 01:21:34 +02:00
}
2019-11-29 22:11:55 +01:00
/* Just apply class="scroll-animation" to menu to change to scroll animation */
2017-04-03 01:21:34 +02:00
#menu.scroll-animation {
left: 110px; width: 0;
2017-04-03 01:21:34 +02:00
}
#menu.scroll-animation.opened {
2016-10-02 17:07:47 +02:00
width: 300px;
}
2017-04-03 01:21:34 +02:00
2016-10-02 17:07:47 +02:00
#menu > div {
width: 300px;
padding: 16px;
2016-10-02 17:07:47 +02:00
display: none;
}
#menu > div.opened {
display: block;
}
#menu h2 {
margin: 0 0 20px 0;
font-family: Cantarell; font-weight: bold; font-size: 18px;
2020-07-13 22:54:34 +02:00
color: var(--text);
display: flex; align-items: center;
2016-10-02 17:07:47 +02:00
}
2019-02-06 12:44:44 +01:00
#menu h2 a {
margin: 0;
font-size: inherit; opacity: inherit;
}
2016-10-02 17:07:47 +02:00
#menu h2 > svg {
width: 32px; vertical-align: middle; margin-right: 8px;
2016-10-02 17:07:47 +02:00
}
#menu h2 img {
height: 48px; vertical-align: middle; margin-right: 10px;
2016-10-02 17:07:47 +02:00
}
2019-02-06 12:44:44 +01:00
#menu h2 a:hover,
#menu h2 a:focus {
text-decoration: underline;
}
2016-10-02 17:07:47 +02:00
#menu h3 {
margin: 16px 0;
font-family: Cantarell; font-weight: bold; font-size: 15px;
2020-07-13 22:54:34 +02:00
color: var(--text);
2016-10-02 17:07:47 +02:00
}
#menu hr {
margin: 15px 0;
2016-10-02 17:07:47 +02:00
border: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
2016-10-02 17:07:47 +02:00
}
#menu ul {
margin: 0; padding: 0; list-style: none;
}
#menu a,
#menu li {
display: block; margin: 10px 0;
2020-07-13 22:54:34 +02:00
color: var(--text);
2016-10-02 17:07:47 +02:00
transition: opacity .15s ease;
}
#menu li > a {
display: inline;
margin: 0; font-style: normal;
font-size: 13px;
2016-10-02 17:07:47 +02:00
}
#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%;
2018-02-26 10:24:16 +01:00
}
#menu form input[type="text"],
#menu form input[type="password"] {
margin: 8px 0; padding: 5px 2%;
2017-04-03 01:21:34 +02:00
font-size: 14px; color: inherit;
2020-07-13 22:54:34 +02:00
border: var(--input-border);
background: var(--input-bg); color: var(--input-text); opacity: .8;
}
#menu form input[type="text"]:focus,
#menu form input[type="password"]:focus {
2020-07-13 22:54:34 +02:00
opacity: 1;
2018-02-26 10:24:16 +01:00
}
#menu form input[type="submit"] {
width: 100%;
margin: 8px 0 5px 0;
2018-02-26 10:24:16 +01:00
}
#menu form label {
2020-07-13 22:54:34 +02:00
font-size: 13px; color: var(--text); opacity: .8;
2018-02-26 10:24:16 +01:00
}