Website Summary Files Commits Branches @commit @diff @stats
path: root / wp-content / themes / carmag / assets / src
diff options
context:
space:
mode:
diff --git a/wp-content/themes/carmag/assets/src/sass/components/_card.scss b/wp-content/themes/carmag/assets/src/sass/components/_card.scss
index 8d38219..00ac903 100755
--- a/wp-content/themes/carmag/assets/src/sass/components/_card.scss
+++ b/wp-content/themes/carmag/assets/src/sass/components/_card.scss
@@ -44,7 +44,6 @@
align-items: center;
background-color: transparent;
border-top: 1px solid rgba(255, 255, 255, 0.75);
- padding: 0;
width: 100%;
text-align: left;
padding: 10px 0;
diff --git a/wp-content/themes/carmag/assets/src/sass/components/_carousel.scss b/wp-content/themes/carmag/assets/src/sass/components/_carousel.scss
index 64d6679..ca983f3 100644
--- a/wp-content/themes/carmag/assets/src/sass/components/_carousel.scss
+++ b/wp-content/themes/carmag/assets/src/sass/components/_carousel.scss
@@ -40,6 +40,7 @@
align-items: center;
transition: 0.3s;
cursor: pointer;
+
div {
width: 25px;
height: 25px;
@@ -85,11 +86,13 @@
flex-wrap: nowrap;
overflow: hidden;
gap: 16px;
+
div {
min-width: 120px;
height: 80px;
margin: 0;
cursor: pointer;
+
img {
width: 120px;
display: block;
diff --git a/wp-content/themes/carmag/assets/src/sass/components/_seller-card.scss b/wp-content/themes/carmag/assets/src/sass/components/_seller-card.scss
index d51100d..99d8181 100644
--- a/wp-content/themes/carmag/assets/src/sass/components/_seller-card.scss
+++ b/wp-content/themes/carmag/assets/src/sass/components/_seller-card.scss
@@ -11,6 +11,7 @@
flex-grow: 1;
padding-bottom: 50px;
min-height: 200px;
+
.gmnoprint {
display: none;
}
@@ -32,6 +33,7 @@
.seller-info {
padding: 32px;
position: relative;
+
p {
font-size: 1.5rem;
font-weight: bold;
diff --git a/wp-content/themes/carmag/assets/src/sass/layout/_footer.scss b/wp-content/themes/carmag/assets/src/sass/layout/_footer.scss
index 765fbdf..e655165 100644
--- a/wp-content/themes/carmag/assets/src/sass/layout/_footer.scss
+++ b/wp-content/themes/carmag/assets/src/sass/layout/_footer.scss
@@ -1,42 +1,39 @@
.site-footer.section-fullwidth {
- padding: 80px 0 0;
-
- .site-info {
- display : flex;
- justify-content: space-evenly;
- align-items: center;
- background-color: $color-primary-dark;
- padding: 24px 0;
- width: 100%;
-
-
- .footer-icons {
- a {
- margin: 0 15px;
- color: white;
- font-size: 22px;
- }
-
- }
-
- .footer-text {
- font-size: 16px;
- font-weight: bold;
- text-align: center;
- line-height: 23px;
- color: rgba(255, 255, 255, 0.5);
-
- a {
- color: $color-primary;
- }
- }
- }
-
+ padding: 80px 0 0;
+
+ .site-info {
+ display: flex;
+ justify-content: space-evenly;
+ align-items: center;
+ background-color: $color-primary-dark;
+ padding: 24px 0;
+ width: 100%;
+
+ .footer-icons {
+ a {
+ margin: 0 15px;
+ color: white;
+ font-size: 22px;
+ }
+ }
+
+ .footer-text {
+ font-size: 16px;
+ font-weight: bold;
+ text-align: center;
+ line-height: 23px;
+ color: rgba(255, 255, 255, 0.5);
+
+ a {
+ color: $color-primary;
+ }
+ }
+ }
}
@media (max-width: 660px) {
- .site-info {
- display : flex;
- flex-direction: column;
- }
-} \ No newline at end of file
+ .site-info {
+ display: flex;
+ flex-direction: column;
+ }
+}
diff --git a/wp-content/themes/carmag/assets/src/sass/pages/_advanced-search.scss b/wp-content/themes/carmag/assets/src/sass/pages/_advanced-search.scss
index 4e1aeee..6d84108 100644
--- a/wp-content/themes/carmag/assets/src/sass/pages/_advanced-search.scss
+++ b/wp-content/themes/carmag/assets/src/sass/pages/_advanced-search.scss
@@ -1,153 +1,151 @@
.section-advanced-search {
- background-color: white;
-
+ background-color: white;
}
-
.advanced-search {
- display: flex;
- justify-content: center;
- align-items: center;
- background-color: $color-primary-dark;
- flex-direction: column;
-
-
-
- .vehicle-type {
- display: flex;
- justify-content: center;
- .type {
- margin: 35px 20px;
- color: rgba(255, 255, 255, 0.15);
- font-size: 35px;
- display: flex;
- justify-content: center;
- i {
- pointer-events: none;
- }
- }
-}
-
- h2 {
- color: #FFFFFF;
- font-size: 32px;
- }
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ background-color: $color-primary-dark;
+ flex-direction: column;
- .specifications {
- .elements {
- display: grid;
- justify-content: center;
- grid-template-columns: repeat(4, minmax(257px, 1fr));
- grid-template-rows: repeat(4, minmax(56px, 1fr));
- column-gap: 30px;
- row-gap: 15px;
- }
+ .vehicle-type {
+ display: flex;
+ justify-content: center;
+ .type {
+ margin: 35px 20px;
+ color: rgba(255, 255, 255, 0.15);
+ font-size: 35px;
+ display: flex;
+ justify-content: center;
+ i {
+ pointer-events: none;
+ }
+ }
+ }
- h2 {
- text-align: center;
- margin-bottom: 100px;
- color: black;
- }
+ h2 {
+ color: #ffffff;
+ font-size: 32px;
+ }
- select, .input {
- color: #FFFFFF;
- background: #232323;
- border-bottom: none;
- border-top: none;
- border-left: none;
- border-right: none;
- text-indent: 10px;
+ .specifications {
+ .elements {
+ display: grid;
+ justify-content: center;
+ grid-template-columns: repeat(4, minmax(257px, 1fr));
+ grid-template-rows: repeat(4, minmax(56px, 1fr));
+ column-gap: 30px;
+ row-gap: 15px;
+ }
- }
+ h2 {
+ text-align: center;
+ margin-bottom: 100px;
+ color: black;
+ }
- .price-first::first-letter {
- color: $color-primary
- }
+ select,
+ .input {
+ color: #ffffff;
+ background: #232323;
+ border-bottom: none;
+ border-top: none;
+ border-left: none;
+ border-right: none;
+ text-indent: 10px;
+ }
- .price-second::first-letter {
- color: $color-primary
- }
+ .price-first::first-letter {
+ color: $color-primary;
+ }
- .wrapper {
- display: flex;
- flex-direction: row;
- column-gap: 2px;
- }
+ .price-second::first-letter {
+ color: $color-primary;
+ }
- .separator {
- flex: 0 12px 4px;
- display: inline-block;
- text-align: center;
- font-size: 27px;
- background: #232323;
- color: #656565;
- padding: 10px 5px;
- }
+ .wrapper {
+ display: flex;
+ flex-direction: row;
+ column-gap: 2px;
+ }
- .price-first {
- font-size:20px;
- color: #FFFFFF;
- background: #232323;
- float: left;
- width: 130px;
- height: 65px;
- border-bottom: none;
- border-top: none;
- border-left: none;
- border-right: none;
- text-align: center;
- }
+ .separator {
+ flex: 0 12px 4px;
+ display: inline-block;
+ text-align: center;
+ font-size: 27px;
+ background: #232323;
+ color: #656565;
+ padding: 10px 5px;
+ }
- .price-second {
- font-size:20px;
- color: #FFFFFF;
- background: #232323;
- float: right;
- width: 130px;
- height: 65px;
- border-bottom: none;
- border-top: none;
- border-left: none;
- border-right: none;
- text-align: center;
- }
+ .price-first {
+ font-size: 20px;
+ color: #ffffff;
+ background: #232323;
+ float: left;
+ width: 130px;
+ height: 65px;
+ border-bottom: none;
+ border-top: none;
+ border-left: none;
+ border-right: none;
+ text-align: center;
+ }
- ::-webkit-input-placeholder { /* Edge */
- color: #FFFFFF;
- }
+ .price-second {
+ font-size: 20px;
+ color: #ffffff;
+ background: #232323;
+ float: right;
+ width: 130px;
+ height: 65px;
+ border-bottom: none;
+ border-top: none;
+ border-left: none;
+ border-right: none;
+ text-align: center;
+ }
- :-ms-input-placeholder { /* Internet Explorer */
- color: #FFFFFF;
- }
+ ::-webkit-input-placeholder {
+ /* Edge */
+ color: #ffffff;
+ }
- ::placeholder {
- color: #FFFFFF;
- }
+ :-ms-input-placeholder {
+ /* Internet Explorer */
+ color: #ffffff;
+ }
- }
+ ::placeholder {
+ color: #ffffff;
+ }
+ }
- .searchButton {
- display:inline-block;
- font-family: Quantico;
- font-weight: bolder;
- text-align: center;
- font-size: 17px;
- margin-bottom: 40px;
- float: right;
- width: 70%;
- }
+ .searchButton {
+ display: inline-block;
+ font-family: Quantico;
+ font-weight: bolder;
+ text-align: center;
+ font-size: 17px;
+ margin-bottom: 40px;
+ float: right;
+ width: 70%;
+ }
}
@media (max-width: 1120px) {
- .simple-search{
- .elements {
- display:inline-grid;
- justify-content: center;
- }
+ .simple-search {
+ .elements {
+ display: inline-grid;
+ justify-content: center;
+ }
- .price-first, .price-second {
- display:inline-grid;
- justify-content: center;
- }
- }
+ .price-first,
+ .price-second {
+ display: inline-grid;
+ justify-content: center;
+ }
+ }
}
diff --git a/wp-content/themes/carmag/assets/src/sass/pages/_faq.scss b/wp-content/themes/carmag/assets/src/sass/pages/_faq.scss
index d6947be..35f5a25 100644
--- a/wp-content/themes/carmag/assets/src/sass/pages/_faq.scss
+++ b/wp-content/themes/carmag/assets/src/sass/pages/_faq.scss
@@ -4,6 +4,7 @@
margin: 0 auto;
padding: 30px 25px;
+
.content-area {
background-color: white;
diff --git a/wp-content/themes/carmag/assets/src/sass/pages/_homepage.scss b/wp-content/themes/carmag/assets/src/sass/pages/_homepage.scss
index 282187c..1eaeb7a 100755
--- a/wp-content/themes/carmag/assets/src/sass/pages/_homepage.scss
+++ b/wp-content/themes/carmag/assets/src/sass/pages/_homepage.scss
@@ -1,4 +1,6 @@
-.-latestoffers {
+.section-latestoffers {
+ padding: 80px 0;
+
.latestoffers-text {
justify-content: center;
padding-bottom: 20px;
@@ -10,179 +12,215 @@
}
}
- .section-search {
- background-color: $color-primary-dark;
- padding: 0px;
- }
+.section-search {
+ background-color: $color-primary-dark;
-.simple-search {
- display: flex;
- justify-content: center;
- align-items: center;
- background-color: $color-primary-dark;
- flex-direction: column;
- font-family: Roboto;
+ .row {
+ .column {
+ .simple-search {
+ display: flex;
+ background-color: $color-primary-dark;
+ flex-direction: column;
+ font-family: $font-secondary;
+ h2 {
+ color: white;
+ margin-bottom: 5px;
+ }
- .vehicle-type {
- display: flex;
- .type {
- margin: 10px 5px;
- color: rgba(255, 255, 255, 0.15);
- font-size: 32px;
- display: flex;
- justify-content: center;
- i {
- pointer-events: none;
- }
- }
- }
+ .search-form {
+ display: flex;
+ flex-direction: column;
- h2 {
- color: #FFFFFF;
- font-size: 32px;
- }
+ .form-content {
+ display: flex;
+ flex-direction: row;
- .specifications {
- .elements {
- display: grid;
- justify-content: center;
- float: left;
- grid-template-columns: repeat(5, 1fr);
- column-gap: 5px;
- }
+ .wrapper-price {
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ background-color: darken($color-primary-dark, 5);
+ border: 1px solid rgba(255, 255, 255, 0.1);
- h2 {
- text-align: left;
- margin-bottom: 10px;
- margin-top: 10px;
- color: #FFFFFF;
+ .price {
+ position: relative;
- }
+ &:before {
+ content: "$";
+ position: absolute;
+ color: $color-primary;
+ margin-left: 20px;
+ top: 0;
+ bottom: 0;
+ display: flex;
+ align-items: center;
+ font-size: 18px;
+ font-weight: bold;
+ }
+ }
- select, .input {
- color: #FFFFFF;
- background: #232323;
- border-bottom: none;
- border-top: none;
- border-left: none;
- border-right: none;
- text-indent: 10px;
+ .switcher {
+ font-size: 30px;
+ color: lighten($color-primary-dark, 20);
+ cursor: pointer;
+ i {
+ pointer-events: none;
+ }
+ }
- }
+ .form-field {
+ text-align: center;
+ font-size: 18px;
+ padding-left: 35px;
+ border: none;
+ min-width: 100px;
- .price-first::first-letter {
- color: $color-primary
- }
+ &::-webkit-inner-spin-button,
+ &::-webkit-outer-spin-button,
+ &[type="number"] {
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ appearance: none;
+ }
+ }
+ }
+
+ .form-field {
+ color: white;
+ outline: none;
+ background-color: darken($color-primary-dark, 5);
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ padding: 20px;
+ font-weight: bold;
+ max-width: 200px;
+ width: 100%;
+ }
- .price-second::first-letter {
- color: $color-primary
- }
+ input.form-field {
+ }
+ }
- .wrapper {
+ .form-actions {
display: flex;
flex-direction: row;
- column-gap: 2px;
- }
+ justify-content: space-between;
+ align-items: center;
+ margin-top: 20px;
- .separator {
- flex: 0 12px 4px;
- display: inline-block;
- text-align: center;
- font-size: 27px;
- background: #232323;
- color: #656565;
- padding: 10px 5px;
- }
+ .actions-vehicle-type {
+ font-size: 32px;
- .price-first {
- font-size:20px;
- font-weight: bold;
- color: #FFFFFF;
- background: #232323;
- float: left;
- width: 130px;
- height: 65px;
- border-bottom: none;
- border-top: none;
- border-left: none;
- border-right: none;
- text-align: center;
- }
+ span {
+ margin: 0 5px;
+ cursor: pointer;
- .price-second {
- font-size:20px;
- font-weight: bold;
- color: #FFFFFF;
- background: #232323;
- float: right;
- width: 130px;
- height: 65px;
- border-bottom: none;
- border-top: none;
- border-left: none;
- border-right: none;
- text-align: center;
- }
+ i {
+ pointer-events: none;
+ }
- ::-webkit-input-placeholder { /* Edge */
- color: #FFFFFF;
- }
+ &.selected {
+ color: white;
+ }
+ }
+ }
- :-ms-input-placeholder { /* Internet Explorer */
- color: #FFFFFF;
- }
+ .actions-buttons {
+ .search-button {
+ font-family: $font-sans;
+ }
- ::placeholder {
- color: #FFFFFF;
- }
+ .advanced-button {
+ font-family: $font-sans;
+ background-color: #afcf80;
- }
+ &:hover {
+ background-color: darken(#afcf80, 5%);
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
- .searchButton {
- display:inline-block;
- font-family: Quantico;
- font-weight: bolder;
- text-align: center;
- font-size: 17px;
- float: right;
- width: 14%;
- }
+@media only screen and (max-width: $breakpoint-medium) {
+ .section-search {
+ .row {
+ .column {
+ .simple-search {
+ .search-form {
+ .form-content {
+ flex-wrap: wrap;
- .advanced-button {
- background-color: #afcf80;
- display:inline-block;
- font-family: Quantico;
- font-weight: bolder;
- text-align: center;
- font-size: 12px;
- margin-right: 21px;
- margin-top: 2px;
- float: right;
- width: 10%;
- padding: 1em 3px;
- text-decoration: none;
- color: #232323;
- transition: 0.3s;
- }
+ .wrapper-price {
+ width: 100%;
+ }
- .advanced-button:hover {
- opacity: 0.8;
- transition: 0.3s;
+ .form-field {
+ max-width: 50%;
+ }
+ }
+ }
+ }
+ }
+ }
}
}
-@media (max-width: 1120px) {
- .simple-search{
- .elements {
- display:inline-grid;
- justify-content: center;
- }
+@media only screen and (max-width: 670px) {
+ .section-latestoffers {
+ padding: 50px 0;
+ }
+
+ .section-search {
+ padding-top: 130px;
+
+ .row {
+ .column {
+ .simple-search {
+ .search-form {
+ .form-actions {
+ flex-direction: column;
- .price-first, .price-second {
- display:inline-grid;
- justify-content: center;
+ .actions-buttons {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+
+ .button {
+ margin: 5px 0;
+ }
+ }
}
- }
+ }
+ }
+ }
+ }
+ }
+}
+
+@media only screen and (max-width: 375px) {
+ .section-search {
+ .row {
+ .column {
+ .simple-search {
+ h2 {
+ text-align: center;
+ }
+
+ .search-form {
+ .form-content {
+ .form-field {
+ max-width: 100%;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
}
diff --git a/wp-content/themes/carmag/assets/src/sass/pages/_single-vehicle.scss b/wp-content/themes/carmag/assets/src/sass/pages/_single-vehicle.scss
index 1f529a6..2c32a0d 100644
--- a/wp-content/themes/carmag/assets/src/sass/pages/_single-vehicle.scss
+++ b/wp-content/themes/carmag/assets/src/sass/pages/_single-vehicle.scss
@@ -38,10 +38,12 @@
margin: 0 0 0 16px;
}
}
+
.vehicle-description {
padding: 0 32px;
color: $color-primary-dark;
}
+
.seller-card {
grid-row: 2;
}
diff --git a/wp-content/themes/carmag/assets/src/scripts/scripts.js b/wp-content/themes/carmag/assets/src/scripts/scripts.js
index f58c82e..93e8823 100755
--- a/wp-content/themes/carmag/assets/src/scripts/scripts.js
+++ b/wp-content/themes/carmag/assets/src/scripts/scripts.js
@@ -46,10 +46,10 @@ faqFields.forEach((field) => {
let selectedBrand = document.getElementById("brands");
let modelsNames = Object.keys(carModels);
modelsNames.forEach((model) => {
- let option = document.createElement("option");
- option.value = model;
- option.innerHTML = model;
- selectedBrand.appendChild(option);
+ let option = document.createElement("option");
+ option.value = model;
+ option.innerHTML = model;
+ selectedBrand.appendChild(option);
});
const handleModels = () => {
const brand = event.target.value;
@@ -58,18 +58,18 @@ const handleModels = () => {
modelsSelect.innerHTML = "";
modelsSelect.append(defaultOption);
let models;
- if(selectedType.value === "car") {
+ if (selectedType.value === "car") {
models = carModels;
- } else if(selectedType.value === "truck") {
+ } else if (selectedType.value === "truck") {
models = truckModels;
- } else if(selectedType.value === "motorcycle") {
+ } else if (selectedType.value === "motorcycle") {
models = motorcycleModels;
- } else if(selectedType.value === "tractor") {
+ } else if (selectedType.value === "tractor") {
models = agriculturalBrands;
- } else if(selectedType.value === "bus") {
+ } else if (selectedType.value === "bus") {
models = busModels;
}
- if(brand) {
+ if (brand) {
models[brand].forEach((model) => {
let option = document.createElement("option");
option.value = model;
@@ -82,27 +82,27 @@ const handleModels = () => {
option.innerHTML = "Model";
modelsSelect.appendChild(option);
}
-}
+};
let selectedType = document.getElementById("category");
let types = document.querySelectorAll(".type");
-types.forEach(type => {
- type.addEventListener("click", () => {
+types.forEach((type) => {
+ type.addEventListener("click", () => {
event.stopPropagation();
- types.forEach(type => {
+ types.forEach((type) => {
type.classList.remove("selected");
- })
+ });
event.target.classList.add("selected");
selectedType.value = event.target.id;
let models;
- if(selectedType.value === "car") {
+ if (selectedType.value === "car") {
models = carModels;
- } else if(selectedType.value === "truck") {
+ } else if (selectedType.value === "truck") {
models = truckModels;
- } else if(selectedType.value === "motorcycle") {
+ } else if (selectedType.value === "motorcycle") {
models = motorcycleModels;
- } else if(selectedType.value === "tractor") {
+ } else if (selectedType.value === "tractor") {
models = agriculturalBrands;
- } else if(selectedType.value === "bus") {
+ } else if (selectedType.value === "bus") {
models = busModels;
}
modelsNames = Object.keys(models);
@@ -115,5 +115,18 @@ types.forEach(type => {
option.innerHTML = model;
selectedBrand.appendChild(option);
});
- })
-})
+ });
+});
+
+const switcher = document.querySelectorAll(".switcher")[0];
+if (switcher) {
+ switcher.addEventListener("click", () => {
+ event.stopPropagation();
+ const firstPrice = document.querySelectorAll(".price-first")[0];
+ const secondPrice = document.querySelectorAll(".price-second")[0];
+ [firstPrice.value, secondPrice.value] = [
+ secondPrice.value,
+ firstPrice.value,
+ ];
+ });
+}