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

98 lines
1.6 KiB
SCSS

/* The grids */
%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;
}
/* Styles for elements of user-thumb*/
.user-thumb__picture {
align-self: center;
grid-column: 1 / span 1;
grid-row: 1 / span 2;
height: 7vh;
width: 7vh;
}
.user-thumb__name {
color: var(--color-user-thumb-name);
font-weight: 600;
margin-right: 1rem;
}
.user-thumb__admin:not(:empty) {
@extend %tag-admin;
}
.user-thumb__username {
align-items: center;
display: flex;
&::before {
content: '@';
}
}
.user-thumb__city:not(:empty) {
@include mdi('atom');
align-items: center;
display: flex;
margin-right: 1.6rem;
&::before {
color: var(--color-icon);
margin-right: 0.50rem;
}
}
.user-thumb__lead:not(:empty) {
@include icon('eyeglass');
align-items: center;
display: flex;
&::before {
color: var(--color-icon);
font-size: 1.9rem;
font-weight: bold;
margin-left: 0;
margin-right: 0.50rem;
}
}
/* Apply the grids to all user-thumbs */
.user-thumb>div,
[name='user-thumb'] {
@extend %user-thumb__grid;
>[name='sup'] {
@extend %user-thumb__grid-sup;
}
>[name='sub'] {
@extend %user-thumb__grid-inf;
}
}
/* Add extra spaces to user-thumbs that are inside a table */
.user-thumb.is-spaced>div,
[name='user-thumb'] {
padding: 0 2.2rem;
}