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

4074
index.html

File diff suppressed because it is too large Load Diff