]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix media editing modal and profile directory in light theme
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 3 Oct 2019 01:17:29 +0000 (03:17 +0200)
committerThibaut Girka <thib@sitedethib.com>
Fri, 4 Oct 2019 17:12:54 +0000 (19:12 +0200)
Port f51f99c3c21e1ef792db91cb90816b6c52727989 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/features/ui/components/embed_modal.js
app/javascript/flavours/glitch/styles/components/modal.scss
app/javascript/flavours/glitch/styles/components/status.scss
app/javascript/flavours/glitch/styles/containers.scss
app/javascript/flavours/glitch/styles/mastodon-light/diff.scss
app/javascript/flavours/glitch/styles/mastodon-light/variables.scss

index 47c1c79256ac927958ea5b4dee6bcfb6f51d16f3..b6f5e628d681b62db9e2a3390fcf990ab3ad2747 100644 (file)
@@ -1,8 +1,13 @@
 import React from 'react';
 import PropTypes from 'prop-types';
 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 IconButton from 'flavours/glitch/components/icon_button';
+
+const messages = defineMessages({
+  close: { id: 'lightbox.close', defaultMessage: 'Close' },
+});
 
 export default @injectIntl
 class EmbedModal extends ImmutablePureComponent {
@@ -50,13 +55,17 @@ class EmbedModal extends ImmutablePureComponent {
   }
 
   render () {
+    const { intl, onClose } = this.props;
     const { oembed } = this.state;
 
     return (
-      <div className='modal-root__modal embed-modal'>
-        <h4><FormattedMessage id='status.embed' defaultMessage='Embed' /></h4>
+      <div className='modal-root__modal report-modal embed-modal'>
+        <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'>
             <FormattedMessage id='embed.instructions' defaultMessage='Embed this status on your website by copying the code below.' />
           </p>
index 4f3e5babffeafa2e66b232ef2e7f1b034358c211..716796af9da93daf9d4f819da0b05c7ad2caca05 100644 (file)
   &:focus,
   &:active {
     color: darken($lighter-text-color, 4%);
+    background-color: transparent;
   }
 }
 
 }
 
 .embed-modal {
+  width: auto;
   max-width: 80vw;
   max-height: 80vh;
 
       font-size: 14px;
       margin: 0;
       margin-bottom: 15px;
+      border-radius: 4px;
 
       &::-moz-focus-inner {
         border: 0;
       max-width: 100%;
       overflow: hidden;
       border: 0;
+      border-radius: 4px;
     }
   }
 }
index ae89ac0a84d7da6c1d4b252dc72e8d69d048105e..ded423afa22441f88caeab01ac791ab69c766008 100644 (file)
@@ -640,6 +640,10 @@ a.status__display-name,
   color: inherit;
 }
 
+.detailed-status .button.logo-button {
+  margin-bottom: 15px;
+}
+
 .detailed-status__display-name {
   color: $secondary-text-color;
   display: block;
index 6a48ff35491f12deddd8a702508dd1155ba82cf9..e2f291b6937265f9bb369c68205de7c21652f7d8 100644 (file)
     }
   }
 
+  .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 {
     overflow: hidden;
     margin-bottom: 10px;
index 5c7fa87da232e4f912006718c34f84c99bb05e65..3b4ffdf3cef9e690fc4de126d79ed1361fbf93d1 100644 (file)
 .report-modal,
 .embed-modal,
 .error-modal,
-.onboarding-modal {
-  background: $ui-base-color;
+.onboarding-modal,
+.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,
index 1b060b58d2ab7e50afc0d3338c5bfeaabce26a31..312f5e314926ddebea078920b6eeb222faeaf8fb 100644 (file)
@@ -18,6 +18,8 @@ $darker-text-color: $classic-base-color !default;
 $dark-text-color: #444b5d;
 $action-button-color: #606984;
 
+$success-green: lighten(#3c754d, 8%);
+
 $base-overlay-background: $white !default;
 
 $inverted-text-color: $black !default;