651 lines
13 KiB
SCSS
651 lines
13 KiB
SCSS
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');
|
|
*,
|
|
::before,
|
|
::after{
|
|
padding: 0;
|
|
margin: 0;
|
|
box-sizing: border-box;
|
|
font-family: 'Roboto', sans-serif;
|
|
}
|
|
body{
|
|
--primary-color: #1E88E5;
|
|
--text: 17, 17, 17;
|
|
--text-light: 100, 100, 100;
|
|
--foreground: 255, 255, 255;
|
|
--background: #efefef;
|
|
--dark-shade: #dadada;
|
|
font-size: 16px;
|
|
color: rgba(var(--text), 1);
|
|
background: rgba(var(--foreground), 1);
|
|
background-size: cover;
|
|
}
|
|
body[data-theme='dark']{
|
|
--text: 218, 218, 218;
|
|
--text-light: 170, 170, 170;
|
|
--foreground: 20, 20, 20;
|
|
--background: #111;
|
|
--dark-shade: #1a1a1a;
|
|
}
|
|
input[type=text]::-ms-clear { display: none; width : 0; height: 0; }
|
|
input[type=text]::-ms-reveal { display: none; width : 0; height: 0; }
|
|
input[type="search"]::-webkit-search-decoration,
|
|
input[type="search"]::-webkit-search-cancel-button,
|
|
input[type="search"]::-webkit-search-results-button,
|
|
input[type="search"]::-webkit-search-results-decoration { display: none; }
|
|
input[type=number] {
|
|
-moz-appearance:textfield;
|
|
}
|
|
input:invalid{
|
|
outline: none;
|
|
box-shadow: none;
|
|
}
|
|
::-moz-focus-inner{
|
|
border: none;
|
|
}
|
|
button{
|
|
border: none;
|
|
border-radius: 0.4em;
|
|
text-transform: uppercase;
|
|
font-weight: 500;
|
|
letter-spacing: 0.06em;
|
|
background: rgba(var(--text), 0.1);
|
|
cursor: pointer;
|
|
padding: 0.8rem 1.5rem;
|
|
color: rgba(var(--text), 1);
|
|
align-self: center;
|
|
}
|
|
h1{
|
|
font-size: 4rem;
|
|
}
|
|
h2{
|
|
font-size: 2rem;
|
|
font-weight: 500;
|
|
}
|
|
h3{
|
|
font-size: 1.5rem;
|
|
}
|
|
.flex{
|
|
display: flex;
|
|
}
|
|
.grid{
|
|
display: grid;
|
|
}
|
|
.grid-2{
|
|
grid-template-columns: auto auto;
|
|
gap: 1em;
|
|
}
|
|
.hide{
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
.hide-completely{
|
|
display: none !important;
|
|
}
|
|
.breakable{
|
|
overflow-wrap: break-word;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
.uppercase{
|
|
text-transform: uppercase !important;
|
|
}
|
|
.toggle{
|
|
position: relative;
|
|
cursor: pointer;
|
|
z-index: 1;
|
|
input[type='checkbox']{
|
|
display: none;
|
|
}
|
|
.switch{
|
|
overflow: hidden;
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
justify-items: center;
|
|
padding: 0.2rem;
|
|
min-height: 1.6rem;
|
|
max-height: 1.6rem;
|
|
border-radius: 0.5rem;
|
|
position: relative;
|
|
}
|
|
.circle{
|
|
border-radius: 0.5rem;
|
|
transition: transform 0.3s;
|
|
&:first-of-type{
|
|
margin-bottom: 0.4rem;
|
|
}
|
|
fill: rgba(var(--text), 0.8);
|
|
overflow: visible;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
height: 1.2rem;
|
|
width: 1.2rem;
|
|
line{
|
|
stroke: rgba(var(--text), 0.8);
|
|
stroke-width: 6;
|
|
}
|
|
}
|
|
input:checked ~ .switch .circle{
|
|
transform: translateY(-1.7rem);
|
|
}
|
|
}
|
|
section{
|
|
position: relative;
|
|
.dark-background{
|
|
display: grid;
|
|
grid-template-rows: auto 1fr;
|
|
}
|
|
}
|
|
ul{
|
|
&[type='circle']{
|
|
padding: 1.5rem 2.5rem;
|
|
list-style: circle;
|
|
li{
|
|
margin-bottom: 1rem;
|
|
&:last-of-type{
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
}
|
|
&{
|
|
list-style: none;
|
|
.balance{
|
|
margin-bottom: 2rem;
|
|
&:last-of-type{
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.top-bottom-padding{
|
|
padding: 1.5rem 0;
|
|
}
|
|
.margin, .page{
|
|
margin: 0 1.5rem;
|
|
}
|
|
.margin-left-auto{
|
|
margin-left: auto;
|
|
}
|
|
.card{
|
|
padding: 2rem 1.5rem;
|
|
border-radius: 0.5rem;
|
|
//border: solid 1px rgba(var(--text), 0.16);
|
|
background: rgba(var(--text), 0.06);
|
|
margin: 1.5rem 0;
|
|
h4{
|
|
margin-bottom: 0.4rem;
|
|
font-weight: 400;
|
|
text-transform: capitalize;
|
|
}
|
|
h2{
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
}
|
|
.label{
|
|
text-transform: capitalize;
|
|
font-size: 0.8rem;
|
|
margin-bottom: 0.3rem;
|
|
line-height: 1.4em;
|
|
color: rgba(var(--text-light), 1);
|
|
margin-top: 1.5rem;
|
|
font-weight: 400;
|
|
&:first-of-type{
|
|
margin-top: 0;
|
|
}
|
|
&+h4:not(.address){
|
|
text-transform: capitalize;
|
|
}
|
|
}
|
|
.header{
|
|
align-items: center;
|
|
padding: 2em 0;
|
|
}
|
|
#logo{
|
|
display: inline-flex;
|
|
letter-spacing: 0.1em;
|
|
align-items: center;
|
|
h4{
|
|
font-weight: 400;
|
|
}
|
|
#main_logo{
|
|
height: 1.2rem;
|
|
width: 1.2rem;
|
|
margin-right: 0.2rem;
|
|
fill: rgba(var(--text), 1);
|
|
}
|
|
}
|
|
#homepage{
|
|
padding-top: 0;
|
|
}
|
|
#first_section{
|
|
display: grid;
|
|
grid-template-rows: auto 1fr auto;
|
|
min-height: 100vh;
|
|
}
|
|
#main_search{
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
h1{
|
|
text-align: left;
|
|
margin-top: 2rem;
|
|
font-weight: 500;
|
|
}
|
|
.input{
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
z-index: 1;
|
|
width: 100%;
|
|
margin: 1rem;
|
|
align-items: center;
|
|
padding: 1rem;
|
|
gap: 1em;
|
|
border-radius: 2rem;
|
|
background: rgba(var(--text), 0.06);
|
|
//border: solid 1px rgba(var(--text), 0.6);
|
|
}
|
|
input{
|
|
border: none;
|
|
width: 100%;
|
|
background: transparent;
|
|
outline: none;
|
|
font-size: 1rem;
|
|
color: rgba(var(--text), 1);
|
|
}
|
|
}
|
|
.icon{
|
|
height: 1.2em;
|
|
overflow: visible;
|
|
width: 1.5em;
|
|
fill: none;
|
|
stroke: rgba(var(--text), 1);
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
stroke-width: 6;
|
|
opacity: 0.8;
|
|
&#back_btn{
|
|
margin-right: 1rem;
|
|
}
|
|
}
|
|
#highlights{
|
|
padding: 1.5rem 0;
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
grid-template-areas: 'token token'
|
|
'total wallet'
|
|
'contract contract';
|
|
gap: 1.5rem;
|
|
.highlight-item{
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 1.5rem;
|
|
border-radius: 0.5rem;
|
|
background: rgba(var(--text), 0.06);
|
|
//border: 1px solid rgba(var(--text), 0.2);
|
|
.label{
|
|
margin-top: auto;
|
|
}
|
|
h1{
|
|
font-size: 2rem;
|
|
letter-spacing: 0.1rem;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
overflow-wrap: break-word;
|
|
}
|
|
&:first-of-type{
|
|
text-transform: uppercase;
|
|
}
|
|
&:nth-of-type(2){
|
|
text-transform: capitalize;
|
|
}
|
|
&:first-of-type{
|
|
grid-area: token;
|
|
}
|
|
&:nth-of-type(2){
|
|
grid-area: total;
|
|
}
|
|
&:nth-of-type(3){
|
|
grid-area: wallet;
|
|
}
|
|
&:last-of-type{
|
|
grid-area: contract;
|
|
}
|
|
}
|
|
}
|
|
#latest_transaction_section,
|
|
#latest_blocks_section{
|
|
background: rgba(var(--foreground), 1);
|
|
header{
|
|
grid-template-columns: 1fr auto;
|
|
background: inherit;
|
|
z-index: 2;
|
|
}
|
|
}
|
|
#page_header{
|
|
padding: 1rem 0;
|
|
align-items: center;
|
|
h3{
|
|
font-weight: 500;
|
|
}
|
|
}
|
|
.page{
|
|
padding: 1rem 0;
|
|
animation: fade 0.3s;
|
|
h3.heading{
|
|
text-transform: capitalize;
|
|
font-weight: 500;
|
|
}
|
|
& > h3.heading{
|
|
margin-top: 2rem;
|
|
}
|
|
}
|
|
p{
|
|
overflow-wrap: break-word;
|
|
line-height: 1.6em;
|
|
text-transform: capitalize;
|
|
}
|
|
.balance-card{
|
|
background: linear-gradient(135deg, #5E35B1,#311B92);
|
|
color: white;
|
|
border-radius: 0.5rem;
|
|
box-shadow: 0 0.5rem 1rem rgba($color: #5E35B1, $alpha: 0.4);
|
|
padding: 2rem 1.5rem;
|
|
.flo-logo{
|
|
fill: white;
|
|
height: 1.5rem;
|
|
width: 1.5rem;
|
|
opacity: 0.8;
|
|
margin-bottom: 1rem;
|
|
}
|
|
h2,h4{
|
|
display: inline-block;
|
|
width: auto;
|
|
}
|
|
h4{
|
|
margin-left: 0.5rem;
|
|
font-weight: 400;
|
|
}
|
|
p{
|
|
margin-top: 1.5rem;
|
|
opacity: 0.8;
|
|
letter-spacing: 0.1em;
|
|
}
|
|
.label{
|
|
color: white;
|
|
opacity: 0.7;
|
|
}
|
|
}
|
|
.choice,.status{
|
|
padding: 0.5rem 0.8rem;
|
|
border-radius: 2rem;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
.choice-container{
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
.choice{
|
|
border: solid 1px rgba(var(--text), 0.2);
|
|
&:last-of-type{
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
.status{
|
|
font-size: 0.8rem;
|
|
&.done{
|
|
background: #00C853;
|
|
align-self: center;
|
|
color: white;
|
|
.icon{
|
|
margin-right: 0.5rem;
|
|
height: 1em;
|
|
width: 1em;
|
|
stroke: white;
|
|
}
|
|
}
|
|
&.closed{
|
|
background: rgba(var(--foreground), 1);
|
|
border: solid 1px rgba(var(--text), 0.1);
|
|
}
|
|
}
|
|
#transaction_page{
|
|
.grid-2{
|
|
grid-template-columns: 1fr auto;
|
|
}
|
|
}
|
|
.address, .token, .hash, .contract, .block{
|
|
cursor: pointer;
|
|
color: var(--primary-color);
|
|
}
|
|
.address{
|
|
text-transform: none !important;
|
|
word-break: break-all;
|
|
}
|
|
.tabs{
|
|
position: relative;
|
|
margin-top: 2rem;
|
|
display: flex;
|
|
overflow-x: auto;
|
|
.tab{
|
|
cursor: pointer;
|
|
opacity: 0.6;
|
|
padding-bottom: 0.5rem;
|
|
margin-right: 1rem;
|
|
-webkit-tap-highlight-color: transparent;
|
|
white-space: nowrap;
|
|
border-bottom: transparent;
|
|
&:last-of-type{
|
|
margin-right: 0;
|
|
}
|
|
&.active{
|
|
opacity: 1;
|
|
border-bottom: 0.1em solid rgba(var(--text), 0.8);
|
|
}
|
|
}
|
|
}
|
|
.contract-choice{
|
|
margin-bottom: 2rem;
|
|
&:last-of-type{
|
|
margin-bottom: 0;
|
|
}
|
|
h3{
|
|
text-transform: capitalize;
|
|
font-weight: 400;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
}
|
|
#homepage{
|
|
margin: 0 1.5rem;
|
|
}
|
|
@keyframes fade{
|
|
from{
|
|
opacity: 0;
|
|
transform: translateY(1rem);
|
|
}
|
|
to{
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
}
|
|
#top_transaction_container{
|
|
display: grid;
|
|
gap: 1.5em;
|
|
}
|
|
.transaction{
|
|
padding: 1.5rem;
|
|
border-radius: 0.5rem;
|
|
//border: solid 1px rgba(var(--text), 0.1);
|
|
background: rgba(var(--text), 0.06);
|
|
h4{
|
|
cursor: pointer;
|
|
margin-bottom: 1.5em;
|
|
font-weight: 500;
|
|
}
|
|
}
|
|
@media only screen and (min-width: 640px){
|
|
.margin, .page{
|
|
margin: 0 6vw;
|
|
}
|
|
#homepage{
|
|
margin: 0 4vw;
|
|
}
|
|
.input{
|
|
width: 80vw !important;
|
|
}
|
|
section{
|
|
header{
|
|
h1{
|
|
font-size: 2rem;
|
|
}
|
|
}
|
|
}
|
|
#main_search{
|
|
h1{
|
|
font-size: 6rem;
|
|
text-align: center;
|
|
}
|
|
}
|
|
#highlights{
|
|
gap: 2rem;
|
|
grid-template-columns: repeat(2, auto);
|
|
grid-template-areas: 'token total' ' wallet contract';
|
|
.highlight-item{
|
|
h1{
|
|
font-size: 2.5rem;
|
|
}
|
|
&:first-of-type{
|
|
grid-area: token;
|
|
}
|
|
&:nth-of-type(2){
|
|
grid-area: total;
|
|
}
|
|
&:nth-of-type(3){
|
|
grid-area: wallet;
|
|
}
|
|
&:last-of-type{
|
|
grid-area: contract;
|
|
}
|
|
}
|
|
}
|
|
#page_header{
|
|
padding: 1.5rem 0;
|
|
}
|
|
#top_transaction_container{
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
.transaction{
|
|
width: 100%;
|
|
display: grid;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
grid-template-columns: auto 1fr;
|
|
grid-template-rows: auto 1fr;
|
|
grid-template-areas: '. info '
|
|
'. info';
|
|
.contract-type{
|
|
align-self: flex-start;
|
|
}
|
|
.contract-info{
|
|
padding-left: 1rem;
|
|
grid-area: info;
|
|
border-left: 1px solid rgba(var(--text), 0.2);
|
|
}
|
|
}
|
|
}
|
|
@media only screen and (min-width: 1280px){
|
|
.margin, .page{
|
|
margin: 0 16vw;
|
|
}
|
|
#homepage{
|
|
margin: 0 8vw;
|
|
}
|
|
.input{
|
|
width: 50vw !important;
|
|
}
|
|
#highlights{
|
|
grid-template-columns: repeat(4, auto);
|
|
grid-template-areas: 'token total wallet contract';
|
|
.highlight-item{
|
|
&:first-of-type{
|
|
grid-area: token;
|
|
}
|
|
&:nth-of-type(2){
|
|
grid-area: total;
|
|
}
|
|
&:nth-of-type(3){
|
|
grid-area: wallet;
|
|
}
|
|
&:last-of-type{
|
|
grid-area: contract;
|
|
}
|
|
}
|
|
}
|
|
#top_transaction_container{
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
}
|
|
@media only screen and (min-width: 1920px){
|
|
body{
|
|
font-size: 24px;
|
|
}
|
|
.margin, .page{
|
|
margin: 0 26vw;
|
|
}
|
|
#homepage{
|
|
margin: 0 12vw;
|
|
}
|
|
.input{
|
|
width: 40vw !important;
|
|
}
|
|
#top_transaction_container{
|
|
grid-template-columns: repeat(4, 1fr);
|
|
}
|
|
}
|
|
@media only screen and (min-width: 2048px){
|
|
body{
|
|
font-size: 24px;
|
|
}
|
|
.margin, .page{
|
|
margin: 0 32vw;
|
|
}
|
|
#homepage{
|
|
margin: 0 24vw;
|
|
}
|
|
#first_section{
|
|
min-height: auto;
|
|
}
|
|
.input{
|
|
width: 30vw !important;
|
|
}
|
|
#top_transaction_container{
|
|
grid-template-columns: repeat(5, 1fr);
|
|
}
|
|
}
|
|
@media only screen and (max-width: 320px){
|
|
body{
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
@media (hover:hover){
|
|
button{
|
|
transition: background-color 0.3s;
|
|
&:hover{
|
|
background: rgba(var(--text), 1);
|
|
color: var(--background);
|
|
}
|
|
}
|
|
.hover{
|
|
cursor: pointer;
|
|
}
|
|
.tab{
|
|
transition: opacity 0.3s;
|
|
&:hover{
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|