feature: new header and left-menu

This commit is contained in:
gaelle morin
2021-04-01 07:10:59 +02:00
parent 1438c73c2f
commit bc0b8c3e04
23 changed files with 270 additions and 217 deletions

View File

@ -1,5 +1,5 @@
.chat-view {
height: calc(100vh - 72px - 78px);
height: calc(100vh - 50px - 78px);
@media (max-width: 768px) {
height: calc(100vh - 50px - 68px);

View File

@ -1,9 +1,5 @@
main {
height: calc(100vh - 72px);
@media (max-width: 768px) {
height: calc(100vh - 50px);
}
height: 100vh;
}
/* Styles of the right-hand menu + pages with that menu */
@ -34,12 +30,11 @@ main {
.sidebar {
background: #F1F1F1;
height: calc(100vh - 72px);
height: calc(100vh - 50px);
transition: all 0.5s;
width: 217px;
@media (max-width: 768px) {
height: calc(100vh - 50px);
width: 65px;
}
@ -110,17 +105,17 @@ main {
}
}
/* Add scrollbar to the left and to the content */
/* Add scrollbar to the left menu and to the content */
.scrollbar-nav,
.scrollbar-content {
overflow-y: auto;
height: calc(100vh - 72px); /* 72px == header's height */
height: calc(100vh - 50px); /* 50px == header's height */
-webkit-overflow-scrolling: touch;
-ms-overflow-style: none;
}
@media (max-width: 768px) {
height: calc(100vh - 50px);
}
.scrollbar-nav {
height: 100vh;
}
/* Custom scrollbar of the left-menu*/

View File

@ -1,5 +1,5 @@
header {
height: 72px;
height: 50px;
position: fixed;
z-index: 10000;
@ -14,28 +14,21 @@ header {
solid-link {
align-self: center;
img.logo {
max-width: 200px;
max-height: 34px;
vertical-align: middle;
}
}
.tag {
align-self: flex-start;
padding: 4px 15px;
margin-top: 16px;
margin-left: 60px;
height: auto !important;
letter-spacing: 0.16px !important;
line-height: normal !important;
padding: 1px 8px !important;
margin-top: 10px;
}
solid-notifications {
color: var(--color-heading);
align-self: center;
@media(min-width: 768.01px) {
margin-right: 23px;
}
margin-top: 9px;
.solid-notifications__container {
position: relative;
@ -62,14 +55,17 @@ header {
}
.solid-notifications__counter {
left: 12px;
height: 18px;
width: 18px;
left: 17px;
position: absolute;
top: 1px;
top: 5px;
span {
background-color: var(--color-primary);
color: white;
font-size: 11px;
line-height: 18px;
}
}
}
@ -97,7 +93,7 @@ header {
position: absolute;
width: 0;
height: 0;
margin-left: -5em;
margin-left: -5.05em;
top: 0px;
left: 50%;
border: 1em solid black;
@ -260,9 +256,7 @@ header {
summary {
display: block; /* To remove the disclosure triangle on Firefox v.>=69 */
cursor: pointer;
padding-right: 15px;
padding-left: 15px;
height: 72px;
height: 50px;
/* To remove the disclosure triangle on Chrome (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details#Customizing_the_disclosure_widget) */
&::marker,
@ -270,6 +264,10 @@ header {
display: none;
}
/* End */
solid-display {
padding-top: 13px;
}
}
}
@ -279,8 +277,8 @@ header {
right: 0;
z-index: 1;
/* Quick fix for mobile version */
width: 100%;
top: 72px;
width: 227px;
top: 50px;
>nav {
box-shadow: 0 7px 8px 0 rgba(0, 0, 0, 0.16);
@ -301,10 +299,6 @@ header {
}
}
@media (max-width: 768px) {
height: 50px;
@ -317,7 +311,7 @@ header {
margin: 0;
margin-left: 15px;
}
details.user-menu {
.user-firstname {
@ -331,6 +325,10 @@ header {
height: 50px;
padding: 0;
solid-display {
padding-top: 0;
}
>.labelled-avatar .avatar {
height: 32px;
width: 32px;
@ -372,8 +370,7 @@ header {
.user-firstname {
display: flex;
align-items: center;
padding-right: 15px;
padding-left: 15px;
padding: 13px;
width: 100%;
[name="segment3"] {
@ -389,6 +386,7 @@ header {
top: 72px;
height: calc(100vh - 72px);
background: white;
width: calc(100vw);
>nav {
box-shadow: none;

View File

@ -66,27 +66,11 @@ main#content {
}
}
hubl-menu-create+hubl-menu-create {
hubl-menu-empty+hubl-menu-empty {
display: none;
/* Duplicate widget generation? */
}
hubl-create-contact+hubl-create-contact {
display: none;
/* Duplicate widget generation? */
}
hubl-menu-create,
hubl-create-contact {
solid-link {
text-decoration: underline;
&:hover {
text-decoration: none;
}
}
}
.swal2-container {
z-index: 50000 !important;
}

View File

@ -1,7 +1,3 @@
#job-offers #job-offers-board {
min-height: calc(100vh - 72px);
@media (max-width: 768px) {
min-height: calc(100vh - 50px);
}
min-height: calc(100vh - 50px);
}

View File

@ -1,40 +1,101 @@
nav#main__menu {
height: calc(100vh - 72px);
height: 100vh;
@media (max-width: 768px) {
min-height: calc(100vh - 50px);
}
.unread {
font-weight: bolder;
}
solid-route.menu,
solid-link.menu,
div.menu {
.icon {
padding: 8px;
border-radius: 50%;
.menu-search {
form {
display: flex;
solid-form-placeholder-text {
display: contents;
}
}
&:hover .icon,
&[active] .icon {
color: white;
input {
background: var(--color-heading);
color: #D0D4DA;
margin-top: 0;
padding: 12px 13px;
height: 50px;
background-image: url("/images/calendar.svg");
background-position: right 12px top 50%;
background-repeat: no-repeat;
background-size: 14px;
/* https://css-tricks.com/almanac/selectors/p/placeholder/ */
&::-webkit-input-placeholder { /* Chrome/Opera/Safari */
color: #D0D4DA;
}
&::-moz-placeholder { /* Firefox 19+ */
color: #D0D4DA;
}
&:-moz-placeholder { /* Firefox 18- */
color: #D0D4DA;
}
&:focus {
background: #202B3C;
color: white;
}
}
&[active]+.divider {
visibility: hidden;
button {
background: transparent;
}
input:focus ~ button {
background-color: red !important;
}
}
.sub-menu {
padding-bottom: 10px;
.menu-header {
&:not(:hover) .menu-options,
&:not(:hover) .menu-admin {
display: none;
}
}
.transform-up {
transform: rotateX(180deg);
}
.badge {
padding-top: 2px;
margin-right: 5px;
}
.icon {
padding: 3px;
}
.menu-admin {
position: absolute;
z-index: 3016;
left: 48px;
bottom: 37px;
@media (max-width: 768px) {
width: 100%;
left: 0;
height: 9vh;
top: 0;
}
}
/* Styles for the small icon */
.sub-menu-icon {
margin-left: 3px;
margin-right: 3px;
opacity: 0.8;
width: 12px;
>div {
@ -44,12 +105,12 @@ nav#main__menu {
.sub-menu-name {
margin-right: 15px;
margin-left: 3px;
vertical-align: middle;
}
.menu-chevron {
.menu-options {
float: right;
margin-top: 8px;
}
@ -86,10 +147,10 @@ nav#main__menu {
opacity: 0.2;
}
.create {
.empty {
display: flex;
flex-wrap: wrap;
padding-left: 20px;
padding-left: 13px;
width: 87%;
}

View File

@ -1,7 +1,3 @@
#members>div:first-of-type {
min-height: calc(100vh - 72px);
@media (max-width: 768px) {
min-height: calc(100vh - 50px);
}
min-height: calc(100vh - 50px);
}