Added tooltipsfor Block Details Page + fixed height issue on main Blockscout Page + Added ERC 721 image to the token transfers page(required additional logic)
parent
0515bc8647
commit
4c70b0b5ab
@ -0,0 +1,74 @@ |
||||
/* Custom Tooltips for Block Details Page */ |
||||
.tooltipCustom { |
||||
position: relative; |
||||
display: inline-block; |
||||
} |
||||
.tooltipCustom .tooltiptextTopMiner { |
||||
visibility: hidden; |
||||
position: absolute; |
||||
width: 50%; |
||||
background-color: white; |
||||
color: #5c34a2; |
||||
text-align: center; |
||||
border-radius: 6px; |
||||
left: 25%; |
||||
bottom: 100%; |
||||
padding: 15px 0px; |
||||
display: inline-block; |
||||
z-index: 1; |
||||
font-family: Nunito; |
||||
margin-bottom: 15px; |
||||
opacity: 0; |
||||
transition: opacity 0.5s; |
||||
} |
||||
.tooltipCustom .tooltiptextTopMiner::after { |
||||
content: ''; |
||||
position: absolute; |
||||
top: 100%; |
||||
left: 50%; |
||||
margin-left: -5px; |
||||
border-width: 5px; |
||||
border-style: solid; |
||||
border-color: white transparent transparent transparent; |
||||
} |
||||
.tooltipCustom:hover .tooltiptextTopMiner { |
||||
visibility: visible; |
||||
opacity: 1; |
||||
} |
||||
|
||||
.tooltipCustom .tooltiptextTopR { |
||||
visibility: hidden; |
||||
position: absolute; |
||||
width: 50%; |
||||
background-color: $primary; |
||||
color: white; |
||||
text-align: center; |
||||
border-radius: 6px; |
||||
left: 52%; |
||||
bottom: 120%; |
||||
padding: 15px 10px; |
||||
font-family: Nunito; |
||||
display: inline-block; |
||||
z-index: 1; |
||||
margin-bottom: 15px; |
||||
opacity: 0; |
||||
transition: opacity 0.5s; |
||||
} |
||||
|
||||
.tooltipCustom .tooltiptextTopR::after { |
||||
content: ''; |
||||
position: absolute; |
||||
top: 100%; |
||||
left: 50%; |
||||
margin-left: -5px; |
||||
border-width: 5px; |
||||
border-style: solid; |
||||
border-color: $primary transparent transparent transparent; |
||||
} |
||||
|
||||
|
||||
.tooltipCustom:hover .tooltiptextTopR { |
||||
visibility: visible; |
||||
opacity: 1; |
||||
} |
||||
/* Custom Tooltips for Block Details Page end*/ |
@ -0,0 +1,10 @@ |
||||
/* ERC721 image block */ |
||||
.erc721-image { |
||||
display: flex; |
||||
justify-content: center; |
||||
} |
||||
|
||||
.erc721-image img { |
||||
height: 80px; |
||||
} |
||||
/* ERC721 image block end */ |
Loading…
Reference in new issue