style (user): better UI scalling
This commit is contained in:
sairaj mote 2020-11-16 16:15:30 +05:30
parent 3c7bd57f39
commit 25946f97fb
4 changed files with 144 additions and 125 deletions

View File

@ -209,14 +209,14 @@ border: none;
} }
.icon { .icon {
fill: none; fill: none;
height: 1.6em; height: 1.6rem;
width: 1.6em; width: 1.6rem;
padding: 0.5em; padding: 0.5rem;
stroke: rgba(var(--text-color), 0.7); stroke: rgba(var(--text-color), 0.7);
stroke-width: 10; stroke-width: 10;
overflow: visible; overflow: visible;
stroke-linecap: round; stroke-linecap: round;
border-radius: 1em; border-radius: 1rem;
stroke-linejoin: round; stroke-linejoin: round;
cursor: pointer; cursor: pointer;
min-width: 0; min-width: 0;
@ -234,9 +234,9 @@ border: none;
align-items: center; align-items: center;
text-align: left; text-align: left;
position: relative; position: relative;
gap: 1em; gap: 1rem;
padding: 0.7em 1em; padding: 0.7rem 1rem;
border-radius: 0.3em; border-radius: 0.3rem;
-webkit-transition: opacity 0.3s; -webkit-transition: opacity 0.3s;
-o-transition: opacity 0.3s; -o-transition: opacity 0.3s;
transition: opacity 0.3s; transition: opacity 0.3s;
@ -247,7 +247,7 @@ border: none;
} }
.input.readonly .clear{ .input.readonly .clear{
opacity: 0 !important; opacity: 0 !important;
margin-right: -2em; margin-right: -2rem;
pointer-events: none !important; pointer-events: none !important;
} }
.readonly{ .readonly{
@ -270,7 +270,7 @@ input:focus{
user-select: none; user-select: none;
opacity: .7; opacity: .7;
font-weight: 400; font-weight: 400;
font-size: 1em; font-size: 1rem;
position: absolute; position: absolute;
top: 0; top: 0;
-webkit-transition: -webkit-transform 0.3s; -webkit-transition: -webkit-transform 0.3s;
@ -307,7 +307,7 @@ input:focus{
flex: 1; flex: 1;
} }
input{ input{
font-size: 1em; font-size: 1rem;
border: none; border: none;
background: transparent; background: transparent;
outline: none; outline: none;
@ -315,15 +315,15 @@ input{
width: 100%; width: 100%;
} }
.animate-label .container input { .animate-label .container input {
-webkit-transform: translateY(0.6em); -webkit-transform: translateY(0.6rem);
-ms-transform: translateY(0.6em); -ms-transform: translateY(0.6rem);
transform: translateY(0.6em); transform: translateY(0.6rem);
} }
.animate-label .container .label { .animate-label .container .label {
-webkit-transform: translateY(-0.6em) scale(0.8); -webkit-transform: translateY(-0.6rem) scale(0.8);
-ms-transform: translateY(-0.6em) scale(0.8); -ms-transform: translateY(-0.6rem) scale(0.8);
transform: translateY(-0.6em) scale(0.8); transform: translateY(-0.6rem) scale(0.8);
opacity: 1; opacity: 1;
color: var(--accent-color) color: var(--accent-color)
} }
@ -572,14 +572,14 @@ smTextarea.innerHTML = `
} }
.icon { .icon {
fill: none; fill: none;
height: 1.6em; height: 1.6rem;
width: 1.6em; width: 1.6rem;
padding: 0.5em; padding: 0.5rem;
stroke: rgba(var(--text-color), 0.7); stroke: rgba(var(--text-color), 0.7);
stroke-width: 10; stroke-width: 10;
overflow: visible; overflow: visible;
stroke-linecap: round; stroke-linecap: round;
border-radius: 1em; border-radius: 1rem;
stroke-linejoin: round; stroke-linejoin: round;
cursor: pointer; cursor: pointer;
min-width: 0; min-width: 0;
@ -595,8 +595,8 @@ smTextarea.innerHTML = `
-ms-flex-align: center; -ms-flex-align: center;
align-items: center; align-items: center;
position: relative; position: relative;
padding: 0.7em 1em; padding: 0.7rem 1rem;
border-radius: 0.3em; border-radius: 0.3rem;
-webkit-transition: opacity 0.3s; -webkit-transition: opacity 0.3s;
-o-transition: opacity 0.3s; -o-transition: opacity 0.3s;
transition: opacity 0.3s; transition: opacity 0.3s;
@ -622,9 +622,9 @@ textarea:focus{
user-select: none; user-select: none;
opacity: .7; opacity: .7;
font-weight: 400; font-weight: 400;
font-size: 1em; font-size: 1rem;
position: absolute; position: absolute;
top: 0.9em; top: 0.9rem;
-webkit-transition: -webkit-transform 0.3s; -webkit-transition: -webkit-transform 0.3s;
transition: -webkit-transform 0.3s; transition: -webkit-transform 0.3s;
-o-transition: transform 0.3s; -o-transition: transform 0.3s;
@ -642,7 +642,7 @@ textarea:focus{
will-change: transform; will-change: transform;
} }
textarea{ textarea{
font-size: 1em; font-size: 1rem;
border: none; border: none;
background: transparent; background: transparent;
outline: none; outline: none;
@ -652,15 +652,15 @@ textarea{
line-height: 1.6; line-height: 1.6;
} }
.animate-label textarea { .animate-label textarea {
-webkit-transform: translateY(0.6em); -webkit-transform: translateY(0.6rem);
-ms-transform: translateY(0.6em); -ms-transform: translateY(0.6rem);
transform: translateY(0.6em); transform: translateY(0.6rem);
} }
.animate-label .label { .animate-label .label {
-webkit-transform: translateY(-0.6em) scale(0.8); -webkit-transform: translateY(-0.6rem) scale(0.8);
-ms-transform: translateY(-0.6em) scale(0.8); -ms-transform: translateY(-0.6rem) scale(0.8);
transform: translateY(-0.6em) scale(0.8); transform: translateY(-0.6rem) scale(0.8);
opacity: 1; opacity: 1;
color: var(--accent-color) color: var(--accent-color)
} }
@ -813,7 +813,7 @@ smTab.innerHTML = `
white-space: nowrap; white-space: nowrap;
padding: 0.4rem 0.8rem; padding: 0.4rem 0.8rem;
font-weight: 500; font-weight: 500;
word-spacing: 0.1em; word-spacing: 0.1rem;
text-align: center; text-align: center;
-webkit-transition: color 0.3s; -webkit-transition: color 0.3s;
-o-transition: color 0.3s; -o-transition: color 0.3s;

View File

@ -5,6 +5,10 @@
font-family: "Roboto", sans-serif; font-family: "Roboto", sans-serif;
} }
:root {
font-size: 16px;
}
body { body {
--accent-color: #4527A0; --accent-color: #4527A0;
--text-color: 17, 17, 17; --text-color: 17, 17, 17;
@ -17,7 +21,6 @@ body {
--saturation: 61%; --saturation: 61%;
--lightness: 39%; --lightness: 39%;
color: rgba(var(--text-color), 1); color: rgba(var(--text-color), 1);
font-size: 16px;
background-size: cover; background-size: cover;
} }
@ -68,7 +71,7 @@ h4 {
} }
h5 { h5 {
font-size: 0.8rem; font-size: 0.85rem;
} }
h1, h1,
@ -81,6 +84,7 @@ h5 {
} }
p { p {
font-size: 0.95rem;
line-height: 1.5; line-height: 1.5;
max-width: 60ch; max-width: 60ch;
color: rgba(var(--text-color), 0.9); color: rgba(var(--text-color), 0.9);
@ -127,7 +131,7 @@ button:disabled ~ .loader {
} }
.top-padding { .top-padding {
padding-top: 1em; padding-top: 1rem;
} }
.bottom-margin { .bottom-margin {
@ -148,7 +152,7 @@ button:disabled ~ .loader {
.grid-2 { .grid-2 {
grid-template-columns: auto auto; grid-template-columns: auto auto;
gap: 1em; gap: 1rem;
} }
.align-center { .align-center {
@ -189,7 +193,7 @@ button:disabled ~ .loader {
} }
.separator { .separator {
padding: 0.1em; padding: 0.1rem;
} }
.no-transformations { .no-transformations {
@ -269,8 +273,8 @@ sm-button[variant=outlined] {
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
border-radius: 0.8rem; border-radius: 0.85rem;
box-shadow: 0.1em 0.2em 1em rgba(var(--text-color), 0.16); box-shadow: 0.1rem 0.2rem 1rem rgba(var(--text-color), 0.16);
padding: 1.5rem; padding: 1.5rem;
color: white; color: white;
background: var(--accent-color); background: var(--accent-color);
@ -289,7 +293,7 @@ sm-button[variant=outlined] {
} }
#on_boarding #total_tuts { #on_boarding #total_tuts {
opacity: 0.8; opacity: 0.8;
font-size: 0.8rem; font-size: 0.85rem;
} }
#on_boarding h4 { #on_boarding h4 {
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
@ -385,7 +389,7 @@ sm-button[variant=outlined] {
@keyframes faderight { @keyframes faderight {
from { from {
opacity: 0; opacity: 0;
transform: translateX(-1em); transform: translateX(-1rem);
} }
to { to {
opacity: 1; opacity: 1;
@ -395,7 +399,7 @@ sm-button[variant=outlined] {
@keyframes fadeleft { @keyframes fadeleft {
from { from {
opacity: 0; opacity: 0;
transform: translateX(1em); transform: translateX(1rem);
} }
to { to {
opacity: 1; opacity: 1;
@ -428,7 +432,7 @@ textarea {
resize: none; resize: none;
font-size: 1rem; font-size: 1rem;
line-height: 1.6; line-height: 1.6;
padding: 0.8rem; padding: 0.85rem;
} }
*:empty + .empty-state { *:empty + .empty-state {
@ -441,8 +445,8 @@ textarea {
width: 100%; width: 100%;
} }
.empty-state svg { .empty-state svg {
height: 12em; height: 12rem;
width: 12em; width: 12rem;
} }
.empty-state svg polyline, .empty-state svg polyline,
.empty-state svg path, .empty-state svg path,
@ -470,7 +474,7 @@ textarea {
.btn { .btn {
background: var(--accent-color); background: var(--accent-color);
color: rgba(var(--foreground-color), 1); color: rgba(var(--foreground-color), 1);
padding: 0.4em 1em; padding: 0.4rem 1rem;
} }
.back-arrow { .back-arrow {
@ -484,7 +488,7 @@ textarea {
.card { .card {
border-radius: 0.6rem; border-radius: 0.6rem;
padding: 1.5em; padding: 1.5rem;
background: rgba(var(--foreground-color), 1); background: rgba(var(--foreground-color), 1);
} }
@ -503,7 +507,7 @@ textarea {
} }
#confirmation .flex sm-button:first-of-type, #confirmation .flex sm-button:first-of-type,
#prompt .flex sm-button:first-of-type { #prompt .flex sm-button:first-of-type {
margin-right: 0.6em; margin-right: 0.6rem;
margin-left: auto; margin-left: auto;
} }
@ -512,8 +516,8 @@ textarea {
} }
.refresh { .refresh {
margin-top: 0.6em; margin-top: 0.6rem;
margin-bottom: 1em; margin-bottom: 1rem;
} }
sm-popup sm-input:not(:last-of-type) { sm-popup sm-input:not(:last-of-type) {
@ -608,6 +612,7 @@ details, summary {
} }
summary { summary {
font-size: 1rem;
cursor: pointer; cursor: pointer;
} }
@ -617,7 +622,6 @@ details h5 {
margin-top: 1.2rem !important; margin-top: 1.2rem !important;
} }
details p { details p {
font-size: 0.9rem;
line-height: 1.4; line-height: 1.4;
} }
@ -640,7 +644,7 @@ details p {
align-items: center; align-items: center;
} }
#sign_in_page .info h1 { #sign_in_page .info h1 {
line-height: 1.1em; line-height: 1.1rem;
font-weight: 800; font-weight: 800;
font-size: clamp(1.5rem, 8vw, 4rem); font-size: clamp(1.5rem, 8vw, 4rem);
margin-top: 1rem; margin-top: 1rem;
@ -769,11 +773,11 @@ details p {
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
padding: 0.3rem; padding: 0.3rem;
padding-top: 0.8rem; padding-top: 0.85rem;
border-radius: 0.4em; border-radius: 0.4rem;
opacity: 0.6; opacity: 0.6;
color: rgba(var(--text-color), 1); color: rgba(var(--text-color), 1);
font-size: 0.8rem; font-size: 0.85rem;
text-transform: capitalize; text-transform: capitalize;
width: 100%; width: 100%;
font-weight: 600; font-weight: 600;
@ -851,7 +855,7 @@ details p {
.display-balance { .display-balance {
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
grid-template-areas: "rupee ." "flo flo"; grid-template-areas: "rupee ." "flo flo";
gap: 0.8rem; gap: 0.85rem;
margin-top: 1rem; margin-top: 1rem;
} }
.display-balance .icon { .display-balance .icon {
@ -930,10 +934,11 @@ details p {
background: rgba(var(--foreground-color), 1); background: rgba(var(--foreground-color), 1);
z-index: 1; z-index: 1;
transition: clip-path 0.4s ease-out; transition: clip-path 0.4s ease-out;
clip-path: circle(0.8rem at calc(100% - 1.5rem) 1.4rem); clip-path: circle(0.85rem at calc(100% - 1.5rem) 1.4rem);
scrollbar-width: thin; scrollbar-width: thin;
} }
.tooltip .tt-icon { .tooltip .tt-icon {
font-size: 0.9rem;
display: inline-flex; display: inline-flex;
width: 3rem; width: 3rem;
height: 3rem; height: 3rem;
@ -985,7 +990,7 @@ details p {
width: 3rem; width: 3rem;
background: rgba(var(--text-color), 0.06); background: rgba(var(--text-color), 0.06);
border-radius: 2rem; border-radius: 2rem;
padding: 0.8rem; padding: 0.85rem;
margin-bottom: 0.6rem; margin-bottom: 0.6rem;
} }
.option h4 { .option h4 {
@ -1004,10 +1009,10 @@ details p {
z-index: 1; z-index: 1;
top: 0; top: 0;
right: 0; right: 0;
height: 0.6em; height: 0.6rem;
width: 0.6em; width: 0.6rem;
background-color: #E53935; background-color: #E53935;
border-radius: 0.4em; border-radius: 0.4rem;
transition: transform 0.3s; transition: transform 0.3s;
} }
@ -1045,7 +1050,7 @@ sm-panel {
.request { .request {
display: grid; display: grid;
gap: 1rem; gap: 1rem;
padding: 1.5em; padding: 1.5rem;
border-radius: 0.6rem; border-radius: 0.6rem;
background: rgba(var(--text-color), 0.06); background: rgba(var(--text-color), 0.06);
} }
@ -1129,7 +1134,7 @@ sm-panel {
.container { .container {
display: grid; display: grid;
gap: 1em; gap: 1rem;
width: 100%; width: 100%;
} }
@ -1160,14 +1165,14 @@ sm-panel {
grid-area: search; grid-area: search;
} }
.page .container-header .search input { .page .container-header .search input {
padding: 1em; padding: 1rem;
border: none; border: none;
width: 100%; width: 100%;
background: var(--dark-shade); background: var(--dark-shade);
font-size: 1rem; font-size: 1rem;
font-weight: 500; font-weight: 500;
color: rgba(var(--text-color), 1); color: rgba(var(--text-color), 1);
border-radius: 0.2em; border-radius: 0.2rem;
} }
.page .container-header .search input:focus { .page .container-header .search input:focus {
outline: none; outline: none;
@ -1262,10 +1267,10 @@ sm-panel {
} }
.complaint-placeholder h4 { .complaint-placeholder h4 {
background: rgba(var(--text-color), 0.2); background: rgba(var(--text-color), 0.2);
padding: 0.8rem 0.8rem; padding: 0.85rem 0.85rem;
} }
.complaint-placeholder .demo-btn { .complaint-placeholder .demo-btn {
padding: 0.8rem 3rem; padding: 0.85rem 3rem;
} }
@keyframes pulse { @keyframes pulse {
@ -1305,7 +1310,7 @@ sm-panel {
#main_loader h3 { #main_loader h3 {
width: 100%; width: 100%;
font-weight: 400; font-weight: 400;
word-spacing: 0.16em; word-spacing: 0.16rem;
} }
#upi_txId_section .copy-row { #upi_txId_section .copy-row {
@ -1451,7 +1456,7 @@ sm-panel {
grid-area: icon; grid-area: icon;
height: 3rem; height: 3rem;
width: 3rem; width: 3rem;
padding: 0.8rem; padding: 0.85rem;
background: rgba(var(--text-color), 0.06); background: rgba(var(--text-color), 0.06);
background-size: cover; background-size: cover;
border-radius: 2rem; border-radius: 2rem;
@ -1460,7 +1465,7 @@ sm-panel {
grid-area: type; grid-area: type;
text-transform: capitalize; text-transform: capitalize;
font-weight: 400; font-weight: 400;
font-size: 0.8rem; font-size: 0.85rem;
} }
.activity .activity-receiver { .activity .activity-receiver {
grid-area: receiver; grid-area: receiver;
@ -1564,7 +1569,7 @@ sm-panel {
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;
flex: 1; flex: 1;
padding: 0.8rem 1rem; padding: 0.85rem 1rem;
} }
.select input[type=radio] { .select input[type=radio] {
display: none; display: none;
@ -1780,7 +1785,7 @@ sm-panel {
#person_popup > .flex:first-of-type .flex .icon { #person_popup > .flex:first-of-type .flex .icon {
height: 2.6rem; height: 2.6rem;
width: 2.6rem; width: 2.6rem;
padding: 0.8rem; padding: 0.85rem;
cursor: pointer; cursor: pointer;
stroke-width: 8; stroke-width: 8;
} }
@ -1824,7 +1829,7 @@ sm-panel {
color: rgba(var(--text-color), 0.7); color: rgba(var(--text-color), 0.7);
} }
#settings_page sm-button { #settings_page sm-button {
margin-top: 0.8rem; margin-top: 0.85rem;
} }
#settings_page .flex { #settings_page .flex {
max-width: 60ch; max-width: 60ch;
@ -1917,7 +1922,7 @@ sm-panel {
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
background: inherit; background: inherit;
box-shadow: -0.1em 0 1em rgba(var(--text-color), 0.16); box-shadow: -0.1rem 0 1rem rgba(var(--text-color), 0.16);
} }
#navbar { #navbar {
@ -1936,7 +1941,7 @@ sm-panel {
#navbar .navbar-item { #navbar .navbar-item {
display: flex; display: flex;
width: auto; width: auto;
padding: 0.8rem 1.2rem; padding: 0.85rem 1.2rem;
} }
#navbar .navbar-item .icon { #navbar .navbar-item .icon {
height: 1.2rem; height: 1.2rem;
@ -1975,7 +1980,7 @@ sm-panel {
.options-tab, #people_container { .options-tab, #people_container {
grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr)); grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
gap: 2rem 0.8rem; gap: 2rem 0.85rem;
} }
.display-balance .balance { .display-balance .balance {
@ -2037,7 +2042,7 @@ sm-panel {
display: block; display: block;
} }
#navbar .icon { #navbar .icon {
margin-right: 0.8rem; margin-right: 0.85rem;
} }
#navbar .logo h4 { #navbar .logo h4 {
display: block; display: block;
@ -2090,7 +2095,12 @@ sm-panel {
} }
@media only screen and (min-width: 1900px) { @media only screen and (min-width: 1900px) {
:root { :root {
font-size: 22px; font-size: 24px;
}
}
@media only screen and (min-width: 2400px) {
:root {
font-size: 36px;
} }
} }
@media only screen and (max-width: 320px) { @media only screen and (max-width: 320px) {

2
css/main.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -4,6 +4,9 @@
margin: 0; margin: 0;
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;
} }
:root{
font-size: 16px;
}
body { body {
--accent-color: #4527A0; --accent-color: #4527A0;
--text-color: 17, 17, 17; --text-color: 17, 17, 17;
@ -16,7 +19,6 @@ body {
--saturation: 61%; --saturation: 61%;
--lightness: 39%; --lightness: 39%;
color: rgba(var(--text-color), 1); color: rgba(var(--text-color), 1);
font-size: 16px;
background-size: cover; background-size: cover;
} }
body[data-theme="dark"]{ body[data-theme="dark"]{
@ -66,7 +68,7 @@ h4 {
} }
h5 { h5 {
font-size: 0.8rem; font-size: 0.85rem;
} }
h1, h1,
@ -79,6 +81,7 @@ h5 {
} }
p { p {
font-size: 0.95rem;
line-height: 1.5; line-height: 1.5;
max-width: 60ch; max-width: 60ch;
color: rgba(var(--text-color), 0.9); color: rgba(var(--text-color), 0.9);
@ -124,7 +127,7 @@ button {
} }
.top-padding { .top-padding {
padding-top: 1em; padding-top: 1rem;
} }
.bottom-margin { .bottom-margin {
@ -145,7 +148,7 @@ button {
.grid-2 { .grid-2 {
grid-template-columns: auto auto; grid-template-columns: auto auto;
gap: 1em; gap: 1rem;
} }
.align-center { .align-center {
@ -186,7 +189,7 @@ button {
} }
.separator { .separator {
padding: .1em; padding: .1rem;
} }
.no-transformations { .no-transformations {
@ -267,8 +270,8 @@ sm-button{
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
border-radius: 0.8rem; border-radius: 0.85rem;
box-shadow: 0.1em 0.2em 1em rgba(var(--text-color), 0.16); box-shadow: 0.1rem 0.2rem 1rem rgba(var(--text-color), 0.16);
padding: 1.5rem; padding: 1.5rem;
color: white; color: white;
background: var(--accent-color); background: var(--accent-color);
@ -286,7 +289,7 @@ sm-button{
} }
#total_tuts{ #total_tuts{
opacity: 0.8; opacity: 0.8;
font-size: 0.8rem; font-size: 0.85rem;
} }
h4{ h4{
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
@ -389,7 +392,7 @@ sm-button{
@keyframes faderight { @keyframes faderight {
from { from {
opacity: 0; opacity: 0;
transform: translateX(-1em); transform: translateX(-1rem);
} }
to { to {
@ -401,7 +404,7 @@ sm-button{
@keyframes fadeleft { @keyframes fadeleft {
from { from {
opacity: 0; opacity: 0;
transform: translateX(1em); transform: translateX(1rem);
} }
to { to {
@ -436,7 +439,7 @@ textarea {
resize: none; resize: none;
font-size: 1rem; font-size: 1rem;
line-height: 1.6; line-height: 1.6;
padding: 0.8rem; padding: 0.85rem;
} }
*:empty + .empty-state { *:empty + .empty-state {
@ -448,8 +451,8 @@ textarea {
place-items: center; place-items: center;
width: 100%; width: 100%;
svg { svg {
height: 12em; height: 12rem;
width: 12em; width: 12rem;
polyline, polyline,
path, path,
ellipse{ ellipse{
@ -480,7 +483,7 @@ textarea {
.btn { .btn {
background: var(--accent-color); background: var(--accent-color);
color: rgba(var(--foreground-color), 1); color: rgba(var(--foreground-color), 1);
padding: 0.4em 1em; padding: 0.4rem 1rem;
} }
.back-arrow { .back-arrow {
@ -494,7 +497,7 @@ textarea {
.card { .card {
border-radius: 0.6rem; border-radius: 0.6rem;
padding: 1.5em; padding: 1.5rem;
background: rgba(var(--foreground-color), 1); background: rgba(var(--foreground-color), 1);
} }
@ -512,7 +515,7 @@ textarea {
.flex { .flex {
sm-button:first-of-type { sm-button:first-of-type {
margin-right: 0.6em; margin-right: 0.6rem;
margin-left: auto; margin-left: auto;
} }
} }
@ -524,8 +527,8 @@ textarea {
} }
.refresh { .refresh {
margin-top: 0.6em; margin-top: 0.6rem;
margin-bottom: 1em; margin-bottom: 1rem;
} }
sm-popup{ sm-popup{
@ -622,6 +625,7 @@ details, summary{
margin-bottom: 1rem; margin-bottom: 1rem;
} }
summary{ summary{
font-size: 1rem;
cursor: pointer; cursor: pointer;
} }
details{ details{
@ -631,7 +635,6 @@ details{
margin-top: 1.2rem !important; margin-top: 1.2rem !important;
} }
p{ p{
font-size: 0.9rem;
line-height: 1.4; line-height: 1.4;
} }
} }
@ -653,7 +656,7 @@ details{
.info{ .info{
align-items: center; align-items: center;
h1{ h1{
line-height: 1.1em; line-height: 1.1rem;
font-weight: 800; font-weight: 800;
font-size: clamp(1.5rem, 8vw, 4rem); font-size: clamp(1.5rem, 8vw, 4rem);
margin-top: 1rem; margin-top: 1rem;
@ -785,11 +788,11 @@ details{
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
padding: 0.3rem; padding: 0.3rem;
padding-top: 0.8rem; padding-top: 0.85rem;
border-radius: 0.4em; border-radius: 0.4rem;
opacity: 0.6; opacity: 0.6;
color: rgba(var(--text-color), 1); color: rgba(var(--text-color), 1);
font-size: 0.8rem; font-size: 0.85rem;
text-transform: capitalize; text-transform: capitalize;
width: 100%; width: 100%;
font-weight: 600; font-weight: 600;
@ -868,7 +871,7 @@ details{
.display-balance { .display-balance {
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
grid-template-areas: 'rupee .' 'flo flo'; grid-template-areas: 'rupee .' 'flo flo';
gap: 0.8rem; gap: 0.85rem;
margin-top: 1rem; margin-top: 1rem;
.icon { .icon {
height: 1.4rem; height: 1.4rem;
@ -943,9 +946,10 @@ details{
background: rgba(var(--foreground-color), 1); background: rgba(var(--foreground-color), 1);
z-index: 1; z-index: 1;
transition: clip-path 0.4s ease-out; transition: clip-path 0.4s ease-out;
clip-path: circle(0.8rem at calc(100% - 1.5rem) 1.4rem); clip-path: circle(0.85rem at calc(100% - 1.5rem) 1.4rem);
scrollbar-width: thin; scrollbar-width: thin;
.tt-icon{ .tt-icon{
font-size: 0.9rem;
display: inline-flex; display: inline-flex;
width: 3rem; width: 3rem;
height: 3rem; height: 3rem;
@ -996,7 +1000,7 @@ details{
width: 3rem; width: 3rem;
background: rgba(var(--text-color), 0.06); background: rgba(var(--text-color), 0.06);
border-radius: 2rem; border-radius: 2rem;
padding: 0.8rem; padding: 0.85rem;
margin-bottom: 0.6rem; margin-bottom: 0.6rem;
} }
@ -1017,10 +1021,10 @@ details{
z-index: 1; z-index: 1;
top: 0; top: 0;
right: 0; right: 0;
height: 0.6em; height: 0.6rem;
width: 0.6em; width: 0.6rem;
background-color: #E53935; background-color: #E53935;
border-radius: 0.4em; border-radius: 0.4rem;
transition: transform 0.3s; transition: transform 0.3s;
} }
@ -1058,7 +1062,7 @@ sm-panel{
.request { .request {
display: grid; display: grid;
gap: 1rem; gap: 1rem;
padding: 1.5em; padding: 1.5rem;
border-radius: 0.6rem; border-radius: 0.6rem;
background: rgba(var(--text-color), 0.06); background: rgba(var(--text-color), 0.06);
h4{ h4{
@ -1142,7 +1146,7 @@ sm-panel{
.container { .container {
display: grid; display: grid;
gap: 1em; gap: 1rem;
width: 100%; width: 100%;
} }
@ -1174,14 +1178,14 @@ sm-panel{
grid-area: search; grid-area: search;
input { input {
padding: 1em; padding: 1rem;
border: none; border: none;
width: 100%; width: 100%;
background: var(--dark-shade); background: var(--dark-shade);
font-size: 1rem; font-size: 1rem;
font-weight: 500; font-weight: 500;
color: rgba(var(--text-color), 1); color: rgba(var(--text-color), 1);
border-radius: 0.2em; border-radius: 0.2rem;
&:focus { &:focus {
outline: none; outline: none;
@ -1294,11 +1298,11 @@ sm-panel{
h4 { h4 {
background: rgba(var(--text-color), 0.2); background: rgba(var(--text-color), 0.2);
padding: 0.8rem 0.8rem; padding: 0.85rem 0.85rem;
} }
.demo-btn { .demo-btn {
padding: 0.8rem 3rem; padding: 0.85rem 3rem;
} }
} }
@ -1343,7 +1347,7 @@ sm-panel{
h3 { h3 {
width: 100%; width: 100%;
font-weight: 400; font-weight: 400;
word-spacing: 0.16em; word-spacing: 0.16rem;
} }
} }
#upi_txId_section{ #upi_txId_section{
@ -1490,7 +1494,7 @@ sm-panel{
grid-area: icon; grid-area: icon;
height: 3rem; height: 3rem;
width: 3rem; width: 3rem;
padding: 0.8rem; padding: 0.85rem;
background: rgba(var(--text-color), 0.06); background: rgba(var(--text-color), 0.06);
background-size: cover; background-size: cover;
border-radius: 2rem; border-radius: 2rem;
@ -1499,7 +1503,7 @@ sm-panel{
grid-area: type; grid-area: type;
text-transform: capitalize; text-transform: capitalize;
font-weight: 400; font-weight: 400;
font-size: 0.8rem; font-size: 0.85rem;
} }
.activity-receiver{ .activity-receiver{
grid-area: receiver; grid-area: receiver;
@ -1600,7 +1604,7 @@ sm-panel{
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;
flex: 1; flex: 1;
padding: 0.8rem 1rem; padding: 0.85rem 1rem;
} }
input[type="radio"]{ input[type="radio"]{
display: none; display: none;
@ -1813,7 +1817,7 @@ sm-panel{
.icon{ .icon{
height: 2.6rem; height: 2.6rem;
width: 2.6rem; width: 2.6rem;
padding: 0.8rem; padding: 0.85rem;
cursor: pointer; cursor: pointer;
stroke-width: 8; stroke-width: 8;
&:hover{ &:hover{
@ -1862,7 +1866,7 @@ sm-panel{
color: rgba(var(--text-color), 0.7); color: rgba(var(--text-color), 0.7);
} }
sm-button{ sm-button{
margin-top: 0.8rem; margin-top: 0.85rem;
} }
.flex{ .flex{
max-width: 60ch; max-width: 60ch;
@ -1948,7 +1952,7 @@ sm-panel{
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
background: inherit; background: inherit;
box-shadow: -0.1em 0 1em rgba(var(--text-color), 0.16); box-shadow: -0.1rem 0 1rem rgba(var(--text-color), 0.16);
} }
} }
@ -1967,7 +1971,7 @@ sm-panel{
.navbar-item { .navbar-item {
display: flex; display: flex;
width: auto; width: auto;
padding: 0.8rem 1.2rem; padding: 0.85rem 1.2rem;
.icon { .icon {
height: 1.2rem; height: 1.2rem;
width: 1.2rem; width: 1.2rem;
@ -2005,7 +2009,7 @@ sm-panel{
} }
.options-tab, #people_container{ .options-tab, #people_container{
grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr)); grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
gap: 2rem 0.8rem; gap: 2rem 0.85rem;
} }
.display-balance{ .display-balance{
.balance{ .balance{
@ -2074,7 +2078,7 @@ sm-panel{
} }
} }
.icon{ .icon{
margin-right: 0.8rem; margin-right: 0.85rem;
} }
.logo{ .logo{
h4{ h4{
@ -2126,7 +2130,12 @@ sm-panel{
} }
@media only screen and (min-width: 1900px){ @media only screen and (min-width: 1900px){
:root { :root {
font-size: 22px; font-size: 24px;
}
}
@media only screen and (min-width: 2400px){
:root {
font-size: 36px;
} }
} }