new header & menu layout by Cristoph
This commit is contained in:
@ -73,9 +73,14 @@ body > iframe {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.container {
|
||||
margin: 2em auto;
|
||||
max-width: 80%;
|
||||
width: 100%;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
@ -159,37 +164,128 @@ body > iframe {
|
||||
|
||||
/* base header & menu */
|
||||
|
||||
#top-menu {
|
||||
padding: 1.5rem 1rem 0;
|
||||
display: grid;
|
||||
grid-template-columns: 300px 1fr auto;
|
||||
align-items: flex-start;
|
||||
.header-row {
|
||||
margin: 1.5rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.home-link {
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
max-width: 700px;
|
||||
width: 70%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: 283px;
|
||||
margin-top: 2rem;
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
#top-menu a {
|
||||
#top-menu .login-link {
|
||||
background: #009d9b;
|
||||
padding: 5px 30px;
|
||||
color: #fff;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.menu-row {
|
||||
margin: 0 auto;
|
||||
max-width: 80%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
position: sticky;
|
||||
top: 15px;
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
.filter-link {
|
||||
background: #333;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 30px;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.filter-icon {
|
||||
height: 14px;
|
||||
width: auto;
|
||||
display: block;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.filter-icon path {
|
||||
fill:#fff;
|
||||
}
|
||||
|
||||
.mobile-menu-button {
|
||||
width: 35px;
|
||||
height: 16px;
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
color: pointer;
|
||||
}
|
||||
|
||||
.mobile-menu-button--line {
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
background: #333;
|
||||
}
|
||||
|
||||
.menu {
|
||||
border: 2px solid #000;
|
||||
padding: 0 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.menu-dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
margin-right: 3rem;
|
||||
}
|
||||
|
||||
.menu ul {
|
||||
list-style-type: none;
|
||||
margin: 0 auto;
|
||||
padding-left: 0;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
text-transform: lowercase;
|
||||
}
|
||||
|
||||
.menu ul li {
|
||||
margin-right: 1.5rem;
|
||||
padding: 0.5rem 0;
|
||||
}
|
||||
|
||||
.menu ul li:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.menu-nav-item {
|
||||
border-right: 2px solid var(--border-color);
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.menu a {
|
||||
text-decoration: none;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
#top-menu a:hover,
|
||||
#top-menu a:focus {
|
||||
.menu a:hover,
|
||||
.menu a:focus {
|
||||
color: black;
|
||||
}
|
||||
|
||||
#top-menu #login {
|
||||
font-weight: bold;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
#top-menu div {
|
||||
display: flex;
|
||||
}
|
||||
@ -199,7 +295,7 @@ body > iframe {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#top-menu input {
|
||||
.menu input {
|
||||
border: none;
|
||||
border-bottom: 1px solid #333;
|
||||
margin-right: 2rem;
|
||||
@ -207,8 +303,8 @@ body > iframe {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
#top-menu input:focus,
|
||||
#top-menu input:hover {
|
||||
.menu input:focus,
|
||||
.menu input:hover {
|
||||
outline: none;
|
||||
border-bottom: 1px solid #333;
|
||||
}
|
||||
@ -222,27 +318,8 @@ body > iframe {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.menu {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.menu ul {
|
||||
list-style-type: none;
|
||||
margin: 0 auto;
|
||||
padding-left: 3rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
text-transform: lowercase;
|
||||
max-width: 1100px;
|
||||
}
|
||||
|
||||
.menu-nav-item {
|
||||
border-right: 2px solid var(--border-color);
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
/* styles for "tools" dropdown menu */
|
||||
#top-menu ul.submenu {
|
||||
.menu ul.submenu {
|
||||
flex-direction: column;
|
||||
margin-left: 0;
|
||||
position: absolute;
|
||||
@ -257,6 +334,7 @@ body > iframe {
|
||||
|
||||
.menu .submenu li {
|
||||
margin: 2px 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.menu .has-submenu {
|
||||
@ -272,49 +350,41 @@ body > iframe {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
#top-menu .menu ul.submenu {
|
||||
margin-left: 11px;
|
||||
margin-top: 10px;
|
||||
border: 1px solid ;
|
||||
.menu ul.submenu {
|
||||
margin-left: -0.5em;
|
||||
margin-top: 8px;
|
||||
border: 2px solid ;
|
||||
gap: 0.25em;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
#top-menu a {
|
||||
.menu a {
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
#top-menu .menu .submenu a {
|
||||
.menu .menu .submenu a {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
#top-menu .drawer .submenu {
|
||||
.menu .drawer .submenu {
|
||||
position: initial;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#top-menu .drawer .submenu.opened {
|
||||
.menu .drawer .submenu.opened {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
#top-menu .drawer .submenu li {
|
||||
.menu .drawer .submenu li {
|
||||
padding: 0;
|
||||
padding-top: 1em;
|
||||
}
|
||||
|
||||
#top-menu .drawer .opened .submenu {
|
||||
.menu .drawer .opened .submenu {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.drawer .has-submenu {
|
||||
padding-left: 1em;
|
||||
margin-left: 5px;
|
||||
color: #333;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
|
||||
/*Article Summary Cards*/
|
||||
|
||||
@ -495,16 +565,15 @@ div.network-source {
|
||||
right: 1em;
|
||||
}
|
||||
|
||||
.network-source::before {
|
||||
content: "";
|
||||
.network-source .triangle {
|
||||
position: absolute;
|
||||
right: -20px;
|
||||
right: 0px;
|
||||
bottom: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: 20px solid var(--shouts-dark);
|
||||
border-top: 23px solid transparent;
|
||||
border-bottom: 23px solid transparent;
|
||||
width: auto;
|
||||
height: calc(100% + 0.5px);
|
||||
top: -0.5px;
|
||||
transform: translateX(calc(100% - 0.5px));
|
||||
fill: var(--shouts-dark);
|
||||
}
|
||||
|
||||
.network-source a {
|
||||
@ -1011,6 +1080,117 @@ li.page-item:after {
|
||||
z-index: -100;
|
||||
}
|
||||
|
||||
|
||||
/* FILTER */
|
||||
|
||||
.filter-item, .card, .video-box {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.show-item {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
.filter-buttons-container {
|
||||
display: none;
|
||||
background: #fff;
|
||||
padding: 1.5rem;
|
||||
border: 2px solid;
|
||||
position: absolute;
|
||||
top: 44px;
|
||||
z-index: 99;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.filter-buttons-container-header {
|
||||
display: flex;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.load-all {
|
||||
margin-left: 30px;
|
||||
cursor: pointer;
|
||||
text-decoration: underline;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
@media (min-width: 980px) {
|
||||
.filter-link:hover + .filter-buttons-container {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.filter-buttons-container:hover {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.filter-buttons {
|
||||
width: 100%;
|
||||
margin-bottom: 10px;
|
||||
display: flex;
|
||||
white-space: nowrap;
|
||||
overflow: scroll;
|
||||
-ms-overflow-style: none;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.filter-buttons button {
|
||||
display: block;
|
||||
border: 0;
|
||||
background: unset;
|
||||
border-radius: 0;
|
||||
width: fit-content;
|
||||
cursor: pointer;
|
||||
background: #009d9b;
|
||||
margin-right: 5px;
|
||||
white-space: nowrap;
|
||||
color: #fff;
|
||||
padding: 0.8rem;
|
||||
text-transform: lowercase;
|
||||
}
|
||||
|
||||
.filter-buttons .filter-button.active {
|
||||
background: #f04b1e;
|
||||
}
|
||||
|
||||
.filter-buttons .filter-button.active:after {
|
||||
content:"\00d7";
|
||||
display: inline-block;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.disable-button {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.page-nav {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin: 20px auto 50px;
|
||||
}
|
||||
|
||||
.nextpage {
|
||||
padding: 15px;
|
||||
position: relative;
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
margin: 0px 20px;
|
||||
font-size: 38px;
|
||||
}
|
||||
|
||||
.nextpage:after {
|
||||
content: "";
|
||||
height: 50%;
|
||||
width: 100%;
|
||||
display: block;
|
||||
border: 2px solid #333;
|
||||
border-top: 0;
|
||||
bottom: 0;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
/* Landingpage */
|
||||
.welcome-text {
|
||||
text-align: center;
|
||||
@ -1566,14 +1746,66 @@ a.timeline-url {
|
||||
}
|
||||
|
||||
/* menu styles */
|
||||
|
||||
.mobile-menu-button {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
|
||||
.menu-row, #top-menu {
|
||||
position: fixed !important;
|
||||
z-index: 97;
|
||||
}
|
||||
|
||||
.menu-row {
|
||||
z-index: 98;
|
||||
width: fit-content;
|
||||
margin-top: 3vw;
|
||||
right: 5%;
|
||||
}
|
||||
|
||||
.filter-buttons-container {
|
||||
position: fixed;
|
||||
top: 90px;
|
||||
z-index: 99;
|
||||
width: 90%;
|
||||
overflow: hidden;
|
||||
left: 5%;
|
||||
}
|
||||
|
||||
.filter-buttons-container.open {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding-top: 60px;
|
||||
}
|
||||
|
||||
.filter-link {
|
||||
background: unset;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.filter-link span {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.filter-icon {
|
||||
height: 20px;
|
||||
margin-right: 24px;
|
||||
}
|
||||
|
||||
.filter-icon path {
|
||||
fill: #333;
|
||||
}
|
||||
|
||||
#top-menu div.mobile-menu {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.mobile-menu #login {
|
||||
display: inline-flex;
|
||||
margin: 0 0 0 auto;
|
||||
#top-menu .login-link {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.hamburger {
|
||||
|
Reference in New Issue
Block a user