Skip to content

Commit

Permalink
Merge pull request #151 from lightspeedwp/update-1.4
Browse files Browse the repository at this point in the history
LSX Design 1.4.0
  • Loading branch information
krugazul authored Jul 31, 2024
2 parents 6b42dd9 + 0ea0220 commit cfef3da
Show file tree
Hide file tree
Showing 19 changed files with 201 additions and 22 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ templates/.DS_Store
assets/.DS_Store
.DS_Store
.DS_Store
.DS_Store
assets/css/.DS_Store
Binary file modified assets/css/.DS_Store
Binary file not shown.
6 changes: 6 additions & 0 deletions assets/css/blocks/button.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/blocks/button.css.map

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

6 changes: 6 additions & 0 deletions assets/css/blocks/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ $octonary: #BD5B00;
$novenary: #C5389D;
$denary: #FFB2B2;

/* === Fixes for WP Core Updates === */
:root :where(.wp-block-button .wp-block-button__link) {
text-transform: inherit !important;
}

/* === General Styles === */

.wp-block-buttons {
&.has-x-small-font-size .wp-element-button {
Expand Down
13 changes: 13 additions & 0 deletions assets/css/blocks/group.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.wp-block-group.is-style-col-seperator{border-right:1px solid #000;}
.wp-block-group.is-style-col-seperator:last-child{border-right:0px solid #000;}

.wp-block-group.is-style-shadow-xsm{box-shadow: var(--wp--preset--shadow--xsmall);}
.wp-block-group.is-style-shadow-sm{box-shadow: var(--wp--preset--shadow--small);}
.wp-block-group.is-style-shadow-m{box-shadow: var(--wp--preset--shadow--md);}
.wp-block-group.is-style-shadow-l{box-shadow: var(--wp--preset--shadow--lg);}
.wp-block-group.is-style-shadow-xl{box-shadow: var(--wp--preset--shadow--xlg);}
.wp-block-group.is-style-shadow-h{box-shadow: var(--wp--preset--shadow--huge);}

@media screen and (max-width:990px) {
.wp-block-group.is-style-col-seperator{border-right:0px solid #000!important;}
}
4 changes: 3 additions & 1 deletion assets/css/blocks/loginout.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ form#loginform input.button-primary{
}

form#loginform input.button-primary:hover{
background-color: var(--wp--custom--colour--primary--600);}
background-color: var(--wp--custom--colour--primary--600);
text-decoration: underline;
}


.is-style-compressed form#loginform p.login-remember{display:inline-flex;width:30%;}
Expand Down
10 changes: 8 additions & 2 deletions assets/css/blocks/navigation.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* BLOCK LINKS */
.wp-block-navigation .wp-block-navigation-item:hover > a.wp-block-navigation-item__content, .wp-block-navigation .wp-block-navigation-item.current-menu-item > a.wp-block-navigation-item__content{
text-decoration: underline;
.wp-block-navigation .wp-block-navigation-item:hover > a.wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation-item.current-menu-item > a.wp-block-navigation-item__content {
text-decoration: underline;
text-decoration-thickness: 2px;
text-underline-offset: 4px;
}
Expand All @@ -25,4 +26,9 @@ body .wp-block-navigation a.wp-block-navigation-item__content {

body .wp-block-navigation a.wp-block-navigation-item__content:active {
text-decoration-line: underline;
}

.wp-block-navigation .wp-element-button.wp-block-button__link:hover,
.wp-block-navigation .wp-element-button.wp-block-button__link:hover {
text-decoration: underline;
}
42 changes: 42 additions & 0 deletions assets/css/blocks/pagination.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/* Separator
--------------------------------------------- */
.is-style-square.wp-block-query-pagination{
gap: 0rem!important; justify-content: center!important;
}
.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-next:last-of-type{margin-inline-start:0!important;}
.is-style-square.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers.current{border-radius: 0px!important;}

.is-style-square.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers {border-radius: 0px!important;
padding: 10px 20px!important;}

.is-style-square.wp-block-query-pagination >.wp-block-query-pagination-previous{
margin-bottom: 0;
border: 1px solid;
padding: 10px 40px!important;
border-right:0;
margin-right:0!important;
}

.is-style-square.wp-block-query-pagination >.wp-block-query-pagination-next{
margin-bottom: 0;
border: 1px solid;
border-left:0;
padding: 10px 40px!important;
}

@media (max-width:599px) {
.is-style-square.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers {
font-size:13px!important;
padding: 10px 8px!important;border-left: 0 !important;}

.is-style-square.wp-block-query-pagination .wp-block-query-pagination-previous{
padding: 10px 5px!important;font-size:13px!important;
}

.is-style-square.wp-block-query-pagination .wp-block-query-pagination-next{
padding: 10px 8px!important;font-size:13px!important;
}

header .wp-block-social-links.has-small-icon-size{gap:4px!important;}

}
3 changes: 3 additions & 0 deletions assets/css/woocommerce.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* Woocommerce bug fixes ---------------------------------------------------------------------------- */
:root :where(.wp-element-button, .wp-block-button__link):hover {
text-decoration: underline;
}
.wc-block-components-product-image p{
padding:0!important;
margin:0!important;
Expand Down
26 changes: 26 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# LSX Design Changelog

## [[1.4.0]](https://github.com/lightspeedwp/lsx-design/releases/tag/1.4.0)

### LSX
#### Added
- Include WordPress 6.6 Grid Block compatibility with theme
- - Grid Block - Mobile compatibility - [#137](https://github.com/lightspeedwp/lsx-design/issues/137).
- - Grid Block - Image cover display issues & theme compatibility - [#135](https://github.com/lightspeedwp/lsx-design/issues/135)
- Added Group Block style - Shadow effect block styles for Group
- - Pagination Block style - Square Pagenation Block style added to theme

#### Updated
- theme.json schema updated to version - [#139](https://github.com/lightspeedwp/lsx-design/issues/139).
- theme.json default font and spacing sizes have been disabled.

#### Fixed
- Button Text Transforms not working - [#141](https://github.com/lightspeedwp/lsx-design/issues/141)
- Button hover has no underline - [#117](https://github.com/lightspeedwp/lsx-design/issues/117)
- Group Block - Group Block style - Not display in Site Editor - [#145](https://github.com/lightspeedwp/lsx-design/issues/145)
- Search results template update - No Results Block added back to template - [#143](https://github.com/lightspeedwp/lsx-design/issues/143)
- All buttons to have underline + Removing uneccesary code - [#148](https://github.com/lightspeedwp/lsx-design/issues/141)

#### Security
- General testing to ensure compatibility with latest WordPress version (6.6).



## [[1.3.1]](https://github.com/lightspeedwp/lsx-design/releases/tag/1.3.1)

### LSX
Expand Down
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
exit;
}

define( 'LSXD_VERSION', '1.3.0' );
define( 'LSXD_VERSION', '1.4.0' );

require_once get_template_directory() . '/includes/classes/class-core.php';

Expand Down
23 changes: 23 additions & 0 deletions includes/classes/class-block-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,18 @@ public function register_block_styles() {
'shadow-h' => __( 'Shadow Huge', 'lsx-design' ),

),
'core/group' => array(
'shadow-xsm' => __( 'Shadow x-S', 'lsx-design' ),
'shadow-sm' => __( 'Shadow S', 'lsx-design' ),
'shadow-m' => __( 'Shadow M', 'lsx-design' ),
'shadow-l' => __( 'Shadow L', 'lsx-design' ),
'shadow-xl' => __( 'Shadow x-L', 'lsx-design' ),
'shadow-h' => __( 'Shadow Huge', 'lsx-design' ),

),
'core/query-pagination' => array(
'square' => __( 'Square', 'lsx-design' ),
),
);

foreach ( $block_styles as $block => $styles ) {
Expand All @@ -162,6 +174,7 @@ public function register_block_styles() {
*/
public function block_editor_styles() {
wp_enqueue_style( 'editor-styles', get_template_directory_uri() . '/assets/css/editor-style.css', false, LSXD_VERSION, 'all' );
wp_enqueue_style( 'editor-styles', get_template_directory_uri() . '/assets/css/blocks/group.css', false, LSXD_VERSION, 'all' );
}

/**
Expand Down Expand Up @@ -221,6 +234,11 @@ private function get_block_assets() {
'src' => get_template_directory_uri() . '/assets/css/blocks/columns.css',
'path' => get_template_directory() . '/assets/css/blocks/columns.css',
),
'core/group' => array(
'handle' => 'lsxd-group-block-styles',
'src' => get_template_directory_uri() . '/assets/css/blocks/group.css',
'path' => get_template_directory() . '/assets/css/blocks/group.css',
),
'core/list' => array(
'handle' => 'lsxd-list-block-styles',
'src' => get_template_directory_uri() . '/assets/css/blocks/lists.css',
Expand Down Expand Up @@ -256,6 +274,11 @@ private function get_block_assets() {
'src' => get_template_directory_uri() . '/assets/css/blocks/navigation.css',
'path' => get_template_directory() . '/assets/css/blocks/navigation.css',
),
'core/query-pagination' => array(
'handle' => 'lsxd-navigation-block-styles',
'src' => get_template_directory_uri() . '/assets/css/blocks/pagination.css',
'path' => get_template_directory() . '/assets/css/blocks/pagination.css',
),
);
return $this->block_assets;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lsx-design",
"version": "1.3.1",
"version": "1.4.0",
"description": "is a light-weight, minimalistic and responsive WordPress theme that allows users to create fast, efficient and attractive websites that are feature-rich. We've built it to be fully compatible with WooCommerce, making it an ideal choice for your next eCommerce build. Its lightweight build ensures better load times, a bonus for both user experience and SEO.",
"main": "gulpfile.js",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Contributors: feedmymedia, lightspeedwp, eleshar, krugazul, justinabes
Donate link: https://lsx.design/
Tags: blog, e-commerce, education
Requires at least: 6.0
Tested up to: 6.5
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 1.3.1
Stable tag: 1.4.0
License: GPLv3
Licence URI: https://www.gnu.org/licenses/gpl-3.0.en.html

Expand Down
Loading

0 comments on commit cfef3da

Please sign in to comment.