mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-24 14:56:27 +00:00
[Glitch] Fix media editing modal and profile directory in light theme
Port f51f99c3c2
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
parent
cd2fce0318
commit
7ca6153c0c
|
@ -1,8 +1,13 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component';
|
import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
import { FormattedMessage, injectIntl } from 'react-intl';
|
import { defineMessages, FormattedMessage, injectIntl } from 'react-intl';
|
||||||
import api from 'flavours/glitch/util/api';
|
import api from 'flavours/glitch/util/api';
|
||||||
|
import IconButton from 'flavours/glitch/components/icon_button';
|
||||||
|
|
||||||
|
const messages = defineMessages({
|
||||||
|
close: { id: 'lightbox.close', defaultMessage: 'Close' },
|
||||||
|
});
|
||||||
|
|
||||||
export default @injectIntl
|
export default @injectIntl
|
||||||
class EmbedModal extends ImmutablePureComponent {
|
class EmbedModal extends ImmutablePureComponent {
|
||||||
|
@ -50,13 +55,17 @@ class EmbedModal extends ImmutablePureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
|
const { intl, onClose } = this.props;
|
||||||
const { oembed } = this.state;
|
const { oembed } = this.state;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='modal-root__modal embed-modal'>
|
<div className='modal-root__modal report-modal embed-modal'>
|
||||||
<h4><FormattedMessage id='status.embed' defaultMessage='Embed' /></h4>
|
<div className='report-modal__target'>
|
||||||
|
<IconButton className='media-modal__close' title={intl.formatMessage(messages.close)} icon='times' onClick={onClose} size={16} />
|
||||||
|
<FormattedMessage id='status.embed' defaultMessage='Embed' />
|
||||||
|
</div>
|
||||||
|
|
||||||
<div className='embed-modal__container'>
|
<div className='report-modal__container embed-modal__container' style={{ display: 'block' }}>
|
||||||
<p className='hint'>
|
<p className='hint'>
|
||||||
<FormattedMessage id='embed.instructions' defaultMessage='Embed this status on your website by copying the code below.' />
|
<FormattedMessage id='embed.instructions' defaultMessage='Embed this status on your website by copying the code below.' />
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -736,6 +736,7 @@
|
||||||
&:focus,
|
&:focus,
|
||||||
&:active {
|
&:active {
|
||||||
color: darken($lighter-text-color, 4%);
|
color: darken($lighter-text-color, 4%);
|
||||||
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -804,6 +805,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.embed-modal {
|
.embed-modal {
|
||||||
|
width: auto;
|
||||||
max-width: 80vw;
|
max-width: 80vw;
|
||||||
max-height: 80vh;
|
max-height: 80vh;
|
||||||
|
|
||||||
|
@ -834,6 +836,7 @@
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
|
border-radius: 4px;
|
||||||
|
|
||||||
&::-moz-focus-inner {
|
&::-moz-focus-inner {
|
||||||
border: 0;
|
border: 0;
|
||||||
|
@ -859,6 +862,7 @@
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border: 0;
|
border: 0;
|
||||||
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -640,6 +640,10 @@ a.status__display-name,
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.detailed-status .button.logo-button {
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
.detailed-status__display-name {
|
.detailed-status__display-name {
|
||||||
color: $secondary-text-color;
|
color: $secondary-text-color;
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -414,6 +414,20 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.directory__card {
|
||||||
|
border-radius: 4px;
|
||||||
|
|
||||||
|
@media screen and (max-width: $no-gap-breakpoint) {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-header {
|
||||||
|
@media screen and (max-width: $no-gap-breakpoint) {
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.public-account-header {
|
.public-account-header {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
|
|
@ -230,8 +230,19 @@
|
||||||
.report-modal,
|
.report-modal,
|
||||||
.embed-modal,
|
.embed-modal,
|
||||||
.error-modal,
|
.error-modal,
|
||||||
.onboarding-modal {
|
.onboarding-modal,
|
||||||
background: $ui-base-color;
|
.report-modal__comment .setting-text__wrapper,
|
||||||
|
.report-modal__comment .setting-text {
|
||||||
|
background: $white;
|
||||||
|
border: 1px solid lighten($ui-base-color, 8%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.report-modal__comment {
|
||||||
|
border-right-color: lighten($ui-base-color, 8%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.report-modal__container {
|
||||||
|
border-top-color: lighten($ui-base-color, 8%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.boost-modal__action-bar,
|
.boost-modal__action-bar,
|
||||||
|
|
|
@ -18,6 +18,8 @@ $darker-text-color: $classic-base-color !default;
|
||||||
$dark-text-color: #444b5d;
|
$dark-text-color: #444b5d;
|
||||||
$action-button-color: #606984;
|
$action-button-color: #606984;
|
||||||
|
|
||||||
|
$success-green: lighten(#3c754d, 8%);
|
||||||
|
|
||||||
$base-overlay-background: $white !default;
|
$base-overlay-background: $white !default;
|
||||||
|
|
||||||
$inverted-text-color: $black !default;
|
$inverted-text-color: $black !default;
|
||||||
|
|
Loading…
Reference in a new issue