webapp/src/components/Author/Userpic/Userpic.module.scss
2023-09-25 09:13:47 +03:00

101 lines
1.6 KiB
SCSS

.Userpic {
align-items: baseline;
background: #f7f7f8;
border-radius: 100%;
display: flex;
height: 32px;
justify-content: center;
margin-right: 1.2rem;
min-width: 32px;
max-width: 32px;
overflow: hidden;
position: relative;
width: 32px;
img {
height: 100%;
object-fit: cover;
width: 100%;
display: block;
}
.letters {
background-color: white;
border-radius: 50%;
border: 1.5px solid black;
color: #000;
font-size: small;
text-align: center;
line-height: 32px;
width: 100%;
height: 100%;
min-width: 32px;
}
.anonymous {
height: 17px !important;
object-fit: contain;
width: 20px !important;
margin: auto;
}
a:link,
a:visited {
border: none;
display: flex;
height: 100%;
padding: 0 !important;
text-align: center;
width: 100%;
&:hover {
background: none;
color: #000;
}
}
&.big {
aspect-ratio: 1/1;
margin: 0 auto;
max-width: 168px;
height: auto;
width: 100%;
@include media-breakpoint-up(md) {
margin: 0;
max-width: 100%;
}
.letters {
align-items: center;
display: flex;
font-size: 2em;
justify-content: center;
line-height: normal;
max-width: 100%;
width: 100%;
}
}
}
.authorsList {
margin-right: 2.4rem;
max-height: 6.8rem;
min-width: 6.8rem;
height: 6.8rem;
width: 6.8rem;
.letters {
line-height: 6.4rem;
}
}
.feedMode {
.letters {
font-size: 0.8rem;
line-height: 14px;
min-width: 16px;
max-width: 16px;
}
}