e.stopPropagation()}>
-
-
-
- {browsers}
-
-
-
-
-
+ return
+ e.stopPropagation()}>
+
+
+
+
+ {browsers}
+
-
-
-
-
+
+
-
-
-
+
+
}
}
+const styles = StyleSheet.create({
+ dropdownWrapper: {
+ marginBottom: `calc(${globalStyles.spacing.dialogInsideMargin} / 2)`
+ }
+})
+
module.exports = ImportBrowserDataPanel
diff --git a/app/renderer/components/styles/commonStyles.js b/app/renderer/components/styles/commonStyles.js
index 9c663ca367e..c244667ef38 100644
--- a/app/renderer/components/styles/commonStyles.js
+++ b/app/renderer/components/styles/commonStyles.js
@@ -7,7 +7,7 @@ const globalStyles = require('./global')
const styles = StyleSheet.create({
formControl: {
- background: 'white',
+ background: '#fff',
border: `solid 1px ${globalStyles.color.black20}`,
borderRadius: globalStyles.radius.borderRadius,
boxShadow: `inset 0 1px 1px ${globalStyles.color.black10}`,
@@ -21,14 +21,13 @@ const styles = StyleSheet.create({
width: '100%'
},
flyoutDialog: {
- backgroundColor: globalStyles.color.toolbarBackground,
+ background: globalStyles.color.toolbarBackground,
borderRadius: globalStyles.radius.borderRadius,
boxShadow: '2px 2px 8px #3b3b3b',
color: '#000',
fontSize: '13px',
padding: '10px 30px',
position: 'absolute',
- textAlign: 'left',
top: globalStyles.spacing.dialogTopOffset
},
diff --git a/app/renderer/components/styles/global.js b/app/renderer/components/styles/global.js
index be14a2c3996..c4313a1e2f8 100644
--- a/app/renderer/components/styles/global.js
+++ b/app/renderer/components/styles/global.js
@@ -26,12 +26,14 @@ const globalStyles = {
chromeSecondary: '#d3d3d3',
chromeTertiary: '#c7c7c7',
chromeText: '#555555',
- tabsBackground: '#ddd',
- tabsBackgroundInactive: '#ddd',
- tabsToolbarBorderColor: '#bbb',
navigationBarBackground: 'white',
chromeControlsBackground: '#bbb',
chromeControlsBackground2: 'white',
+ tabsToolbarBorderColor: '#bbb',
+ tabsBackground: '#ddd',
+ tabsBackgroundInactive: '#ddd',
+ commonFormBottomWrapperBackground: '#ddd',
+ commonFormBackgroundColor: '#f7f7f7',
toolbarBackground: '#eee',
toolbarBorderColor: '#ccc',
menuSelectionColor: '#2F7AFB',
@@ -121,6 +123,7 @@ const globalStyles = {
closeIconSize: '13px',
narrowIconSize: '12px',
dialogTopOffset: '30px',
+ dialogInsideMargin: '18px',
paymentsMargin: '20px',
modalPanelHeaderMarginBottom: '.5em',
paddingHorizontal: '30px'
@@ -169,7 +172,8 @@ const globalStyles = {
fontSize: {
tabIcon: '14px',
tabTitle: '12px',
- settingItemSubtext: '.95rem'
+ settingItemSubtext: '.95rem',
+ flyoutDialog: '13px'
},
appIcons: {
clipboard: 'fa fa-clipboard',
diff --git a/less/forms.less b/less/forms.less
index 294a25d18f8..288a1e7e96e 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -95,7 +95,6 @@ select {
.commonForm {
.flyoutDialog;
background-color: #f7f7f7;
- border-radius: @borderRadius;
max-width: 422px;
padding: 0;
text-align: left;
@@ -115,6 +114,7 @@ select {
.formSection {
padding: 16px 30px;
+
&.commonFormTitle {
color: #ff5000;
font-size: 1.2em;
@@ -134,56 +134,6 @@ select {
}
}
-// TODO: Make this use commonDialog
-.importBrowserDataPanel {
- .importBrowserData {
- .flyoutDialog;
- background-color: #f7f7f7;
- border-radius: @borderRadius;
- max-width: 422px;
- padding: 0;
- text-align: left;
- width: 614px;
- -webkit-user-select: none;
- cursor: default;
- color: #3B3B3B;
- overflow-y: auto;
- max-height: 100%;
-
- .clickable {
- color: #5B5B5B;
- &:hover {
- color: #000;
- }
- }
-
- .formSection {
- padding: 16px 30px;
- &.importBrowserDataWarning {
- background-color: #dddee0;
- }
-
- &.importBrowserDataTitle {
- color: #ff5000;
- font-size: 1.2em;
- }
-
- &.importBrowserDataOptions {
- padding: 0 30px;
- }
-
- &.importBrowserSubDataOptions {
- padding: 0 0 0 20px;
- }
-
- &.importBrowserDataButtons {
- text-align: right;
- padding: 16px 10px;
- }
- }
- }
-}
-
// TODO: Make this use commonDialog
.manageAutofillDataPanel {
.manageAutofillData {