sforkowany z mirror/soapbox
796 wiersze
13 KiB
SCSS
796 wiersze
13 KiB
SCSS
.icon-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 0;
|
|
color: var(--primary-text-color);
|
|
border: 0;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
transition: 100ms ease-in;
|
|
opacity: 0.4;
|
|
|
|
i.fa {
|
|
margin: 0;
|
|
}
|
|
|
|
&__text {
|
|
padding-left: 2px;
|
|
}
|
|
|
|
&:hover,
|
|
&:active,
|
|
&:focus {
|
|
opacity: 0.6;
|
|
transition: color 200ms ease-out;
|
|
}
|
|
|
|
&.disabled {
|
|
opacity: 0.2;
|
|
cursor: default;
|
|
}
|
|
|
|
&.active {
|
|
color: var(--highlight-text-color);
|
|
opacity: 1;
|
|
}
|
|
|
|
&::-moz-focus-inner {
|
|
border: 0;
|
|
}
|
|
|
|
&::-moz-focus-inner,
|
|
&:focus,
|
|
&:active {
|
|
outline: 0 !important;
|
|
}
|
|
|
|
&.inverted {
|
|
color: var(--primary-text-color--faint);
|
|
opacity: 1;
|
|
|
|
&:hover,
|
|
&:active,
|
|
&:focus {
|
|
color: var(--primary-text-color);
|
|
}
|
|
|
|
&.disabled {
|
|
color: var(--primary-text-color--faint);
|
|
}
|
|
|
|
&.active {
|
|
color: var(--highlight-text-color);
|
|
|
|
&.disabled {
|
|
color: var(--highlight-text-color);
|
|
}
|
|
}
|
|
}
|
|
|
|
&.overlayed {
|
|
box-sizing: content-box;
|
|
background: var(--foreground-color);
|
|
color: var(--primary-text-color--faint);
|
|
border-radius: 6px;
|
|
padding: 2px;
|
|
opacity: 1;
|
|
|
|
> div {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
&:hover {
|
|
background: var(--background-color);
|
|
}
|
|
}
|
|
}
|
|
|
|
.text-icon-button {
|
|
color: var(--primary-text-color--faint);
|
|
border: 0;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
font-size: 11px;
|
|
padding: 0 3px;
|
|
line-height: 27px;
|
|
outline: 0;
|
|
transition: color 100ms ease-in;
|
|
|
|
&:hover,
|
|
&:active,
|
|
&:focus {
|
|
color: var(--primary-text-color);
|
|
transition: color 200ms ease-out;
|
|
}
|
|
|
|
&.disabled {
|
|
color: var(--primary-text-color--faint);
|
|
cursor: default;
|
|
}
|
|
|
|
&.active {
|
|
color: var(--highlight-text-color);
|
|
}
|
|
|
|
&::-moz-focus-inner {
|
|
border: 0;
|
|
}
|
|
|
|
&::-moz-focus-inner,
|
|
&:focus,
|
|
&:active {
|
|
outline: 0 !important;
|
|
}
|
|
}
|
|
|
|
.invisible {
|
|
font-size: 0 !important;
|
|
line-height: 0 !important;
|
|
display: inline-block;
|
|
width: 0;
|
|
height: 0;
|
|
position: absolute;
|
|
|
|
img,
|
|
svg {
|
|
margin: 0 !important;
|
|
border: 0 !important;
|
|
padding: 0 !important;
|
|
width: 0 !important;
|
|
height: 0 !important;
|
|
}
|
|
}
|
|
|
|
.react-datepicker-popper {
|
|
z-index: 9999 !important;
|
|
}
|
|
|
|
.ellipsis::after { content: "…"; }
|
|
|
|
.timeline-compose-block {
|
|
@include standard-panel;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
padding: 20px;
|
|
margin-bottom: 10px;
|
|
|
|
.compose-form {
|
|
flex: 1 1;
|
|
padding: 0 0 0 20px !important;
|
|
position: relative;
|
|
|
|
@media (max-width: 405px) {
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.spoiler-input__input,
|
|
.autosuggest-textarea__textarea {
|
|
background-color: var(--background-color);
|
|
}
|
|
|
|
.autosuggest-textarea__textarea {
|
|
padding: 14px 32px 13px 10px !important;
|
|
}
|
|
|
|
.compose-form__autosuggest-wrapper {
|
|
&::before {
|
|
content: "";
|
|
display: block;
|
|
position: absolute;
|
|
height: 0;
|
|
width: 0;
|
|
border-top: 11px solid transparent;
|
|
border-right: 12px solid var(--background-color);
|
|
border-bottom: 11px solid transparent;
|
|
border-left: 11px solid transparent;
|
|
left: -22px;
|
|
top: 13px;
|
|
|
|
@media (max-width: 405px) {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&__avatar {
|
|
display: block;
|
|
border-radius: 50%;
|
|
@media (max-width: 405px) { display: none; }
|
|
}
|
|
}
|
|
|
|
.no-reduce-motion .spoiler-input {
|
|
transition: height 0.4s ease, opacity 0.4s ease;
|
|
}
|
|
|
|
.emojione {
|
|
font-size: inherit;
|
|
vertical-align: middle;
|
|
object-fit: contain;
|
|
margin: -0.2ex 0.15em 0.2ex;
|
|
width: 16px;
|
|
height: 16px;
|
|
|
|
img {
|
|
width: auto;
|
|
}
|
|
}
|
|
|
|
.status__relative-time,
|
|
.notification__relative_time {
|
|
color: var(--primary-text-color--faint);
|
|
float: right;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.domain {
|
|
padding: 10px;
|
|
border-bottom: 1px solid var(--brand-color--med);
|
|
|
|
.domain__domain-name {
|
|
flex: 1 1 auto;
|
|
display: block;
|
|
color: var(--primary-text-color);
|
|
text-decoration: none;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
&__buttons .svg-icon {
|
|
height: 18px;
|
|
width: 18px;
|
|
}
|
|
}
|
|
|
|
article:last-child > .domain {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.domain__wrapper {
|
|
display: flex;
|
|
}
|
|
|
|
.muted {
|
|
.status__content p,
|
|
.status__content a {
|
|
color: var(--primary-text-color);
|
|
}
|
|
|
|
.status__display-name strong {
|
|
color: var(--primary-text-color);
|
|
}
|
|
|
|
.status__avatar {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
a.status__content__spoiler-link {
|
|
background: var(--brand-color--med);
|
|
color: var(--primary-text-color);
|
|
|
|
&:hover {
|
|
background: var(--brand-color--faint);
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.star-icon.active {
|
|
color: $gold-star;
|
|
}
|
|
|
|
.status__relative-time,
|
|
.detailed-status__datetime {
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
.image-loader {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
|
|
.image-loader__preview-canvas {
|
|
max-width: $media-modal-media-max-width;
|
|
max-height: $media-modal-media-max-height;
|
|
background: url('../images/void.png') repeat;
|
|
object-fit: contain;
|
|
}
|
|
|
|
&.image-loader--amorphous .image-loader__preview-canvas {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.zoomable-image {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
img {
|
|
max-width: $media-modal-media-max-width;
|
|
max-height: $media-modal-media-max-height;
|
|
width: auto;
|
|
height: auto;
|
|
object-fit: contain;
|
|
box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.5);
|
|
}
|
|
}
|
|
|
|
.react-swipeable-view-container {
|
|
&,
|
|
.columns-area,
|
|
.column {
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.react-swipeable-view-container > * {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
}
|
|
|
|
.ui {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 0 0 calc(var(--thumb-navigation-height) + 86px);
|
|
|
|
.page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
|
|
&__top {
|
|
@include standard-panel-shadow;
|
|
display: flex;
|
|
width: 100%;
|
|
height: auto;
|
|
z-index: 1000;
|
|
background: var(--foreground-color);
|
|
|
|
@media (min-width: 896px) {
|
|
top: -290px;
|
|
position: sticky;
|
|
}
|
|
}
|
|
|
|
&__columns {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.floating-action-button {
|
|
z-index: 1000;
|
|
display: none;
|
|
position: fixed;
|
|
bottom: calc(var(--thumb-navigation-height) + 14px);
|
|
right: 14px;
|
|
width: 58px;
|
|
height: 58px;
|
|
background-color: var(--brand-color);
|
|
color: white;
|
|
border: 0;
|
|
border-radius: 10px;
|
|
font-size: 30px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: 0.2s;
|
|
|
|
@media screen and (max-width: 630px) {
|
|
display: flex;
|
|
}
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
background-color: var(--brand-color--hicontrast);
|
|
}
|
|
|
|
.svg-icon {
|
|
width: 30px;
|
|
height: 30px;
|
|
|
|
svg {
|
|
stroke-width: 1.5px;
|
|
width: 30px; // iOS fix
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 360px) {
|
|
.getting-started__wrapper,
|
|
.getting-started__trends {
|
|
margin-bottom: 10px;
|
|
}
|
|
}
|
|
|
|
.icon-with-badge {
|
|
position: relative;
|
|
height: 100%;
|
|
|
|
&__badge {
|
|
@include font-montserrat;
|
|
@include font-size(14);
|
|
@include line-height(14);
|
|
position: absolute;
|
|
box-sizing: border-box;
|
|
left: -10px;
|
|
top: 3px;
|
|
min-width: 16px;
|
|
height: 16px;
|
|
padding: 1px 3px 0;
|
|
border-radius: 8px;
|
|
text-align: center;
|
|
color: #fff;
|
|
background: var(--accent-color);
|
|
|
|
@media screen and (max-width: 895px) {
|
|
top: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.slist {
|
|
&--flex {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
&__append {
|
|
flex: 1 1 auto;
|
|
position: relative;
|
|
padding: 30px 15px;
|
|
}
|
|
}
|
|
|
|
.setting-text {
|
|
color: var(--primary-text-color--faint);
|
|
background: transparent;
|
|
border: 0;
|
|
border-bottom: 2px solid var(--brand-color);
|
|
box-sizing: border-box;
|
|
display: block;
|
|
font-family: inherit;
|
|
margin-bottom: 10px;
|
|
padding: 7px 0;
|
|
width: 100%;
|
|
|
|
&:focus,
|
|
&:active {
|
|
color: var(--primary-text-color);
|
|
border-bottom-color: var(--highlight-text-color);
|
|
}
|
|
|
|
@media screen and (max-width: 600px) {
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
|
|
.morefollows-indicator {
|
|
text-align: center;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
color: var(--primary-text-color);
|
|
background: var(--brand-color--med);
|
|
cursor: default;
|
|
display: flex;
|
|
flex: 1 1 auto;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
|
|
& > div {
|
|
width: 100%;
|
|
background: transparent;
|
|
padding-top: 0;
|
|
}
|
|
|
|
&__label {
|
|
strong {
|
|
display: block;
|
|
margin-bottom: 10px;
|
|
color: var(--primary-text-color);
|
|
}
|
|
}
|
|
}
|
|
|
|
.text-btn {
|
|
display: inline-block;
|
|
padding: 0;
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
color: inherit;
|
|
border: 0;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.account--panel__button,
|
|
.detailed-status__button {
|
|
flex: 1 1 auto;
|
|
text-align: center;
|
|
}
|
|
|
|
.emoji-button {
|
|
display: block;
|
|
font-size: 24px;
|
|
line-height: 24px;
|
|
margin-left: 2px;
|
|
width: 24px;
|
|
outline: 0;
|
|
cursor: pointer;
|
|
|
|
&:active,
|
|
&:focus {
|
|
outline: 0 !important;
|
|
}
|
|
|
|
img {
|
|
filter: grayscale(100%);
|
|
opacity: 0.8;
|
|
display: block;
|
|
margin: 0;
|
|
width: 22px;
|
|
height: 22px;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
&:hover,
|
|
&:active,
|
|
&:focus {
|
|
img {
|
|
opacity: 1;
|
|
filter: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.dropdown--active .emoji-button img {
|
|
opacity: 1;
|
|
filter: none;
|
|
}
|
|
|
|
.attachment-list {
|
|
display: flex;
|
|
font-size: 14px;
|
|
border: 1px solid var(--brand-color--med);
|
|
border-radius: 4px;
|
|
margin-top: 14px;
|
|
overflow: hidden;
|
|
|
|
&__icon {
|
|
flex: 0 0 auto;
|
|
color: var(--primary-text-color);
|
|
padding: 8px 18px;
|
|
cursor: default;
|
|
border-right: 1px solid var(--brand-color--med);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 26px;
|
|
|
|
.fa {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
&__list {
|
|
list-style: none;
|
|
padding: 4px 0;
|
|
padding-left: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
|
|
li {
|
|
display: block;
|
|
padding: 4px 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: var(--primary-text-color);
|
|
font-weight: 500;
|
|
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.compact {
|
|
border: 0;
|
|
margin-top: 4px;
|
|
|
|
.attachment-list__list {
|
|
padding: 0;
|
|
display: block;
|
|
}
|
|
|
|
.fa {
|
|
color: var(--primary-text-color);
|
|
}
|
|
}
|
|
}
|
|
|
|
.filter-bar,
|
|
.account__section-headline {
|
|
border-bottom: 1px solid var(--brand-color--faint);
|
|
cursor: default;
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
|
|
button {
|
|
border: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
button,
|
|
a {
|
|
display: block;
|
|
flex: 1 1 auto;
|
|
color: var(--primary-text-color--faint);
|
|
padding: 15px 0;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
position: relative;
|
|
background: transparent;
|
|
|
|
&:active,
|
|
&:focus,
|
|
&:hover,
|
|
&.active {
|
|
color: var(--primary-text-color);
|
|
}
|
|
|
|
&.active {
|
|
&::before,
|
|
&::after {
|
|
display: block;
|
|
content: "";
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 50%;
|
|
width: 100%;
|
|
height: 3px;
|
|
transform: translateX(-50%);
|
|
background-color: var(--accent-color);
|
|
}
|
|
}
|
|
|
|
.svg-icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
margin: 0 auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
.filter-bar {
|
|
position: relative;
|
|
|
|
&__active {
|
|
position: absolute;
|
|
height: 3px;
|
|
bottom: 0;
|
|
background-color: var(--accent-color);
|
|
}
|
|
}
|
|
|
|
.no-reduce-motion .filter-bar__active {
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.reaction__filter-bar {
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
|
|
button,
|
|
a {
|
|
flex: unset;
|
|
padding: 15px 24px;
|
|
min-width: max-content;
|
|
}
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
border-radius: 0;
|
|
}
|
|
|
|
@keyframes flicker {
|
|
0% { opacity: 1; }
|
|
30% { opacity: 0.75; }
|
|
100% { opacity: 1; }
|
|
}
|
|
|
|
.verified-icon {
|
|
display: inline-block;
|
|
margin: 0 4px 0 1px;
|
|
vertical-align: top;
|
|
position: relative;
|
|
width: 15px;
|
|
height: 15px;
|
|
flex-shrink: 0;
|
|
|
|
&::before {
|
|
display: block;
|
|
content: "";
|
|
position: absolute;
|
|
background-color: #00a3ed;
|
|
top: 0;
|
|
right: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
&::after {
|
|
display: block;
|
|
position: absolute;
|
|
content: '\f00c';
|
|
font-family: 'Font Awesome 5 Free';
|
|
font-weight: 900;
|
|
font-size: 0.6em;
|
|
text-rendering: auto;
|
|
-webkit-font-smoothing: antialiased;
|
|
color: #fff;
|
|
line-height: 15px;
|
|
width: 15px;
|
|
height: 15px;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
.icon-with-counter {
|
|
position: relative;
|
|
display: inline;
|
|
|
|
&__counter {
|
|
@include font-montserrat;
|
|
@include font-size(14);
|
|
@include line-height(14);
|
|
position: absolute;
|
|
box-sizing: border-box;
|
|
right: -5px;
|
|
top: -9px;
|
|
min-width: 16px;
|
|
height: 16px;
|
|
padding: 1px 3px 0;
|
|
border-radius: 8px;
|
|
text-align: center;
|
|
color: #fff;
|
|
background: var(--accent-color);
|
|
}
|
|
}
|
|
|
|
.page__top + .page__columns .columns-area {
|
|
@media screen and (max-width: 580px) {
|
|
padding-top: 10px;
|
|
}
|
|
}
|