Skip to content

Commit

Permalink
Popover helper added to network
Browse files Browse the repository at this point in the history
  • Loading branch information
hsurf22 authored and SteveMieskoski committed Sep 4, 2018
1 parent e6cc6c5 commit 0d4f885
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 94 deletions.
Binary file added src/assets/images/icons/question.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion src/components/PopOver/PopOver.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,16 @@

.popover-button {
position: absolute;
background-color: white;
background-color: transparent;
border: 0;
margin: 0;
padding: 0;

&:active,
&:focus {
box-shadow: none;
}

.hover-icon {
display: none;
}
Expand Down
7 changes: 5 additions & 2 deletions src/components/PopOver/PopOver.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<template lang="html">
<div class="popover-container">
<b-col>
<b-btn
:id="popOverId"
<b-btn v-if="!popovertype" :id="popOverId"
class="popover-button">
<img
class="nohover-icon"
Expand All @@ -11,6 +10,10 @@
class="hover-icon"
src="@/assets/images/icons/explanation2.svg">
</b-btn>
<b-btn v-if="popovertype === 'A'" :id="popOverId" class="popover-button">
<img class="nohover-icon" src="@/assets/images/icons/question.png">
<img class="hover-icon" src="@/assets/images/icons/question.png">
</b-btn>
<b-popover
:target="popOverId"
triggers="hover focus"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,16 @@
.network {
background-color: $transaction-block-network;
cursor: pointer;
position: relative;
}


.helper {
position: absolute;
right: 19px;
top: 16px;

.popover-container button {
background: transparent !important;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<interface-network-modal/>
<div @click="networkModalOpen">
<div class="info-block network">
<div class="helper">
<popover :popcontent="$t('popover.whatIsMessageContent')" :popovertype="'A'" />
</div>
<div class="block-image">
<img
v-if="$store.state.network.type.name === 'ROP' || $store.state.network.type.name === 'RIN' || $store.state.network.type.name === 'KOV'"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import '~@/scss/GlobalVariables';


.modal-container {
.network {
.content-block {
Expand Down Expand Up @@ -31,89 +32,6 @@
width: 6px;
}

&.aka::before {
background-color: $aka;
}

&.clo::before {
background-color: $clo;
}

&.egem::before {
background-color: $egem;
}

&.ella::before {
background-color: $ella;
}

&.eosc::before {
background-color: $eosc;
}

&.esn::before {
background-color: $esn;
}

&.etc::before {
background-color: $etc;
}

&.eth::before {
background-color: $eth;
}

&.etho::before {
background-color: $etho;
}

&.etsc::before {
background-color: $etsc;
}

&.exp::before {
background-color: $exp;
}

&.go::before {
background-color: $go;
}

&.kov::before {
background-color: $kov;
}

&.music::before {
background-color: $music;
}

&.pirl::before {
background-color: $pirl;
}

&.poa::before {
background-color: $poa;
}

&.rin::before {
background-color: $rin;
}

&.rop::before {
background-color: $rop;
}

&.tomo::before {
background-color: $tomo;
}

&.ubq::before {
background-color: $ubq;
}

&.cust::before {
background-color: $cust;
}
}

.flex-container {
Expand All @@ -125,6 +43,7 @@
}

.grid-3 {
padding: 0 20px;
display: grid;
grid-template-columns: auto auto auto;

Expand Down Expand Up @@ -197,3 +116,12 @@
margin-left: 10px;
}
}

.network-title {
display: flex;
align-items: center;
img {
height: 25px;
margin-right: 13px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
v-for="(key, index) in Object.keys($store.state.Networks)"
:key="key + index"
class="content-block">
<h4 :class="key.toLowerCase()">{{ key }}</h4>
<div class="network-title">
<img src="@/assets/images/networks/eth.svg">
<h4 :class="key.toLowerCase()">{{ key }}</h4>
</div>
<div class="grid-3">
<p
v-for="net in $store.state.Networks[key]"
Expand Down Expand Up @@ -72,7 +75,8 @@
<option
v-for="type in Object.keys(types)"
:value="types[type]"
:key="types[type].name + types[type].name_long">{{ types[type].name | capitalize }} - {{ types[type].name_long |
:key="types[type].name + types[type].name_long">
{{ types[type].name | capitalize }} - {{ types[type].name_long |
capitalize }}
</option>
</select>
Expand Down
6 changes: 0 additions & 6 deletions src/scss/Globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -790,12 +790,6 @@ h6 {
}


.max-height-1 .modal-body {
max-height: 405px;
overflow-x: hidden;
overflow-y: auto;
}



// Custom modal style for each pages -------------------------------
Expand Down

0 comments on commit 0d4f885

Please sign in to comment.