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

588 lines
9.1 KiB
SCSS
Raw Normal View History

2022-09-09 11:53:35 +00:00
.author {
2023-09-28 21:55:15 +00:00
align-items: center;
2022-09-09 11:53:35 +00:00
display: flex;
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;
}
2023-09-21 20:44:41 +00:00
@include media-breakpoint-up(md) {
margin-bottom: 2.4rem;
}
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;
}
}
.authorDetails {
2022-09-09 11:53:35 +00:00
flex: 1;
2022-11-14 01:17:12 +00:00
2023-09-02 22:14:34 +00:00
@include media-breakpoint-up(sm) {
align-items: baseline;
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-09-21 20:44:41 +00:00
&.authorDetailsShrinked {
flex: 0 0 auto;
}
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%;
}
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
}
2023-06-02 22:01:34 +00:00
.authorNameContainer {
line-height: 1.1;
}
.authorName {
2022-09-09 11:53:35 +00:00
border: none !important;
2023-06-02 22:01:34 +00:00
font-size: 1.6rem;
2022-09-09 11:53:35 +00:00
font-weight: 500;
2023-07-26 19:22:08 +00:00
line-height: 2;
2022-09-09 11:53:35 +00:00
margin-bottom: 0.8rem;
2023-10-03 23:06:41 +00:00
.listWrapper &:before {
content: '';
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
z-index: 2;
}
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
}
.authorSubscribe {
2022-10-19 21:40:50 +00:00
align-items: center;
2022-11-26 21:27:54 +00:00
@include media-breakpoint-down(md) {
flex-wrap: wrap;
}
2022-09-09 11:53:35 +00:00
a {
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);
}
}
2022-09-09 11:53:35 +00:00
}
a[href*='facebook.com/'] {
&::before {
2023-08-27 21:21:40 +00:00
background-image: url(/icons/user-link-facebook.svg);
2022-09-09 11:53:35 +00:00
}
}
a[href*='twitter.com/'] {
&::before {
2023-08-27 21:21:40 +00:00
background-image: url(/icons/user-link-twitter.svg);
2022-09-09 11:53:35 +00:00
}
}
a[href*='telegram.com/'] {
&::before {
2023-08-27 21:21:40 +00:00
background-image: url(/icons/user-link-telegram.svg);
2022-09-09 11:53:35 +00:00
}
}
2022-10-25 16:25:42 +00:00
a[href*='vk.cc/'],
2022-09-09 11:53:35 +00:00
a[href*='vk.com/'] {
&::before {
2023-08-30 21:16:55 +00:00
background-image: url(/icons/user-link-vk.svg);
2022-09-09 11:53:35 +00:00
}
}
a[href*='tumblr.com/'] {
&::before {
2023-08-30 21:16:55 +00:00
background-image: url(/icons/user-link-tumblr.svg);
2022-09-09 11:53:35 +00:00
}
}
a[href*='instagram.com/'] {
&::before {
2023-08-27 21:21:40 +00:00
background-image: url(/icons/user-link-instagram.svg);
}
}
2022-10-19 21:40:50 +00:00
2023-08-30 21:16:55 +00:00
a[href*='behance.net/'] {
&::before {
background-image: url(/icons/user-link-behance.svg);
}
}
a[href*='dribbble.com/'] {
&::before {
background-image: url(/icons/user-link-dribbble.svg);
}
}
a[href*='github.com/'] {
&::before {
background-image: url(/icons/user-link-github.svg);
}
}
a[href*='linkedin.com/'] {
&::before {
background-image: url(/icons/user-link-linkedin.svg);
}
}
a[href*='medium.com/'] {
&::before {
background-image: url(/icons/user-link-medium.svg);
}
}
a[href*='ok.ru/'] {
&::before {
background-image: url(/icons/user-link-ok.svg);
}
}
a[href*='pinterest.com/'] {
&::before {
background-image: url(/icons/user-link-pinterest.svg);
}
}
a[href*='reddit.com/'] {
&::before {
background-image: url(/icons/user-link-reddit.svg);
}
}
a[href*='tiktok.com/'] {
&::before {
background-image: url(/icons/user-link-tiktok.svg);
}
}
a[href*='vk.com/'] {
&::before {
background-image: url(/icons/user-link-vk.svg);
}
}
a[href*='youtube.com/'],
a[href*='youtu.be/'] {
&::before {
background-image: url(/icons/user-link-youtube.svg);
}
}
a[href*='dzen.ru/'] {
&::before {
background-image: url(/icons/user-link-dzen.svg);
}
}
.button {
2023-09-28 21:55:15 +00:00
padding-left: 2rem;
padding-right: 2rem;
2022-10-19 21:40:50 +00:00
margin-right: 0.5em;
2022-11-11 08:58:22 +00:00
2023-09-21 20:44:41 +00:00
&:first-of-type {
margin-left: 0;
}
2022-11-11 08:58:22 +00:00
&:last-child {
margin-right: 0;
}
&:hover {
.buttonUnfollowLabel {
display: block;
}
.buttonSubscribedLabel {
display: none;
}
}
.buttonUnfollowLabel {
display: none;
}
2022-10-19 21:40:50 +00:00
}
2022-09-09 11:53:35 +00:00
}
.authorSubscribeSocial {
align-items: center;
display: flex;
2023-09-28 21:55:15 +00:00
margin: 0 0.8rem 2rem 0;
@include media-breakpoint-down(sm) {
flex: 1 100%;
justify-content: center;
margin-top: 1em;
}
2023-09-21 20:44:41 +00:00
@include media-breakpoint-down(md) {
justify-content: center;
}
a:link {
border: none;
}
}
.buttonSubscribe {
2022-09-09 11:53:35 +00:00
align-items: center;
aspect-ratio: 1/1;
border-radius: 100%;
display: inline-flex;
float: right;
img {
display: block;
}
}
.buttonLabel {
2022-09-09 11:53:35 +00:00
display: none;
}
2023-05-17 20:27:24 +00:00
.buttonLabelVisible {
display: block;
}
.buttonWrite {
2022-09-09 11:53:35 +00:00
color: #000;
display: inline-flex;
2023-10-02 20:58:49 +00:00
transition:
background-color 0.3s,
color 0.3s;
2022-10-19 21:40:50 +00:00
&:hover {
background: #000;
color: #fff;
img {
filter: invert(1);
}
}
2022-09-09 11:53:35 +00:00
.icon {
2022-11-23 20:47:06 +00:00
display: inline-block;
2022-09-09 11:53:35 +00:00
margin-right: 0.5em;
}
img {
height: 15px;
2022-10-19 21:40:50 +00:00
transition: filter 0.3s;
2022-09-09 11:53:35 +00:00
}
}
2023-09-28 21:55:15 +00:00
.buttonWriteAuthorPage {
background: #f6f6f6 !important;
border-radius: 0.8rem;
}
.authorPage {
2023-09-28 21:55:15 +00:00
align-items: center;
@include media-breakpoint-down(md) {
justify-content: center;
}
.authorName {
2023-09-28 21:55:15 +00:00
@include font-size(4rem);
font-weight: 700;
margin-bottom: 0.2em;
}
.authorAbout {
2023-05-01 18:32:32 +00:00
color: #696969;
2023-09-28 21:55:15 +00:00
@include font-size(2rem);
font-weight: 500;
}
.authorSubscribe {
2023-09-28 21:55:15 +00:00
margin: 2rem -0.8rem 0 0;
2022-11-20 22:10:07 +00:00
padding-left: 0;
@include media-breakpoint-down(md) {
justify-content: center;
}
}
.authorDetails {
display: block;
@include media-breakpoint-down(md) {
flex: 1 100%;
2023-09-27 21:28:32 +00:00
text-align: center;
}
}
.buttonLabel {
display: block;
}
.buttonSubscribe {
aspect-ratio: auto;
background-color: #000;
2022-11-02 21:43:38 +00:00
border-color: #000;
border-radius: 0.8rem;
2022-11-23 20:47:06 +00:00
color: #fff;
float: none;
padding-bottom: 0.6rem;
padding-top: 0.6rem;
2023-10-02 20:58:49 +00:00
width: 10em;
.icon {
margin-right: 0.5em;
img {
filter: invert(1);
}
}
&:hover {
2023-05-17 18:58:36 +00:00
background: #fff;
color: #000;
.icon img {
2023-05-17 18:58:36 +00:00
filter: invert(0);
}
}
}
.buttonSubscribe img {
vertical-align: text-top;
}
.button {
2023-07-18 21:50:27 +00:00
min-height: 4rem;
2023-09-28 21:55:15 +00:00
margin: 0 0.8rem 0 0;
vertical-align: middle;
@include media-breakpoint-down(sm) {
margin-bottom: 0.5em;
}
}
}
2022-11-11 08:58:22 +00:00
.authorsListItem {
2022-11-30 21:50:33 +00:00
margin-bottom: 1em !important;
2022-11-11 08:58:22 +00:00
.authorName {
@include font-size(2.2rem);
2022-11-11 08:58:22 +00:00
font-weight: bold;
}
.authorSubscribe {
align-items: baseline;
@include media-breakpoint-down(sm) {
padding: 1rem 0 0;
}
}
.buttonLabel {
display: block;
}
}
2022-11-26 21:27:54 +00:00
2023-02-13 13:48:05 +00:00
.nowrapView {
flex-wrap: nowrap;
align-items: center;
margin: 0;
}
2022-11-26 21:27:54 +00:00
.authorComments {
.authorName {
@include font-size(1.2rem);
2023-09-28 21:55:15 +00:00
line-height: 1.2;
2022-11-26 21:27:54 +00:00
margin-bottom: 0;
}
.circlewrap {
2023-09-28 21:55:15 +00:00
margin-top: -0.4em;
2022-11-26 21:27:54 +00:00
}
}
.isSubscribing {
2023-01-24 22:00:10 +00:00
opacity: 0.5;
}
2023-01-26 21:42:47 +00:00
.feedMode {
2023-06-27 22:47:47 +00:00
align-items: center;
margin-bottom: 0.4rem;
2023-01-26 21:42:47 +00:00
.authorName {
@include font-size(1.2rem);
margin-bottom: 0;
}
.circlewrap {
height: 1.6rem;
margin-right: 0.4rem;
min-width: 1.6rem;
width: 1.6rem;
}
}
2023-09-02 22:14:34 +00:00
.subscribersContainer {
display: flex;
flex-wrap: wrap;
font-size: 1.4rem;
2023-09-21 20:44:41 +00:00
margin-top: 0.5rem;
@include media-breakpoint-down(md) {
justify-content: center;
}
2023-09-02 22:14:34 +00:00
}
.subscribers {
2023-09-02 22:14:34 +00:00
align-items: center;
cursor: pointer;
display: inline-flex;
2023-09-21 20:44:41 +00:00
margin-top: 1rem;
2023-09-02 22:14:34 +00:00
margin-right: 3rem;
vertical-align: top;
2023-09-21 20:44:41 +00:00
&:last-child {
margin-right: 0;
}
.userpic {
background: var(--background-color);
box-shadow: 0 0 0 2px var(--background-color);
2023-09-21 20:44:41 +00:00
height: 1.8rem;
min-width: 1.8rem;
max-width: 1.8rem;
vertical-align: top;
2023-09-21 20:44:41 +00:00
width: 1.8rem;
&:not(:first-child) {
2023-09-21 20:44:41 +00:00
margin-left: -1.8rem;
}
2023-09-28 21:55:15 +00:00
> * {
line-height: 1.8rem;
min-width: auto;
}
}
}
2023-09-02 22:14:34 +00:00
.subscribersCounter {
2023-09-28 21:55:15 +00:00
font-weight: 500;
2023-09-02 22:14:34 +00:00
margin-left: -0.6rem;
2023-09-28 21:55:15 +00:00
&:hover {
color: #696969;
}
2023-09-02 22:14:34 +00:00
}
.listWrapper {
max-height: 70vh;
2023-09-27 21:28:32 +00:00
//padding-right: 2rem;
:global(.row) {
margin-right: 0;
}
}
.switcherCounter {
2023-10-03 23:06:41 +00:00
align-items: center;
background: #f7f7f8;
border-radius: 0.8rem;
2023-10-03 23:06:41 +00:00
display: inline-flex;
font-size: 1.2rem;
font-weight: bold;
2023-10-03 23:06:41 +00:00
height: 2.2rem;
justify-content: center;
line-height: 2.2rem;
margin-left: 0.4rem;
2023-10-03 23:06:41 +00:00
min-width: 2.2rem;
padding: 0 0.6rem;
text-align: center;
}
:global(.view-switcher__item--selected) .switcherCounter {
background: #000;
color: #fff;
}