Skip to content

Commit

Permalink
code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kailasnadh790 committed May 21, 2024
1 parent bd936b7 commit 030fc9e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
32 changes: 13 additions & 19 deletions blocks/saved-properties/saved-properties.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
.saved-properties.block .confirmation-modal {
border: 0;
display: none;
background: #fff;
background: var(--white);
position: fixed;
z-index: 1050;
right: auto;
Expand Down Expand Up @@ -50,10 +50,10 @@ body.modal-open {
font-family: var(--font-family-primary);
font-size: 22px;
font-style: normal;
font-weight: 400;
font-weight: var(--font-weight-normal);
letter-spacing: normal;
line-height: 140%;
color: #3a3a3a;
color: var(--body-color);
text-align: center;
}

Expand All @@ -75,17 +75,15 @@ body.modal-open {
.saved-properties.block .confirmation-modal .confirmation-modal-buttons .modal-cta .btn {
cursor: pointer;
text-align: center;
font-size: 16px;
font-weight: 700;
}

.saved-properties.block .confirmation-modal .confirmation-modal-buttons .modal-cta .btn span{
font-size: 16px;
font-weight: 700;
font-size: var(--body-font-size-s);
font-weight: var(--font-weight-bold);
}

.saved-properties.block .confirmation-modal-overlay {
background-color: #212529;
background-color: var(--very-dark-blue);
width: 100%;
height: 100%;
position: fixed;
Expand All @@ -104,39 +102,35 @@ body.modal-open {
height: unset;
}

.form-loader-image.exit {
.saved-properties.block .form-loader-image.exit {
opacity: 0;
pointer-events: none;
}

.form-loader-image.exit.show {
.saved-properties.block .form-loader-image.exit.show {
opacity: 1;
transition: all 1s ease-in;
pointer-events: all;
}

.form-loader-image {
.saved-properties.block .form-loader-image {
position: absolute;
height: 100%;
width: 100%;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
background-color: #FFFFFF80;
background-color: var(--semi-transparent-white);
z-index: 2;
}

.form-loader .spinner {
.saved-properties.block .form-loader .spinner {
width: 40px;
height: 40px;
position: relative;
}

.form-loader .double-bounce1, .form-loader .double-bounce2 {
.saved-properties.block .form-loader .double-bounce1, .form-loader .double-bounce2 {
width: 100%;
height: 100%;
border-radius: 50%;
Expand All @@ -148,7 +142,7 @@ body.modal-open {
animation: sk-bounce 2s infinite ease-in-out;
}

.form-loader .double-bounce2 {
.saved-properties.block .form-loader .double-bounce2 {
animation-delay: -1s;
}

Expand Down
4 changes: 4 additions & 0 deletions blocks/shared/property/cards.css
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@
display: block;
}

.property-list-cards .listing-tile.saved .property-details .property-buttons .save-btn:hover .icon-heartfull {
display: block;
}

.property-list-cards .listing-tile.saved .property-details .property-buttons .icon-heartempty {
display: none;
}
Expand Down
2 changes: 1 addition & 1 deletion blocks/shared/property/cards.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function createCard(listing) {
<img data-icon-name="envelopedark" src="/icons/envelopedark.svg" loading="lazy" alt="envelope">
</span>
</a>
<a aria-label="Save ${listing.StreetName} to saved properties." href="#" class="button-property">
<a aria-label="Save ${listing.StreetName} to saved properties." href="#" class="button-property save-btn">
<span class="icon icon-heartempty">
<img data-icon-name="heartempty" src="/icons/heartempty.svg" loading="lazy" alt="heart">
</span>
Expand Down
22 changes: 12 additions & 10 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
--error: #d3636a;
--error-highlight: #f9e1e2;
--input-placeholder: #7f7a7a;
--very-dark-blue: #212529;
--semi-transparent-white: #FFFFFF80;


/* Blog Colors (only?) */
Expand Down Expand Up @@ -447,20 +449,20 @@ main .section.banner .default-content-wrapper {

.btn {
font-family: var(--font-family-primary);
font-weight: 400;
font-weight: var(--font-weight-normal);
letter-spacing: 1px;
text-transform: uppercase;
text-decoration: none;
white-space: normal;
padding: 7px 25px;
font-size: 14px;
font-size: var(--body-font-size-xs);
line-height: 1.5;
border-radius: 0;
width: 100%;
}

.btn.btn-primary{
background: #670038;
background: var(--primary-color);
border: 0;
cursor: pointer;
text-align: center;
Expand All @@ -472,30 +474,30 @@ main .section.banner .default-content-wrapper {
}

.btn.btn-primary:hover{
background-color: #670038;
background-color: var(--primary-color);
border: 0;
box-shadow: none;
}

.btn.btn-primary:hover span{
color: #c299af;
color: var(--primary-light);
}

.btn.btn-secondary{
background: #fff;
color: #670038;
border: 1px solid #670038;
color: var(--primary-color);
border: 1px solid var(--primary-color);
font-size: 16px;
}

.btn.btn-secondary:hover{
background-color: #670038;
border: 1px solid #670038;
background-color: var(--primary-color);
border: 1px solid var(--primary-color);
box-shadow: none;
}

.btn.btn-secondary:hover span{
color: #c299af;
color: var(--primary-light);
}

.btn:not(:disabled, .disabled) {
Expand Down

0 comments on commit 030fc9e

Please sign in to comment.