floscout/css/main.scss
sairaj mote 09a3c0d3bf v1.0.1
2020-05-14 12:35:10 +05:30

646 lines
13 KiB
SCSS

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;1,700&family=Roboto:wght@400;500;700&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: 85, 85, 85;
--foreground: 255, 255, 255;
--background: #efefef;
--dark-shade: #dadada;
font-size: 16px;
color: rgba(var(--text), 1);
background: rgba(var(--foreground), 1);
}
body[data-theme='dark']{
--text: 218, 218, 218;
--text-light: 170, 170, 170;
--foreground: 20, 20, 20;
--background: #111;
--dark-shade: #1a1a1a;
}
.transition{
transition: all 0.6s;
}
h5{
font-weight: 500;
}
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: 600;
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;
}
.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;
}
.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;
}
}
}
}
.padding{
padding: 0 1.5rem;
}
.top-bottom-padding{
padding: 1.5rem 0;
}
.margin{
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);
margin: 1.5rem 0;
h4{
margin-bottom: 0.4rem;
font-weight: 400;
text-transform: capitalize;
}
}
.label{
font-family: 'Montserrat' ,sans-serif;
text-transform: capitalize;
font-size: 0.8rem;
margin-bottom: 0.4rem;
line-height: 1.4em;
opacity: 0.7;
margin-top: 1.5rem;
&:first-of-type{
margin-top: 0;
}
}
.header{
display: flex;
align-items: center;
padding: 2em 0;
h1{
font-size: 1.2rem;
text-transform: capitalize;
}
.montserrat{
font-weight: 600;
}
}
#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;
p{
opacity: 0.6;
text-align: left;
margin: 1rem 1.5rem 1.5rem 1.5rem;
}
h1{
font-size: 4rem;
text-align: left;
margin-top: 2rem;
}
.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: 0.5rem;
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;
opacity: 0.5;
stroke-width: 6;
&.search line{
stroke-width: 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(--foreground), 1);
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,&:last-of-type{
cursor: pointer;
}
&: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;
}
}
}
.montserrat{
font-family: 'montserrat', sans-serif;
font-weight: normal;
letter-spacing: 0.06em;
}
#top_transaction_container{
display: grid;
grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
gap: 1.5em;
padding-bottom: 2em;
padding-top: 2em;
}
.transaction{
flex-direction: column;
padding: 1.5rem;
border-radius: 0.5rem;
border: solid 1px rgba(var(--text), 0.1);
.transaction-header{
margin-bottom: 2em;
grid-template-columns: auto 1fr;
h5{
text-transform: capitalize;
}
h2{
text-transform: uppercase;
margin-top: 0.2em;
letter-spacing: 0.06em;
}
.icon{
display: flex;
svg{
height: 1.5em;
width: 1.5em;
opacity: 0.6;
margin-left: auto;
cursor: pointer;
fill: rgba(var(--text), 1);
&:hover{
opacity: 1;
}
}
}
}
h5{
text-transform: uppercase;
margin-bottom: 0.4em;
opacity: 0.8;
font-size: 0.8em;
}
h4{
cursor: pointer;
margin-bottom: 1.5em;
font-weight: 500;
&:hover{
filter: brightness(150%);
}
}
h3{
margin-top: 2em;
text-align: right;
}
}
#latest_transaction_section{
background: rgba(var(--foreground), 1);
header{
grid-template-columns: 1fr auto;
position: sticky;
top: 0;
background: inherit;
z-index: 2;
}
}
#page_header{
padding: 1.5rem 0;
align-items: center;
font-family: 'Montserrat', sans-serif;
h3{
font-weight: 500;
}
}
.page{
padding: 1.5rem 0;
h3.heading{
margin-top: 2rem;
font-family: 'Montserrat', sans-serif;
}
}
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;
}
}
.status{
padding: 0.5rem 0.8rem;
border-radius: 2rem;
display: inline-flex;
align-items: center;
font-size: 0.8rem;
margin-bottom: 0.5rem;
&.done{
background: #00C853;
align-self: center;
color: white;
.icon{
margin-right: 0.5rem;
height: 1em;
width: 1em;
stroke: white;
opacity: 1;
}
}
&.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);
}
.tabs{
position: relative;
margin-top: 2rem;
display: flex;
overflow-x: auto;
.tab{
cursor: pointer;
font-family: 'Montserrat', sans-serif;
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;
}
@media only screen and (min-width: 640px){
.padding{
padding: 0 6vw;
}
.margin{
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;
}
}
}
}
@media only screen and (min-width: 1280px){
.padding{
padding: 0 8vw;
}
.margin{
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;
}
}
}
}
@media only screen and (min-width: 1920px){
body{
font-size: 24px;
}
.padding{
padding: 0 12vw;
}
.margin{
margin: 0 26vw;
}
#homepage{
margin: 0 12vw;
}
}
@media only screen and (min-width: 2048px){
body{
font-size: 24px;
}
.padding{
padding: 0 24vw;
}
.margin{
margin: 0 32vw;
}
#homepage{
margin: 0 24vw;
}
#first_section{
min-height: auto;
}
}
@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);
}
}
#logo{
cursor: pointer;
}
}