feature: html + css - sub-menu added in user panel + styles
This commit is contained in:
@ -2,3 +2,5 @@
|
||||
@import 'texts';
|
||||
@import 'borders';
|
||||
@import 'shadows';
|
||||
@import 'user-thumb';
|
||||
@import 'lists'
|
||||
|
@ -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);
|
||||
}
|
||||
|
5
src/styles/hubl-framework/commons/lists.scss
Normal file
5
src/styles/hubl-framework/commons/lists.scss
Normal file
@ -0,0 +1,5 @@
|
||||
ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
73
src/styles/hubl-framework/commons/user-thumb.scss
Normal file
73
src/styles/hubl-framework/commons/user-thumb.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user