WIP merge of Cristoph, filter, mobile view, menu rework

This commit is contained in:
rra
2022-09-25 09:10:37 +02:00
parent 475a614959
commit ce945e77db
14 changed files with 496 additions and 252 deletions

View File

@ -174,7 +174,7 @@ a {
.home-link {
display: block;
max-width: 700px;
width: 50%;
width: 70%;
padding: 0;
margin: auto;
}
@ -185,30 +185,33 @@ a {
height: auto;
}
.login-link {
#top-menu .login-link {
background: #009d9b;
padding: 5px 30px;
color: #fff;
font-weight: 900;
font-weight: 900;
position: absolute;
right: 1.5rem;
}
.menu-row {
margin: 0 auto;
max-width: 80%;
max-width: fit-content;
width: 100%;
display: flex;
justify-content: space-between;
justify-content: center;
align-items: center;
position: sticky;
top: 15px;
z-index: 99;
}
.filter-link {
.menu-row .menu .filter-link {
background: #333;
height: 100%;
display: flex;
align-items: center;
padding: 0 30px;
padding: 0.5rem 1.5rem;
color: #fff;
cursor: pointer;
}
@ -224,8 +227,8 @@ a {
fill:#fff;
}
.mobile-menu-button {
width: 35px;
.menu-button {
width: 30px;
height: 16px;
display: none;
flex-direction: column;
@ -233,18 +236,19 @@ a {
color: pointer;
}
.mobile-menu-button--line {
.menu-button--line {
width: 100%;
height: 2px;
background: #333;
}
.menu {
border: 2px solid #000;
border: 2px solid #333;
padding: 0 1rem;
display: flex;
align-items: center;
background: #fff;
position: relative;
}
.menu-dot {
@ -318,6 +322,22 @@ a {
display: none;
}
.login-menu {
display: none;
}
.menu-row .login {
height: 100%;
display: flex;
align-items: center;
border: 2px solid #333;
padding: 0 1.5rem;
}
.login a {
text-decoration: none;
}
/* styles for "tools" dropdown menu */
.menu ul.submenu {
flex-direction: column;
@ -358,10 +378,6 @@ a {
padding: 0.5em;
}
.menu a {
padding: 0 5px;
}
.menu .menu .submenu a {
margin: 0;
display: flex;
@ -408,7 +424,6 @@ a {
.h-entry header h2 a {
text-decoration: none;
color: var(--border-color);
word-wrap: anywhere;
}
.h-entry header .header-metadata {
@ -1081,84 +1096,212 @@ li.page-item:after {
z-index: -100;
}
/* Landingpage */
.welcome-text {
text-align: center;
max-width: 1000px;
margin: 0 auto 50px;
}
.app-columns {
display: flex;
flex-wrap: wrap;
max-width: 1200px;
margin: 0 auto 50px;
}
.app-column {
width: 33%;
text-align: center;
padding: 3.5%;
}
.app-column a {
text-decoration: none;
}
.app-icon {
display: block;
max-width: 90px;
width: 80%;
margin-left: auto;
margin-right: auto;
transition: transform 0.2s ease;
}
.app-icon:hover {
transform: rotate(-15deg);
}
.app-name {
font-weight: bold;
margin-bottom: 0.2em;
color: #333;
}
.app-description {
font-size: 14px;
display: block;
margin-left: auto;
margin-right: auto;
}
/* FILTER */
.filter-item, .card, .video-box {
/* display: none;*/
display: none;
}
.show-item {
display: block !important;
display: flex !important;
}
.filter-buttons-container {
.filter-container {
display: none;
background: #fff;
padding: 1.5rem;
border: 2px solid;
border: 2px solid #333;
position: absolute;
top: 44px;
border-top: 0;
left: 0;
z-index: 99;
width: 100%;
overflow: hidden;
justify-content: space-between;
}
.filter-information {
width: 15%;
}
.filter-buttons-container {
align-items: center;
display: flex;
width: calc(85% - 30px);
}
.filter-buttons-container-header {
display: flex;
margin-bottom: 20px;
margin-right: 20px;
}
.load-all {
margin-left: 30px;
.filter-link {
height: 100%;
display: flex;
align-items: center;
background: #333;
color: #fff;
padding: calc(0.5rem + 2px) 1rem;
cursor: pointer;
text-decoration: underline;
color: #333;
}
@media (min-width: 980px) {
.filter-link:hover + .filter-buttons-container {
display: block;
}
.filter-link:hover + .filter-container {
display: flex;
}
.filter-container:hover {
display: flex;
}
.filter-buttons-container:hover {
display: block;
}
.filter-buttons-dropdown {
position: absolute;
top: 41px;
width: calc(100% 2px);
left: -1px;
background: #fff;
max-height: 35vh;
min-height: 100%;
overflow-y: scroll;
overflow-x: hidden;
border: 1px solid #333;
border-top: 0;
display: none;
}
@media all and (min-width: 980px) {
.filter-buttons:hover .filter-buttons-dropdown {
display: block;
}
.filter-buttons {
width: 100%;
margin-bottom: 10px;
width: fit-content;
display: flex;
white-space: nowrap;
overflow: scroll;
-ms-overflow-style: none;
scrollbar-width: none;
flex-direction: column;
position: relative;
border: 1px solid #333;
margin-right: 10px;
padding-right: 30px;
width: calc(25% - 7.5px);
}
.filter-buttons:last-child {
margin-right: 0px;
}
.filter-buttons > button {
height: 40px;
}
.filter-by:after {
content:"";
width: 0;
height: 0;
border-style: solid;
border-width: 5px 5px 0 5px;
border-color: #333333 transparent transparent transparent;
position: absolute;
right: 0.5rem;
}
.filter-buttons button {
display: block;
display: flex;
align-items: center;
justify-content: space-between;
border: 0;
background: unset;
border-radius: 0;
width: fit-content;
width: 100%;
padding: 0.6rem;
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-dropdown button {
border-bottom: 1px solid;
}
.filter-buttons .filter-button.active:after {
content:"\00d7";
display: inline-block;
margin-left: 5px;
.filter-buttons .filter-button{
padding: 0.6rem 0.6rem 0.6rem 1.6rem;
}
.filter-button svg {
width: 10px;
position: absolute;
left: 0.6rem;
}
.filter-button svg path {
fill: #3330;
stroke: #333;
stroke-width: 2px;
}
.filter-button.active svg path {
fill: #333;
}
.filter-title {
width: calc(100% - 20px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: left;
}
.filter-buttons-dropdown button:last-child {
border-bottom: 0;
}
.filter-buttons .filter-button.active {
background: #c2c2ff;
}
.disable-button {
@ -1192,56 +1335,6 @@ li.page-item:after {
left: 0;
}
/* Landingpage */
.welcome-text {
text-align: center;
max-width: 1000px;
margin: 0 auto 50px;
}
.app-columns {
display: flex;
flex-wrap: wrap;
max-width: 1200px;
margin: 0 auto 50px;
}
.app-column {
width: 33%;
text-align: center;
padding: 3.5%;
}
.app-column a {
text-decoration: none;
}
.app-icon {
display: block;
max-width: 90px;
width: 80%;
margin-left: auto;
margin-right: auto;
transition: transform 0.2s ease;
}
.app-icon:hover {
transform: rotate(-15deg);
}
.app-name {
font-weight: bold;
margin-bottom: 0.2em;
color: #333;
}
.app-description {
font-size: 14px;
display: block;
margin-left: auto;
margin-right: auto;
}
/* ### Timeline ### */
/* Timeline Tags */
@ -1393,6 +1486,11 @@ a.timeline-url {
text-decoration: underline;
}
.menu-row {
font-size: 1.78vw;
}
.link-svg {
height: 1.2vw;
width: 1.2vw;
@ -1622,6 +1720,8 @@ a.timeline-url {
}
.f-main .logo {
width: 280px;
max-height: unset;
filter: brightness(0);
max-width: 20vw;
margin-top: 0;
@ -1738,20 +1838,16 @@ a.timeline-url {
}
#top-menu {
grid-template-columns: 1fr;
width: 100%;
}
.menu,
#login {
display: none;
max-height: 50px;
}
/* menu styles */
.mobile-menu-button {
display: flex;
}
.menu-row, #top-menu {
position: fixed !important;
@ -1765,18 +1861,144 @@ a.timeline-url {
right: 5%;
}
.filter-buttons-container {
.menu {
display: none;
position: fixed;
top: 90px;
z-index: 99;
width: 90%;
overflow: hidden;
left: 5%;
left: 20px;
top: 80px;
width: calc(100vw - 40px);
overflow: scroll;
height: calc(100% - 90px);
padding: 0.5rem 1.5rem;
}
.menu.active {
display: block;
}
.menu ul {
margin: 0;
display: block;
}
.menu-row .login {
display: none;
}
.menu-button {
display: flex;
position: fixed;
left: 20px;
top: clamp(25px, 7vw, 35px);
}
.menu ul.submenu {
margin-left: 0;
margin-top: 4px;
position: unset;
border: 0;
padding-left: 20px !important;
display: none;
}
.menu .submenu li {
margin: 0;
padding: 0.5rem 0;
}
.menu ul.submenu.active {
display: block;
visibility: visible;
}
.login-menu {
display: block;
padding: 0.5rem 2rem;
background: #333;
transform: rotate(-3deg);
width: fit-content;
margin: 0.5rem 0 1rem;
}
.login-menu a {
color: #fff !important;
}
.menu-button--line{
transition: all 0.3s ease-in-out;
}
.menu-button.active {
-webkit-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
transition-delay: 0s;
-webkit-transition-delay: 0.6s;
-o-transition-delay: 0.6s;
transition-delay: 0.6s;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}
.menu-button.active .menu-button--line:nth-child(1) {
-webkit-transform: translateY(8px);
-ms-transform: translateY(8px);
-o-transform: translateY(8px);
transform: translateY(8px);
-webkit-transition-delay: 0.3s;
-o-transition-delay: 0.3s;
transition-delay: 0.3s;
}
.menu-button.active .menu-button--line:nth-child(2) {
width: 0px;
}
.menu-button.active .menu-button--line:nth-child(3) {
-webkit-transform: translateY(-6px) rotate(90deg);
-ms-transform: translateY(-6px) rotate(90deg);
-o-transform: translateY(-6px) rotate(90deg);
transform: translateY(-6px) rotate(90deg);
-webkit-transition-delay: 0.3s;
-o-transition-delay: 0.3s;
transition-delay: 0.3s;
}
.filter-container {
flex-wrap: wrap;
border-top: 2px solid #333;
left: 20px;
width: calc(100vw - 40px);
position: fixed;
margin-top: 30px;
display: none !important;
}
#filter.active .filter-container {
display: block !important;
}
.filter-information {
width: 100%;
margin-bottom: 15px;
}
.filter-buttons-container {
display: block;
width: 100%;
}
.filter-buttons-container.open {
display: block !important;
}
.filter-buttons-dropdown {
z-index: 99;
}
.filter-buttons {
margin-right: 0px;
margin-bottom: 10px;
width: 100%;
}
.container {
padding-top: 60px;
@ -1793,13 +2015,22 @@ a.timeline-url {
.filter-icon {
height: 20px;
margin-right: 24px;
margin-right: 0;
}
.filter-icon path {
fill: #333;
}
.filter-buttons-dropdown.active {
display: block;
}
.filter-by.active:after {
transform: rotate(180deg);
}
#top-menu div.mobile-menu {
display: flex;
justify-content: space-between;