webapp/src/components/Author/Userpic/Userpic.module.scss

123 lines
1.9 KiB
SCSS
Raw Normal View History

2023-08-11 16:42:41 +00:00
.Userpic {
background: #f7f7f7;
2022-09-09 11:53:35 +00:00
border-radius: 100%;
2023-05-24 21:51:47 +00:00
display: flex;
justify-content: center;
align-items: center;
2022-09-09 11:53:35 +00:00
overflow: hidden;
position: relative;
img {
height: 100%;
object-fit: cover;
width: 100%;
2023-07-18 11:23:28 +00:00
display: block;
2022-09-09 11:53:35 +00:00
}
2023-08-11 16:42:41 +00:00
.letters {
display: flex;
2023-07-18 11:23:28 +00:00
height: 100%;
width: 100%;
border-radius: 100%;
padding-top: 2px; // line-height hack
justify-content: center;
align-items: center;
color: var(--default-color);
text-transform: uppercase;
background: var(--background-color);
box-shadow: 0 0 0 1px var(--background-color-invert) inset;
2022-09-09 11:53:35 +00:00
}
2023-07-09 18:34:59 +00:00
a:link,
a:visited {
border: none;
2023-07-18 11:23:28 +00:00
display: flex;
2023-06-27 22:47:47 +00:00
height: 100%;
2023-07-09 18:34:59 +00:00
padding: 0 !important;
text-align: center;
width: 100%;
2023-06-12 19:59:46 +00:00
2022-09-09 11:53:35 +00:00
&:hover {
2023-07-09 18:34:59 +00:00
background: none;
2022-09-09 11:53:35 +00:00
color: #000;
}
}
&.XS {
width: 20px;
height: 20px;
min-width: 20px;
overflow: hidden;
.letters {
font-size: 0.8rem;
}
}
&.S {
width: 28px;
height: 28px;
min-width: 28px;
overflow: hidden;
.letters {
font-size: 1rem;
}
}
&.M {
height: 32px;
width: 32px;
min-width: 32px;
.letters {
font-size: 1.2rem;
}
}
&.L {
height: 40px;
width: 40px;
min-width: 40px;
2023-11-04 15:37:28 +00:00
.letters {
font-size: 1.2rem;
}
}
&.XL {
2023-08-27 21:21:40 +00:00
aspect-ratio: 1/1;
2023-10-13 21:29:11 +00:00
margin: 0 auto 1rem;
2023-08-11 16:42:41 +00:00
max-width: 168px;
2023-08-27 21:21:40 +00:00
height: auto;
width: 100%;
2023-08-11 16:42:41 +00:00
@include media-breakpoint-up(md) {
2023-08-27 21:21:40 +00:00
margin: 0;
max-width: 100%;
2023-08-11 16:42:41 +00:00
}
2023-08-11 16:42:41 +00:00
.letters {
2023-08-27 21:21:40 +00:00
align-items: center;
display: flex;
2023-08-11 16:42:41 +00:00
font-size: 2em;
2023-08-27 21:21:40 +00:00
justify-content: center;
line-height: normal;
2023-08-11 16:42:41 +00:00
max-width: 100%;
width: 100%;
}
}
}
2022-11-11 08:58:22 +00:00
.authorsList {
margin-right: 2.4rem;
max-height: 6.8rem;
min-width: 6.8rem;
height: 6.8rem;
width: 6.8rem;
2023-08-11 16:42:41 +00:00
.letters {
2022-11-11 08:58:22 +00:00
line-height: 6.4rem;
}
}