Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design4 specific changes #264

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
1 change: 1 addition & 0 deletions blocks/agent-profile/agent-profile.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import url('./design-1.css');
@import url('./design-4.css');

.agent-profile.block {
padding: 0 1rem;
Expand Down
46 changes: 46 additions & 0 deletions blocks/agent-profile/design-4.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.design-4.traditional main .section.agent-profile-container .agent-profile-wrapper .agent-profile.block .profile-image img,
.design-4.calm main .section.agent-profile-container .agent-profile-wrapper .agent-profile.block .profile-image img {
width: 136px;
height: 136px;
}

.design-4.traditional main .section.agent-profile-container .agent-profile-wrapper .agent-profile.block .profile-content,
.design-4.calm main .section.agent-profile-container .agent-profile-wrapper .agent-profile.block .profile-content{
padding-left: 0;
}


.design-4.traditional main .section.agent-profile-container .agent-profile-wrapper .agent-profile.block .profile-content .phone,
.design-4.traditional main .section.agent-profile-container .agent-profile-wrapper .agent-profile.block .profile-content .email a,
.design-4.traditional main .section.agent-profile-container .agent-profile-wrapper .agent-profile.block .profile-content .website,
.design-4.traditional main .section.agent-profile-container .agent-profile-wrapper .agent-profile.block .profile-content .name,
.design-4.traditional main .section.agent-profile-container .agent-profile-wrapper .agent-profile.block .profile-content .designation,
.design-4.traditional main .section.agent-profile-container .agent-profile-wrapper .agent-profile.block .profile-content .license-number {
color: var(--tertiary-color) !important;
}

.design-4.traditional main .section.agent-profile-container .agent-profile-wrapper .agent-profile.block .profile-content .contact-me a{
border: 1px solid var(--tertiary-color);
color: var(--tertiary-color);
}

.design-4.traditional main .section.agent-profile-container .agent-profile-wrapper .agent-profile.block .profile-content .social .icon img {
filter: brightness(0) invert(1);
}

.design-4.traditional main .section.agent-profile-container .agent-profile-wrapper {
background-color:#2a2223 !important;
width: inherit !important;
margin-bottom: 10px;
}

.design-4.calm main .section.agent-profile-container .agent-profile-wrapper {
background-color: #bad8e1;
width: inherit !important;
margin-bottom: 10px;
}

.design-4.traditional main .section.agent-profile-container .agent-profile-wrapper .agent-profile.block,
.design-4.calm main .section.agent-profile-container .agent-profile-wrapper .agent-profile.block {
display: block !important;
}
2 changes: 2 additions & 0 deletions blocks/agent-transactions/agent-transactions.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@import url('./design-1.css');
@import url('./design-4.css');


.agent-transactions.block table {
width: 100%;
Expand Down
1 change: 0 additions & 1 deletion blocks/agent-transactions/agent-transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export default async function decorate(block) {
if (transactionsData.length === 0) {
return;
}

const thList = ['address', 'city', 'state', 'sold price', 'beds', 'baths', 'approx sq. ft.', 'type', 'closed date'];
const thDefault = { class: 'default', list: [0, 3] };
const thMedium = { class: 'medium', list: [1, 2] };
Expand Down
12 changes: 12 additions & 0 deletions blocks/agent-transactions/design-4.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

.design-4.traditional .agent-transactions.block thead {
background: var(--primary-color);
}

.design-4.calm .agent-transactions.block thead {
background-color: #bad8e1;
}

.design-4.traditional .agent-transactions.block a {
color: var(--primary-color);
}
2 changes: 2 additions & 0 deletions blocks/avm-report/avm-report.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url('design-4.css');

.avm-report.block {
max-width: 600px;
}
Expand Down
1 change: 0 additions & 1 deletion blocks/avm-report/avm-report.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { showModal } from '../../scripts/util.js';

import loadMaps from '../../scripts/google-maps/index.js';

let autocompleteAttached = false;
Expand Down
14 changes: 14 additions & 0 deletions blocks/avm-report/design-4.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.design-4.traditional main .avm-report-container {
background-color: #2a2223;
}

.design-4.calm main .avm-report-container {
background-color: #bad8e1;
}


.design-4.traditional main .avm-report-container .avm-report.block h2,
.design-4.traditional main .avm-report-container .avm-report.block p{
color: white;
}

2 changes: 2 additions & 0 deletions blocks/cards/cards.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url('design-4.css');

.cards.block {
padding-bottom: 32px;
}
Expand Down
8 changes: 8 additions & 0 deletions blocks/cards/design-4.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.design-4.traditional main .cards.block.icons .cards-list .cards-item .card-body p,
.design-4.traditional main .cards.block.icons .cards-list .cards-item .card-body h4 {
color: white;
}

.design-4.traditional main .cards.block.icons .cards-list .cards-item .icon img {
filter: brightness(0) invert(1);
}
13 changes: 13 additions & 0 deletions blocks/floatingagent/design-4.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.design-4 .floatingagent.block {
background-color: var(--primary-color);
}

.design-4 .floatingagent.block > .agentinfo > p , .design-4 .floatingagent.block > .agentinfo > h2 {
color: var(--tertiary-color) !important;
}

.design-4 .floatingagent.block > .contactagent {
background: var(--tertiary-color);
color: var(--primary-color);
}

3 changes: 3 additions & 0 deletions blocks/floatingagent/floatingagent.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url('design-4.css');

.floatingagent.block {
display: flex;
align-items: center;
Expand All @@ -24,6 +26,7 @@
.floatingagent.block > .contactagent {
display: block;
align-self: center;
font-weight: 800;
background: var(--primary-color);
color: var(--tertiary-color);
border: 0;
Expand Down
1 change: 0 additions & 1 deletion blocks/floatingagent/floatingagent.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export default function decorate(block) {
);

const contactButton = a({ class: 'contactagent', href: '/fragments/contact-property-form' }, 'CONTACT AGENT');

block.append(
div({ class: 'floating-agent-col' }, agentPicture),
agentInfo,
Expand Down
Loading