feat(workspace): created variables for more organization

This commit is contained in:
Henrique Santos Santana 2022-12-13 14:48:43 -03:00
parent 30555d9098
commit 8bcb85876b
7 changed files with 379 additions and 376 deletions

View File

@ -1,289 +1,289 @@
.checkout-container {
.client-pre-email {
border-color: $color-gray4;
font-family: $font-family;
padding-top: 8px;
.client-pre-email {
border-color: $clr-gray-300;
font-family: $font-family-100;
padding-top: 8px;
.link-cart {
a {
color: $color-black;
font-size: 14px;
.link-cart {
a {
color: $clr-gray-600;
font-size: 14px;
&:hover {
color: lighen($color-black, 10);
}
}
}
&:hover {
color: lighen($clr-gray-600, 10);
}
}
}
.pre-email {
flex-direction: column;
display: flex;
align-items: center;
justify-content: center;
.pre-email {
flex-direction: column;
display: flex;
align-items: center;
justify-content: center;
h3 {
margin-bottom: 16px;
h3 {
margin-bottom: 16px;
span {
color: #303030;
font-size: 24px;
}
span {
color: #303030;
font-size: 24px;
}
small {
color: $color-gray4;
}
}
}
small {
color: $clr-gray-300;
}
}
}
.client-email {
margin: 0 0 16px;
.client-email {
margin: 0 0 16px;
input {
box-shadow: none;
color: $color-black;
font-family: $font-family;
padding: 0 16px;
border: 2px solid $color-gray3;
box-sizing: border-box;
border-radius: 5px;
input {
box-shadow: none;
color: $clr-gray-600;
font-family: $font-family-100;
padding: 0 16px;
border: 2px solid $clr-gray-100;
box-sizing: border-box;
border-radius: 5px;
@media (max-width: 490px) {
width: auto;
}
}
@media (max-width: 490px) {
width: auto;
}
}
button {
background-color: $color-black;
border-radius: 5px;
border: none;
font-family: $font-family;
height: 54px;
right: 0;
top: 0;
button {
background-color: $clr-gray-600;
border-radius: 5px;
border: none;
font-family: $font-family-100;
height: 54px;
right: 0;
top: 0;
@media (max-width: 490px) {
height: 48px;
margin: 0;
position: absolute;
}
}
@media (max-width: 490px) {
height: 48px;
margin: 0;
position: absolute;
}
}
span.help.error {
color: red;
}
}
span.help.error {
color: red;
}
}
.emailInfo {
padding: 16px;
background-color: $color-white;
border: 1px solid $color-gray4;
border-radius: 0;
.emailInfo {
padding: 16px;
background-color: $clr-common-white;
border: 1px solid $clr-gray-300;
border-radius: 0;
h3 {
color: #303030;
margin: 0 0 8px 0;
}
h3 {
color: #303030;
margin: 0 0 8px 0;
}
ul {
margin: 0;
ul {
margin: 0;
li {
span {
color: $color-black;
}
li {
span {
color: $clr-gray-600;
}
i::before {
color: $color-black;
font-size: 1rem;
opacity: 1;
}
}
}
i::before {
color: $clr-gray-600;
font-size: 1rem;
opacity: 1;
}
}
}
i::before {
color: $color-black;
font-size: 6rem;
opacity: 0.5;
}
}
}
i::before {
color: $clr-gray-600;
font-size: 6rem;
opacity: 0.5;
}
}
}
.shipping-data,
.payment-data,
.client-profile-data {
.accordion-group {
border-radius: 0;
border: 1px solid $color-gray4;
font-family: $font-family;
padding: 16px;
.shipping-data,
.payment-data,
.client-profile-data {
.accordion-group {
border-radius: 0;
border: 1px solid $clr-gray-300;
font-family: $font-family-100;
padding: 16px;
.accordion-heading {
span {
color: #303030;
margin-bottom: 8px;
padding: 0;
.accordion-heading {
span {
color: #303030;
margin-bottom: 8px;
padding: 0;
i::before {
fill: #303030;
}
}
i::before {
fill: #303030;
}
}
a {
align-items: center;
background-color: #303030;
border-radius: 8px;
border: none;
color: $color-white;
display: flex;
justify-content: center;
padding: 6px 5px 6px 8px;
}
}
a {
align-items: center;
background-color: #303030;
border-radius: 8px;
border: none;
color: $clr-common-white;
display: flex;
justify-content: center;
padding: 6px 5px 6px 8px;
}
}
.accordion-inner {
padding: 0;
.accordion-inner {
padding: 0;
/* General configurations */
/* General configurations */
.client-notice {
color: $color-black;
}
.client-notice {
color: $clr-gray-600;
}
p {
label {
color: $color-black;
font-weight: 500;
}
p {
label {
color: $clr-gray-600;
font-weight: 500;
}
select,
input {
border-radius: 0;
border: 1px solid $color-gray4;
box-shadow: none;
}
select,
input {
border-radius: 0;
border: 1px solid $clr-gray-300;
box-shadow: none;
}
.help.error {
color: red;
}
}
.help.error {
color: red;
}
}
.box-client-info-pj {
.link a#is-corporate-client,
.link a#not-corporate-client {
color: $color-black;
font-weight: 500;
text-decoration: underline;
}
}
.box-client-info-pj {
.link a#is-corporate-client,
.link a#not-corporate-client {
color: $clr-gray-600;
font-weight: 500;
text-decoration: underline;
}
}
.state-inscription-box span {
font-weight: 500;
}
.state-inscription-box span {
font-weight: 500;
}
button.submit {
border: none;
border-radius: 5px;
background: $color-black;
margin-top: 8px;
outline: none;
transition: all 0.2s linear;
button.submit {
border: none;
border-radius: 5px;
background: $clr-gray-600;
margin-top: 8px;
outline: none;
transition: all 0.2s linear;
&:hover {
background: lighten($color-black, 5);
}
&:hover {
background: lighten($clr-gray-600, 5);
}
&:active {
background: darken($color-black, 5);
}
}
&:active {
background: darken($clr-gray-600, 5);
}
}
/* Shipping configurations */
/* Shipping configurations */
.ship-postalCode small a {
color: #303030;
font-weight: 500;
text-decoration: underline;
}
.ship-postalCode small a {
color: #303030;
font-weight: 500;
text-decoration: underline;
}
.vtex-omnishipping-1-x-deliveryGroup {
p {
color: #303030;
font-size: 14px;
font-weight: 500;
}
.vtex-omnishipping-1-x-deliveryGroup {
p {
color: #303030;
font-size: 14px;
font-weight: 500;
}
.shp-lean {
border: 1px solid $color-gray4;
border-radius: 0;
.shp-lean {
border: 1px solid $clr-gray-300;
border-radius: 0;
label {
background-color: $color-white;
box-shadow: none;
color: #303030;
padding: 8px 12px;
label {
background-color: $clr-common-white;
box-shadow: none;
color: #303030;
padding: 8px 12px;
svg path {
fill: #d8c8ac;
}
}
}
}
svg path {
fill: #d8c8ac;
}
}
}
}
.delivery-address-title {
color: #303030;
font-size: 14px;
font-weight: 500;
}
.delivery-address-title {
color: #303030;
font-size: 14px;
font-weight: 500;
}
.shp-summary-group-info {
border-color: $color-gray4;
}
.shp-summary-group-info {
border-color: $clr-gray-300;
}
.address-summary {
background: none;
border-color: $color-gray4;
border-radius: 0;
color: #303030;
padding: 12px;
.address-summary {
background: none;
border-color: $clr-gray-300;
border-radius: 0;
color: #303030;
padding: 12px;
@include mq(md, max) {
background-position: 8px 9px;
}
@include mq(md, max) {
background-position: 8px 9px;
}
a {
color: #303030;
font-weight: 500;
text-decoration: underline;
}
}
a {
color: #303030;
font-weight: 500;
text-decoration: underline;
}
}
.shp-summary-group-price,
.shp-summary-package {
color: $color-gray4;
}
.shp-summary-group-price,
.shp-summary-package {
color: $clr-gray-300;
}
.shp-summary-group-price {
padding-right: 16px;
}
.shp-summary-group-price {
padding-right: 16px;
}
.shp-summary-package {
padding-left: 16px;
}
.shp-summary-package {
padding-left: 16px;
}
.vtex-omnishipping-1-x-summaryChange {
border-color: #303030;
color: #303030;
}
.vtex-omnishipping-1-x-summaryChange {
border-color: #303030;
color: #303030;
}
.vtex-omnishipping-1-x-deliveryChannelsToggle {
background-color: #d8c8ac;
border: 1px solid #d8c8ac;
}
.vtex-omnishipping-1-x-deliveryChannelsToggle {
background-color: #d8c8ac;
border: 1px solid #d8c8ac;
}
.vtex-omnishipping-1-x-deliveryOptionActive {
text-shadow: 1.3px 1px lighten($color-black, 50);
}
}
}
}
.vtex-omnishipping-1-x-deliveryOptionActive {
text-shadow: 1.3px 1px lighten($clr-gray-600, 50);
}
}
}
}
}

View File

@ -5,7 +5,7 @@
}
.cart-template {
font-family: $font-family;
font-family: $font-family-100;
@include mq(md, max) {
padding: 0 0;
}
@ -13,7 +13,7 @@
display: none;
}
.cart {
border: 3px solid $color-gray3;
border: 3px solid $clr-gray-100;
box-sizing: border-box;
border-radius: 5px;
padding: 16px;
@ -29,10 +29,10 @@
position: relative !important;
}
.cart-fixed {
font-family: $font-family;
font-family: $font-family-100;
width: 100%;
h2 {
background: $color-white;
background: $clr-common-white;
border: none;
color: #303030;
font-size: 14px;
@ -48,7 +48,7 @@
}
.cart {
border: 1px solid $color-gray4;
border: 1px solid $clr-gray-300;
ul li {
border-top: none;
@ -70,7 +70,7 @@
.summary-template-holder {
border-top: none;
background: $color-white;
background: $clr-common-white;
}
#go-to-cart-button a {
@ -85,24 +85,24 @@
}
#payment-data-submit {
background: $color-black;
background: $clr-gray-600;
border: none;
border-radius: 0;
color: $color-white;
color: $clr-common-white;
outline: none;
transition: all 0.2s linear;
&:hover {
background: lighten($color-black, 5);
background: lighten($clr-gray-600, 5);
}
&:active {
background: darken($color-black, 5);
background: darken($clr-gray-600, 5);
}
}
}
.lookatme {
background-color: $color-white;
background-color: $clr-common-white;
}
.cart-items {
@ -111,7 +111,7 @@
}
th {
color: $color-black;
color: $clr-gray-600;
padding: 0 0 16px;
font-style: normal;
font-weight: bold;
@ -155,7 +155,7 @@
}
a {
color: $color-blue;
color: $clr-blue-500;
font-style: normal;
font-weight: normal;
font-size: 12px;
@ -163,7 +163,7 @@
transition: ease-in 0.22s all;
&:hover {
color: darken($color-blue, 10);
color: darken($clr-blue-500, 10);
text-decoration: none;
}
@ -179,7 +179,7 @@
}
td.shipping-date {
color: $color-gray2;
color: $clr-gray-400;
font-size: 12px;
line-height: 14px;
@ -200,7 +200,7 @@
}
span.list-price {
color: $color-gray2;
color: $clr-gray-400;
font-size: 12px;
line-height: 14px;
text-decoration-line: line-through;
@ -217,7 +217,7 @@
td.quantity {
align-items: center;
border: 1px solid $color-gray3;
border: 1px solid $clr-gray-100;
border-radius: 0;
box-sizing: border-box;
display: flex;
@ -233,8 +233,8 @@
}
input {
background-color: $color-white;
border: 1px solid $color-gray3;
background-color: $clr-common-white;
border: 1px solid $clr-gray-100;
border-radius: 0;
border-width: 0 1px;
display: block;
@ -242,7 +242,7 @@
margin: 0 !important;
padding: 8px 0;
width: 38px;
color: $color-gray2;
color: $clr-gray-400;
box-shadow: none;
@include mq(lg, max) {
@ -253,7 +253,7 @@
.icon-plus-sign,
.icon-minus-sign {
&::before {
color: $color-black;
color: $clr-gray-600;
display: block;
font-weight: 500;
padding: 1px 12px;
@ -300,7 +300,7 @@
font-weight: normal;
font-size: 14px;
line-height: 16px;
color: $color-black;
color: $clr-gray-600;
}
}
@ -315,7 +315,7 @@
top: 0;
}
.icon::before {
color: $color-gray4;
color: $clr-gray-300;
font-size: 15px;
@include mq(md, max) {
@ -326,7 +326,7 @@
.item-unavailable-message {
background-color: #d8c8ac;
color: $color-white;
color: $clr-common-white;
.icon-warning-sign {
color: #bb4f4f;
@ -356,7 +356,7 @@
font-weight: normal;
font-size: 24px;
line-height: 28px;
color: $color-gray2;
color: $clr-gray-400;
@include mq(md, max) {
margin-top: 0;
@ -364,17 +364,17 @@
}
.srp-description {
color: $color-gray2;
color: $clr-gray-400;
font-size: 12px;
line-height: 18px;
margin: 0 0 12px;
}
button.shp-open-options {
background-color: $color-gray5;
background-color: $clr-gray-200;
border: none;
border-radius: 5px;
color: $color-gray2;
color: $clr-gray-400;
font-size: 16px;
letter-spacing: 0.05em;
line-height: 19px;
@ -384,11 +384,11 @@
transition: all 0.2s linear;
&:hover {
background-color: lighten($color-gray5, 5);
background-color: lighten($clr-gray-200, 5);
}
&:active {
background-color: darken($color-gray5, 5);
background-color: darken($clr-gray-200, 5);
}
}
}
@ -405,10 +405,10 @@
}
.srp-pickup-my-location__button {
background-color: $color-black;
background-color: $clr-gray-600;
border: none;
border-radius: 5px;
color: $color-white;
color: $clr-common-white;
outline: none;
width: 100%;
@ -419,11 +419,11 @@
letter-spacing: 0.05em;
&:hover {
background-color: lighten($color-black, 5);
background-color: lighten($clr-gray-600, 5);
}
&:active {
background-color: darken($color-black, 5);
background-color: darken($clr-gray-600, 5);
}
}
}
@ -432,10 +432,10 @@
margin: 0 0 34px;
&__wrapper {
background-color: $color-white;
background-color: $clr-common-white;
border-radius: 100px;
width: 100%;
font-family: $font-family;
font-family: $font-family-100;
font-style: normal;
font-weight: normal;
font-size: 14px;
@ -444,12 +444,12 @@
}
&__current {
border: 1px solid $color-blue;
border: 1px solid $clr-blue-500;
border-radius: 100px;
}
.blue {
color: $color-blue;
color: $clr-blue-500;
}
label {
@ -464,20 +464,20 @@
.srp-postal-code {
.ship-postalCode {
label {
font-family: $font-family;
font-family: $font-family-100;
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 14px;
color: $color-black;
color: $clr-gray-600;
margin-bottom: 12px;
}
input {
border: 1px solid $color-gray3;
border: 1px solid $clr-gray-100;
border-radius: 5px;
box-shadow: none;
color: $color-gray3;
color: $clr-gray-100;
font-size: 12px;
height: 36px;
padding: 12px 8px;
@ -485,10 +485,10 @@
}
& ~ button {
background-color: $color-black;
background-color: $clr-gray-600;
border: none;
border-radius: 5px;
color: $color-white;
color: $clr-common-white;
font-size: 12px;
height: 36px;
letter-spacing: 1px;
@ -501,21 +501,21 @@
text-transform: uppercase;
&:hover {
background-color: lighten($color-black, 5);
background-color: lighten($clr-gray-600, 5);
}
&:active {
background-color: darken($color-black, 5);
background-color: darken($clr-gray-600, 5);
}
}
small a {
font-family: $font-family;
font-family: $font-family-100;
font-style: normal;
font-weight: normal;
font-size: 10px;
line-height: 12px;
color: $color-blue;
color: $clr-blue-500;
margin-top: 7px;
}
@ -549,7 +549,7 @@
}
.srp-shipping-current-single {
border: 1px solid $color-gray4;
border: 1px solid $clr-gray-300;
border-radius: 0;
color: #303030;
margin: 16px 0 0;
@ -561,11 +561,11 @@
}
.srp-delivery-select {
border: 1px solid $color-gray4;
border: 1px solid $clr-gray-300;
}
.srp-delivery-select-container {
border: 1px solid $color-gray4;
border: 1px solid $clr-gray-300;
border-radius: 0;
.srp-shipping-current-many {
@ -583,7 +583,7 @@
}
&__arrow svg {
fill: $color-gray4;
fill: $clr-gray-300;
}
}
}
@ -603,12 +603,12 @@
}
}
span {
font-family: $font-family;
font-family: $font-family-100;
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 14px;
color: $color-blue;
color: $clr-blue-500;
text-decoration: none;
}
}
@ -631,12 +631,12 @@
.coupon-label label {
margin-bottom: 12px;
font-family: $font-family;
font-family: $font-family-100;
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 14px;
color: $color-gray2;
color: $clr-gray-400;
cursor: none;
}
@ -657,10 +657,10 @@
}
input {
border: 2px solid $color-gray3;
border: 2px solid $clr-gray-100;
border-radius: 5px;
box-shadow: none;
color: $color-gray4;
color: $clr-gray-300;
font-size: 12px;
height: 34px;
padding: 0 12px;
@ -673,10 +673,10 @@
}
button {
background: $color-black;
background: $clr-gray-600;
border: none;
border-radius: 5px;
color: $color-white;
color: $clr-common-white;
font-size: 12px;
height: 36px;
letter-spacing: 1px;
@ -691,11 +691,11 @@
}
&:hover {
background-color: lighten($color-black, 5);
background-color: lighten($clr-gray-600, 5);
}
&:active {
background-color: darken($color-black, 5);
background-color: darken($clr-gray-600, 5);
}
}
}
@ -716,7 +716,7 @@
font-weight: normal;
font-size: 14px;
line-height: 16px;
color: $color-black;
color: $clr-gray-600;
padding: 12px 0;
}
@ -737,7 +737,7 @@
font-weight: normal;
font-size: 18px;
line-height: 21px;
color: $color-black;
color: $clr-gray-600;
}
}
}
@ -771,18 +771,18 @@
}
a {
font-family: $font-family;
font-family: $font-family-100;
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 14px;
color: $color-blue;
color: $clr-blue-500;
}
}
.btn-place-order-wrapper {
a {
background: $color-green;
background: $clr-green-500;
border: none;
border-radius: 5px;
display: block;
@ -791,16 +791,16 @@
padding: 12px 19px;
&:hover {
background-color: darken($color-green, 5);
background-color: darken($clr-green-500, 5);
}
&:after {
content: "finalizar compra";
font-family: $font-family;
font-family: $font-family-100;
font-weight: 500;
font-size: 13px;
letter-spacing: 0.05em;
color: $color-white;
color: $clr-common-white;
text-transform: uppercase;
vertical-align: middle;
line-height: 19px;

View File

@ -1,38 +1,38 @@
.empty-cart {
font-family: $font-family;
&-content {
color: $color-black;
text-align: center;
font-family: $font-family-100;
&-content {
color: $clr-gray-600;
text-align: center;
@include mq(md, max) {
padding: 0 16px;
}
}
@include mq(md, max) {
padding: 0 16px;
}
}
&-title {
font-size: 20px;
}
&-title {
font-size: 20px;
}
&-links {
.link-choose-products {
background: $color-black;
border: none;
border-radius: 5px;
transition: ease-in 0.22s all;
outline: none;
font-family: $font-family;
font-style: normal;
font-weight: 500;
font-size: 14px;
line-height: 16px;
text-align: center;
letter-spacing: 0.05em;
color: $color-white;
text-transform: uppercase;
&-links {
.link-choose-products {
background: $clr-gray-600;
border: none;
border-radius: 5px;
transition: ease-in 0.22s all;
outline: none;
font-family: $font-family-100;
font-style: normal;
font-weight: 500;
font-size: 14px;
line-height: 16px;
text-align: center;
letter-spacing: 0.05em;
color: $clr-common-white;
text-transform: uppercase;
&:hover {
background: lighten($color-black, 5);
}
}
}
&:hover {
background: lighten($clr-gray-600, 5);
}
}
}
}

View File

@ -29,7 +29,7 @@ body {
}
&.body-cart {
font-family: $font-family;
font-family: $font-family-100;
}
&.body-cart,
@ -54,22 +54,22 @@ body {
}
.btn-success {
background: $color-black;
background: $clr-gray-600;
text-shadow: none;
&:hover {
background: lighten($color-black, 15%);
background: lighten($clr-gray-600, 15%);
}
}
.emailInfo h3 {
color: $color-black !important;
color: $clr-gray-600 !important;
}
#cart-title,
#orderform-title {
color: $color-gray2;
font-family: $font-family;
color: $clr-gray-400;
font-family: $font-family-100;
font-weight: 500;
font-size: 36px;
line-height: 42px;
@ -96,7 +96,7 @@ body {
&::before,
&::after {
content: "";
background: $color-gray2;
background: $clr-gray-400;
display: block;
float: right;
height: 2px;

View File

@ -1,7 +1,7 @@
/* _footer.scss */
.footerCheckout {
border-top: none;
color: $color-gray2;
color: $clr-gray-400;
&__wrapper {
align-items: center;
@ -10,8 +10,8 @@
}
&__address {
color: $color-gray2;
font-family: $font-family;
color: $clr-gray-400;
font-family: $font-family-100;
font-style: normal;
font-weight: normal;
font-size: 10px;
@ -37,7 +37,7 @@
}
&__divider {
background-color: $color-gray4;
background-color: $clr-gray-300;
display: inline-block;
height: 24px;
margin: 0 8px;
@ -57,9 +57,9 @@
a {
align-items: center;
color: $color-gray2;
color: $clr-gray-400;
display: flex;
font-family: $font-family;
font-family: $font-family-100;
font-style: normal;
font-weight: normal;
font-size: 10px;

View File

@ -21,12 +21,12 @@
align-items: center;
display: flex;
text-transform: uppercase;
font-family: $font-family;
font-family: $font-family-100;
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 14px;
color: $color-gray;
color: $clr-gray-500;
}
i {

View File

@ -1,38 +1,41 @@
/* fonts */
@import url("https://fonts.googleapis.com/css2?family=Tenor+Sans&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap");
$font-family: "Open Sans", sans-serif;
$font-family-secundary:"Tenor Sans", sans-serif;
$font-family-100: "Open Sans", sans-serif;
$font-family-200: "Tenor Sans", sans-serif;
/* Colors */
$color-black: #292929;
$color-white: #fff;
$clr-common-white: #fff;
$color-gray: #6c6c6c;
$color-gray2: #7d7d7d;
$color-gray3: #f0f0f0;
$color-gray4: #8d8d8d;
$color-gray5: #e5e5e5;
$clr-gray-600: #292929;
$clr-gray-500: #6c6c6c;
$clr-gray-400: #7d7d7d;
$clr-gray-300: #8d8d8d;
$clr-gray-200: #e5e5e5;
$clr-gray-100: #f0f0f0;
$color-blue: #4267b2;
$clr-gray-500: #6c6c6c;
$color-green: #4caf50;
$clr-blue-500: #4267b2;
$clr-green-500: #4caf50;
/* Grid breakpoints */
$grid-breakpoints: (
xs: 0,
cstm: 400,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px
xxs: 0,
xs: 280,
sm: 375px,
md: 600px,
lg: 1024px,
xl: 1280px,
xxl: 2500px,
) !default;
$z-index: (
level1: 5,
level2: 10,
level3: 15,
level4: 20,
level5: 25
level-100: 5,
level-200: 10,
level-300: 15,
level-400: 20,
level-500: 25,
) !default;