Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #5783 from luixxiul/flashIconAlignment
Browse files Browse the repository at this point in the history
Aligned Flash info icons
  • Loading branch information
bbondy authored Nov 29, 2016
2 parents 57cecb9 + 9817f5a commit 3ee77ac
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
25 changes: 15 additions & 10 deletions js/about/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -1603,24 +1603,29 @@ class SecurityTab extends ImmutableComponent {
<div className='sectionTitle' data-l10n-id='pluginSettings' />
<SettingsList>
<SettingCheckbox checked={this.props.flashInstalled ? this.props.braveryDefaults.get('flash') : false} dataL10nId='enableFlash' onChange={this.onToggleFlash} disabled={!this.props.flashInstalled} />
<span className='subtext'>
<span className='fa fa-info-circle' id='flashInfoIcon' />
<div className='subtext flashText'>
{
isDarwin || isWindows
? <span><span data-l10n-id='enableFlashSubtext' />&nbsp;
? <div>
<span className='fa fa-info-circle' id='flashInfoIcon' />
<span data-l10n-id='enableFlashSubtext' />&nbsp;
<span className='linkText' onClick={aboutActions.newFrame.bind(null, {
location: appConfig.flash.installUrl
}, true)}>{'Adobe'}</span>.</span>
: <span data-l10n-id='enableFlashSubtextLinux' />
}, true)}>{'Adobe'}</span>.
</div>
: <div>
<span className='fa fa-info-circle' id='flashInfoIcon' />
<span data-l10n-id='enableFlashSubtextLinux' />
</div>
}
<div>
<span className='fa fa-info-circle' id='flashInfoIcon' />
<span><span data-l10n-id='flashTroubleshooting' />&nbsp;
<span className='linkText' onClick={aboutActions.newFrame.bind(null, {
location: 'https://github.com/brave/browser-laptop/wiki/Flash-Support-Deprecation-Proposal#troubleshooting-flash-issues'
}, true)}>{'wiki'}</span>.</span>
<span data-l10n-id='flashTroubleshooting' />&nbsp;
<span className='linkText' onClick={aboutActions.newFrame.bind(null, {
location: 'https://github.com/brave/browser-laptop/wiki/Flash-Support-Deprecation-Proposal#troubleshooting-flash-issues'
}, true)}>{'wiki'}</span>.
</div>
</span>
</div>
</SettingsList>
{ !isLinux
? <div>
Expand Down
14 changes: 10 additions & 4 deletions less/about/preferences.less
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,16 @@ a {
margin: 1.2em 2px 7px;
}

.settingsList .subtext {
&.flashText {
margin-top: 0;

#flashInfoIcon {
padding: 5px 5px 5px 0;
}
}
}

.settingsListCopy {
color: @braveOrange;
cursor: pointer;
Expand Down Expand Up @@ -1016,10 +1026,6 @@ div.nextPaymentSubmission {
}
}

#flashInfoIcon {
padding: 5px 5px 5px 0;
}

.widevineInfoIcon {
padding: 5px;
}
Expand Down

0 comments on commit 3ee77ac

Please sign in to comment.