joseCorte-exe 001f8530ee more fixes
2022-07-08 17:15:38 -03:00

280 lines
4.3 KiB
TypeScript

import styled from 'styled-components'
interface SidebarViewInterface {
economiaDrawer: boolean | null,
modalOpen: boolean | null
}
export const SidebarView = styled.nav<SidebarViewInterface>`
position: relative;
display: flex;
align-items: center;
justify-content: flex-start;
flex-direction: column;
width: 20%;
min-width: 20rem;
margin: 0;
padding: 0;
box-shadow: 18px 4px 35px rgba(0, 0, 0, 0.02);
background-color: #FFFFFF;
.actualPath {
border-left: #254F7F solid 8px;
background-color: #FAFBFF;
color: #254F7F;
}
.actualPathDrawer {
color: #254F7F;
}
.notification {
display: flex;
align-items: center;
justify-content: center;
width: 38px;
height: 32px;
border-radius: 8px;
background-color: #254F7F;
color: white;
}
ul {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
list-style: none;
width: 100%;
padding: 0;
li {
display: flex;
align-items: center;
justify-content: flex-start;
width: 100%;
min-height: 60px;
height: 60px;
gap: 15px;
font-style: normal;
font-weight: 500;
line-height: 27px;
color: #969BA0;
cursor: pointer;
padding-left: 40px;
transition: all 350ms ease-in;
:hover {
color: rgb(37, 79, 127);
border-left: 8px solid rgb(37, 79, 127);
}
}
.economiaDrawer {
display: ${props => props.economiaDrawer? 'block' : 'none'};
}
}
aside {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
width: 90%;
height: 190px;
margin-bottom: 40px;
background: linear-gradient(155.54deg, #254F7F 15.63%, #9C9C9C 136.34%);
border-radius: 26px;
p {
text-align: center;
width: 80%;
font-family: 'Poppins';
font-style: normal;
font-weight: 600;
font-size: 90%;
line-height: 21px;
text-align: center;
color: #FFFFFF;
}
h3 {
font-size: 90%;
}
div {
display: flex;
justify-content: center;
align-items: center;
width: 80%;
height: 60px;
background: #FFFFFF;
border-radius: 8px;
}
}
.drawer {
margin-left: 20px;
}
.hamburger {
display: none;
}
button {
display: flex;
justify-content: center;
align-items: center;
width: 10rem;
height: 3rem;
margin-top: 30px;
margin-bottom: 20px;
border-style: none;
border-radius: 6px;
font-family: 'Poppins';
font-weight: 600;
font-size: 99.98%;
color: #f00;
cursor: pointer;
transition: all 350ms ease-in;
:hover {
opacity: 0.9;
box-shadow: rgb(0, 0, 0, 0.2) 0px 2px 4px -1px;
}
}
@media (max-width: 1008px) {
align-items: flex-start;
width: 100%;
padding: 18px;
border-bottom: solid black 1px;
z-index: 2;
.hamburger {
display: flex;
cursor: pointer;
z-index: 2;
height: 3.5rem;
}
.imageNext {
display: none;
}
ul {
display: ${props => props.modalOpen? 'block' : 'none'};
min-height: 85vh;
background-color: #FFF;
li {
height: 5rem;
font-size: 150%;
}
}
aside {
display: none;
}
}
@media (max-width: 1640px) {
font-size: 14px;
ul {
li {
height: 3rem;
font-size: 100%;
}
}
}
@media (max-width: 1008px) {
font-size: 26px;
ul {
li {
height: 7rem;
font-size: 99.98%;
}
}
}
`
export const ModalContainer = styled.div`
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
article {
display: flex;
justify-content: space-around;
align-items: center;
width: 50%;
margin-top: 4em;
button {
width: 10em;
height: 4em;
cursor: pointer;
background: #254F7F;
border-radius: 8px;
border-style: none;
font-family: 'Poppins';
font-size: 90%;
transition: all 350ms ease-in;
:hover {
transform: scale(1.02);
opacity: 0.9;
box-shadow: rgb(0, 0, 0, 0.2) 0px 2px 4px -1px;
}
color: #FFFFFF;
}
}
`