💄 modifing ui of sidebar

This commit is contained in:
José Corte 2022-05-06 19:32:41 -03:00
parent 0920abc9d8
commit dd3bc89fae
2 changed files with 19 additions and 24 deletions

View File

@ -1,5 +1,5 @@
<svg width="46" height="48" viewBox="0 0 46 48" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="26" height="19" viewBox="0 0 26 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="10" y="28.7499" width="26" height="3" rx="1.5" fill="#3E4954"/> <rect y="0.118652" width="26" height="2.93413" rx="1.46706" fill="#3E4954"/>
<rect x="10" y="36.7499" width="26" height="3" rx="1.5" fill="#3E4954"/> <rect y="7.94299" width="26" height="2.93413" rx="1.46706" fill="#3E4954"/>
<rect x="10" y="44.7499" width="26" height="3" rx="1.5" fill="#3E4954"/> <rect y="15.7673" width="26" height="2.93413" rx="1.46706" fill="#3E4954"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 322 B

After

Width:  |  Height:  |  Size: 332 B

View File

@ -6,15 +6,15 @@ interface SidebarViewInterface {
} }
export const SidebarView = styled.nav<SidebarViewInterface>` export const SidebarView = styled.nav<SidebarViewInterface>`
position: fixed; position: relative;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: flex-start;
flex-direction: column; flex-direction: column;
width: 20rem; width: 20%;
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -35,13 +35,16 @@ export const SidebarView = styled.nav<SidebarViewInterface>`
width: 100%; width: 100%;
li { li {
width: 100%; display: flex;
height: 67px; align-items: center;
justify-content: flex-start;
width: 100%;
height: 60px;
font-family: 'Poppins';
font-style: normal; font-style: normal;
font-weight: 500; font-weight: 500;
font-size: 18px; font-size: 16px;
line-height: 27px; line-height: 27px;
/* identical to box height */ /* identical to box height */
@ -106,25 +109,18 @@ export const SidebarView = styled.nav<SidebarViewInterface>`
@media (max-width: 1196px) { @media (max-width: 1196px) {
align-items: flex-start; align-items: flex-start;
width: 20rem; width: 100%;
/* height: 0%; */
/* height: ${props => props.modalOpen? '100%' : null}; */ /* height: ${props => props.modalOpen? '100%' : null}; */
padding-top: 20px; padding: 18px;
padding-left: 20px;
/* background-color: ${props => props.modalOpen? '#FFF' : 'transparent'}; */ border-bottom: solid black 1px;
z-index: 2; z-index: 2;
.hamburger { .hamburger {
position: fixed; display: flex;
top: 20px;
display: inherit;
width: 40px;
height: 40px;
/* background-color: black; */
cursor: pointer; cursor: pointer;
@ -132,7 +128,6 @@ export const SidebarView = styled.nav<SidebarViewInterface>`
} }
.imageNext { .imageNext {
display: none; display: none;
opacity: 0;
} }
ul { ul {
display: ${props => props.modalOpen? 'block' : 'none'}; display: ${props => props.modalOpen? 'block' : 'none'};