diff --git a/app/renderer/components/messageBox.js b/app/renderer/components/messageBox.js index cf488a25070..1db0ddebb36 100644 --- a/app/renderer/components/messageBox.js +++ b/app/renderer/components/messageBox.js @@ -11,8 +11,10 @@ const appActions = require('../../../js/actions/appActions') const KeyCodes = require('../../common/constants/keyCodes') const config = require('../../../js/constants/config') const {makeImmutable} = require('../../common/state/immutableUtil') + const {StyleSheet, css} = require('aphrodite') const commonStyles = require('./styles/commonStyles') +const globalStyles = require('./styles/global') class MessageBox extends ImmutableComponent { constructor () { @@ -119,6 +121,8 @@ class MessageBox extends ImmutableComponent { { this.showSuppress ? @@ -143,21 +147,19 @@ const styles = StyleSheet.create({ title: { fontWeight: 'bold', fontSize: '12pt', - marginBottom: '1em', - marginTop: '0.5em', + marginBottom: globalStyles.spacing.dialogInsideMargin, '-webkit-user-select': 'text' }, body: { - marginTop: '1.5em', + marginTop: globalStyles.spacing.dialogInsideMargin, minWidth: '425px', - marginBottom: '1.5em', + marginBottom: globalStyles.spacing.dialogInsideMargin, '-webkit-user-select': 'text' }, buttons: { display: 'flex', justifyContent: 'flex-end', - marginTop: '1.5em', - marginBottom: '0.5em' + marginTop: globalStyles.spacing.dialogInsideMargin } }) diff --git a/app/renderer/components/styles/commonStyles.js b/app/renderer/components/styles/commonStyles.js index c244667ef38..ce8b8a8c8b2 100644 --- a/app/renderer/components/styles/commonStyles.js +++ b/app/renderer/components/styles/commonStyles.js @@ -20,13 +20,16 @@ const styles = StyleSheet.create({ padding: '0.4em', width: '100%' }, + + // Dialogs flyoutDialog: { background: globalStyles.color.toolbarBackground, borderRadius: globalStyles.radius.borderRadius, boxShadow: '2px 2px 8px #3b3b3b', color: '#000', fontSize: '13px', - padding: '10px 30px', + // Issue #7949 + padding: `${globalStyles.spacing.dialogInsideMargin} 30px`, position: 'absolute', top: globalStyles.spacing.dialogTopOffset }, diff --git a/js/components/siteInfo.js b/js/components/siteInfo.js index 043dfaae0f5..320b9da2782 100644 --- a/js/components/siteInfo.js +++ b/js/components/siteInfo.js @@ -15,6 +15,10 @@ const messages = require('../constants/messages') const siteUtil = require('../state/siteUtil') const platformUtil = require('../../app/common/lib/platformUtil') +const {StyleSheet, css} = require('aphrodite/no-important') +const globalStyles = require('../../app/renderer/components/styles/global') +const commonStyles = require('../../app/renderer/components/styles/commonStyles') + class SiteInfo extends ImmutableComponent { constructor () { super() @@ -67,81 +71,150 @@ class SiteInfo extends ImmutableComponent { let l10nArgs = { partitionNumber: this.partitionNumber } + let secureIcon if (this.isSecure === true && !this.runInsecureContent) { // fully secure - secureIcon =
  • + secureIcon = +
    + + +
    } else if (this.isSecure === 1 && !this.runInsecureContent) { // passive mixed content loaded - secureIcon =
  • + secureIcon = +
    + + +
    } else { // insecure - secureIcon =
  • + secureIcon = +
    + + +
    } let partitionInfo if (this.partitionNumber) { - partitionInfo =
  • -
  • + partitionInfo = +
    + + +
    } let connectionInfo = null let viewCertificateButton = null + // TODO(Anthony): Hide it until muon support linux if (!platformUtil.isLinux()) { viewCertificateButton = -