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

447 lines
7.6 KiB
SCSS
Raw Normal View History

2022-09-09 11:53:35 +00:00
.author {
display: flex;
2023-10-25 21:00:21 +00:00
align-items: center;
2023-02-17 09:21:02 +00:00
flex-flow: row nowrap;
2023-09-21 20:44:41 +00:00
margin-bottom: 1.6rem;
2022-09-09 11:53:35 +00:00
2022-10-20 15:51:45 +00:00
&:last-child {
margin-bottom: 0;
}
@include media-breakpoint-down(md) {
justify-content: center;
}
2023-09-21 20:44:41 +00:00
@include media-breakpoint-up(md) {
margin-bottom: 2.4rem;
}
.authorName {
@include font-size(4rem);
font-weight: 700;
2024-05-25 16:27:15 +00:00
margin-bottom: 1.2rem;
}
.authorAbout {
@include font-size(2rem);
color: #696969;
font-weight: 500;
margin-top: 1.5rem;
}
.authorActions {
margin: 2rem -0.8rem 0 0;
padding-left: 0;
display: flex;
flex-direction: row;
gap: 1rem;
@include media-breakpoint-down(md) {
justify-content: center;
}
}
2023-11-28 17:06:13 +00:00
.authorActionsLabel {
@include media-breakpoint-down(sm) {
display: none;
}
}
.authorActionsLabelMobile {
display: none;
@include media-breakpoint-down(sm) {
display: block;
}
}
.authorDetails {
display: block;
2023-11-28 17:06:13 +00:00
margin-bottom: 0;
@include media-breakpoint-down(md) {
flex: 1 100%;
text-align: center;
}
}
2023-10-03 23:06:41 +00:00
.listWrapper & {
align-items: flex-start;
margin-bottom: 2rem;
@include media-breakpoint-down(sm) {
margin-bottom: 3rem;
}
@include media-breakpoint-between(md, lg) {
margin-bottom: 3rem;
}
.circlewrap {
margin-top: 1rem;
}
.authorDetailsWrapper {
margin-bottom: 1rem;
}
}
2022-09-09 11:53:35 +00:00
@include media-breakpoint-down(lg) {
flex-wrap: wrap;
}
2023-10-31 16:44:00 +00:00
2023-11-02 22:02:11 +00:00
.buttonWriteMessage {
border-radius: 0.8rem;
padding-bottom: 0.6rem;
padding-top: 0.6rem;
}
2022-09-09 11:53:35 +00:00
}
.authorDetails {
flex: 0 0 auto;
2022-11-14 01:17:12 +00:00
2023-09-02 22:14:34 +00:00
@include media-breakpoint-up(sm) {
2023-10-16 22:13:13 +00:00
align-items: center;
2023-09-02 22:14:34 +00:00
display: flex;
}
2022-11-11 08:58:22 +00:00
@include media-breakpoint-down(sm) {
flex-wrap: wrap;
}
2023-06-02 22:01:34 +00:00
@include media-breakpoint-between(md, lg) {
flex-wrap: wrap;
2023-10-09 21:22:06 +00:00
.listWrapper & {
flex-wrap: nowrap;
}
2023-06-02 22:01:34 +00:00
}
2022-09-09 11:53:35 +00:00
}
.authorDetailsWrapper {
2023-05-18 18:48:58 +00:00
flex: 1 0;
2023-10-03 23:06:41 +00:00
position: relative;
2022-11-11 08:58:22 +00:00
@include media-breakpoint-up(sm) {
flex: 1;
}
2023-06-02 22:01:34 +00:00
@include media-breakpoint-between(md, lg) {
flex: 1 0 100%;
2023-10-09 21:22:06 +00:00
.listWrapper & {
flex: 1;
}
2023-06-02 22:01:34 +00:00
}
2022-11-11 08:58:22 +00:00
@include media-breakpoint-up(md) {
padding-right: 1.2rem;
}
2022-09-09 11:53:35 +00:00
}
.authorName {
@include font-size(4rem);
line-height: 1.1;
2022-09-09 11:53:35 +00:00
}
.authorAbout {
2022-09-09 11:53:35 +00:00
color: rgb(0 0 0 / 60%);
2023-09-02 22:14:34 +00:00
font-size: 1.4rem;
2023-10-03 23:06:41 +00:00
font-weight: 500;
line-height: 1.3;
2022-11-11 08:58:22 +00:00
word-break: break-word;
2022-09-09 11:53:35 +00:00
}
.authorSubscribeSocialLabel {
display: none;
}
.authorSubscribeSocial {
align-items: center;
display: flex;
2023-11-28 18:10:00 +00:00
margin: 0.5rem 0 2rem -0.4rem;
.socialLink {
2022-09-09 11:53:35 +00:00
border: none;
display: inline-block;
2023-08-27 21:21:40 +00:00
height: 24px;
2022-09-09 11:53:35 +00:00
margin-right: 0.4rem;
position: relative;
transition: background-color 0.2s;
2022-09-09 11:53:35 +00:00
vertical-align: middle;
2023-08-27 21:21:40 +00:00
width: 24px;
2022-09-09 11:53:35 +00:00
&::before {
2022-10-19 21:18:56 +00:00
background-image: url(/icons/user-link-default.svg);
2022-09-09 11:53:35 +00:00
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: contain;
content: '';
2023-08-27 21:21:40 +00:00
height: 100%;
2022-09-09 11:53:35 +00:00
left: 50%;
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
transition: filter 0.2s;
2023-08-27 21:21:40 +00:00
width: 100%;
2022-09-09 11:53:35 +00:00
}
&:hover {
background: #000;
&::before {
2023-08-27 21:21:40 +00:00
filter: invert(1);
}
.authorSubscribeSocialLabel {
@include font-size(1.6rem);
color: #000;
display: block;
left: 100%;
padding-left: 0.4rem;
position: absolute;
}
}
&[href*='facebook.com/'] {
&::before {
background-image: url(/icons/user-link-facebook.svg);
}
&:hover {
.authorSubscribeSocialLabel {
display: none;
}
}
}
2022-09-09 11:53:35 +00:00
&[href*='twitter.com/'] {
&::before {
background-image: url(/icons/user-link-twitter.svg);
}
&:hover {
.authorSubscribeSocialLabel {
display: none;
}
}
}
2022-09-09 11:53:35 +00:00
2023-11-11 15:24:45 +00:00
&[href*='telegram.com/'],
&[href*='t.me/'] {
&::before {
background-image: url(/icons/user-link-telegram.svg);
}
&:hover {
.authorSubscribeSocialLabel {
display: none;
}
}
}
&[href*='vk.cc/'],
&[href*='vk.com/'] {
&::before {
background-image: url(/icons/user-link-vk.svg);
}
&:hover {
.authorSubscribeSocialLabel {
display: none;
}
}
}
2022-10-19 21:40:50 +00:00
&[href*='tumblr.com/'] {
&::before {
background-image: url(/icons/user-link-tumblr.svg);
}
&:hover {
.authorSubscribeSocialLabel {
display: none;
}
}
}
2023-08-30 21:16:55 +00:00
&[href*='instagram.com/'] {
&::before {
background-image: url(/icons/user-link-instagram.svg);
}
&:hover {
.authorSubscribeSocialLabel {
display: none;
}
}
}
2023-08-30 21:16:55 +00:00
&[href*='behance.net/'] {
&::before {
background-image: url(/icons/user-link-behance.svg);
}
&:hover {
.authorSubscribeSocialLabel {
display: none;
}
}
}
2023-08-30 21:16:55 +00:00
&[href*='dribbble.com/'] {
&::before {
background-image: url(/icons/user-link-dribbble.svg);
}
&:hover {
.authorSubscribeSocialLabel {
display: none;
}
}
}
2023-08-30 21:16:55 +00:00
&[href*='github.com/'] {
&::before {
background-image: url(/icons/user-link-github.svg);
}
&:hover {
.authorSubscribeSocialLabel {
display: none;
}
}
}
2023-08-30 21:16:55 +00:00
&[href*='linkedin.com/'] {
&::before {
background-image: url(/icons/user-link-linkedin.svg);
}
&:hover {
.authorSubscribeSocialLabel {
display: none;
}
}
}
2023-08-30 21:16:55 +00:00
&[href*='medium.com/'] {
&::before {
background-image: url(/icons/user-link-medium.svg);
}
&:hover {
.authorSubscribeSocialLabel {
display: none;
}
}
}
2023-08-30 21:16:55 +00:00
&[href*='ok.ru/'] {
&::before {
background-image: url(/icons/user-link-ok.svg);
}
&:hover {
.authorSubscribeSocialLabel {
display: none;
}
}
}
2023-08-30 21:16:55 +00:00
&[href*='pinterest.com/'] {
&::before {
background-image: url(/icons/user-link-pinterest.svg);
}
2023-08-30 21:16:55 +00:00
&:hover {
.authorSubscribeSocialLabel {
display: none;
}
}
2023-08-30 21:16:55 +00:00
}
&[href*='reddit.com/'] {
&::before {
background-image: url(/icons/user-link-reddit.svg);
}
&:hover {
.authorSubscribeSocialLabel {
display: none;
}
}
}
2023-08-30 21:16:55 +00:00
&[href*='tiktok.com/'] {
&::before {
background-image: url(/icons/user-link-tiktok.svg);
}
&:hover {
.authorSubscribeSocialLabel {
display: none;
}
}
}
2023-08-30 21:16:55 +00:00
&[href*='youtube.com/'],
&[href*='youtu.be/'] {
&::before {
background-image: url(/icons/user-link-youtube.svg);
}
2023-09-21 20:44:41 +00:00
&:hover {
.authorSubscribeSocialLabel {
display: none;
}
}
2022-11-11 08:58:22 +00:00
}
&[href*='dzen.ru/'] {
&::before {
background-image: url(/icons/user-link-dzen.svg);
}
&:hover {
.authorSubscribeSocialLabel {
display: none;
}
}
}
2022-10-19 21:40:50 +00:00
}
@include media-breakpoint-down(sm) {
flex: 1 100%;
justify-content: center;
}
2023-09-21 20:44:41 +00:00
@include media-breakpoint-down(md) {
justify-content: center;
}
a:link {
border: none;
}
}
.listWrapper {
max-height: 70vh;
}
2024-05-25 16:27:15 +00:00
.subscribersContainer {
display: flex;
flex-wrap: wrap;
font-size: 1.4rem;
gap: 1rem;
margin-top: 0;
white-space: nowrap;
@include media-breakpoint-down(md) {
justify-content: center;
}
}