451 lines
8.3 KiB
SCSS
451 lines
8.3 KiB
SCSS
.onboarding-modal,
|
|
.error-modal,
|
|
.embed-modal {
|
|
background: $ui-secondary-color;
|
|
color: $inverted-text-color;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.error-modal__body {
|
|
position: relative;
|
|
|
|
@include size(80vw, 80vh);
|
|
@include max-size(520px, 420px);
|
|
|
|
&>div {
|
|
box-sizing: border-box;
|
|
padding: 25px;
|
|
display: none;
|
|
opacity: 0;
|
|
user-select: text;
|
|
|
|
@include size(100%);
|
|
@include abs-position(0, auto, auto, 0);
|
|
@include flex(center, center, column);
|
|
}
|
|
}
|
|
|
|
.error-modal__body {
|
|
text-align: center;
|
|
|
|
@include flex(center, center, column);
|
|
}
|
|
|
|
.onboarding-modal__paginator,
|
|
.error-modal__footer {
|
|
flex: 0 0 auto;
|
|
background: darken($ui-secondary-color, 8%);
|
|
display: flex;
|
|
padding: 25px;
|
|
|
|
&>div {
|
|
min-width: 33px;
|
|
}
|
|
|
|
.onboarding-modal__nav,
|
|
.error-modal__nav {
|
|
color: $lighter-text-color;
|
|
border: 0;
|
|
padding: 10px 25px;
|
|
height: auto;
|
|
margin: -10px;
|
|
border-radius: 4px;
|
|
background-color: transparent;
|
|
|
|
@include text-sizing(14px, 500, inherit);
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
color: darken($lighter-text-color, 4%);
|
|
background-color: darken($ui-secondary-color, 16%);
|
|
}
|
|
|
|
&.onboarding-modal__done,
|
|
&.onboarding-modal__next {
|
|
color: $inverted-text-color;
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
color: lighten($inverted-text-color, 4%);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.error-modal__footer {
|
|
justify-content: center;
|
|
}
|
|
|
|
.display-case {
|
|
text-align: center;
|
|
font-size: 15px;
|
|
margin-bottom: 15px;
|
|
|
|
&__label {
|
|
color: $inverted-text-color;
|
|
margin-bottom: 5px;
|
|
text-transform: uppercase;
|
|
|
|
@include text-sizing(12px, 500);
|
|
}
|
|
|
|
&__case {
|
|
background: $ui-base-color;
|
|
color: $secondary-text-color;
|
|
font-weight: 500;
|
|
padding: 10px;
|
|
border-radius: 4px;
|
|
}
|
|
}
|
|
|
|
.onboard-sliders {
|
|
display: inline-block;
|
|
margin-left: 10px;
|
|
|
|
@include max-size(30px, auto);
|
|
}
|
|
|
|
.boost-modal,
|
|
.confirmation-modal,
|
|
.report-modal,
|
|
.actions-modal,
|
|
.mute-modal {
|
|
position: relative;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
width: 480px;
|
|
max-width: 90vw;
|
|
color: $gab-secondary-text;
|
|
|
|
@include border-design($gab-placeholder-accent, 1px, 4px);
|
|
|
|
body.theme-gabsocial-light & {
|
|
color: $gab-default-text-light;
|
|
}
|
|
|
|
background: $gab-background-container;
|
|
|
|
.status__display-name {
|
|
display: block;
|
|
max-width: 100%;
|
|
padding-right: 25px;
|
|
}
|
|
|
|
.status__avatar {
|
|
height: 28px;
|
|
left: 10px;
|
|
position: absolute;
|
|
top: 10px;
|
|
width: 48px;
|
|
}
|
|
|
|
.status__content__spoiler-link {
|
|
color: lighten($secondary-text-color, 8%);
|
|
}
|
|
}
|
|
|
|
.actions-modal {
|
|
.status {
|
|
background: $white;
|
|
border-bottom-color: $ui-secondary-color;
|
|
|
|
@include vertical-padding(10px);
|
|
}
|
|
|
|
.dropdown-menu__separator {
|
|
display: block;
|
|
margin: 10px;
|
|
height: 1px;
|
|
background: $gab-background-base;
|
|
}
|
|
}
|
|
|
|
.boost-modal__container {
|
|
overflow-x: scroll;
|
|
padding: 10px;
|
|
|
|
.status {
|
|
user-select: text;
|
|
border-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.boost-modal__action-bar,
|
|
.confirmation-modal__action-bar,
|
|
.mute-modal__action-bar {
|
|
background: $ui-secondary-color;
|
|
padding: 10px;
|
|
line-height: 36px;
|
|
|
|
@include flex(space-between);
|
|
|
|
&>div {
|
|
flex: 1 1 auto;
|
|
text-align: right;
|
|
color: $lighter-text-color;
|
|
padding-right: 10px;
|
|
}
|
|
|
|
.button {
|
|
flex: 0 0 auto;
|
|
}
|
|
}
|
|
|
|
.boost-modal__status-header {
|
|
font-size: 15px;
|
|
}
|
|
|
|
.boost-modal__status-time {
|
|
float: right;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.mute-modal {
|
|
line-height: 24px;
|
|
}
|
|
|
|
.mute-modal .react-toggle {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.report-modal {
|
|
width: 90vw;
|
|
max-width: 700px;
|
|
}
|
|
|
|
.report-modal__container {
|
|
display: flex;
|
|
border-top: 1px solid $ui-secondary-color;
|
|
|
|
@media screen and (max-width: 480px) {
|
|
flex-wrap: wrap;
|
|
overflow-y: auto;
|
|
}
|
|
}
|
|
|
|
.report-modal__statuses,
|
|
.report-modal__comment {
|
|
box-sizing: border-box;
|
|
width: 50%;
|
|
|
|
@media screen and (max-width: 480px) {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.report-modal__statuses {
|
|
flex: 1 1 auto;
|
|
min-height: 20vh;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
|
|
.status__content a {
|
|
color: $highlight-text-color;
|
|
}
|
|
|
|
.status__content,
|
|
.status__content p {
|
|
color: $gab-secondary-text;
|
|
|
|
body.theme-gabsocial-light & {
|
|
color: $gab-default-text-light;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 480px) {
|
|
max-height: 10vh;
|
|
}
|
|
}
|
|
|
|
.report-modal__comment {
|
|
padding: 20px;
|
|
border-right: 1px solid $ui-secondary-color;
|
|
max-width: 320px;
|
|
|
|
p {
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.setting-text {
|
|
display: block;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
margin: 0;
|
|
color: $inverted-text-color;
|
|
background: $white;
|
|
padding: 10px;
|
|
font-family: inherit;
|
|
font-size: 14px;
|
|
resize: vertical;
|
|
border: 0;
|
|
outline: 0;
|
|
margin-bottom: 20px;
|
|
|
|
@include border-design($ui-secondary-color, 1px, 4px);
|
|
|
|
&:focus {
|
|
border: 1px solid darken($ui-secondary-color, 8%);
|
|
}
|
|
}
|
|
|
|
.setting-toggle {
|
|
@include vertical-margin(20px, 24px);
|
|
|
|
&__label {
|
|
color: $inverted-text-color;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 480px) {
|
|
padding: 10px;
|
|
max-width: 100%;
|
|
order: 2;
|
|
|
|
.setting-toggle {
|
|
margin-bottom: 4px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.actions-modal {
|
|
.status {
|
|
overflow-y: auto;
|
|
max-height: 300px;
|
|
}
|
|
|
|
width: calc(100% - 72px);
|
|
margin: 35px;
|
|
|
|
.actions-modal__item-label {
|
|
font-weight: 500;
|
|
}
|
|
|
|
ul {
|
|
overflow-y: auto;
|
|
flex-shrink: 0;
|
|
max-height: calc(100vh - 147px);
|
|
|
|
// NOTE - not sure what this is yet, leaving alone for now until I find out.
|
|
&.with-status {
|
|
max-height: calc(80vh - 75px);
|
|
}
|
|
|
|
li:empty {
|
|
margin: 0;
|
|
}
|
|
|
|
li:not(:empty) {
|
|
&:first-of-type {
|
|
margin: 10px 0 0;
|
|
}
|
|
|
|
&:last-of-type {
|
|
margin: 0 0 10px;
|
|
}
|
|
|
|
a {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 13px 10px 12px;
|
|
font-size: 14px;
|
|
color: $gab-secondary-text;
|
|
text-decoration: none;
|
|
|
|
&,
|
|
button {
|
|
transition: none;
|
|
}
|
|
|
|
&.active,
|
|
&:hover,
|
|
&:active,
|
|
&:focus {
|
|
|
|
&,
|
|
button {
|
|
background: $gab-background-base;
|
|
color: $gab-text-highlight;
|
|
box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.5);
|
|
}
|
|
}
|
|
|
|
button:first-child {
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.confirmation-modal__action-bar,
|
|
.mute-modal__action-bar {
|
|
|
|
.confirmation-modal__secondary-button,
|
|
.confirmation-modal__cancel-button,
|
|
.mute-modal__cancel-button {
|
|
background-color: transparent;
|
|
color: $lighter-text-color;
|
|
|
|
@include text-sizing(14px, 500);
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
color: darken($lighter-text-color, 4%);
|
|
}
|
|
}
|
|
|
|
.confirmation-modal__secondary-button {
|
|
flex-shrink: 1;
|
|
}
|
|
}
|
|
|
|
.confirmation-modal__container,
|
|
.mute-modal__container,
|
|
.report-modal__target {
|
|
padding: 30px;
|
|
font-size: 16px;
|
|
text-align: center;
|
|
|
|
strong {
|
|
font-weight: 500;
|
|
|
|
@each $lang in $cjk-langs {
|
|
&:lang(#{$lang}) {
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.report-modal__target {
|
|
padding: 20px;
|
|
|
|
.media-modal__close {
|
|
top: 19px;
|
|
right: 15px;
|
|
}
|
|
}
|
|
|
|
.modal-layout {
|
|
background: $ui-base-color url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 234.80078 31.757813" width="234.80078" height="31.757812"><path d="M19.599609 0c-1.05 0-2.10039.375-2.90039 1.125L0 16.925781v14.832031h234.80078V17.025391l-16.5-15.900391c-1.6-1.5-4.20078-1.5-5.80078 0l-13.80078 13.099609c-1.6 1.5-4.19883 1.5-5.79883 0L179.09961 1.125c-1.6-1.5-4.19883-1.5-5.79883 0L159.5 14.224609c-1.6 1.5-4.20078 1.5-5.80078 0L139.90039 1.125c-1.6-1.5-4.20078-1.5-5.80078 0l-13.79883 13.099609c-1.6 1.5-4.20078 1.5-5.80078 0L100.69922 1.125c-1.600001-1.5-4.198829-1.5-5.798829 0l-13.59961 13.099609c-1.6 1.5-4.200781 1.5-5.800781 0L61.699219 1.125c-1.6-1.5-4.198828-1.5-5.798828 0L42.099609 14.224609c-1.6 1.5-4.198828 1.5-5.798828 0L22.5 1.125C21.7.375 20.649609 0 19.599609 0z" fill="#{hex-color($ui-base-lighter-color)}"/></svg>') repeat-x bottom fixed;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
padding: 0;
|
|
}
|
|
|
|
@include breakpoint(sm) {
|
|
.account-header {
|
|
margin-top: 0;
|
|
}
|
|
} |