This commit is contained in:
sairaj mote 2020-05-04 16:53:18 +05:30
parent c7c521723a
commit 5a1ffb0418
4 changed files with 82 additions and 122 deletions

View File

@ -10,13 +10,13 @@
} }
body { body {
--primary-color: #1E88E5; --primary-color: #f8615a;
--text: 17, 17, 17; --text: 17, 17, 17;
--text-light: 85, 85, 85; --text-light: 85, 85, 85;
--foreground: 255, 255, 255; --foreground: 255, 255, 255;
--background: #e8e8e8; --background: #efefef;
--dark-shade: #dadada; --dark-shade: #dadada;
font-size: 14px; font-size: 16px;
color: rgba(var(--text), 1); color: rgba(var(--text), 1);
background: rgba(var(--foreground), 1); background: rgba(var(--foreground), 1);
} }
@ -24,13 +24,13 @@ body {
body[data-theme='dark'] { body[data-theme='dark'] {
--text: 238, 238, 238; --text: 238, 238, 238;
--text-light: 170, 170, 170; --text-light: 170, 170, 170;
--foreground: 26, 26, 26; --foreground: 20, 20, 20;
--background: #111; --background: #111;
--dark-shade: #1a1a1a; --dark-shade: #1a1a1a;
} }
h5 { h5 {
font-weight: 400; font-weight: 500;
} }
input[type=text]::-ms-clear { input[type=text]::-ms-clear {
@ -141,7 +141,7 @@ button {
transition: -webkit-transform 0.3s; transition: -webkit-transform 0.3s;
transition: transform 0.3s; transition: transform 0.3s;
transition: transform 0.3s, -webkit-transform 0.3s; transition: transform 0.3s, -webkit-transform 0.3s;
fill: var(--primary-color); fill: rgba(var(--text), 0.8);
overflow: visible; overflow: visible;
stroke-linecap: round; stroke-linecap: round;
stroke-linejoin: round; stroke-linejoin: round;
@ -154,7 +154,7 @@ button {
} }
.toggle .circle line { .toggle .circle line {
stroke: var(--primary-color); stroke: rgba(var(--text), 0.8);
stroke-width: 6; stroke-width: 6;
} }
@ -200,11 +200,11 @@ section .dark-background {
} }
.padding { .padding {
padding: 0 1rem; padding: 0 1.5rem;
} }
.margin { .margin {
margin: 0 1rem; margin: 0 1.5rem;
} }
#main_logo { #main_logo {
@ -228,21 +228,25 @@ section .dark-background {
display: grid; display: grid;
place-items: center; place-items: center;
padding: 1em; padding: 1em;
/*#floscout_illustration{ height: 100%;
margin-bottom: 1em; }
fill: none;
height: 12rem; #main_search #floscout_illustration {
width: 12rem; margin-bottom: 1em;
stroke-width: 12; fill: none;
stroke-linecap: round; height: 12rem;
stroke-linejoin: round; width: 12rem;
.magni-glass-color{ stroke-width: 12;
stroke: var(--primary-color); stroke-linecap: round;
} stroke-linejoin: round;
.cube-color{ }
stroke: rgba(var(--text), 1);
} #main_search #floscout_illustration .magni-glass-color {
}*/ stroke: var(--primary-color);
}
#main_search #floscout_illustration .cube-color {
stroke: rgba(var(--text), 1);
} }
#main_search .input { #main_search .input {
@ -256,11 +260,11 @@ section .dark-background {
-webkit-box-align: center; -webkit-box-align: center;
-ms-flex-align: center; -ms-flex-align: center;
align-items: center; align-items: center;
background: rgba(var(--foreground), 1); background: var(--background);
padding: 1em; padding: 1em;
gap: 1em; gap: 1em;
border-radius: 0.4em; border-radius: 0.4em;
border: 1px solid rgba(var(--text), 0.2); border: 1px solid rgba(var(--text), 0.1);
} }
#main_search input { #main_search input {
@ -289,7 +293,7 @@ section .dark-background {
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
z-index: 0; z-index: -1;
position: absolute; position: absolute;
bottom: 0; bottom: 0;
right: 0; right: 0;
@ -300,27 +304,29 @@ section .dark-background {
pointer-events: none; pointer-events: none;
} }
.dark-background {
background: var(--dark-shade);
}
#highlights { #highlights {
padding: 4em 0; padding: 4em 0;
display: -ms-grid; display: -ms-grid;
display: grid; display: grid;
-ms-grid-columns: auto auto; -ms-grid-columns: auto auto;
grid-template-columns: auto auto; grid-template-columns: auto auto;
gap: 1em 2em; gap: 1rem;
}
#highlights .highlight-item {
background: var(--background);
padding: 1.5rem;
border-radius: 0.4rem;
} }
#highlights .highlight-item h4 { #highlights .highlight-item h4 {
opacity: 0.8; color: rgba(var(--text-light), 1);
} }
#highlights .highlight-item h1 { #highlights .highlight-item h1 {
font-size: 1.6em; font-size: 1.6em;
letter-spacing: 0.1rem; letter-spacing: 0.1rem;
margin-top: 0.1em; margin-top: 0.4em;
font-weight: 500; font-weight: 500;
} }
@ -345,8 +351,8 @@ section .dark-background {
#top_transaction_container { #top_transaction_container {
display: -ms-grid; display: -ms-grid;
display: grid; display: grid;
-ms-grid-columns: (minmax(20rem, 1fr))[auto-fit]; -ms-grid-columns: (minmax(20rem, 1fr))[auto-fill];
grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
gap: 1.5em; gap: 1.5em;
padding-bottom: 2em; padding-bottom: 2em;
padding-top: 2em; padding-top: 2em;
@ -359,8 +365,7 @@ section .dark-background {
flex-direction: column; flex-direction: column;
padding: 2em; padding: 2em;
border-radius: 0.3em; border-radius: 0.3em;
background: rgba(var(--foreground), 1); background: var(--background);
border: solid 1px rgba(var(--text), 0.2);
} }
.transaction .transaction-header { .transaction .transaction-header {
@ -407,7 +412,6 @@ section .dark-background {
.transaction h4 { .transaction h4 {
cursor: pointer; cursor: pointer;
color: var(--primary-color);
margin-bottom: 1.5em; margin-bottom: 1.5em;
font-weight: 500; font-weight: 500;
} }
@ -422,20 +426,21 @@ section .dark-background {
text-align: right; text-align: right;
} }
#latest_transaction_section {
background: rgba(var(--foreground), 1);
}
#latest_transaction_section header { #latest_transaction_section header {
-ms-grid-columns: 1fr auto; -ms-grid-columns: 1fr auto;
grid-template-columns: 1fr auto; grid-template-columns: 1fr auto;
position: -webkit-sticky; position: -webkit-sticky;
position: sticky; position: sticky;
top: 0; top: 0;
background: rgba(var(--foreground), 1); background: inherit;
z-index: 2; z-index: 2;
} }
@media only screen and (min-width: 640px) { @media only screen and (min-width: 640px) {
body {
font-size: 16px;
}
.padding { .padding {
padding: 0 6vw; padding: 0 6vw;
} }
@ -450,7 +455,7 @@ section .dark-background {
line-height: 0.6em; line-height: 0.6em;
} }
section header h1 { section header h1 {
font-size: 2.5rem; font-size: 2rem;
} }
} }
@ -462,6 +467,7 @@ section .dark-background {
margin: 0 8vw; margin: 0 8vw;
} }
#highlights { #highlights {
gap: 2rem;
-ms-grid-columns: (auto)[4]; -ms-grid-columns: (auto)[4];
grid-template-columns: repeat(4, auto); grid-template-columns: repeat(4, auto);
} }
@ -505,16 +511,12 @@ section .dark-background {
@media (hover: hover) { @media (hover: hover) {
button { button {
-webkit-transition: background-color 0.3s, -webkit-box-shadow 0.3s; -webkit-transition: background-color 0.3s;
transition: background-color 0.3s, -webkit-box-shadow 0.3s; transition: background-color 0.3s;
transition: box-shadow 0.3s, background-color 0.3s;
transition: box-shadow 0.3s, background-color 0.3s, -webkit-box-shadow 0.3s;
} }
button:hover { button:hover {
background: rgba(var(--text), 1); background: rgba(var(--text), 1);
color: var(--background); color: var(--background);
-webkit-box-shadow: 0.4em 0.6em 0 rgba(var(--text), 0.2);
box-shadow: 0.4em 0.6em 0 rgba(var(--text), 0.2);
} }
#logo { #logo {
cursor: pointer; cursor: pointer;

File diff suppressed because one or more lines are too long

View File

@ -8,25 +8,25 @@
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;
} }
body{ body{
--primary-color: #1E88E5; --primary-color: #f8615a;
--text: 17, 17, 17; --text: 17, 17, 17;
--text-light: 85, 85, 85; --text-light: 85, 85, 85;
--foreground: 255, 255, 255; --foreground: 255, 255, 255;
--background: #e8e8e8; --background: #efefef;
--dark-shade: #dadada; --dark-shade: #dadada;
font-size: 14px; font-size: 16px;
color: rgba(var(--text), 1); color: rgba(var(--text), 1);
background: rgba(var(--foreground), 1); background: rgba(var(--foreground), 1);
} }
body[data-theme='dark']{ body[data-theme='dark']{
--text: 238, 238, 238; --text: 238, 238, 238;
--text-light: 170, 170, 170; --text-light: 170, 170, 170;
--foreground: 26, 26, 26; --foreground: 20, 20, 20;
--background: #111; --background: #111;
--dark-shade: #1a1a1a; --dark-shade: #1a1a1a;
} }
h5{ h5{
font-weight: 400; font-weight: 500;
} }
input[type=text]::-ms-clear { display: none; width : 0; height: 0; } input[type=text]::-ms-clear { display: none; width : 0; height: 0; }
input[type=text]::-ms-reveal { display: none; width : 0; height: 0; } input[type=text]::-ms-reveal { display: none; width : 0; height: 0; }
@ -99,14 +99,14 @@ button{
&:first-of-type{ &:first-of-type{
margin-bottom: 0.4rem; margin-bottom: 0.4rem;
} }
fill: var(--primary-color); fill: rgba(var(--text), 0.8);
overflow: visible; overflow: visible;
stroke-linecap: round; stroke-linecap: round;
stroke-linejoin: round; stroke-linejoin: round;
height: 1.2rem; height: 1.2rem;
width: 1.2rem; width: 1.2rem;
line{ line{
stroke: var(--primary-color); stroke: rgba(var(--text), 0.8);
stroke-width: 6; stroke-width: 6;
} }
} }
@ -138,10 +138,10 @@ section{
} }
} }
.padding{ .padding{
padding: 0 1rem; padding: 0 1.5rem;
} }
.margin{ .margin{
margin: 0 1rem; margin: 0 1.5rem;
} }
#main_logo{ #main_logo{
height: 2rem; height: 2rem;
@ -159,7 +159,8 @@ section{
display: grid; display: grid;
place-items: center; place-items: center;
padding: 1em; padding: 1em;
/*#floscout_illustration{ height: 100%;
#floscout_illustration{
margin-bottom: 1em; margin-bottom: 1em;
fill: none; fill: none;
height: 12rem; height: 12rem;
@ -173,7 +174,7 @@ section{
.cube-color{ .cube-color{
stroke: rgba(var(--text), 1); stroke: rgba(var(--text), 1);
} }
}*/ }
.input{ .input{
position: relative; position: relative;
display: grid; display: grid;
@ -181,11 +182,11 @@ section{
z-index: 1; z-index: 1;
width: 100%; width: 100%;
align-items: center; align-items: center;
background: rgba(var(--foreground), 1); background: var(--background);
padding: 1em; padding: 1em;
gap: 1em; gap: 1em;
border-radius: 0.4em; border-radius: 0.4em;
border: 1px solid rgba(var(--text), 0.2); border: 1px solid rgba(var(--text), 0.1);
} }
input{ input{
border: none; border: none;
@ -208,7 +209,7 @@ section{
} }
.watermark{ .watermark{
user-select: none; user-select: none;
z-index: 0; z-index: -1;
position: absolute; position: absolute;
bottom: 0; bottom: 0;
right: 0; right: 0;
@ -219,22 +220,22 @@ section{
pointer-events: none; pointer-events: none;
} }
} }
.dark-background{
background: var(--dark-shade);
}
#highlights{ #highlights{
padding: 4em 0; padding: 4em 0;
display: grid; display: grid;
grid-template-columns: auto auto; grid-template-columns: auto auto;
gap: 1em 2em; gap: 1rem;
.highlight-item{ .highlight-item{
background: var(--background);
padding: 1.5rem;
border-radius: 0.4rem;
h4{ h4{
opacity: 0.8; color: rgba(var(--text-light), 1);
} }
h1{ h1{
font-size: 1.6em; font-size: 1.6em;
letter-spacing: 0.1rem; letter-spacing: 0.1rem;
margin-top: 0.1em; margin-top: 0.4em;
font-weight: 500; font-weight: 500;
} }
&:first-of-type,&:nth-of-type(2){ &:first-of-type,&:nth-of-type(2){
@ -255,7 +256,7 @@ section{
} }
#top_transaction_container{ #top_transaction_container{
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
gap: 1.5em; gap: 1.5em;
padding-bottom: 2em; padding-bottom: 2em;
padding-top: 2em; padding-top: 2em;
@ -264,8 +265,7 @@ section{
flex-direction: column; flex-direction: column;
padding: 2em; padding: 2em;
border-radius: 0.3em; border-radius: 0.3em;
background: rgba(var(--foreground), 1); background: var(--background);
border: solid 1px rgba(var(--text), 0.2);
.transaction-header{ .transaction-header{
margin-bottom: 2em; margin-bottom: 2em;
grid-template-columns: auto 1fr; grid-template-columns: auto 1fr;
@ -301,7 +301,6 @@ section{
} }
h4{ h4{
cursor: pointer; cursor: pointer;
color: var(--primary-color);
margin-bottom: 1.5em; margin-bottom: 1.5em;
font-weight: 500; font-weight: 500;
&:hover{ &:hover{
@ -314,18 +313,16 @@ section{
} }
} }
#latest_transaction_section{ #latest_transaction_section{
background: rgba(var(--foreground), 1);
header{ header{
grid-template-columns: 1fr auto; grid-template-columns: 1fr auto;
position: sticky; position: sticky;
top: 0; top: 0;
background: rgba(var(--foreground), 1); background: inherit;
z-index: 2; z-index: 2;
} }
} }
@media only screen and (min-width: 640px){ @media only screen and (min-width: 640px){
body{
font-size: 16px;
}
.padding{ .padding{
padding: 0 6vw; padding: 0 6vw;
} }
@ -342,7 +339,7 @@ section{
section{ section{
header{ header{
h1{ h1{
font-size: 2.5rem; font-size: 2rem;
} }
} }
} }
@ -357,6 +354,7 @@ section{
margin: 0 8vw; margin: 0 8vw;
} }
#highlights{ #highlights{
gap: 2rem;
grid-template-columns: repeat(4, auto); grid-template-columns: repeat(4, auto);
} }
.input{ .input{
@ -395,11 +393,10 @@ section{
} }
@media (hover:hover){ @media (hover:hover){
button{ button{
transition: box-shadow 0.3s, background-color 0.3s; transition: background-color 0.3s;
&:hover{ &:hover{
background: rgba(var(--text), 1); background: rgba(var(--text), 1);
color: var(--background); color: var(--background);
box-shadow: 0.4em 0.6em 0 rgba(var(--text), 0.2);
} }
} }
#logo{ #logo{

View File

@ -9,7 +9,7 @@
<body data-theme='dark'> <body data-theme='dark'>
<main> <main>
<section id="first_section"> <section id="first_section">
<div class="dark-background"> <div>
<header class="margin"> <header class="margin">
<svg id="main_logo" viewBox="0 0 27.25 32"> <svg id="main_logo" viewBox="0 0 27.25 32">
<title>RanchiMall</title> <title>RanchiMall</title>
@ -103,45 +103,6 @@
</svg> </svg>
</div> </div>
</div> </div>
<h5>From</h5>
<h4 class="breakable">FDhQizsksSHs4dyJBeLqGcbyuEg163jhXi</h4>
<h5>to</h5>
<h4 class="breakable">FDhQizsksSHs4dyJBeLqGcbyuEg163jhXi</h4>
<h3>₹0.000000007</h3>
</div>
<div class="transaction">
<div class="transaction-header grid grid-2">
<div>
<h5>Token transfer</h5>
<h2>Rupee</h2>
</div>
<div class="icon">
<svg viewBox="0 0 64 64">
<title>More infomation icon</title>
<path d="M32,0A32,32,0,1,0,64,32,32,32,0,0,0,32,0Zm3.07,47.91a3.1,3.1,0,0,1-6.19,0V26.55a3.1,3.1,0,0,1,6.19,0Zm-.49-29.27a3.46,3.46,0,0,1-2.59.93,3.46,3.46,0,0,1-2.59-.93,3.22,3.22,0,0,1-.9-2.33,3.3,3.3,0,0,1,.9-2.37A3.43,3.43,0,0,1,32,13a3.43,3.43,0,0,1,2.59.94,3.27,3.27,0,0,1,.92,2.37A3.2,3.2,0,0,1,34.58,18.64Z"/>
</svg>
</div>
</div>
<h5>From</h5>
<h4 class="breakable">FDhQizsksSHs4dyJBeLqGcbyuEg163jhXi</h4>
<h5>to</h5>
<h4 class="breakable">FDhQizsksSHs4dyJBeLqGcbyuEg163jhXi</h4>
<h3>₹0.000000007</h3>
</div>
<div class="transaction">
<div class="transaction-header grid grid-2">
<div>
<h5>Token transfer</h5>
<h2>Rupee</h2>
</div>
<div class="icon">
<svg viewBox="0 0 64 64">
<title>More infomation icon</title>
<path d="M32,0A32,32,0,1,0,64,32,32,32,0,0,0,32,0Zm3.07,47.91a3.1,3.1,0,0,1-6.19,0V26.55a3.1,3.1,0,0,1,6.19,0Zm-.49-29.27a3.46,3.46,0,0,1-2.59.93,3.46,3.46,0,0,1-2.59-.93,3.22,3.22,0,0,1-.9-2.33,3.3,3.3,0,0,1,.9-2.37A3.43,3.43,0,0,1,32,13a3.43,3.43,0,0,1,2.59.94,3.27,3.27,0,0,1,.92,2.37A3.2,3.2,0,0,1,34.58,18.64Z"/>
</svg>
</div>
</div>
<h5>From</h5>
<h4 class="breakable">FDhQizsksSHs4dyJBeLqGcbyuEg163jhXi</h4> <h4 class="breakable">FDhQizsksSHs4dyJBeLqGcbyuEg163jhXi</h4>
<h5>to</h5> <h5>to</h5>
<h4 class="breakable">FDhQizsksSHs4dyJBeLqGcbyuEg163jhXi</h4> <h4 class="breakable">FDhQizsksSHs4dyJBeLqGcbyuEg163jhXi</h4>