Skip to content

Commit

Permalink
2.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
webmandesign committed Mar 25, 2022
1 parent 4537651 commit 344991d
Show file tree
Hide file tree
Showing 13 changed files with 59 additions and 125 deletions.
29 changes: 5 additions & 24 deletions assets/css/main-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -1665,7 +1665,7 @@ form[role=search] .search-field,
.comment-list .children {
clear: both;
margin: 0;
margin-right: 1.62em;
margin-right: 1em;
}
@media only screen and (min-width: 42em) {
.comment-list .children {
Expand Down Expand Up @@ -2077,7 +2077,7 @@ div.sharedaddy .sd-social .sd-button .share-count {
/* FILE: main/icons/_icons.scss */
.breadcrumbs .home::before, .widget_archive li::before, .widget_categories li::before, .widget_pages li::before, .widget_recent_comments li::before, .widget_recent_entries li::before, .pingback .comment-body::before,
.trackback .comment-body::before, .comment-edit-link::before,
.comment-reply-link::before, .bypostauthor > .comment-body .comment-author::before, .entry-meta .tags-links a::before, .format-status .entry-content::before, .posts .format-link .entry-content a::before, .format-image .entry-media::before, .posts .type-page .entry-title::before, .posts .sticky::before, .social-links a.back-to-top::before, .menu-toggle::before, .post-password-form::before, .site form[role=search]::before,
.comment-reply-link::before, .entry-meta .tags-links a::before, .format-status .entry-content::before, .posts .format-link .entry-content a::before, .format-image .entry-media::before, .posts .type-page .entry-title::before, .posts .sticky::before, .social-links a.back-to-top::before, .menu-toggle::before, .post-password-form::before, .site form[role=search]::before,
.site .search-form::before, blockquote::before, .entry-meta-description::before, .slick-arrow::before {
font-family: "Genericons-Neue";
font-style: normal;
Expand Down Expand Up @@ -5049,28 +5049,9 @@ a .entry-date {
list-style: decimal;
}

@media only screen and (max-width: 41.9375em) {
.bypostauthor > .comment-body .comment-author .avatar {
border-left: 0.38em solid;
}
}
@media only screen and (min-width: 42em) {
.bypostauthor > .comment-body .comment-author::before {
content: "";
position: absolute;
display: block;
width: 30px;
height: 30px;
right: 25px;
top: 65px;
margin-top: 1.62em;
font-size: 16px;
line-height: 28px;
text-align: center;
font-size: 1.19em;
border-radius: 50%;
z-index: 1;
}
.bypostauthor > .comment-body .vcard .fn::before {
content: "✍️ ";
speak: none;
}

.comment-edit-link,
Expand Down
29 changes: 5 additions & 24 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1660,7 +1660,7 @@ form[role=search] .search-field,
.comment-list .children {
clear: both;
margin: 0;
margin-left: 1.62em;
margin-left: 1em;
}
@media only screen and (min-width: 42em) {
.comment-list .children {
Expand Down Expand Up @@ -2072,7 +2072,7 @@ div.sharedaddy .sd-social .sd-button .share-count {
/* FILE: main/icons/_icons.scss */
.breadcrumbs .home::before, .widget_archive li::before, .widget_categories li::before, .widget_pages li::before, .widget_recent_comments li::before, .widget_recent_entries li::before, .pingback .comment-body::before,
.trackback .comment-body::before, .comment-edit-link::before,
.comment-reply-link::before, .bypostauthor > .comment-body .comment-author::before, .entry-meta .tags-links a::before, .format-status .entry-content::before, .posts .format-link .entry-content a::before, .format-image .entry-media::before, .posts .type-page .entry-title::before, .posts .sticky::before, .social-links a.back-to-top::before, .menu-toggle::before, .post-password-form::before, .site form[role=search]::before,
.comment-reply-link::before, .entry-meta .tags-links a::before, .format-status .entry-content::before, .posts .format-link .entry-content a::before, .format-image .entry-media::before, .posts .type-page .entry-title::before, .posts .sticky::before, .social-links a.back-to-top::before, .menu-toggle::before, .post-password-form::before, .site form[role=search]::before,
.site .search-form::before, blockquote::before, .entry-meta-description::before, .slick-arrow::before {
font-family: "Genericons-Neue";
font-style: normal;
Expand Down Expand Up @@ -5044,28 +5044,9 @@ a .entry-date {
list-style: decimal;
}

@media only screen and (max-width: 41.9375em) {
.bypostauthor > .comment-body .comment-author .avatar {
border-left: 0.38em solid;
}
}
@media only screen and (min-width: 42em) {
.bypostauthor > .comment-body .comment-author::before {
content: "";
position: absolute;
display: block;
width: 30px;
height: 30px;
left: 25px;
top: 65px;
margin-top: 1.62em;
font-size: 16px;
line-height: 28px;
text-align: center;
font-size: 1.19em;
border-radius: 50%;
z-index: 1;
}
.bypostauthor > .comment-body .vcard .fn::before {
content: "✍️ ";
speak: none;
}

.comment-edit-link,
Expand Down
20 changes: 9 additions & 11 deletions assets/js/scripts-global.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,22 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
* @version 2.5.0
* @version 2.5.1
*/

( function() {
'use strict';

// Tell CSS that JS is enabled...
var nojs = document.getElementsByClassName( 'no-js' );
for ( var i = 0, max = nojs.length; i < max; i++ ) {
if ( nojs[ i ] ) {
nojs[ i ].classList.remove( 'no-js' );
}
}
const nojs = document.querySelectorAll( '.no-js' );
nojs.forEach( ( item ) => {
item.classList.remove( 'no-js' );
} );

// Fixing Recent Comments widget multiple appearances.
var widgetRecentComments = document.querySelector( '.widget_recent_comments ul' );
for ( var i = 0, max = widgetRecentComments.length; i < max; i++ ) {
widgetRecentComments[ i ].removeAttribute( 'id' );
}
const widgetRecentCommentsUL = document.querySelectorAll( '.widget_recent_comments ul' );
widgetRecentCommentsUL.forEach( ( item ) => {
item.removeAttribute( 'id' );
} );

} )();
1 change: 1 addition & 0 deletions assets/js/scripts-global.min.js

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

4 changes: 2 additions & 2 deletions assets/js/scripts-navigation-mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.4.5
* @version 2.5.0
* @version 2.5.1
*/

( function() {
Expand Down Expand Up @@ -62,7 +62,7 @@
const
selectors = 'a, button, input:not([type=hidden]), select',
elements = container.querySelectorAll( selectors ),
firstEl = elements[0];
firstEl = elements[0],
lastEl = elements[ elements.length - 1 ],
activeEl = document.activeElement,
tabKey = ( 9 === event.keyCode ),
Expand Down
1 change: 1 addition & 0 deletions assets/js/scripts-navigation-mobile.min.js

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

21 changes: 6 additions & 15 deletions assets/scss/main-rtl.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,13 @@
// @copyright WebMan Design, Oliver Juhas
//

$language_direction: rtl;
$rtl_multiplier: -1; // For `translateX` transform, for example.

@import 'setup';

@import 'css-vars';

@import 'starter/starter';

// Setup language direction

$language_direction: rtl;



// Imports

@import 'setup';

@import 'css-vars';

@import 'starter/starter';

@import 'main/main';
@import 'main/main';
16 changes: 6 additions & 10 deletions assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,15 @@
// @copyright WebMan Design, Oliver Juhas
//
// @since 2.0.0
// @version 2.5.0
// @version 2.5.1
//

$rtl_multiplier: 1; // For `translateX` transform, for example.

@import 'setup';

@import 'css-vars';

@import 'starter/starter';

// Imports

@import 'setup';

@import 'css-vars';

@import 'starter/starter';

@import 'main/main';
@import 'main/main';
36 changes: 3 additions & 33 deletions assets/scss/main/content/__comments.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,39 +118,9 @@

// By post author

.bypostauthor > .comment-body .comment-author {

.avatar {

@include media( ( map_get( $breakpoint, 'm' ), 'max-width' ) ) {
border-left: ( $golden_minor +em ) solid;
}

}

&::before {
@extend %genericon;

@include media( map_get( $breakpoint, 'm' ) ) {
// Avatar is 80x80 px
content: '\f411';
position: absolute;
display: block;
width: 30px;
height: 30px;
#{$left}: 25px; // {{RTL}}
top: 65px;
margin-top: $golden +em;
font-size: 16px;
line-height: 28px;
text-align: center;
font-size: 1em + $golden_minor / 2;
border-radius: 50%;
z-index: 1;
}

}

.bypostauthor > .comment-body .vcard .fn::before {
content: '✍️ '; // https://emojipedia.org/writing-hand/
speak: none;
}


Expand Down
2 changes: 1 addition & 1 deletion assets/scss/starter/content/comments/__list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
.children {
clear: both;
margin: 0;
margin-#{$left}: $golden +em; // {{RTL}}
margin-#{$left}: 1em; // {{RTL}}

@include media( map_get( $breakpoint, 'm' ) ) {
margin-#{$left}: 5em - $golden; // {{RTL}}
Expand Down
15 changes: 15 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Modern Changelog

## 2.5.1, 20220325

### Fixed
- JavaScript error
- Comments responsive styles

### File updates
changelog.md
style.css
assets/js/scripts-global.js
assets/js/scripts-navigation-mobile.js
assets/scss/main.scss
includes/frontend/class-assets.php


## 2.5.0, 20220320

### Added
Expand Down
8 changes: 4 additions & 4 deletions includes/frontend/class-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 2.0.0
* @version 2.5.0
* @version 2.5.1
*
* Contents:
*
Expand Down Expand Up @@ -146,7 +146,7 @@ public static function register_styles() {
* Registering theme scripts
*
* @since 1.0.0
* @version 2.5.0
* @version 2.5.1
*/
public static function register_scripts() {

Expand All @@ -158,10 +158,10 @@ public static function register_scripts() {
'jquery-slick' => array( get_theme_file_uri( 'assets/js/vendors/slick/slick.min.js' ), 'deps' => array( 'jquery' ) ),

'modern-skip-link-focus-fix' => array( 'src' => get_theme_file_uri( 'assets/js/skip-link-focus-fix.js' ) ),
'modern-scripts-global' => array( 'src' => get_theme_file_uri( 'assets/js/scripts-global.js' ) ),
'modern-scripts-global' => array( 'src' => get_theme_file_uri( 'assets/js/scripts-global.min.js' ) ),
'modern-scripts-masonry' => array( 'src' => get_theme_file_uri( 'assets/js/scripts-masonry.js' ), 'deps' => array( 'jquery-masonry' ) ),
'modern-scripts-slick' => array( 'src' => get_theme_file_uri( 'assets/js/scripts-slick.js' ), 'deps' => array( 'jquery-slick' ) ),
'modern-scripts-nav-mobile' => array( get_theme_file_uri( 'assets/js/scripts-navigation-mobile.js' ) ),
'modern-scripts-nav-mobile' => array( get_theme_file_uri( 'assets/js/scripts-navigation-mobile.min.js' ) ),
);

$register_assets = (array) apply_filters( 'wmhook_modern_assets_register_scripts', $register_assets );
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: Modern
Theme URI: https://www.webmandesign.eu/portfolio/modern-wordpress-theme/
Author: WebMan Design
Author URI: https://www.webmandesign.eu/
Version: 2.5.0
Version: 2.5.1
Text Domain: modern
Domain Path: /languages
License: GNU General Public License v3
Expand Down

0 comments on commit 344991d

Please sign in to comment.