feature: html + css - sub-menu added in user panel + styles

This commit is contained in:
gaelle morin
2020-12-05 16:17:06 +01:00
parent 961a8b6cb8
commit 1f7dbe8bca
20 changed files with 978 additions and 122 deletions

View File

@ -2,3 +2,5 @@
@import 'texts';
@import 'borders';
@import 'shadows';
@import 'user-thumb';
@import 'lists'

View File

@ -1,24 +1,24 @@
.border {
&.all-sides {
&-all-sides {
border: 1px solid;
}
&.top {
&-top {
border-top: 1px solid;
}
&.right {
&-right {
border-right: 1px solid;
}
&.bottom {
&-bottom {
border-bottom: 1px solid;
}
&.left {
&-left {
border-left: 1px solid;
}
&-thick {
border-width: thick;
}
&.color {
&-color {
&-primary {
border-color: var(--color-primary);
}

View File

@ -0,0 +1,5 @@
ul {
list-style: none;
margin: 0;
padding: 0;
}

View File

@ -0,0 +1,73 @@
.user-thumb {
display: block;
position: relative;
box-sizing: border-box;
div {
display: flex;
align-items: center;
.user-thumb-avatar {
background: #E4E8ED;
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
height: 50px;
width: 50px;
margin-right: 16px;
border-radius: 50%;
overflow: hidden;
&.user-thumb-avatar__size {
height: 44px;
width: 44px;
}
>img,
object {
object-fit: cover;
object-position: center;
}
>img {
max-height: 100%;
max-width: 100%;
position: absolute;
top: 0;
left: 0;
}
>object {
max-height: 40%;
max-width: 40%;
}
}
.user-thumb-content {
flex: 1 1 auto;
.user-thumb-content__name-and-icon {
display: flex;
justify-content: flex-start;
align-items: center;
.name {
font-size: 14px;
font-weight: 600;
flex: 0 1 auto;
letter-spacing: 0.38px;
}
.icon {
margin-left: 10px;
&::before {
font-size: 15px;
}
}
}
.user-thumb__sub-text {
color: red;
}
}
}
}