Skip to content

Commit

Permalink
Fix Buttons in Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
hsurf22 committed Feb 14, 2019
1 parent 19aebe2 commit 0fbb49a
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 25 deletions.
7 changes: 7 additions & 0 deletions src/components/Buttons/StandardButton/StandardButton.scss
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ button[disabled] {
&.full-width {
display: block;
}

&.mobile-full-width {
// Mobile
@media all and (max-width: $mobile-width) {
width: 100%;
}
}
}

//=======================================================================
Expand Down
1 change: 1 addition & 0 deletions src/components/Buttons/StandardButton/StandardButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<div
:class="{
'full-width': options.fullWidth,
'mobile-full-width': options.mobileFullWidth,
'hide-mobile-button': onBottomOfPage && options.isThisMobileBottomButton
}"
class="standard-button"
Expand Down
23 changes: 4 additions & 19 deletions src/components/SettingsModal/SettingsModal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ $mobile-width: 530px;
width: 100%;
text-align: center;

.filename {
margin-bottom: 10px;
}
.upload-file-button {
margin-top: 10px;
}
Expand All @@ -111,7 +114,7 @@ $mobile-width: 530px;

.button-block {
text-align: center;
margin-top: 40px;
margin-top: 10px;
@media all and (max-width: $mobile-width) {
margin-top: 10px;
}
Expand All @@ -127,22 +130,4 @@ $mobile-width: 530px;
margin-top: 40px;
}

.export-button {
background-color: $mew-green;
border: 1px solid $mew-green;
border-radius: 4px;
color: #fff;
cursor: pointer;
display: inline-block;
font-size: 14px;
font-weight: 500;
padding: 18px 45px;
position: relative;
width: 250px;

&:hover {
transition: opacity 0.3s ease;
text-decoration: none;
}
}
}
20 changes: 15 additions & 5 deletions src/components/SettingsModal/SettingsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@
file from your local computer.
</p>
<div class="import-button-block">
<standard-input :options="inputFileName" />
<div class="filename">
<standard-input :options="inputFileName" />
</div>
<input
ref="uploadInput"
type="file"
Expand Down Expand Up @@ -121,8 +123,8 @@
</p>
<div class="button-block">
<a :href="file" :download="fileName" class="export-button"
>Export</a
>
><standard-button :options="buttonExport"
/></a>
</div>
</full-width-dropdown>
</div>
Expand Down Expand Up @@ -159,7 +161,14 @@ export default {
buttonStyle: 'green',
rightArrow: false,
leftArrow: false,
fullWidth: false
mobileFullWidth: true
},
buttonExport: {
title: 'Export',
buttonStyle: 'green',
rightArrow: false,
leftArrow: false,
mobileFullWidth: true
},
buttonUploadFile: {
title: 'Upload File...',
Expand Down Expand Up @@ -187,7 +196,8 @@ export default {
topTextInfo: '',
popover: '',
placeHolder: '',
rightInputText: ''
rightInputText: '',
readOnly: true
},
selectedGasType: 'regular',
customGas: 0,
Expand Down
2 changes: 1 addition & 1 deletion src/darklist/address-darklist.json

Large diffs are not rendered by default.

1 comment on commit 0fbb49a

@mew-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.