Revert vanilla components.scss to upstream

local
Thor 2 years ago
parent 96c9b527f6
commit 2271f10292
  1. 262
      app/javascript/styles/mastodon/components.scss

@ -50,16 +50,14 @@
cursor: pointer; cursor: pointer;
display: inline-block; display: inline-block;
font-family: inherit; font-family: inherit;
font-size: 14px; font-size: 17px;
font-weight: 500; font-weight: 500;
height: 36px;
letter-spacing: 0; letter-spacing: 0;
line-height: 36px; line-height: 22px;
overflow: hidden; overflow: hidden;
padding: 0 16px; padding: 7px 18px;
position: relative; position: relative;
text-align: center; text-align: center;
text-transform: uppercase;
text-decoration: none; text-decoration: none;
text-overflow: ellipsis; text-overflow: ellipsis;
transition: all 100ms ease-in; transition: all 100ms ease-in;
@ -100,17 +98,6 @@
outline: 0 !important; outline: 0 !important;
} }
&.button-primary,
&.button-alternative,
&.button-secondary,
&.button-alternative-2 {
font-size: 16px;
line-height: 36px;
height: auto;
text-transform: none;
padding: 4px 16px;
}
&.button-alternative { &.button-alternative {
color: $inverted-text-color; color: $inverted-text-color;
background: $ui-primary-color; background: $ui-primary-color;
@ -135,7 +122,7 @@
&.button-secondary { &.button-secondary {
color: $darker-text-color; color: $darker-text-color;
background: transparent; background: transparent;
padding: 3px 15px; padding: 6px 17px;
border: 1px solid $ui-primary-color; border: 1px solid $ui-primary-color;
&:active, &:active,
@ -1114,42 +1101,39 @@
font-size: 15px; font-size: 15px;
} }
.status-check-box { .status-check-box__status {
border-bottom: 1px solid $ui-secondary-color; display: block;
display: flex; box-sizing: border-box;
width: 100%;
padding: 0 10px;
.status-check-box__status { .detailed-status__display-name {
margin: 10px 0 10px 10px; color: lighten($inverted-text-color, 16%);
flex: 1;
overflow: hidden;
.media-gallery { span {
max-width: 250px; display: inline;
} }
.status__content { &:hover strong {
padding: 0; text-decoration: none;
white-space: normal;
} }
}
.video-player, .media-gallery,
.audio-player { .audio-player,
margin-top: 8px; .video-player {
max-width: 250px; margin-top: 8px;
} max-width: 250px;
}
.media-gallery__item-thumbnail { .status__content {
cursor: default; padding: 0;
} white-space: normal;
} }
}
.status-check-box-toggle { .media-gallery__item-thumbnail {
align-items: center; cursor: default;
display: flex; }
flex: 0 0 auto;
justify-content: center;
padding: 10px;
} }
.status__prepend { .status__prepend {
@ -1779,7 +1763,7 @@ a.account__display-name {
.image-loader__preview-canvas { .image-loader__preview-canvas {
max-width: $media-modal-media-max-width; max-width: $media-modal-media-max-width;
max-height: $media-modal-media-max-height; max-height: $media-modal-media-max-height;
background: url('../images/void.png') repeat; background: url('~images/void.png') repeat;
object-fit: contain; object-fit: contain;
} }
@ -5103,6 +5087,192 @@ a.status-card.compact:hover {
max-width: 700px; max-width: 700px;
} }
.report-dialog-modal {
max-width: 90vw;
width: 480px;
height: 80vh;
background: lighten($ui-secondary-color, 8%);
color: $inverted-text-color;
border-radius: 8px;
overflow: hidden;
position: relative;
flex-direction: column;
display: flex;
&__container {
box-sizing: border-box;
border-top: 1px solid $ui-secondary-color;
padding: 20px;
flex-grow: 1;
display: flex;
flex-direction: column;
min-height: 0;
overflow: auto;
}
&__title {
font-size: 28px;
line-height: 33px;
font-weight: 700;
margin-bottom: 15px;
@media screen and (max-height: 800px) {
font-size: 22px;
}
}
&__subtitle {
font-size: 17px;
font-weight: 600;
line-height: 22px;
margin-bottom: 4px;
}
&__lead {
font-size: 17px;
line-height: 22px;
color: lighten($inverted-text-color, 16%);
margin-bottom: 30px;
}
&__actions {
margin-top: 30px;
display: flex;
.button {
flex: 1 1 auto;
}
}
&__statuses {
flex-grow: 1;
min-height: 0;
overflow: auto;
}
.status__content a {
color: $highlight-text-color;
}
.status__content,
.status__content p {
color: $inverted-text-color;
}
.dialog-option .poll__input {
border-color: $inverted-text-color;
color: $ui-secondary-color;
display: inline-flex;
align-items: center;
justify-content: center;
svg {
width: 8px;
height: auto;
}
&:active,
&:focus,
&:hover {
border-color: lighten($inverted-text-color, 15%);
border-width: 4px;
}
&.active {
border-color: $inverted-text-color;
background: $inverted-text-color;
}
}
.poll__option.dialog-option {
padding: 15px 0;
flex: 0 0 auto;
border-bottom: 1px solid $ui-secondary-color;
&:last-child {
border-bottom: 0;
}
& > .poll__option__text {
font-size: 13px;
color: lighten($inverted-text-color, 16%);
strong {
font-size: 17px;
font-weight: 500;
line-height: 22px;
color: $inverted-text-color;
display: block;
margin-bottom: 4px;
&:last-child {
margin-bottom: 0;
}
}
}
}
.flex-spacer {
background: transparent;
}
&__textarea {
display: block;
box-sizing: border-box;
width: 100%;
margin: 0;
color: $inverted-text-color;
background: $simple-background-color;
padding: 10px;
font-family: inherit;
font-size: 17px;
line-height: 22px;
resize: vertical;
border: 0;
outline: 0;
border-radius: 4px;
margin: 20px 0;
&::placeholder {
color: $dark-text-color;
}
&:focus {
outline: 0;
}
}
&__toggle {
display: flex;
align-items: center;
& > span {
font-size: 17px;
font-weight: 500;
margin-left: 10px;
}
}
.button.button-secondary {
border-color: $inverted-text-color;
color: $inverted-text-color;
flex: 0 0 auto;
&:hover,
&:focus,
&:active {
border-color: lighten($inverted-text-color, 15%);
color: lighten($inverted-text-color, 15%);
}
}
hr {
border: 0;
background: transparent;
margin: 15px 0;
}
}
.report-modal__container { .report-modal__container {
display: flex; display: flex;
border-top: 1px solid $ui-secondary-color; border-top: 1px solid $ui-secondary-color;
@ -6700,7 +6870,7 @@ noscript {
width: 100px; width: 100px;
height: 100px; height: 100px;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
background: url('../images/reticle.png') no-repeat 0 0; background: url('~images/reticle.png') no-repeat 0 0;
border-radius: 50%; border-radius: 50%;
box-shadow: 0 0 0 9999em rgba($base-shadow-color, 0.35); box-shadow: 0 0 0 9999em rgba($base-shadow-color, 0.35);
} }

Loading…
Cancel
Save