kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
293 wiersze
5.9 KiB
SCSS
293 wiersze
5.9 KiB
SCSS
.account__header {
|
|
&.inactive {
|
|
opacity: 0.5;
|
|
|
|
.account__header__image,
|
|
.account__avatar {
|
|
filter: grayscale(100%);
|
|
}
|
|
}
|
|
|
|
&__info {
|
|
position: absolute;
|
|
top: 10px;
|
|
left: 10px;
|
|
z-index: 1;
|
|
}
|
|
|
|
&__subscribe {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
z-index: 1;
|
|
|
|
.subscription-button {
|
|
color: var(--primary-text-color);
|
|
margin-bottom: 4px;
|
|
display: block;
|
|
vertical-align: top;
|
|
background-color: var(--background-color);
|
|
text-transform: uppercase;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
padding: 4px;
|
|
border-radius: 4px;
|
|
opacity: 0.7;
|
|
|
|
&:not(.button-active) i.fa {
|
|
margin: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__image {
|
|
overflow: hidden;
|
|
height: 350px;
|
|
position: relative;
|
|
background: var(--accent-color--faint);
|
|
@media screen and (max-width: 895px) { height: 225px; }
|
|
&--none { height: 125px; }
|
|
|
|
img {
|
|
object-fit: cover;
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
.still-image {
|
|
height: 100%;
|
|
}
|
|
|
|
.still-image--play-on-hover::before {
|
|
content: 'GIF';
|
|
position: absolute;
|
|
color: var(--primary-text-color);
|
|
background: var(--foreground-color);
|
|
top: 6px;
|
|
left: 6px;
|
|
padding: 2px 6px;
|
|
border-radius: 2px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
pointer-events: none;
|
|
opacity: 0.9;
|
|
transition: opacity 0.1s ease;
|
|
line-height: 18px;
|
|
}
|
|
}
|
|
|
|
&__bar {
|
|
display: block;
|
|
min-height: 74px;
|
|
width: 100%;
|
|
position: relative;
|
|
background: var(--background-color);
|
|
@media (min-width: 895px) { height: 74px; }
|
|
}
|
|
|
|
&__avatar {
|
|
display: block;
|
|
position: absolute;
|
|
border: 5px solid var(--accent-color--faint);
|
|
left: 0;
|
|
top: -90px;
|
|
border-radius: 50%;
|
|
height: 200px;
|
|
width: 200px;
|
|
background-color: var(--foreground-color);
|
|
|
|
// NOTE - patch fix for avatar size. Wrapper may not be needed when I do polish up on the page
|
|
.account__avatar {
|
|
width: 200px;
|
|
height: 200px;
|
|
background-size: 200px 200px;
|
|
}
|
|
|
|
.still-image--play-on-hover::before {
|
|
content: 'GIF';
|
|
position: absolute;
|
|
color: var(--primary-text-color);
|
|
background: var(--foreground-color);
|
|
bottom: 15%;
|
|
left: 15%;
|
|
padding: 1px 4px;
|
|
border-radius: 2px;
|
|
font-size: 8px;
|
|
font-weight: 600;
|
|
pointer-events: none;
|
|
opacity: 0.9;
|
|
transition: opacity 0.1s ease;
|
|
line-height: 13px;
|
|
}
|
|
|
|
@media screen and (max-width: 895px) {
|
|
top: -45px;
|
|
left: 10px;
|
|
height: 90px;
|
|
width: 90px;
|
|
|
|
.account__avatar {
|
|
width: 90px;
|
|
height: 90px;
|
|
background-size: 90px 90px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__extra {
|
|
display: flex;
|
|
flex-direction: row;
|
|
height: 100%;
|
|
margin: 0 auto;
|
|
padding-left: 310px;
|
|
width: 100%;
|
|
max-width: 1200px;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
@media (min-width: 895px) and (max-width: 1190px) {
|
|
max-width: 900px;
|
|
padding-left: 300px;
|
|
}
|
|
@media screen and (max-width: 895px) {
|
|
max-width: 900px;
|
|
padding: 10px 10px 0;
|
|
flex-direction: column-reverse;
|
|
min-height: 50px;
|
|
}
|
|
|
|
&__buttons {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-left: auto;
|
|
|
|
.icon-button {
|
|
border: 1px solid var(--brand-color--med);
|
|
border-radius: 4px;
|
|
box-sizing: content-box;
|
|
padding: 2px;
|
|
|
|
> div {
|
|
line-height: 31px !important;
|
|
}
|
|
}
|
|
|
|
.button { margin-right: 10px; }
|
|
|
|
.button-active {
|
|
border-color: #008000;
|
|
background: #008000;
|
|
color: #fff;
|
|
}
|
|
}
|
|
|
|
&__links {
|
|
display: flex;
|
|
font-size: 14px;
|
|
color: var(--primary-text-color--faint);
|
|
@media screen and (max-width: 895px) {
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
a {
|
|
display: inline-block;
|
|
text-decoration: none;
|
|
padding: 16px 22px;
|
|
text-align: center;
|
|
@media screen and (max-width: 1190px) { padding: 16px; }
|
|
|
|
> span {
|
|
display: block;
|
|
|
|
&:first-of-type {
|
|
color: var(--primary-text-color);
|
|
font-size: 20px;
|
|
font-weight: 800;
|
|
line-height: 24px;
|
|
@media screen and (max-width: 895px) {
|
|
font-size: 16px;
|
|
line-height: 20px;
|
|
}
|
|
}
|
|
|
|
&:last-of-type {
|
|
color: var(--primary-text-color--faint);
|
|
font-size: 12px;
|
|
line-height: 14px;
|
|
padding-top: 2px;
|
|
}
|
|
}
|
|
|
|
&:hover,
|
|
&.active {
|
|
border-bottom: 2px solid var(--primary-text-color);
|
|
}
|
|
&.score { border-bottom: 0 !important; }
|
|
}
|
|
}
|
|
} // end .account__header__extra
|
|
@media screen and (max-width: 895px) {
|
|
.account-mobile-container {
|
|
display: block;
|
|
background: var(--background-color);
|
|
margin-top: 10px;
|
|
position: relative;
|
|
padding: 10px 10px 0;
|
|
&--nonuser { padding: 10px 10px 15px; }
|
|
}
|
|
|
|
.account-mobile-container.deactivated {
|
|
margin-top: 50px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.account__header.deactivated {
|
|
.still-image img,
|
|
.still-image canvas {
|
|
display: none;
|
|
}
|
|
|
|
.account__header__extra__links,
|
|
.account__header__extra__buttons {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
// end .account__header
|
|
|
|
.account-timeline {
|
|
&__header {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.account__header__content {
|
|
color: var(--primary-text-color--faint);
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
overflow: hidden;
|
|
word-break: normal;
|
|
word-wrap: break-word;
|
|
|
|
p {
|
|
margin-bottom: 20px;
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: underline;
|
|
|
|
&:hover {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|