Skip to content

Commit

Permalink
Merge branch '2.0.1-update'
Browse files Browse the repository at this point in the history
  • Loading branch information
krugazul committed Jan 24, 2025
2 parents 0044154 + 07ca606 commit afba0f5
Show file tree
Hide file tree
Showing 103 changed files with 2,004 additions and 1,516 deletions.
68 changes: 68 additions & 0 deletions assets/css/scss/_maps.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
.lsx-map {
&.wp-block-group.hidden {
display: none;
}
}

.lsx-to-map-marker {
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-flow: row nowrap;
flex-flow: row nowrap;
height: auto;
-webkit-box-pack: start;
-ms-flex-pack: start;
justify-content: flex-start;
padding: 5px 0;
width: 100%;

.lsx-to-map-marker-content {
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
color: var(--wp--preset--color--contrast);

&.content-area {
margin: 0;
}

.entry-content {
margin-top: 10px;

p {
margin-bottom: 0;
margin-top: 1.2rem;

> a.moretag:after {
color: inherit;
content: '\f178';
display: inline-block;
font-family: 'FontAwesome';
font-size: inherit;
margin-right: 5px;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
}
}
}

.lsx-to-map-marker-img {
margin-right: 15px;
max-width: 100px;
-ms-flex-negative: 0;
flex-shrink: 0;
}

.lsx-to-map-marker-title {
margin-bottom: 10px;
margin-top: 0;
}
}
49 changes: 49 additions & 0 deletions assets/css/scss/_modals.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/* The Modal (background) */


.lsx-modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */

&.open {
display: block;
}

/* Modal Content/Box */
.modal-content {
background-color: #fefefe;
margin: 15% auto; /* 15% from the top and centered */
padding: 10px 20px;
border: 3px solid var(--wp--preset--color--primary);
border-radius: 6px;
width: var(--wp--style--global--content-size); /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
color: #aaa;
float: right;
font-size: 32px;
font-weight: bold;
line-height: 0;
height: auto;
padding-top: 10px;
margin-right: -8px;

&:hover,
&:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
}
}

114 changes: 102 additions & 12 deletions assets/css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
@import 'scss/additional';
@import 'scss/slider';
@import 'scss/collapse';
@import 'scss/modals';
@import 'scss/maps';

.lsx-itinerary-wrapper,
.lsx-units-wrapper {
Expand Down
Binary file removed assets/img/Typecalendar-icon.png
Binary file not shown.
Binary file removed assets/img/Typetours-icon.png
Binary file not shown.
Binary file removed assets/img/accommodation-type-TO-icon-black-20px.png
Binary file not shown.
Binary file removed assets/img/accommodation.png
Binary file not shown.
Binary file removed assets/img/activities.png
Binary file not shown.
Binary file removed assets/img/best-months-to-travel-TO-icon-black-20px.png
Binary file not shown.
Binary file removed assets/img/dates-travelled-icon-black-20px.png
Binary file not shown.
Binary file removed assets/img/duration-icon-black-20px.png
Binary file not shown.
Binary file removed assets/img/from-price-TO-icon-black-20px.png
Binary file not shown.
3 changes: 0 additions & 3 deletions assets/img/left-arrow-new.svg

This file was deleted.

Binary file removed assets/img/map-TO-icon-black-20px.png
Binary file not shown.
Binary file removed assets/img/mystery-man-square.png
Binary file not shown.
Binary file removed assets/img/mystery-man-wide.png
Binary file not shown.
Binary file removed assets/img/offers.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-map-1170x400.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-map-350x350.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-map-400x400.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-page-350x350.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-page-360x168.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-page-750x350.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-page-general.jpg
Diff not rendered.
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-post-350x350.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-post-360x168.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-post-750x350.jpg
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-team-350x350.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-team-360x168.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-team-750x350.jpg
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-tour-360x168.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-tour-750x350.jpg
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/img/restaurants.png
Diff not rendered.
69 changes: 68 additions & 1 deletion assets/js/blocks/general.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// metadata.bindings not handle correctly

wp.domReady(() => {

Expand Down Expand Up @@ -572,5 +571,73 @@ wp.domReady(() => {
renaming: false
}
});

// Price Block
wp.blocks.registerBlockVariation("core/group", {
name: "lsx-tour-operator/price",
title: "Price",
category: 'lsx-tour-operator',
icon: 'money-alt',
attributes: {
metadata: {
name: "Price",
},
align: "wide",
layout: {
type: "flex",
flexWrap: "nowrap",
},
className: "lsx-price-wrapper",
style: {
spacing: {
blockGap: "5px",
},
},
},
innerBlocks: [
[
"core/paragraph",
{
padding: {
top: "2px",
bottom: "2px",
},
typography: {
fontSize: "x-small",
},
content: "<strong>From:</strong>",
className: "has-x-small-font-size",
},
],
[
"core/paragraph",
{
metadata: {
bindings: {
content: {
source: "lsx/post-meta",
args: {
key: "price"
},
},
},
},
className: "amount has-primary-color has-text-color has-link-color",
padding: {
top: "2px",
bottom: "2px",
},
color: {
link: "primary-700",
text: "primary-700",
},
},
],
],
isDefault: false,
supports: {
renaming: false
}
});
});

Loading

0 comments on commit afba0f5

Please sign in to comment.