forked from treehouse/mastodon
670 lines
11 KiB
SCSS
670 lines
11 KiB
SCSS
.modal-container--preloader {
|
|
background: lighten($ui-base-color, 8%);
|
|
}
|
|
|
|
.modal-container__nav {
|
|
align-items: center;
|
|
background: rgba($base-overlay-background, 0.5);
|
|
box-sizing: border-box;
|
|
border: 0;
|
|
color: $primary-text-color;
|
|
cursor: pointer;
|
|
display: flex;
|
|
font-size: 24px;
|
|
height: 100%;
|
|
padding: 30px 15px;
|
|
position: absolute;
|
|
top: 0;
|
|
}
|
|
|
|
.modal-container__nav--left {
|
|
left: -61px;
|
|
}
|
|
|
|
.modal-container__nav--right {
|
|
right: -61px;
|
|
}
|
|
|
|
.modal-root {
|
|
transition: opacity 0.3s linear;
|
|
will-change: opacity;
|
|
z-index: 9999;
|
|
}
|
|
|
|
.modal-root__overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba($base-overlay-background, 0.7);
|
|
}
|
|
|
|
.modal-root__container {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
align-content: space-around;
|
|
z-index: 9999;
|
|
pointer-events: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.modal-root__modal {
|
|
pointer-events: auto;
|
|
display: flex;
|
|
z-index: 9999;
|
|
}
|
|
|
|
.onboarding-modal,
|
|
.error-modal,
|
|
.embed-modal {
|
|
background: $ui-secondary-color;
|
|
color: $ui-base-color;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.onboarding-modal__pager {
|
|
height: 80vh;
|
|
width: 80vw;
|
|
max-width: 520px;
|
|
max-height: 420px;
|
|
|
|
.react-swipeable-view-container > div {
|
|
width: 100%;
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
padding: 25px;
|
|
display: none;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
display: flex;
|
|
user-select: text;
|
|
}
|
|
}
|
|
|
|
.error-modal__body {
|
|
height: 80vh;
|
|
width: 80vw;
|
|
max-width: 520px;
|
|
max-height: 420px;
|
|
position: relative;
|
|
|
|
& > div {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
padding: 25px;
|
|
display: none;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
display: flex;
|
|
opacity: 0;
|
|
user-select: text;
|
|
}
|
|
}
|
|
|
|
.error-modal__body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
@media screen and (max-width: 550px) {
|
|
.onboarding-modal {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.onboarding-modal__pager {
|
|
width: 100%;
|
|
height: auto;
|
|
max-width: none;
|
|
max-height: none;
|
|
flex: 1 1 auto;
|
|
}
|
|
}
|
|
|
|
.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: darken($ui-secondary-color, 34%);
|
|
background-color: transparent;
|
|
border: 0;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
padding: 0;
|
|
line-height: inherit;
|
|
height: auto;
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
color: darken($ui-secondary-color, 38%);
|
|
}
|
|
|
|
&.onboarding-modal__done,
|
|
&.onboarding-modal__next {
|
|
color: $ui-highlight-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
.error-modal__footer {
|
|
justify-content: center;
|
|
}
|
|
|
|
.onboarding-modal__dots {
|
|
flex: 1 1 auto;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.onboarding-modal__dot {
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 14px;
|
|
background: darken($ui-secondary-color, 16%);
|
|
margin: 0 3px;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
background: darken($ui-secondary-color, 18%);
|
|
}
|
|
|
|
&.active {
|
|
cursor: default;
|
|
background: darken($ui-secondary-color, 24%);
|
|
}
|
|
}
|
|
|
|
.onboarding-modal__page__wrapper {
|
|
pointer-events: none;
|
|
|
|
&.onboarding-modal__page__wrapper--active {
|
|
pointer-events: auto;
|
|
}
|
|
}
|
|
|
|
.onboarding-modal__page {
|
|
cursor: default;
|
|
line-height: 21px;
|
|
|
|
h1 {
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
color: $ui-base-color;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
a {
|
|
color: $ui-highlight-color;
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
color: lighten($ui-highlight-color, 4%);
|
|
}
|
|
}
|
|
|
|
p {
|
|
font-size: 16px;
|
|
color: lighten($ui-base-color, 8%);
|
|
margin-top: 10px;
|
|
margin-bottom: 10px;
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
strong {
|
|
font-weight: 500;
|
|
background: $ui-base-color;
|
|
color: $ui-secondary-color;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
padding: 3px 6px;
|
|
|
|
@each $lang in $cjk-langs {
|
|
&:lang(#{$lang}) {
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.onboarding-modal__page-one {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.onboarding-modal__page-one__elephant-friend {
|
|
background: url('~images/elephant-friend-1.png') no-repeat center center / contain;
|
|
width: 155px;
|
|
height: 193px;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
@media screen and (max-width: 400px) {
|
|
.onboarding-modal__page-one {
|
|
flex-direction: column;
|
|
align-items: normal;
|
|
}
|
|
|
|
.onboarding-modal__page-one__elephant-friend {
|
|
width: 100%;
|
|
height: 30vh;
|
|
max-height: 160px;
|
|
margin-bottom: 5vh;
|
|
}
|
|
}
|
|
|
|
.onboarding-modal__page-two,
|
|
.onboarding-modal__page-three,
|
|
.onboarding-modal__page-four,
|
|
.onboarding-modal__page-five {
|
|
p {
|
|
text-align: left;
|
|
}
|
|
|
|
.figure {
|
|
background: darken($ui-base-color, 8%);
|
|
color: $ui-secondary-color;
|
|
margin-bottom: 20px;
|
|
border-radius: 4px;
|
|
padding: 10px;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.3);
|
|
|
|
.onboarding-modal__image {
|
|
border-radius: 4px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
&.non-interactive {
|
|
pointer-events: none;
|
|
text-align: left;
|
|
}
|
|
}
|
|
}
|
|
|
|
.onboarding-modal__page-four__columns {
|
|
.row {
|
|
display: flex;
|
|
margin-bottom: 20px;
|
|
|
|
& > div {
|
|
flex: 1 1 0;
|
|
margin: 0 10px;
|
|
|
|
&:first-child {
|
|
margin-left: 0;
|
|
}
|
|
|
|
&:last-child {
|
|
margin-right: 0;
|
|
}
|
|
|
|
p {
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.column-header {
|
|
color: $primary-text-color;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 320px) and (max-height: 600px) {
|
|
.onboarding-modal__page p {
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.onboarding-modal__page-two .figure,
|
|
.onboarding-modal__page-three .figure,
|
|
.onboarding-modal__page-four .figure,
|
|
.onboarding-modal__page-five .figure {
|
|
font-size: 12px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.onboarding-modal__page-four__columns .row {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.onboarding-modal__page-four__columns .column-header {
|
|
padding: 5px;
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
|
|
.onboarding-modal__image {
|
|
border-radius: 8px;
|
|
width: 70vw;
|
|
max-width: 450px;
|
|
max-height: auto;
|
|
display: block;
|
|
margin: auto;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.onboard-sliders {
|
|
display: inline-block;
|
|
max-width: 30px;
|
|
max-height: auto;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.boost-modal,
|
|
.favourite-modal,
|
|
.confirmation-modal,
|
|
.report-modal,
|
|
.actions-modal,
|
|
.mute-modal {
|
|
background: lighten($ui-secondary-color, 8%);
|
|
color: $ui-base-color;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
max-width: 90vw;
|
|
width: 480px;
|
|
position: relative;
|
|
flex-direction: column;
|
|
|
|
.status__display-name {
|
|
display: flex;
|
|
}
|
|
|
|
.status__avatar {
|
|
height: 28px;
|
|
left: 10px;
|
|
position: absolute;
|
|
top: 10px;
|
|
width: 48px;
|
|
}
|
|
}
|
|
|
|
.actions-modal {
|
|
.status {
|
|
background: $white;
|
|
border-bottom-color: $ui-secondary-color;
|
|
padding-top: 10px;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.dropdown-menu__separator {
|
|
border-bottom-color: $ui-secondary-color;
|
|
}
|
|
}
|
|
|
|
.boost-modal__container,
|
|
.favourite-modal__container {
|
|
overflow-x: scroll;
|
|
padding: 10px;
|
|
|
|
.status {
|
|
user-select: text;
|
|
border-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.boost-modal__action-bar,
|
|
.favourite-modal__action-bar,
|
|
.confirmation-modal__action-bar,
|
|
.mute-modal__action-bar,
|
|
.report-modal__action-bar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
background: $ui-secondary-color;
|
|
padding: 10px;
|
|
line-height: 36px;
|
|
|
|
& > div {
|
|
flex: 1 1 auto;
|
|
text-align: right;
|
|
color: lighten($ui-base-color, 33%);
|
|
padding-right: 10px;
|
|
}
|
|
|
|
.button {
|
|
flex: 0 0 auto;
|
|
}
|
|
}
|
|
|
|
.boost-modal__status-header,
|
|
.favourite-modal__status-header {
|
|
font-size: 15px;
|
|
}
|
|
|
|
.boost-modal__status-time,
|
|
.favourite-modal__status-time {
|
|
float: right;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.confirmation-modal {
|
|
max-width: 85vw;
|
|
|
|
@media screen and (min-width: 480px) {
|
|
max-width: 380px;
|
|
}
|
|
}
|
|
|
|
.mute-modal {
|
|
line-height: 24px;
|
|
}
|
|
|
|
.mute-modal .react-toggle {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.report-modal__statuses,
|
|
.report-modal__comment {
|
|
padding: 10px;
|
|
}
|
|
|
|
.report-modal__statuses {
|
|
min-height: 20vh;
|
|
max-height: 40vh;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.report-modal__comment {
|
|
.setting-text {
|
|
margin-top: 10px;
|
|
}
|
|
}
|
|
|
|
.actions-modal {
|
|
.status {
|
|
overflow-y: auto;
|
|
max-height: 300px;
|
|
}
|
|
|
|
strong {
|
|
display: block;
|
|
font-weight: 500;
|
|
}
|
|
|
|
max-height: 80vh;
|
|
max-width: 80vw;
|
|
|
|
.actions-modal__item-label {
|
|
font-weight: 500;
|
|
}
|
|
|
|
ul {
|
|
overflow-y: auto;
|
|
flex-shrink: 0;
|
|
|
|
li:empty {
|
|
margin: 0;
|
|
}
|
|
|
|
li:not(:empty) {
|
|
a {
|
|
color: $ui-base-color;
|
|
display: flex;
|
|
padding: 12px 16px;
|
|
font-size: 15px;
|
|
align-items: center;
|
|
text-decoration: none;
|
|
|
|
&,
|
|
button {
|
|
transition: none;
|
|
}
|
|
|
|
&.active,
|
|
&:hover,
|
|
&:active,
|
|
&:focus {
|
|
&,
|
|
button {
|
|
background: $ui-highlight-color;
|
|
color: $primary-text-color;
|
|
}
|
|
}
|
|
|
|
& > .react-toggle,
|
|
& > .icon,
|
|
button:first-child {
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.confirmation-modal__action-bar,
|
|
.mute-modal__action-bar {
|
|
.confirmation-modal__cancel-button,
|
|
.mute-modal__cancel-button {
|
|
background-color: transparent;
|
|
color: darken($ui-secondary-color, 34%);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
color: darken($ui-secondary-color, 38%);
|
|
}
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.embed-modal {
|
|
max-width: 80vw;
|
|
max-height: 80vh;
|
|
|
|
h4 {
|
|
padding: 30px;
|
|
font-weight: 500;
|
|
font-size: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
.embed-modal__container {
|
|
padding: 10px;
|
|
|
|
.hint {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.embed-modal__html {
|
|
color: $ui-secondary-color;
|
|
outline: 0;
|
|
box-sizing: border-box;
|
|
display: block;
|
|
width: 100%;
|
|
border: none;
|
|
padding: 10px;
|
|
font-family: 'mastodon-font-monospace', monospace;
|
|
background: $ui-base-color;
|
|
color: $ui-primary-color;
|
|
font-size: 14px;
|
|
margin: 0;
|
|
margin-bottom: 15px;
|
|
|
|
&::-moz-focus-inner {
|
|
border: 0;
|
|
}
|
|
|
|
&::-moz-focus-inner,
|
|
&:focus,
|
|
&:active {
|
|
outline: 0 !important;
|
|
}
|
|
|
|
&:focus {
|
|
background: lighten($ui-base-color, 4%);
|
|
}
|
|
|
|
@media screen and (max-width: 600px) {
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
|
|
.embed-modal__iframe {
|
|
width: 400px;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
border: 0;
|
|
}
|
|
}
|
|
}
|