react-admin-panel-orient/src/assets/styles/_nav.scss

153 lines
2.5 KiB
SCSS

.nav {
&__dropdown {
background: #f1f4f8;
z-index: 5;
border-radius: 1rem;
width: 100%;
opacity: 0;
overflow: hidden;
position: absolute;
@include transition-std;
top: calc(100% + 1rem);
left: 0;
height: 0;
border: 0.1rem solid #c8c8c8;
&.active {
height: 14.7rem;
opacity: 1;
@include transition-std;
}
&__wrapper {
display: flex;
flex-direction: column;
li {
display: flex;
flex-direction: column;
gap: 0.2rem;
&:nth-child(2n) {
padding-bottom: 1rem;
}
}
}
}
&__left {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 5%;
}
&__right {
justify-self: flex-end;
max-width: 10rem;
display: flex;
align-items: center;
&__user {
cursor: pointer;
position: relative;
background: #f1f4f8;
border: 0.1rem solid #c8c8c8;
border-radius: 1rem;
padding: 1rem;
display: flex;
align-items: center;
gap: 0.5rem;
@include transition-std;
&:hover {
@include transition-std;
background: #b9b9b9;
}
button {
border-top: 0.1rem solid #c8c8c8;
padding: 1rem;
padding-bottom: 0.5rem;
cursor: pointer;
color: rgb(37, 172, 218);
}
span {
font-size: 1.6rem;
}
p {
font-size: 1.2rem;
padding: 0 1rem;
}
&__img {
width: 3rem;
height: 3rem;
img {
width: 3rem;
height: 3rem;
object-fit: contain;
}
}
h2 {
padding: 1rem;
padding-bottom: 0.5rem;
width: 100%;
font-size: 1.4rem;
}
h3 {
padding: 1rem;
padding-bottom: 0.5rem;
width: 100%;
font-size: 1.4rem;
}
}
}
&.inner {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3rem;
padding: 2rem 0;
}
&__img {
width: 7rem;
height: 5rem;
svg {
width: 7rem;
height: 5rem;
}
}
&__btn {
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
width: 4.8rem;
height: 3.2rem;
padding: 0.4rem 0;
border: 0.1rem solid rgba(0, 0, 0, 0.4);
border-radius: 0.5rem;
@include transition-std;
img {
width: 4.8rem;
height: 3.2rem;
object-fit: contain;
}
&:active {
@include transition-std;
border: 0.3rem solid rgba(0, 0, 0, 0.8);
}
}
}