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

140 lines
2.3 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;
text-align: left;
2020-04-02 16:09:23 +00:00
}
.user-thumb__send {
position: relative;
bottom: 7px;
left: -5px;
solid-link {
@include icon('speech');
&::before {
display: inline-block;
2020-10-08 07:55:56 +00:00
color: var(--color-primary);
}
}
}
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-10-13 16:18:13 +00:00
solid-multiple[name="user.communities"] {
* {
display: contents;
}
solid-display-value {
&:after {
content: ",";
margin-right: 5px;
}
display: inline-block!important;
}
>solid-display>div>solid-display:last-child>div>solid-display-value:after {
display: none;
}
>solid-display {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: calc(50% - 22px - 0.5rem);
2020-10-13 17:02:22 +00:00
line-height: 22px;
2020-10-13 16:18:13 +00:00
}
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-09-24 09:38:57 +00:00
.user-thumb[name="classGroup"] {
display: block;
margin-top: 15px;
}
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,
.user-thumb>[name='classGrid'],
2020-05-13 10:11:05 +00:00
[name='user-thumb'] {
2020-09-24 09:38:57 +00:00
2020-05-13 10:11:05 +00:00
@extend %user-thumb__grid;
>[name='sup'] {
@extend %user-thumb__grid-sup;
}
>[name='sub'] {
@extend %user-thumb__grid-inf;
}
}