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

99 lines
1.7 KiB
SCSS
Raw Normal View History

2020-05-13 10:14:42 +00:00
/* The grids */
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, auto);
2020-04-02 16:09:23 +00:00
}
%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;
}
2020-05-13 10:14:42 +00:00
/* Styles for elements of user-thumb*/
2020-05-13 10:11:05 +00:00
.user-thumb__picture {
2020-04-02 16:09:23 +00:00
align-self: center;
grid-column: 1 / span 1;
grid-row: 1 / span 2;
height: 7vh;
width: 7vh;
}
2020-05-13 10:11:05 +00:00
.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;
}
2020-05-13 10:11:05 +00:00
.user-thumb__admin:not(:empty) {
2020-09-03 10:15:47 +00:00
display: block !important;
2020-04-02 16:09:23 +00:00
@extend %tag-admin;
}
2020-05-13 10:11:05 +00:00
.user-thumb__username {
2020-04-02 16:09:23 +00:00
align-items: center;
display: flex;
&::before {
content: '@';
}
}
2020-05-13 10:11:05 +00:00
.user-thumb__city:not(:empty) {
2020-04-02 16:09:23 +00:00
@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;
}
}
2020-05-13 10:11:05 +00:00
.user-thumb__lead:not(:empty) {
2020-04-02 16:09:23 +00:00
@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;
}
}
2020-05-13 10:11:05 +00:00
2020-05-13 10:14:42 +00:00
/* Apply the grids to all user-thumbs */
2020-05-13 10:11:05 +00:00
.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.8rem 2.2rem;
2020-05-13 10:11:05 +00:00
}