Skip to content

Commit

Permalink
1.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
webmandesign committed Feb 18, 2022
1 parent 0a45768 commit e2dc282
Show file tree
Hide file tree
Showing 25 changed files with 86 additions and 33 deletions.
2 changes: 1 addition & 1 deletion assets/css/blocks-rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/blocks.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/editor-style-blocks-rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/editor-style-blocks.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/editor-style-classic-rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/editor-style-classic.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/global-rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/global.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/scss/blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @copyright WebMan Design, Oliver Juhas
//
// @since 1.0.0
// @version 1.3.4
// @version 1.3.5
//

$left: left;
Expand Down
19 changes: 13 additions & 6 deletions assets/scss/blocks/_cover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,19 @@
background-size: cover;
}

.has-background-dim[class*="-gradient-background"] {
background-color: transparent;
> .has-background-dim,
> .wp-block-cover__gradient-background {
margin-bottom: 0;

&.has-background-gradient {
background-color: transparent;
}

// WP 5.9 fix:
&::before {
display: none;
}

}

.wp-block-cover__inner-container {
Expand Down Expand Up @@ -63,10 +74,6 @@

}

&__gradient-background {
margin-bottom: 0;
}

&.is-style-scale-image {
background-repeat: no-repeat;
background-size: contain;
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/blocks/_latest-posts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
width: calc( 100% - var(--posts_list_gap) );
}

&[class*=columns-] li {
&[class*="columns-"] li {
margin: calc( var(--posts_list_gap) / 2 );
}

Expand Down
1 change: 1 addition & 0 deletions assets/scss/editor-block/_accessibility.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
min-height: 40px !important;
padding: .25em 0 !important;
padding-#{$right}: 50px; // Making space for the icon.
margin-top: 0 !important;
font-size: 1em !important;
font-weight: 700 !important;
text-transform: none !important;
Expand Down
1 change: 1 addition & 0 deletions assets/scss/editor-block/blocks/__index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
@import 'list';
@import 'media-text';
@import 'paragraph';
@import 'post-title';
@import 'preformatted';
@import 'pullquote';
@import 'quote';
Expand Down
6 changes: 6 additions & 0 deletions assets/scss/editor-block/blocks/_post-title.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* FILE: editor-block/blocks/_post-title.scss */

#{ $selector_editor_wrapper } .wp-block-post-title {
max-width: $max_width_content;
font-size: 2em;
}
2 changes: 1 addition & 1 deletion assets/scss/editor-style-blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// @copyright WebMan Design, Oliver Juhas
//
// @since 1.0.0
// @version 1.3.3
// @version 1.3.5
//

$left: left;
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @copyright WebMan Design, Oliver Juhas
//
// @since 1.0.0
// @version 1.3.1
// @version 1.3.5
//

$left: left;
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/global/form/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fieldset {
}

legend {
margin: 0 0 ( $ratio +em );
margin: 0 0 ( $ratio +rem );
font-size: var(--typography_font_size_S_em);
font-weight: 700;
text-transform: uppercase;
Expand Down
4 changes: 2 additions & 2 deletions assets/scss/global/wp/_alignment.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
float: left;

&,
[class^=wp-block-] & {
[class*="wp-block-"] & {
margin-right: var(--typography_font_size_base); // Simulating rem unit for block editor.

@include media( map_get( $breakpoint, 'l' ) ) {
Expand All @@ -33,7 +33,7 @@
float: right;

&,
[class^=wp-block-] & {
[class*="wp-block-"] & {
margin-left: var(--typography_font_size_base); // Simulating rem unit for block editor.

@include media( map_get( $breakpoint, 'l' ) ) {
Expand Down
20 changes: 20 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Michelle Changelog

## 1.3.5, 20220218

### Updated
- Improving styles

### Fixed
- WordPress 5.9 bugs
- Editor style bugs
- Filter hook name for disabling JavaScript

### File updates
changelog.md
readme.txt
style.css
assets/scss/blocks.scss
assets/scss/editor-style-blocks.scss
assets/scss/global.scss
includes/Assets/Factory.php


## 1.3.4, 20220201

### Fixed
Expand Down
17 changes: 14 additions & 3 deletions includes/Assets/Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@ public static function setup_classic_editor() {
// Variables

/**
* The `0` key item has to be empty to bypass WordPress native
* RTL stylesheet enqueuing (duplicating the `0` key stylesheet
* and additionally enqueuing its RTL version).
* The `0` key is reserved for WordPress.
* WordPress duplicates this stylesheet and makes an RTL version for it.
* This is obviously not ideal when we enqueue multiple stylesheets and
* want RTL for all of those. That's why we make our own RTL versions below.
* @see add_editor_style()
* @link https://developer.wordpress.org/reference/functions/add_editor_style/
*/
$styles = array( 0 => '' );

Expand Down Expand Up @@ -89,6 +92,14 @@ public static function setup_classic_editor() {
/**
* Enqueues block editor stylesheets.
*
* Unfortunately, we can not really use
* add_theme_support( 'editor-styles' );
* add_editor_style( [ 'editor-styles.css', 'google-fonts.css' ] );
* as that way there is no way to separate classic and block editor
* stylesheets (yes, all `add_editor_style()` stylesheets are being
* enqueued in both editors, plus block editor will replace certain
* selectors and wrap everything in `.editor-styles-wrapper`.)
*
* @since 1.0.0
* @version 1.3.3
*
Expand Down
10 changes: 6 additions & 4 deletions includes/Assets/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
* @version 1.3.0
* @version 1.3.5
*/

namespace WebManDesign\Michelle\Assets;
Expand Down Expand Up @@ -328,7 +328,8 @@ public static function is_preloading_styles_disabled(): bool {
/**
* Check whether we should disable JavaScript output.
*
* @since 1.3.0
* @since 1.3.0
* @version 1.3.5
*
* @return bool
*/
Expand All @@ -339,11 +340,12 @@ public static function is_js_disabled(): bool {
/**
* Filters whether to disable outputting JavaScript into HTML.
*
* @since 1.3.0
* @since 1.3.0
* @version 1.3.5
*
* @param bool $disabled By default, returns false.
*/
return (bool) apply_filters( 'michelle/assets/scripts/is_js_disabled', false );
return (bool) apply_filters( 'michelle/assets/is_js_disabled', false );

} // /is_js_disabled

Expand Down
2 changes: 1 addition & 1 deletion includes/Content/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public static function register_reusable_blocks_args( array $args, string $post_
}


// Output
// Output

return $args;

Expand Down
7 changes: 6 additions & 1 deletion includes/Setup/Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@ public static function after_setup_theme() {
add_theme_support( 'custom-spacing' );

// Experimental
add_theme_support( 'experimental-link-color' ); // Check `--wp--style--color--link` CSS variable.
/**
* Check `--wp--style--color--link` CSS variable.
* Does not work in WP 5.9 without `theme.json`,
* which on the other hand causes so much more issues...
*/
add_theme_support( 'experimental-link-color' );

} // /after_setup_theme

Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ Please see `changelog.md` file.

== Upgrade Notice ==

= 1.3.4 =
Fixing columns block last column margin.
= 1.3.5 =
Fixing bugs, improving styles.


== Copyright ==
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Theme Name: Michelle
Theme URI: https://www.webmandesign.eu/portfolio/michelle-wordpress-theme/
Author: WebMan Design
Author URI: https://www.webmandesign.eu/
Version: 1.3.4
Version: 1.3.5
Text Domain: michelle
Domain Path: /languages
License: GPL-3.0-or-later
Expand Down

0 comments on commit e2dc282

Please sign in to comment.