hubl/src/styles/base/user-thumb.scss

98 lines
1.6 KiB
SCSS
Raw Normal View History

2020-04-02 16:09:23 +00:00
%user-thumb__grid {
display: grid;
grid-column-gap: 1.6rem;
grid-template-columns: 7vh auto;
grid-template-rows: repeat(2, 5.2vh);
}
%user-thumb__grid-sup {
align-items: center;
align-self: end;
display: flex;
grid-column: 2 / span 1;
grid-row: 1 / span 1;
margin-bottom: 0.50rem;
}
%user-thumb__grid-inf {
align-self: start;
grid-column: 2 / span 1;
grid-row: 2 / span 1;
margin-top: 0.50rem;
}
%user-thumb__picture {
align-items: center;
align-self: center;
2020-05-11 15:15:59 +00:00
background-color: var(--color-avatar-background);
2020-04-02 16:09:23 +00:00
border-radius: 50%;
display: flex;
grid-column: 1 / span 1;
grid-row: 1 / span 2;
height: 7vh;
justify-content: center;
overflow: hidden;
position: relative;
width: 7vh;
img {
background-color: white;
height: 100%;
left: 0;
object-fit: cover;
position: absolute;
top: 0;
width: 100%;
}
object {
height: 45%;
width: 45%;
}
}
%user-thumb__name {
2020-05-11 15:15:59 +00:00
color: var(--color-user-thumb-name);
2020-04-02 16:09:23 +00:00
font-weight: 600;
margin-right: 1rem;
}
%user-thumb__admin {
@extend %tag-admin;
}
%user-thumb__username {
align-items: center;
display: flex;
&::before {
content: '@';
}
}
%user-thumb__city {
@include mdi('atom');
align-items: center;
display: flex;
margin-right: 1.6rem;
&::before {
2020-05-11 15:15:59 +00:00
color: var(--color-icon);
2020-04-02 16:09:23 +00:00
margin-right: 0.50rem;
}
}
%user-thumb__lead {
@include icon('eyeglass');
align-items: center;
display: flex;
&::before {
2020-05-11 15:15:59 +00:00
color: var(--color-icon);
2020-04-02 16:09:23 +00:00
font-size: 1.9rem;
font-weight: bold;
margin-left: 0;
margin-right: 0.50rem;
}
}