frontend/css/customer.css
@import url("https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900");@import url("https://fonts.googleapis.com/css?family=Lato:100,300,400"); :root { --primary-blue: #0c4bef; --accent-yellow: #fbb416; --danger-red: #ff3d3d; --success-green: #13ce03; --light-grey: #a0a0a0; --dark-grey: #333333; --input-color: #dae5f7; --cream-green: #e8fff9;} /*border box alows us to add padding and border to our elemets without increasing their size */html { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;} /*We inherit box-sizing: border-box from <html> selector as this will give us more felexibility of using other box sizing value(box-padding, content-box) with worry about universal selector overriding our CSS *:after, *:before caters for pseodo element box-sizing*/ *,*:before,*:after { box-sizing: inherit;} body { padding: 0; margin: 0; font-family: Poppins, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; background-color: white;} * { padding: 0; margin: 0;} #accountText{ text-align: center;} .error{ font-size: 12px; color:red;} .fa{ margin-right:4px;} .alert { padding: 20px; background-color: #089432; color: white; position: fixed; bottom: 2rem; right: 30px; width: 300px;} .closebtn { margin-left: 15px; color: white; font-weight: bold; float: right; font-size: 22px; line-height: 20px; cursor: pointer; transition: 0.3s;} .closebtn:hover { color: black;} #loadingText{ text-align: center; font-weight: 600; color:var(--primary-blue);} #loader { border: 7px solid #f3f3f3; border-top: 7px solid var(--accent-yellow); border-radius: 50%; width: 40px; height: 40px; animation: spin 2s linear infinite; margin:auto; justify-content: center} @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); }} .slider { overflow-y: hidden; max-height: 500px; /* approximate max height */ transition-property: all; transition-duration: .5s; transition-timing-function: cubic-bezier(0, 1, 0.5, 1);} .slider.closed { max-height: 0;} .top { max-width: 100%; display: flex; justify-content: space-between; padding: 0.5rem 1.5rem;} .web-user { display: flex; justify-content: flex-end; align-items: center;} .web-user span { margin-left: 0.6rem; font-size: 14px;} .customer { display: flex; color: white; align-items: center;} .customer span { margin-left: 0.6rem; font-size: 14px;} .avatar { width: 35px; height: 35px; margin-right: 15px;} .customer-avatar { width: 60px; height: 60px; margin-right: 15px;} .back-arrow { width: 25px; height: 25px; margin-left: 2rem; margin-right: 1.7rem;} .customer h4 { font-size: 18px;} h4 { font-size: 12px;} .top a img { width: 75%;} .arrow-down { width: 10px; height: 10px; margin-left: 20px; margin-right: 10px;} .wrapper { display: grid; height: 100vh; grid-template-rows: auto auto 1fr; grid-template-areas: "header header" "banner banner" "content content";} header { justify-items: space-between; background-color: white; grid-area: header;} .banner { display: grid; grid-template-columns: 1fr 2fr 1fr; background: var(--primary-blue) url("../img/dashboard-top-banner.svg") no-repeat center center fixed; grid-area: banner; padding: 1.5rem 0.7rem;} .balance { color: white; justify-self: end; align-self: center; margin-left: 4rem; border-right: 1px solid white; padding-right: 2rem;} .balance h3 { font-size: 2.3rem; line-height: 1.2; /* font-weight: 800; */} .balance p { font-size: 12px;} button { padding: 1rem 2.5rem; border: 0; color: white; background: var(--accent-yellow); font-size: 14px; font-weight: 600; border-radius: 2px; margin-right: 4.5rem; margin-left: 2rem; outline: none; justify-self: end; align-self: center; cursor: pointer; margin-top: 1rem;} .banner .credit-button { padding: 0.9rem 2rem; border: 0; color: white; background: var(--accent-yellow); font-size: 14px; font-weight: 600; border-radius: 2px; margin-right: 4.5rem; margin-left: 2rem; outline: none; justify-self: end; align-self: center; cursor: pointer; margin:0 auto;} .content { justify-content: center; grid-area: content; flex-flow: column wrap; justify-items: center; grid-gap: 0; padding-bottom: 3rem; overflow-x: hidden; text-align:center;} /*tables*/table { /* border-collapse: collapse; */ margin: auto; text-align: center; box-shadow: 4px 4px 22px 1px rgba(216, 216, 216, 0.2); border-radius: 5px; border: 1px solid #dae5f7; margin-top: 1.5rem; margin-bottom: 1.5rem;} td { border: 1px solid #dae5f7; text-align: center; padding: 8px 20px; width: auto; background-color: white; font-size: 14px; font-weight: 400;} th { /* background-color: var(--cream-green); */ padding: 13px; color: var(--dark-grey); border: 1px solid #dae5f7; font-weight: 600; width: auto;} .action-header { width: 150px;} .table-title { text-align: left; margin-left: 2rem; color: var(--primary-blue); font-weight: 800; padding-left: 2rem;} .account-filter { text-align: right; margin-left: 2rem; color: var(--primary-blue);} td img { width: 30px; height: 30px;} td button { padding: 0.7rem 1.4rem; width: 80px; text-align: center; margin: auto; font-size: 12px; margin-right: 9px; color: white; border-radius: 5px; outline: none; font-weight: 500; border: 0; cursor: pointer;} .viewBtn { background-color: var(--accent-yellow);} td .delete { background-color: #ff3a3a; margin-top: 10px;} .ct-select-group { height: 37px; position: relative;} .ct-select-group .ct-select { width: 100%; font-weight: 600; font-size: 14px; color: #4f4f4f; user-select: none; position: absolute; top: 0; left: 0; z-index: 1; border: none; background: transparent; -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer; padding: 10px 15px; border: 1px solid #dae5f7; border-radius: 3px; outline: none;}.ct-select-group .ct-select option { font-size: 18px; background: #fff;}.ct-select-group:before { content: ""; position: absolute; top: 0; left: 0; height: 44px; width: calc(100% - 64px); background: transparent; z-index: 0;}.ct-select-group:after { content: ""; position: absolute; top: 0; right: 0; width: 44px; height: 44px; background-image: url(../img/arrow-drop-down.svg); background-position: center; background-repeat: no-repeat; z-index: 0;} /**modals**/.modal { display: none; position: fixed; z-index: 1000000; padding-top: 10px; left: 0; top: 0; width: 100%; height: 100%; overflow: none; background-color: rgba(0, 0, 0, 0.4);} input[type="text"],input[type="password"] { width: 100%; padding: 12px 20px; margin: 11px 0; border: 1px solid var(--input-color); outline: none; font-size: 14px; border-radius: 3px;} .onboarding-modal .ct-select-group { margin: 11px 0;} label{ font-size: 12px; text-align: start !important; align-items:start; color: #494949;} button:hover { opacity: 0.8;} .onboarding-modal { background-color: white; padding: 40px 40px 50px 40px; border: 1px solid var(--light-grey); border-radius: 5px; margin: auto; text-align: center; width: calc(100vw / 3.5); display:flex; flex-flow: column nowrap; justify-content: center;} .onboarding-modal h3 { color: #0036c2; margin: 0 auto; margin-bottom: 1.5rem;} .onboarding-modal button { padding: 0.9rem 2.5rem; border: 0; color: white; background: var(--primary-blue); font-size: 14px; font-weight: 600; border-radius: 5px; margin: 1rem 0; text-transform: uppercase; outline: none; width: 100%; cursor: pointer;} .onboarding-modal img { height: auto; width: 80px; margin: 0 auto;} .onboarding-modal p { font-size: 14px; margin-top: 10px;} .onboarding-modal a { font-size: 14px; font-weight: 500; color: var(--dark-grey);} .content { background-image: url(../img/content-bg.svg); background-repeat: no-repeat;} /**stop scrolling**/.stop-scrolling { height: 100%; overflow: hidden;} .dropdown-content { display: none; position: absolute; background-color: #f9f9f9; min-width: 130px; box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); z-index: 1; margin-top: 65px;} .dropdown-content a { color: black; padding: 12px 16px; text-decoration: none; display: block;} .dropdown-content a:hover { background-color: #f1f1f1;} .dropdown:hover .dropdown-content { display: block;} .dropdown:hover .dropbtn { background-color: #3e8e41;} @media only screen and (max-width: 600px){ .banner { display: grid; grid-template-columns: 1fr 2fr; grid-area: banner;} .customer-avatar { width: 45px; height: 45px; margin-right: 10px; } .avatar { width: 30px; height: 30px; margin-right: 10px; } .customer h4 { font-size: 13px;} .banner{ padding: 1.5rem 0.7rem; } .balance { justify-self: start; margin: 0; } .balance:nth-child(even){ justify-self: end; } .banner button{ margin-right: 0; padding: 1rem 2rem; } .content button{ margin-right: 0; padding: 0.9rem 2rem; } .balance p{ font-size: 12px; } .balance h3 { font-size: 1.2rem; font-weight: 800; } .onboarding-modal { width: 310px; } .tableDiv { overflow-x:auto; } .arrow-down { margin-left: 5px; margin-right: 0px; } .back-arrow { height: 15px; width: 15px; margin-left: 4px; margin-right: 10px; } button{ margin: 0 auto; margin-top: 10px; }}