flopay/css/main.scss
sairaj mote 70676538af 0.0.46
2020-10-01 03:47:55 +05:30

1638 lines
30 KiB
SCSS

* {
box-sizing: border-box;
padding: 0;
margin: 0;
font-family: 'Roboto', sans-serif;
}
:root {
scroll-behavior: smooth;
}
body {
--accent-color: #4527A0;
--text-color: 17, 17, 17;
--text-color-light: 85, 85, 85;
--foreground-color: 255, 255, 255;
--background-color: rgba(var(--foreground-color), 1);
--dark-shade: #f4f4f4;
--hue: 255;
--saturation: 61%;
--lightness: 39%;
color: rgba(var(--text-color), 1);
font-size: 16px;
background-size: cover;
}
body[data-theme="dark"]{
--accent-color: #a293d0;
--text-color: 238, 238, 238;
--text-color-light: 170, 170, 170;
--foreground-color: 26, 26, 26;
--background-color: #111;
--dark-shade: #222;
--hue: 255;
--saturation: 39%;
--lightness: 70%;
background-color: var(--background-color);
.balance:nth-of-type(3){
color: rgba(var(--text-color), 1);
}
.person{
.person-initials{
color: rgba(var(--text-color), 0.9) !important;
}
}
}
a {
font-weight: 600;
text-decoration: none;
color: var(--accent-color);
}
.dark-text {
color: #111;
}
h1 {
font-size: 3.5rem;
}
h2 {
font-size: 2rem;
}
h3 {
font-size: 1.5rem;
}
h4 {
font-size: 1rem;
}
h5 {
font-size: 0.8rem;
}
h1,
h2,
h3,
h4,
h5 {
font-family: 'Poppins', sans-serif;
font-weight: 600;
}
p {
line-height: 1.5;
max-width: 60ch;
color: rgba(var(--text-color), 0.9);
}
strong{
font-weight: 500;
}
button {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
text-transform: capitalize;
padding: 0.6rem 1.2rem;
font-weight: 600;
cursor: pointer;
border-radius: 0.3rem;
color: var(--accent-color);
transition: transform 0.3s;
border: none;
background: rgba(var(--text-color), 0.1);
-webkit-tap-highlight-color: transparent;
font-family: 'Poppins', sans-serif;
&:focus {
outline: thin solid rgba(var(--text-color-light), .4);
}
&:disabled {
cursor: default;
background: rgba(var(--text-color), 0.5);
}
&:disabled~.loader {
opacity: 0;
}
}
::-moz-focus-inner {
border: none;
}
.bottom-padding {
padding-bottom: 1.5rem;
}
.top-padding {
padding-top: 1em;
}
.bottom-margin {
margin-bottom: 1.5rem;
}
.top-margin {
margin-top: 1.5rem;
}
.flex {
display: flex;
}
.grid {
display: grid;
}
.grid-2 {
grid-template-columns: auto auto;
gap: 1em;
}
.align-center {
align-items: center;
}
.direction-column {
flex-direction: column;
}
.justify-right{
margin-left: auto;
}
.space-between {
justify-content: space-between;
}
.label {
margin-bottom: 0.4rem;
}
.light-text {
opacity: 0.7;
}
.hide {
opacity: 0;
pointer-events: none;
}
.hide-completely {
display: none !important;
}
.breakable {
word-break: break-all;
}
.separator {
padding: .1em;
}
.no-transformations {
transform: none !important;
}
sm-button[variant="outlined"]{
--accent-color: rgba(var(--text-color), 1);
}
.loader {
fill: none;
stroke-width: 10;
stroke: var(--accent-color);
height: 2rem;
width: 2rem;
overflow: visible;
stroke-dashoffset: 230;
stroke-dasharray: 230;
padding: 2px;
justify-self: center;
}
@keyframes rotate {
100% {
transform: rotate(360deg);
}
}
@keyframes load {
50% {
stroke-dashoffset: 0;
}
100% {
stroke-dashoffset: -210;
}
}
.action {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
background: none;
&[disabled] {
.primary-btn {
background: none;
}
}
h4 {
padding: 0.5rem 1.2rem;
font-size: 0.9rem;
clip-path: circle(100%);
transition: clip-path 0.3s;
border-radius: 0.2rem;
}
.btn {
z-index: 2;
}
.loader {
position: absolute;
z-index: 1;
padding: 0.4em;
}
}
.clip {
clip-path: circle(0) !important;
}
.animate-loader {
animation: load 2.6s infinite, rotate 1s infinite linear;
}
.expand {
width: 100%;
}
.fade-left {
animation: fadeleft 0.3s;
}
.fade-right {
animation: faderight 0.3s;
}
@keyframes faderight {
from {
opacity: 0;
transform: translateX(-1em);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes fadeleft {
from {
opacity: 0;
transform: translateX(1em);
}
to {
opacity: 1;
transform: none;
}
}
.logo {
display: flex;
align-items: center;
h4{
font-weight: 500;
font-size: clamp(1.1rem, 2vw, 1.2rem);
}
.main-logo {
height: clamp(1.4rem, 2vw, 1.6rem);
width: clamp(1.4rem, 2vw, 1.6rem);
fill: rgba(var(--text-color), 1);
stroke: none;
margin-right: 0.2rem;
}
}
textarea {
width: 100%;
max-width: 100%;
background: rgba(var(--text-color), 0.1);
border: none;
border-radius: 0.2rem;
resize: none;
font-size: 1rem;
line-height: 1.6;
padding: 0.8rem;
}
*:empty + .empty-state {
display: grid;
}
.empty-state {
display: none;
place-items: center;
width: 100%;
svg {
stroke: rgba(var(--text-color), 0.8);
height: 12em;
width: 12em;
}
}
.container-header {
display: flex;
align-items: center;
flex-direction: row;
width: 100%;
padding: 1rem 0;
h2 {
flex: 1;
}
button {
align-self: center;
}
}
.btn {
background: var(--accent-color);
color: rgba(var(--foreground-color), 1);
padding: 0.4em 1em;
}
.back-arrow {
stroke: rgba(var(--text-color), 1);
stroke-width: 6;
fill: none;
height: 2rem;
padding: 0.5rem 0.5rem 0.5rem 0;
cursor: pointer;
}
.card {
border-radius: 0.6rem;
padding: 1.5em;
background: rgba(var(--foreground-color), 1);
}
.solid-background {
background: rgba(var(--foreground-color), 1) !important;
}
#confirmation,
#prompt {
flex-direction: column;
p {
margin: 1rem;
}
h4 {
font-weight: 500;
margin-bottom: 1.5rem;
}
.flex {
sm-button:first-of-type {
margin-right: 0.6em;
margin-left: auto;
}
}
}
.refresh {
margin-top: 0.6em;
margin-bottom: 1em;
}
sm-popup{
.illustration{
position: relative;
height: 4rem;
width: 4rem;
padding: 1rem;
stroke: var(--accent-color);
margin-bottom: 1rem;
border-radius: 5rem;
background: rgba(var(--text-color), 0.06);
}
sm-input:not(:last-of-type) {
margin-bottom: 1rem;
}
p{
margin-block-end: 1rem;
}
.action{
h4{
padding: 0.5rem 1rem;
font-weight: 500;
}
}
.message{
margin-bottom: 0.2rem;
}
.message + .copy-row{
margin-bottom: 1.5rem;
}
h5:not(.tag){
font-family: 'Roboto', sans-serif;
margin-bottom: 0.4rem;
margin-top: 1rem;
font-weight: 500;
}
}
.popup-header{
padding: 1.5rem;
padding-bottom: 0;
display: flex;
align-items: center;
width: 100%;
.icon{
margin-right: 1rem;
padding: 0.2rem;
stroke-width: 10;
cursor: pointer;
}
button{
width: auto;
margin-left: auto;
}
}
details, summary{
margin-bottom: 1rem;
}
summary{
cursor: pointer;
}
details{
h5{
line-height: 0.6;
margin-bottom: 0;
margin-top: 1.2rem !important;
}
p{
font-size: 0.9rem;
line-height: 1.4;
}
}
#sign_in_popup {
&::part(background){
background: rgba(var(--foreground-color), 1);
}
h3 {
margin-top: 2rem;
}
h4 {
font-weight: 500;
margin-bottom: 3rem;
}
button {
margin: 1rem 0;
}
p {
margin-top: 1rem;
margin-bottom: 0 !important;
}
}
.primary-btn {
background: var(--accent-color);
justify-content: center;
color: rgba(var(--foreground-color), 1);
}
#main_header {
align-items: center;
padding: clamp(1rem, 2vw, 2rem) 1rem;
justify-content: space-between;
}
.icon {
height: 1.2rem;
width: 1.2rem;
fill: none;
stroke: rgba(var(--text-color), 0.8);
stroke-width: 6;
overflow: visible;
stroke-linecap: round;
stroke-linejoin: round;
}
#navbar {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-evenly;
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: auto;
z-index: 3;
background: rgba(var(--foreground-color), 1);
box-shadow: 0 -0.5rem 1rem #00000010;
border-radius: 1rem 1rem 0 0;
.navbar-item {
position: relative;
text-align: center;
cursor: pointer;
padding: 0.3rem;
padding-top: 0.8rem;
border-radius: 0.4em;
opacity: 0.6;
color: rgba(var(--text-color), 1);
font-size: 0.8em;
text-transform: capitalize;
width: 100%;
font-weight: 600;
h5 {
margin-top: 0.4em;
}
.icon{
stroke: rgba(var(--text-color), 1);
}
}
.active{
opacity: 1;
}
}
.banking {
stroke-width: 4;
}
#home_page {
padding: 0 0 4rem 0;
.left {
width: auto;
border-radius: 0.6rem;
h3, h4, p {
padding: 0 1.5rem;
}
h3{
font-size: 2rem;
margin-bottom: 1rem;
}
}
}
.user-panel {
position: relative;
padding: 1.5rem;
padding-top: 1rem;
align-self: flex-start;
.icon{
stroke: rgba(var(--foreground-color), 1);
}
sm-button{
border-radius: 2rem;
}
}
.display-balance {
grid-template-columns: 1fr 1fr;
grid-template-areas: '. .' 'flo flo';
gap: 0.8rem;
margin-top: 1rem;
.icon {
height: 1.4rem;
width: 1.4rem;
padding: 0.3rem;
stroke-width: 10;
cursor: pointer;
}
}
.balance{
height: 10rem;
position: relative;
display: flex;
flex-direction: column;
border-radius: 1rem;
padding: 1rem;
justify-content: flex-end;
h4{
font-size: 2.5rem;
font-family: 'Roboto', sans-serif;
font-weight: 500;
text-shadow: 1px 0.1rem 0.2rem #00000040;
word-break: break-all;
flex: 1;
}
h5{
opacity: 0.8;
margin-bottom: 0.2rem;
}
.tooltip{
border-radius: 1rem;
color: rgba(var(--text-color), 1);
}
&:nth-of-type(1){
background: url(bg-art2.svg) bottom, linear-gradient(200deg, rgba(var(--text-color), 0.1), rgba(var(--text-color), 0.2));
background-size: cover;
.tooltip{
box-shadow: 0 0 0 0.4rem rgba(var(--text-color), 0.1) inset;
}
}
&:nth-of-type(2){
background: url(bg-art1.svg) left bottom, linear-gradient(135deg, #fd946a, #ff4857);
background-size: cover;
.tooltip{
box-shadow: 0 0 0 0.4rem #ff4857 inset;
}
}
&:nth-of-type(3){
grid-area: flo;
color: rgba(var(--foreground-color), 1);
background: url(bg-art3.svg) center no-repeat, linear-gradient(270deg, #2f69e6, #1b0980);
background-size: cover;
.tooltip{
box-shadow: 0 0 0 0.4rem#1b0980 inset;
}
}
.tooltip{
margin-left: auto;
}
}
.tooltip{
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
cursor: help;
display: flex;
flex-direction: column;
background: rgba(var(--foreground-color), 1);
z-index: 1;
transition: clip-path 0.4s ease-out;
clip-path: circle(0.8rem at calc(100% - 1.5rem) 1.4rem);
scrollbar-width: thin;
.tt-icon{
display: inline-flex;
width: 3rem;
height: 3rem;
align-items: center;
justify-content: center;
margin-left: auto;
font-weight: 600;
}
.tooltip-text{
padding: 1rem;
padding-top: 0;
line-height: 1.4;
font-size: 0.9rem;
font-weight: normal;
overflow-y: auto;
max-height: calc(100% - 3rem);
max-width: 30ch;
}
&:hover{
clip-path: circle(100%);
}
}
.user-type {
font-weight: 500;
}
.options-tab {
display: grid;
grid-template-columns: repeat(4, 1fr);
padding: 1.5rem;
gap: 2rem 0.2rem;
}
.option {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
border-radius: 0.4rem;
width: 5rem;
text-transform: capitalize;
transition: transform 0.3s;
-webkit-tap-highlight-color: transparent;
cursor: pointer;
.icon {
height: 3rem;
width: 3rem;
background: rgba(var(--text-color), 0.06);
border-radius: 2rem;
padding: 0.8rem;
margin-bottom: 0.6rem;
}
h4 {
font-size: 0.85rem;
opacity: 0.8;
font-weight: 500;
}
&:active {
transform: scale(0.95);
}
}
.request-icon{
transform: rotate(180deg);
}
.notification-dot::after {
content: '';
position: absolute;
z-index: 1;
top: 0;
right: 0;
height: 0.6em;
width: 0.6em;
background-color: #E53935;
border-radius: 0.4em;
transition: transform 0.3s;
}
.shrink.notification-dot::after {
transform: scale(0);
}
#deposit,
#withdraw {
.container-header {
background: linear-gradient(rgba(var(--foreground-color), 1) 90%, transparent);
}
}
sm-tab-header {
position: sticky;
top: 0;
display: inline-flex;
background-color: var(--dark-shade);
z-index: 2;
padding: 0.3rem;
margin: 1rem 0;
border-radius: 3rem;
}
sm-tab{
text-transform: capitalize;
&::part(tab){
padding: 0.4rem 1.2rem;
}
}
sm-panel{
width: 100%;
}
.request {
display: inline-flex;
flex-direction: column;
padding: 1.5em;
border-radius: 0.4em;
border: solid 1px rgba(var(--text-color), 0.2);
h5 {
margin-bottom: 0.2rem;
text-transform: capitalize;
}
h3,
h4 {
margin-bottom: 1.5rem;
}
h4:last-of-type {
margin-bottom: 0;
}
.action {
align-self: flex-end;
}
.amount {
font-size: 1.4em;
}
button {
width: auto;
align-self: flex-end;
margin-top: 1.5rem;
margin-bottom: 0;
}
.copy-row {
margin-bottom: 1.5rem;
}
.flex {
align-items: center;
justify-content: flex-end;
margin-top: 1.5rem;
h5 {
margin: 0;
}
button {
margin: 0;
}
}
}
.deposited {
color: #007732;
}
.decline-request {
margin-right: 0.5rem !important;
}
.withdrawn {
color: #d43125;
}
.container {
display: grid;
gap: 1em;
width: 100%;
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}
.page {
padding: 1rem 1.5rem;
padding-bottom: 5rem;
.container-header {
display: grid;
grid-template-columns: 1fr auto;
grid-template-areas: '. .'
'search search';
gap: 1rem;
top: 0;
background: rgba(var(--foreground-color), 1);
will-change: auto;
z-index: 2;
.search {
grid-area: search;
input {
padding: 1em;
border: none;
width: 100%;
background: var(--dark-shade);
font-size: 1rem;
font-weight: 500;
color: rgba(var(--text-color), 1);
border-radius: 0.2em;
&:focus {
outline: none;
background: rgba(var(--text-color-light), 0.2);
}
}
}
}
}
.copy-row {
display: grid;
grid-template-columns: 1fr auto;
align-items: center;
gap: 0.5rem;
width: auto;
h4 {
margin-bottom: 0;
}
.icon {
cursor: pointer;
padding: 0.4rem;
height: 1.8rem;
width: 1.8rem;
}
.copy {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.time {
margin-bottom: 1.5rem !important;
font-weight: 500;
}
#report_popup {
width: 32rem;
}
#profile_page {
display: flex;
flex-direction: column;
button {
align-self: flex-start;
}
}
.complaint {
display: grid;
gap: 1.5rem 0;
.complaint-actions {
align-items: center;
margin: 1.5rem 0 0 0;
}
.processed {
color: #007732;
}
.unprocessed {
color: #d43125;
}
.processed,
.unprocessed {
margin-bottom: 1.5rem;
}
button {
.icon {
padding: 0.2rem;
margin-right: 0.5rem;
stroke: var(--accent-color);
stroke-width: 8;
}
}
}
.complaints-container {
padding-top: 1.5rem;
display: grid;
align-items: flex-start;
gap: 1.5rem;
}
#helpline_page {
sm-select {
margin-bottom: 1.5rem;
}
}
.complaint-placeholder {
animation: pulse infinite 0.6s alternate;
h4,
h5 {
border-radius: 0.2rem;
}
h5 {
background: rgba(var(--text-color), 0.1);
padding: 0.5rem 0.6rem;
}
h4 {
background: rgba(var(--text-color), 0.2);
padding: 0.8rem 0.8rem;
}
.demo-btn {
padding: 0.8rem 3rem;
}
}
@keyframes pulse {
from {
opacity: 0.4;
}
to {
opacity: 1;
}
}
#main_loader {
text-align: center;
place-content: center;
height: 100vh;
width: 100vw;
position: fixed;
left: 0;
sm-button {
margin-left: 0;
margin-top: 1rem;
}
svg {
height: 2rem;
width: 2rem;
stroke: var(--accent-color);
stroke-width: 6;
fill: none;
overflow: visible;
stroke-linecap: round;
stroke-dashoffset: 210;
stroke-dasharray: 210;
justify-self: center;
align-self: center;
margin-bottom: 2rem;
}
h3 {
width: 100%;
font-weight: 400;
word-spacing: 0.16em;
}
}
#upi_txId_section{
.copy-row{
margin-bottom: 1.5rem;
}
}
@keyframes popup{
0%{
stroke-dashoffset: 50;
transform: translateY(4rem) scale(0.2, 0.6);
}
40%{
transform: translateY(0) scale(0.2);
}
41%{
transform: translateY(0) scale(0.2);
}
50%{
stroke-dashoffset: 50;
transform: translateY(0) scale(1);
}
100%{
stroke-dashoffset: 0;
}
}
#transaction_result{
z-index: 12;
&::part(popup){
background-image: url(card-back.svg);
background-size: cover;
background-position-y: -3rem;
background-repeat: no-repeat;
}
#transaction_heading{
margin-bottom: 2rem;
}
.copy-row{
grid-template-areas: 'label label' '. .';
margin-top: 1rem;
gap: 0 1rem;
h4{
font-weight: 500;
}
}
h5{
grid-area: label;
color: rgba(var(--text-color), 0.7);
}
h4, h5, p{
text-align: center;
}
& > h4{
font-size: 1.2rem;
margin-top: 6rem;
margin-bottom: 0.5rem;
}
sm-button{
align-self: center;
width: auto;
}
}
#success_svg, #failure_svg{
height: 5rem;
width: 5rem;
stroke-width: 4;
align-self: center;
stroke: none;
stroke-dasharray: 50;
fill: rgba(var(--foreground-color), 1);
animation: popup 2s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#success_svg{
polyline{
fill: none;
stroke: #00C853 ;
}
}
#failure_svg{
line{
stroke: #EF5350;
}
}
.rupee-symbol{
height: 1rem;
width: 1rem;
fill: rgba(var(--text-color), 0.5);
}
#deposit_rupee{
.copy-row{
margin-bottom: 1rem;
}
}
.activity-container{
display: grid;
gap: 1rem;
}
.activity{
display: grid;
background: rgba(var(--text-color), 0.06);
border-radius: 0.6rem;
padding: 1rem 1.2rem;
gap: 0 1rem;
grid-template-columns: auto 1fr auto;
grid-template-areas: 'icon type amount' 'icon receiver time';
align-items: center;
cursor: pointer;
transition: transform 0.3s;
&:active{
transform: scale(0.95);
}
.icon{
grid-area: icon;
height: 3rem;
width: 3rem;
padding: 0.8rem;
background: rgba(var(--text-color), 0.06);
background-size: cover;
border-radius: 2rem;
}
.activity-type{
grid-area: type;
text-transform: capitalize;
font-weight: 400;
font-size: 0.8rem;
}
.activity-receiver{
grid-area: receiver;
font-weight: 500;
font-size: 0.9rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.activity-amount{
text-align: right;
grid-area: amount;
font-family: 'Roboto', sans-serif;
}
.activity-time{
text-align: right;
grid-area: time;
color: rgba(var(--text-color), 0.7);
font-weight: 500;
}
}
.back-arrow{
stroke-width: 10;
margin-right: 0.5rem;
padding: 0.2rem;
}
.select{
max-width: 50ch;
position: relative;
display: flex;
width: 100%;
border-radius: 0.3rem;
background: rgba(var(--text-color), 0.06);
align-items: center;
&:first-of-type:not(:last-of-type){
border-radius: 0.3rem 0.3rem 0 0;
}
& + &{
margin-top: 0;
border-radius: 0 0 0.3rem 0.3rem;
border-top: solid 1px rgba(var(--text-color), 0.16);
}
label{
display: flex;
align-items: center;
cursor: pointer;
flex: 1;
padding: 0.8rem 1rem;
}
input[type="radio"]{
display: none;
}
input:checked ~ .radio .outer-ring{
stroke: var(--accent-color);
}
input:checked ~ .radio .inner-disc{
transform: none;
}
.radio{
width: 1.2rem;
height: 1.2rem;
fill: none;
overflow: visible;
margin-right: 0.6rem;
.outer-ring{
stroke-width: 8;
stroke: rgba(var(--text-color), 0.5);
}
.inner-disc{
transform-origin: center;
fill: var(--accent-color);
transform: scale(0);
transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
}
.remove{
width: 3rem;
height: 2rem;
padding: 0.7rem;
cursor: pointer;
stroke-width: 10;
}
.tag{
grid-area: tag;
opacity: 0.6;
font-weight: 500;
border: solid 1px rgba(var(--text-color), 0.4);
padding: 0.2rem 0.4rem;
border-radius: 0.3rem;
margin-right: 0.5rem;
}
h4{
font-weight: 400;
}
}
.add-upi{
margin-top: 0.4rem;
justify-self: flex-start;
width: max-content;
}
#transaction_page{
header{
padding: 0.5rem 0;
.back-arrow{
grid-area: back;
}
h4{
text-transform: capitalize;
}
}
h5{
font-weight: 400;
font-family: 'Roboto', sans-serif;
opacity: 0.8;
margin-bottom: 0.2rem;
text-transform: capitalize;
}
#transaction_details{
position: relative;
margin: 1.5rem 0;
padding: 1.5rem;
background-color: rgba(var(--text-color), 0.06);
max-width: 50ch;
border-radius: 0.5rem;
.icon{
height: 4rem;
width: 4rem;
padding: 1.2rem;
border-radius: 4rem;
background: rgba(var(--text-color), 0.06);
margin-bottom: 2rem;
}
.flex{
margin-bottom: 1rem;
align-items: baseline;
}
strong{
font-weight: 500;
}
strong:not(:last-of-type){
margin-bottom: 1rem;
}
}
.transaction-amount{
font-size: 2rem;
font-weight: 400;
}
#transaction_time{
right: 0;
position: absolute;
margin: 1.5rem;
}
}
#people_container{
display: grid;
grid-template-columns: repeat(4, 1fr);
padding: 1.5rem;
gap: 2rem 0.2rem;
}
#add_person_btn{
cursor: pointer;
display: flex;
flex-direction: column;
text-align: center;
transition: transform 0.3s;
font-size: 0.85rem;
opacity: 0.8;
font-weight: 500;
&:active{
transform: scale(0.95);
}
.icon{
height: 3rem;
width: 3rem;
border-radius: 2rem;
padding: 1rem;
background: rgba(var(--text-color), 0.06);
align-self: center;
margin-bottom: 0.4rem;
}
}
.person{
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
transition: transform 0.3s;
width: 5rem;
&:active{
transform: scale(0.95);
}
.person-initials{
display: flex;
justify-content: center;
height: 3rem;
width: 3rem;
font-size: 1.2rem !important;
font-weight: 500;
align-items: center;
border-radius: 2rem;
margin-bottom: 0.4rem !important;
text-transform: uppercase;
}
.person-name{
font-size: 0.85rem;
opacity: 0.8;
font-weight: 500;
text-transform: capitalize;
text-align: center;
}
}
#person_popup{
h3{
text-transform: capitalize;
}
.copy-row{
margin-bottom: 1.5rem;
}
}
#activity_page,
#request_page,
#settings_page{
.empty-state{
justify-content: left;
}
}
#settings_page{
& > h4{
margin-top: 2rem;
margin-bottom: 0.4rem;
}
p{
color: rgba(var(--text-color), 0.7);
}
sm-button{
margin-top: 0.8rem;
}
.flex{
max-width: 60ch;
}
}
@media only screen and (max-width: 640px) {
#home_page, #deposit{
display: grid;
gap: 1.5rem;
grid-template-areas: '.''left';
grid-template-columns: minmax(0, 1fr);
.left {
grid-area: left;
}
}
sm-select {
width: 100%;
}
.hide-on-mobile{
display: none !important;
}
#transaction_page{
padding-top: 0;
header{
padding: 1.5rem 0;
}
}
}
@media only screen and (min-width: 640px) {
.hide-on-desktop{
display: none !important;
}
body {
padding: 0 2rem;
margin-left: 4rem;
}
sm-popup{
background: rgba(var(--foreground-color), 1);
}
sm-popup::part(popup){
width: 24rem;
}
#confirmation {
width: 24rem;
}
#navbar {
justify-content: flex-start;
flex-direction: column;
align-items: stretch;
left: 0;
bottom: 0;
top: 0;
right: auto;
border-top: none;
border-radius: 0;
background: rgba(var(--text-color), 0.06);
box-shadow: -0.5rem 0 0.5rem #00000008 inset;
.navbar-item {
display: flex;
width: auto;
padding: 0.8rem 1.2rem;
.icon {
height: 1.2rem;
width: 1.2rem;
}
h5{
display: none;
}
&:hover {
opacity: 1;
}
}
.logo{
margin: 1.5rem 1rem;
h4{
display: none;
}
.main-logo{
height: 1.2rem;
width: 1.2rem;
}
}
.active{
background: rgba(var(--text-color), 0.06);
}
}
.page {
padding-bottom: 2rem;
}
#sign_in_popup {
width: 24rem;
}
#home_page {
padding-top: 0.5rem;
.left {
margin-top: 1rem;
}
}
.options-tab, #people_container{
grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
gap: 2rem 0.8rem;
}
.display-balance{
.balance{
height: 9rem;
}
}
#settings_page{
.copy-row{
display: inline-grid;
}
}
}
@media only screen and (min-width: 800px) {
body {
margin-left: 11rem;
}
.complaint {
gap: 0 1.5rem;
grid-template-columns: 1fr 1fr;
grid-template-areas: '. . ''header header';
.complaint-actions {
grid-area: header;
}
.left {
border-right: 1px solid rgba(var(--text-color), 0.2);
padding-right: 1.5rem;
}
.right {
display: flex;
justify-content: center;
flex-direction: column;
}
}
#navbar{
.navbar-item {
h5{
font-size: 0.9rem;
margin: 0;
display: block;
}
}
.icon{
margin-right: 0.8rem;
}
.logo{
h4{
display: block;
font-size: 1rem;
}
}
}
.user-panel{
position: sticky;
top: 1.5rem;
padding-top: 1.5rem;
}
#home_page, #deposit {
display: grid;
gap: 1.5rem;
grid-template-columns: minmax(0, 1fr) 22rem;
}
.activity{
width: 60ch;
}
}
@media only screen and (min-width: 1920px) {
body {
font-size: 24px;
}
}
@media only screen and (min-width: 2048px) {
body {
font-size: 24px;
}
}
@media only screen and (max-width: 320px) {
body {
font-size: 14px;
}
}
@media (any-hover: hover) {
.navbar-item:hover{
background: rgba(var(--text-color), 0.06);
}
.remove{
opacity: 0.6;
}
.remove:hover{
opacity: 1;
}
}