This commit is contained in:
sairaj mote 2020-09-05 02:53:32 +05:30
parent 445b9c085e
commit d088e7757e
3 changed files with 2904 additions and 2251 deletions

File diff suppressed because it is too large Load Diff

View File

@ -8,25 +8,22 @@
:root{
scroll-behavior: smooth;
}
html{
margin-left: calc(100vw - 100%);
}
body{
--primary-color: #303F9F;
--text: 17, 17, 17;
--text-light: 85, 85, 85;
--foreground: 255, 255, 255;
--background: #e8e8e8;
--accent-color: #303F9F;
--text-color: 17, 17, 17;
--text-color-light: 85, 85, 85;
--foreground-color: 255, 255, 255;
--background-color: #e8e8e8;
--dark-shade: #dadada;
background: var(--foreground);
color: rgba(var(--text), 1);
background: var(--foreground-color);
color: rgba(var(--text-color), 1);
font-size: 16px;
margin: 1.5rem;
}
a{
font-weight: 600;
text-decoration: none;
color: var(--primary-color);
color: var(--accent-color);
}
.dark-text{
color: #111;
@ -45,18 +42,17 @@ button{
font-weight: 600;
cursor: pointer;
border-radius: 0.2em;
color: var(--primary-color);
transition: transform 0.3s, clip-path 0.3s;
color: var(--accent-color);
transition: transform 0.3s;
border: none;
clip-path: circle(100%);
background: rgba(var(--text), 0.1);
background: rgba(var(--text-color), 0.1);
-webkit-tap-highlight-color: transparent;
&:focus{
outline: thin solid rgba(var(--text-light), .4);
outline: thin solid rgba(var(--text-color-light), .4);
}
&:disabled{
cursor: default;
background: rgba(var(--text-light), 1);
background: rgba(var(--text-color-light), 1);
}
&:disabled ~ .loader{
opacity: 0;
@ -109,7 +105,7 @@ input:invalid{
margin-bottom: 0.4rem;
}
.light-text{
color: rgba(var(--text-light), 1);
color: rgba(var(--text-color-light), 1);
}
.hide{
opacity: 0;
@ -130,7 +126,7 @@ input:invalid{
.loader{
fill: none;
stroke-width: 10;
stroke: var(--primary-color);
stroke: var(--accent-color);
height: 2rem;
width: 2rem;
overflow: visible;
@ -155,13 +151,28 @@ input:invalid{
p{
line-height: 1.5;
font-family: 'Roboto', sans-serif;
color: rgba(var(--text), 0.8);
color: rgba(var(--text-color), 0.8);
}
.action{
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
background: none;
&[disabled]{
.primary-btn{
background: none;
}
}
h4{
font-weight: 500;
padding: 0.5rem 0.8rem;
font-size: 1rem;
clip-path: circle(100%);
transition: clip-path 0.3s;
border-radius: 0.2rem;
}
.btn{
z-index: 2;
}
@ -224,14 +235,14 @@ p{
#main_logo{
height: 1.4rem;
width: 1.4rem;
fill: rgba(var(--text), 1);
fill: rgba(var(--text-color), 1);
stroke: none;
}
}
textarea{
width: 100%;
max-width: 100%;
background: rgba(var(--text), 0.1);
background: rgba(var(--text-color), 0.1);
border: none;
border-radius: 0.2rem;
resize: none;
@ -247,14 +258,14 @@ textarea{
padding: 0.8em;
margin-bottom: 1.5em;
border-radius: 0.2rem;
background: rgba(var(--text), 0.1);
background: rgba(var(--text-color), 0.1);
border: 0.1em solid transparent;
cursor: text;
&:last-of-type{
margin-bottom: 0;
}
&:focus-within{
border: 0.1em solid var(--primary-color);
border: 0.1em solid var(--accent-color);
}
.placeholder{
opacity: .7;
@ -273,7 +284,7 @@ textarea{
border: none;
background: transparent;
outline: none;
color: rgba(var(--text), 1);
color: rgba(var(--text-color), 1);
}
}
.animate-label{
@ -283,7 +294,7 @@ textarea{
.placeholder{
transform: translateY(-60%) scale(0.7);
opacity: 1;
color: var(--primary-color);
color: var(--accent-color);
}
}
.container:empty ~ .empty{
@ -294,7 +305,7 @@ textarea{
place-items: center;
width: 100%;
svg{
stroke: rgba(var(--text), 0.8);
stroke: rgba(var(--text-color), 0.8);
height: 12em;
width: 12em;
}
@ -314,12 +325,12 @@ textarea{
}
}
.btn{
background: var(--primary-color);
color: rgba(var(--foreground), 1);
background: var(--accent-color);
color: rgba(var(--foreground-color), 1);
padding: 0.4em 1em;
}
.back-arrow{
stroke: rgba(var(--text), 1);
stroke: rgba(var(--text-color), 1);
stroke-width: 6;
fill: none;
height: 2rem;
@ -329,10 +340,10 @@ textarea{
.card{
border-radius: 0.6rem;
padding: 1.5em;
background: rgba(var(--foreground), 1);
background: rgba(var(--foreground-color), 1);
}
.solid-background{
background: rgba(var(--foreground), 1) !important;
background: rgba(var(--foreground-color), 1) !important;
}
form{
width: 100%;
@ -358,7 +369,7 @@ form{
padding: 1.5rem;
position: relative;
display: flex;
background: rgba(var(--foreground), 1);
background: rgba(var(--foreground-color), 1);
transform: translateY(100%);
transition: transform 0.3s;
box-shadow: 0 2rem 2rem rgba($color: #000000, $alpha: 0.24);
@ -393,66 +404,8 @@ form{
}
}
}
#show_message{
transform: translate(0, -100%);
transition: transform 0.3s, opacity 0.3s;
box-shadow: 0 0.4rem 0.8rem rgba($color: #000000, $alpha: 0.08);
align-items: center;
flex-direction: row;
display: flex;
color: rgba(var(--text), 1);
position: fixed;
right: 0;
top: 0;
width: calc(100% - 2rem);
margin: 1rem;
border-radius: 0.5rem;
border: solid 1px rgba(var(--text), 0.2);
max-width: 100%;
z-index: 40;
background: rgba(var(--foreground), 1);
#error_icon{
fill: #E53935;
}
#done_icon{
fill: #00C853;
}
.notification-icon{
height: 2em;
width: 2em;
margin: 1em 0 1em 1em;
fill: rgba(var(--text), 1);
}
div{
padding: 1em;
flex: 1;
h5{
opacity: 0.8;
}
}
span{
font-weight: 500;
flex: 1;
}
span::first-letter{
text-transform: uppercase;
}
button{
padding: 1rem;
margin: 0 1em 0 0;
border: none;
background: none;
svg{
height: 1em;
width: 1em;
stroke: rgba(var(--text), 1);
stroke-width: 6;
}
}
}
#confirmation,#prompt{
flex-direction: column;
padding: 1.5rem;
p{
margin: 1rem;
font-size: 1rem;
@ -499,14 +452,14 @@ form{
margin-bottom: 0 !important;
}
.input{
background: rgba(var(--text), 0.1);
background: rgba(var(--text-color), 0.1);
}
}
.primary-btn{
background: var(--primary-color);
background: var(--accent-color);
padding: 0.8em 1.6em;
justify-content: center;
color: rgba(var(--foreground), 1);
color: rgba(var(--foreground-color), 1);
}
#main_header{
align-items: center;
@ -536,7 +489,7 @@ form{
height: 1.2rem;
width: 1.2rem;
fill: none;
stroke: rgba(var(--text), 0.8);
stroke: rgba(var(--text-color), 0.8);
stroke-width: 6;
overflow: visible;
stroke-linecap: round;
@ -552,10 +505,10 @@ form{
right: 0;
bottom: 0;
top: auto;
border-top: solid 1px rgba(var(--text), 0.2);
border-top: solid 1px rgba(var(--text-color), 0.2);
border-right: none;
z-index: 3;
background: rgba(var(--foreground), 1);
background: rgba(var(--foreground-color), 1);
.navbar-item{
position: relative;
text-align: center;
@ -563,7 +516,7 @@ form{
padding: 0.3em;
margin: 0.3em;
border-radius: 0.4em;
color: rgba(var(--text), 0.8);
color: rgba(var(--text-color), 0.8);
font-size: 0.9em;
text-transform: uppercase;
width: 100%;
@ -575,9 +528,9 @@ form{
}
}
.active{
color: var(--primary-color);
color: var(--accent-color);
.icon{
stroke: var(--primary-color);
stroke: var(--accent-color);
}
}
}
@ -611,7 +564,7 @@ form{
margin-right: 1rem;
margin-bottom: 1rem;
width: 9rem;
border: solid 1px rgba(var(--text), 0.2);
border: solid 1px rgba(var(--text-color), 0.2);
text-transform: capitalize;
cursor: pointer;
.icon{
@ -620,7 +573,7 @@ form{
padding: 0.8rem;
border-radius: 2rem;
margin-bottom: 1rem;
stroke: rgba(var(--text), 0.4);
stroke: rgba(var(--text-color), 0.4);
}
h4{
font-weight: 400;
@ -674,7 +627,7 @@ form{
}
#deposit, #withdraw{
.container-header{
background: linear-gradient(rgba(var(--foreground), 1) 90%, transparent);
background: linear-gradient(rgba(var(--foreground-color), 1) 90%, transparent);
}
}
.secondary-btn{
@ -685,9 +638,9 @@ form{
flex-direction: column;
padding: 1.5em;
border-radius: 0.4em;
border: solid 1px rgba(var(--text), 0.2);
border: solid 1px rgba(var(--text-color), 0.2);
h5{
color: rgba(var(--text-light), 1);
color: rgba(var(--text-color-light), 1);
margin-bottom: 0.4rem;
text-transform: capitalize;
}
@ -757,19 +710,12 @@ form{
gap: 1rem;
position: sticky;
top: 0;
background: rgba(var(--foreground), 1);
background: rgba(var(--foreground-color), 1);
will-change: auto;
z-index: 2;
h2{
font-weight: 600;
}
.action{
height: 100%;
button{
height: 100%;
padding: 0.8em 1.6em;
}
}
.search{
grid-area: search;
input{
@ -779,11 +725,11 @@ form{
background: var(--dark-shade);
font-size: 1rem;
font-weight: 500;
color: rgba(var(--text), 1);
color: rgba(var(--text-color), 1);
border-radius: 0.2em;
&:focus{
outline: none;
background: rgba(var(--text-light), 0.2);
background: rgba(var(--text-color-light), 0.2);
}
}
}
@ -809,20 +755,6 @@ form{
text-overflow: ellipsis;
}
}
#textCopied{
padding: 0.6rem 1.2rem;
border-radius: 2rem;
background: rgba(var(--text), 0.1);
color: rgba(var(--text), 1);
position: fixed;
bottom: 0;
pointer-events: none;
margin: 2rem 0;
left: 50%;
transform: translateX(-50%);
transition: 0.3s opacity ease;
z-index: 20;
}
.time{
font-family: 'Roboto', sans-serif;
margin-bottom: 1.5rem !important;
@ -863,7 +795,7 @@ form{
.icon{
padding: 0.2rem;
margin-right: 0.5rem;
stroke: var(--primary-color);
stroke: var(--accent-color);
stroke-width: 8;
}
}
@ -884,11 +816,11 @@ form{
border-radius: 0.2rem;
}
h5{
background: rgba(var(--text), 0.1);
background: rgba(var(--text-color), 0.1);
padding: 0.5rem 0.6rem;
}
h4{
background: rgba(var(--text), 0.2);
background: rgba(var(--text-color), 0.2);
padding: 0.8rem 0.8rem;
}
.demo-btn{
@ -922,13 +854,6 @@ form{
height: auto;
}
}
#show_message{
transform: translate(100%, 0);
margin: 1rem;
max-width: 60vw;
width: max-content;
border-radius: 0.2rem;
}
#confirmation{
width: 24rem;
}
@ -945,7 +870,7 @@ form{
right: auto;
width: 6rem;
border-top: none;
border-right: solid 1px rgba(var(--text), 0.2);
border-right: solid 1px rgba(var(--text-color), 0.2);
.navbar-item{
width: auto;
padding: 1.4em 0;
@ -959,18 +884,18 @@ form{
}
&:hover{
.icon{
stroke: rgba(var(--text), 1);
stroke: rgba(var(--text-color), 1);
}
h5{
color: rgba(var(--text), 1);
color: rgba(var(--text-color), 1);
}
}
&.active:hover{
.icon{
stroke: var(--primary-color);
stroke: var(--accent-color);
}
h5{
color: var(--primary-color);
color: var(--accent-color);
}
}
}
@ -1000,7 +925,7 @@ form{
svg{
height: 2rem;
width: 2rem;
stroke: var(--primary-color);
stroke: var(--accent-color);
stroke-width: 6;
fill: none;
overflow: visible;
@ -1018,6 +943,13 @@ form{
word-spacing: 0.16em;
}
}
#activity_page{
sm-tab-header{
position: sticky;
top: 0;
margin-bottom: 1rem;
}
}
@media only screen and (min-width: 800px){
.container{
grid-template-columns: repeat(3, 1fr);
@ -1030,7 +962,7 @@ form{
grid-area: header;
}
.left{
border-right: 1px solid rgba(var(--text), 0.2);
border-right: 1px solid rgba(var(--text-color), 0.2);
}
.left{
padding-right: 1.5rem;
@ -1075,28 +1007,28 @@ form{
}
@media (prefers-color-scheme: dark){
:root{
--text: 238, 238, 238;
--text-light: 170, 170, 170;
--foreground: 26, 26, 26;
--background: #111;
--text-color: 238, 238, 238;
--text-color-light: 170, 170, 170;
--foreground-color: 26, 26, 26;
--background-color: #111;
--dark-shade: #1a1a1a;
}
}
@media (prefers-color-scheme: light){
:root{
--text: 17, 17, 17;
--text-light: 85, 85, 85;
--foreground: 255, 255, 255;
--background: #e8e8e8;
--text-color: 17, 17, 17;
--text-color-light: 85, 85, 85;
--foreground-color: 255, 255, 255;
--background-color: #e8e8e8;
--dark-shade: #dadada;
}
}
@media (prefers-color-scheme: no-preference){
:root{
--text: 17, 17, 17;
--text-light: 85, 85, 85;
--foreground: 255, 255, 255;
--background: #e8e8e8;
--text-color: 17, 17, 17;
--text-color-light: 85, 85, 85;
--foreground-color: 255, 255, 255;
--background-color: #e8e8e8;
--dark-shade: #dadada;
}
}

4074
index.html

File diff suppressed because it is too large Load Diff