-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PR] compare buildings button on map page (#267)
* styling needs work * error message * fix routing back to original menu * last file cleanup * remove one last log * remove unused desc * maybe mobile styling fix * mobile restyle buttons * margin mobile fix maybe * why is this always two rows on mobile * last mobile button styles * increase prompt heights on mobile for compare
- Loading branch information
Showing
5 changed files
with
136 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,5 +58,6 @@ export default { | |
opacity: 1; | ||
justify-content: center; | ||
z-index: 500; | ||
height: 40px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<template> | ||
<button class="bigButton" @click="$emit('startCompare')">Compare Buildings</button> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'compareButton', | ||
props: {}, | ||
components: {} | ||
} | ||
</script> | ||
<style scoped lang="scss"> | ||
.bigButton { | ||
font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, | ||
sans-serif; | ||
display: flex; | ||
align-items: center; | ||
position: absolute; | ||
top: 78px; | ||
left: 10px; | ||
width: 150px; | ||
height: 40px; | ||
background-color: white; | ||
border: 2px solid rgba(0, 0, 0, 0.2); | ||
background-clip: padding-box; | ||
border-radius: 4.5px; | ||
opacity: 1; | ||
justify-content: center; | ||
z-index: 500; | ||
cursor: pointer; | ||
font-size: 15px; | ||
} | ||
@media only screen and (max-width: 600px) { | ||
.bigButton { | ||
width: 170px; | ||
left: 0px; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<template> | ||
<el-row class="stage_prompt"> | ||
<el-col :span="24"> | ||
<el-row> | ||
<el-col class="text"> | ||
ERROR <br /> | ||
<el-row | ||
>You have either not selected any buildings for comparison, or you have included a non-electric | ||
building.</el-row | ||
> | ||
</el-col> | ||
</el-row> | ||
<el-row> | ||
<el-col> | ||
<el-button class="button" type="info" @click="$emit('cancel')">Go back</el-button> | ||
</el-col> | ||
</el-row> | ||
</el-col> | ||
</el-row> | ||
</template> | ||
<script> | ||
export default {} | ||
</script> | ||
<style lang="scss" scoped> | ||
.stage_prompt { | ||
width: 400px; | ||
height: 150px; | ||
position: absolute; | ||
top: 20px; | ||
left: calc(50% - 200px); | ||
background-color: rgba(0, 0, 0, 0.8); | ||
color: $--color-white; | ||
z-index: 402; | ||
text-align: center; | ||
} | ||
.text { | ||
padding: 1.5em; | ||
font-size: 20px; | ||
} | ||
.button { | ||
border: solid 1px $--color-white; | ||
border-radius: 5px; | ||
margin: 10px; | ||
} | ||
.button:hover { | ||
border: solid 1px $--color-white; | ||
} | ||
.button:active { | ||
border: solid 1px $--color-white; | ||
} | ||
@media only screen and (max-width: 600px) { | ||
.stage_prompt { | ||
top: 80px; | ||
width: 330px; | ||
left: 250px; | ||
height: 180px; | ||
} | ||
} | ||
</style> |