From 5732e7845cd71219311b21a1acd665f433918e22 Mon Sep 17 00:00:00 2001 From: Adwaith Rao Date: Sun, 12 Dec 2021 15:25:40 +0530 Subject: [PATCH] Split SCSS files --- .../register-business/_acknowledgement.scss | 152 ++++++ src/app/pages/register-business/_payment.scss | 74 +++ src/app/pages/register-business/_receipt.scss | 153 ++++++ .../register-business.component.scss | 440 +----------------- 4 files changed, 382 insertions(+), 437 deletions(-) create mode 100644 src/app/pages/register-business/_acknowledgement.scss create mode 100644 src/app/pages/register-business/_payment.scss create mode 100644 src/app/pages/register-business/_receipt.scss diff --git a/src/app/pages/register-business/_acknowledgement.scss b/src/app/pages/register-business/_acknowledgement.scss new file mode 100644 index 0000000..2a1527e --- /dev/null +++ b/src/app/pages/register-business/_acknowledgement.scss @@ -0,0 +1,152 @@ +.acknowledgement { + width: 100%; + margin: 0 auto; + + h2 { + font-size: 2rem; + color: var(--dark-grey); + filter: brightness(80%); + font-weight: 500; + margin: 2rem 2rem 3rem; + } + + .container { + width: calc(70% - 2rem); + margin: 2rem auto; + + @media print { + width: calc(100% - 2rem); + } + } + + .bill-container { + width: 70%; + box-shadow: 0 0 10px var(--shadow-grey); + border-radius: 1rem; + overflow: hidden; + margin: 0 auto 5rem; + + @media print { + width: 100%; + } + } + + .check-icon { + display: block; + width: 58px; + height: auto; + margin: 3rem auto 2rem; + } + + h3 { + font-size: 3rem; + font-weight: normal; + text-align: center; + color: var(--success); + } + + .bill-breakup { + margin-top: 3rem; + display: grid; + grid-template-columns: 1fr 1fr; + list-style: none; + + li { + margin: 1.8rem; + width: 100%; + } + + label { + display: block; + color: var(--dark-grey); + font-size: 1.6rem; + filter: brightness(80%); + } + + .value { + display: block; + color: var(--dark-grey); + opacity: 0.8; + font-size: 1.6rem; + letter-spacing: 0.5px; + line-height: 1.6; + margin-top: 1rem; + + &.active { + color: var(--highlight); + font-weight: normal; + } + } + } + + .form-action-buttons { + margin: 2rem 1.5rem; + + @media print { + display: none; + } + } + + .total-amount { + text-align: center; + overflow: hidden; + padding: 1rem; + position: relative; + + &::before { + content: ''; + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + background-color: var(--footer-grey); + opacity: 0.4; + } + + & > * { + position: relative; + } + + label { + font-size: 2rem; + color: var(--dark-grey); + } + + span { + margin-left: 1rem; + font-size: 2.4rem; + color: var(--highlight); + } + } + + .message-board { + padding: 0 2rem; + list-style: none; + + @media print { + display: none; + } + + h5 { + font-size: 1.6rem; + color: var(--dark-grey); + filter: brightness(80%); + font-weight: 500; + } + + li { + margin: 1.5rem 0; + line-height: 1.7; + letter-spacing: 0.5px; + font-size: 1.4rem; + color: var(--dark-grey); + opacity: 0.8; + + a { + color: var(--highlight); + font-weight: 500; + } + } + } +} \ No newline at end of file diff --git a/src/app/pages/register-business/_payment.scss b/src/app/pages/register-business/_payment.scss new file mode 100644 index 0000000..9dd0183 --- /dev/null +++ b/src/app/pages/register-business/_payment.scss @@ -0,0 +1,74 @@ +.payment-container { + padding: 1rem; + + .payment-block { + padding: 3rem 4rem; + width: calc(40% - 2rem); + box-shadow: 0 0 10px var(--shadow-grey); + border-radius: 1rem; + margin: 0 auto 5rem; + + .payment-title { + font-size: 2.2rem; + color: var(--dark-grey); + filter: brightness(50%); + font-weight: 500; + margin-bottom: 0.3rem; + } + + .business-name { + font-size: 1.6rem; + color: var(--dark-grey); + font-weight: normal; + margin-bottom: 2rem; + } + + .tabs { + display: flex; + font-size: 1.4rem; + border-bottom: 2px solid var(--border-grey); + + .tab { + padding: 0.7rem 2rem; + margin-bottom: -2px; + cursor: pointer; + + &.active { + margin-bottom: -4px; + color: var(--highlight); + border-bottom: 4px solid var(--highlight); + } + } + } + + .tab-content { + color: var(--dark-grey); + font-size: 1.4rem; + line-height: 1.5; + padding: 1rem; + height: auto; + border-top: none; + + p { + margin-bottom: 1.5rem; + } + } + + .input-holder { + width: 20rem; + } + + .total-price-container { + margin-top: 2.5rem; + padding: 0.5rem; + font-weight: bold; + font-size: 3.5rem; + border-top: 1px solid var(--border-grey); + color: var(--dark-grey); + } + + .form-action-buttons { + margin-bottom: 0; + } + } +} \ No newline at end of file diff --git a/src/app/pages/register-business/_receipt.scss b/src/app/pages/register-business/_receipt.scss new file mode 100644 index 0000000..7f3d9ab --- /dev/null +++ b/src/app/pages/register-business/_receipt.scss @@ -0,0 +1,153 @@ +.receipt { + width: calc(100% - 4rem); + margin: 0 auto; + + h2 { + font-size: 2rem; + color: var(--dark-grey); + filter: brightness(80%); + font-weight: 500; + margin: 2rem 0; + } + + .bill-breakup { + display: grid; + grid-template-columns: 1fr 1fr; + list-style: none; + + li { + margin-bottom: 1rem; + width: 100%; + display: flex; + align-items: center; + justify-content: flex-start; + } + + label { + display: block; + color: var(--dark-grey); + font-size: 1.4rem; + } + + .value { + display: block; + color: var(--dark-grey); + opacity: 0.8; + font-size: 1.6rem; + letter-spacing: 0.5px; + line-height: 1.6; + margin-left: 1rem; + } + } + + .table { + margin: 2rem auto; + width: 100%; + border-radius: 1rem; + overflow: auto; + border: 2px solid var(--border-grey); + min-height: 10rem; + + header { + background: linear-gradient(90deg, var(--secondary) 0%, var(--primary)); + color: white; + font-size: 1.6rem; + display: flex; + align-items: center; + justify-content: flex-start; + height: 5.5rem; + font-weight: 300; + letter-spacing: 0.5px; + } + + .cell { + width: calc(100% / 6); + + @media print { + word-break: break-all; + } + + &:nth-child(1) { + text-align: center; + width: 10rem; + } + + &:nth-child(2) { + width: calc(20% + (10% - 10rem)); + } + + &:nth-child(3) { + width: 20%; + } + + &:nth-child(4) { + width: 20%; + } + + &:nth-child(5) { + width: 10%; + } + + &:nth-child(3) { + width: 20%; + } + } + + ul { + list-style: none; + } + + li { + display: flex; + align-items: flex-start; + justify-content: flex-start; + padding: 2rem 0; + + &:nth-child(even) { + background-color: var(--border-grey); + } + + .cell { + font-size: 1.4rem; + color: var(--dark-grey); + line-height: 1.7; + } + } + } + + .message-board { + width: 100%; + margin: 4rem 0; + list-style: none; + + h5 { + font-size: 1.6rem; + color: var(--dark-grey); + filter: brightness(80%); + font-weight: 500; + margin-bottom: 1rem; + } + + li { + margin: 0.5rem 0; + line-height: 1.7; + letter-spacing: 0.5px; + font-size: 1.4rem; + color: var(--dark-grey); + opacity: 0.8; + + a { + color: var(--highlight); + font-weight: 500; + } + } + } + + .form-action-buttons { + text-align: left; + + @media print { + display: none; + } + } +} \ No newline at end of file diff --git a/src/app/pages/register-business/register-business.component.scss b/src/app/pages/register-business/register-business.component.scss index 206147a..bd9f0d1 100644 --- a/src/app/pages/register-business/register-business.component.scss +++ b/src/app/pages/register-business/register-business.component.scss @@ -118,440 +118,6 @@ } } -.year-select-input-holder { - width: 100%; - margin: 1.5rem 0; - position: relative; - display: flex; - align-items: center; - justify-content: flex-start; - - label { - font-size: 1.4rem; - background-color: white; - color: var(--primary); - position: absolute; - top: 2.2rem; - left: -0.5rem; - padding: 0 0.5rem; - font-weight: 400; - letter-spacing: 0.5px; - transform: translate(2.5rem, -3rem); - } - - select { - -webkit-appearance: none; - -moz-appearance: none; - text-indent: 1px; - text-overflow: ''; - - display: block; - width: 100%; - border-radius: 4rem; - height: 5.5rem; - border: 1px solid var(--border-grey); - padding: 0 2rem; - font-size: 1.5rem; - letter-spacing: 0.5px; - color: var(--dark-grey); - background-color: white; - - &:focus { - border-color: var(--highlight); - - &~label { - color: var(--highlight); - } - } - } - - img { - position: relative; - transform: translateX(-4rem); - pointer-events: none; - background-color: white; - } -} - - -.payment-container { - padding: 1rem; - - .payment-block { - padding: 3rem 4rem; - width: calc(40% - 2rem); - box-shadow: 0 0 10px var(--shadow-grey); - border-radius: 1rem; - margin: 0 auto 5rem; - - .payment-title { - font-size: 2.2rem; - color: var(--dark-grey); - filter: brightness(50%); - font-weight: 500; - margin-bottom: 0.3rem; - } - - .business-name { - font-size: 1.6rem; - color: var(--dark-grey); - font-weight: normal; - margin-bottom: 2rem; - } - - .tabs { - display: flex; - font-size: 1.4rem; - border-bottom: 2px solid var(--border-grey); - - .tab { - padding: 0.7rem 2rem; - margin-bottom: -2px; - cursor: pointer; - - &.active { - margin-bottom: -4px; - color: var(--highlight); - border-bottom: 4px solid var(--highlight); - } - } - } - - .tab-content { - color: var(--dark-grey); - font-size: 1.4rem; - line-height: 1.5; - padding: 1rem; - height: auto; - border-top: none; - - p { - margin-bottom: 1.5rem; - } - } - - .input-holder { - width: 20rem; - } - - .total-price-container { - margin-top: 2.5rem; - padding: 0.5rem; - font-weight: bold; - font-size: 3.5rem; - border-top: 1px solid var(--border-grey); - color: var(--dark-grey); - } - - .form-action-buttons { - margin-bottom: 0; - } - } -} - -.acknowledgement { - width: 100%; - margin: 0 auto; - - h2 { - font-size: 2rem; - color: var(--dark-grey); - filter: brightness(80%); - font-weight: 500; - margin: 2rem 2rem 3rem; - } - - .container { - width: calc(70% - 2rem); - margin: 2rem auto; - - @media print { - width: calc(100% - 2rem); - } - } - - .bill-container { - width: 70%; - box-shadow: 0 0 10px var(--shadow-grey); - border-radius: 1rem; - overflow: hidden; - margin: 0 auto 5rem; - - @media print { - width: 100%; - } - } - - .check-icon { - display: block; - width: 58px; - height: auto; - margin: 3rem auto 2rem; - } - - h3 { - font-size: 3rem; - font-weight: normal; - text-align: center; - color: var(--success); - } - - .bill-breakup { - margin-top: 3rem; - display: grid; - grid-template-columns: 1fr 1fr; - list-style: none; - - li { - margin: 1.8rem; - width: 100%; - } - - label { - display: block; - color: var(--dark-grey); - font-size: 1.6rem; - filter: brightness(80%); - } - - .value { - display: block; - color: var(--dark-grey); - opacity: 0.8; - font-size: 1.6rem; - letter-spacing: 0.5px; - line-height: 1.6; - margin-top: 1rem; - - &.active { - color: var(--highlight); - font-weight: normal; - } - } - } - - .form-action-buttons { - margin: 2rem 1.5rem; - - @media print { - display: none; - } - } - - .total-amount { - text-align: center; - overflow: hidden; - padding: 1rem; - position: relative; - - &::before { - content: ''; - position: absolute; - left: 0; - top: 0; - width: 100%; - height: 100%; - background-color: var(--footer-grey); - opacity: 0.4; - } - - & > * { - position: relative; - } - - label { - font-size: 2rem; - color: var(--dark-grey); - } - - span { - margin-left: 1rem; - font-size: 2.4rem; - color: var(--highlight); - } - } - - .message-board { - padding: 0 2rem; - list-style: none; - - @media print { - display: none; - } - - h5 { - font-size: 1.6rem; - color: var(--dark-grey); - filter: brightness(80%); - font-weight: 500; - } - - li { - margin: 1.5rem 0; - line-height: 1.7; - letter-spacing: 0.5px; - font-size: 1.4rem; - color: var(--dark-grey); - opacity: 0.8; - - a { - color: var(--highlight); - font-weight: 500; - } - } - } -} - -.receipt { - width: calc(100% - 4rem); - margin: 0 auto; - - h2 { - font-size: 2rem; - color: var(--dark-grey); - filter: brightness(80%); - font-weight: 500; - margin: 2rem 0; - } - - .bill-breakup { - display: grid; - grid-template-columns: 1fr 1fr; - list-style: none; - - li { - margin-bottom: 1rem; - width: 100%; - display: flex; - align-items: center; - justify-content: flex-start; - } - - label { - display: block; - color: var(--dark-grey); - font-size: 1.4rem; - } - - .value { - display: block; - color: var(--dark-grey); - opacity: 0.8; - font-size: 1.6rem; - letter-spacing: 0.5px; - line-height: 1.6; - margin-left: 1rem; - } - } - - .table { - margin: 2rem auto; - width: 100%; - border-radius: 1rem; - overflow: auto; - border: 2px solid var(--border-grey); - min-height: 10rem; - - header { - background: linear-gradient(90deg, var(--secondary) 0%, var(--primary)); - color: white; - font-size: 1.6rem; - display: flex; - align-items: center; - justify-content: flex-start; - height: 5.5rem; - font-weight: 300; - letter-spacing: 0.5px; - } - - .cell { - width: calc(100% / 6); - - @media print { - word-break: break-all; - } - - &:nth-child(1) { - text-align: center; - width: 10rem; - } - - &:nth-child(2) { - width: calc(20% + (10% - 10rem)); - } - - &:nth-child(3) { - width: 20%; - } - - &:nth-child(4) { - width: 20%; - } - - &:nth-child(5) { - width: 10%; - } - - &:nth-child(3) { - width: 20%; - } - } - - ul { - list-style: none; - } - - li { - display: flex; - align-items: flex-start; - justify-content: flex-start; - padding: 2rem 0; - - &:nth-child(even) { - background-color: var(--border-grey); - } - - .cell { - font-size: 1.4rem; - color: var(--dark-grey); - line-height: 1.7; - } - } - } - - .message-board { - width: 100%; - margin: 4rem 0; - list-style: none; - - h5 { - font-size: 1.6rem; - color: var(--dark-grey); - filter: brightness(80%); - font-weight: 500; - margin-bottom: 1rem; - } - - li { - margin: 0.5rem 0; - line-height: 1.7; - letter-spacing: 0.5px; - font-size: 1.4rem; - color: var(--dark-grey); - opacity: 0.8; - - a { - color: var(--highlight); - font-weight: 500; - } - } - } - - .form-action-buttons { - text-align: left; - - @media print { - display: none; - } - } -} \ No newline at end of file +@import 'acknowledgement'; +@import 'payment'; +@import 'receipt'; \ No newline at end of file