From da707cf8a64852737af3c2534bbe12845df83254 Mon Sep 17 00:00:00 2001 From: AlxMedia Date: Mon, 20 Sep 2021 21:39:45 +0200 Subject: [PATCH] Magic grid responsive fixes, readme screenshot images credit added --- content.php | 2 +- footer.php | 2 +- functions.php | 4 +--- readme.txt | 10 ++++++---- responsive.css | 7 ++++++- style.css | 4 ++-- 6 files changed, 17 insertions(+), 12 deletions(-) diff --git a/content.php b/content.php index ee42b85..8f83998 100644 --- a/content.php +++ b/content.php @@ -6,7 +6,7 @@
- + <?php the_title_attribute(); ?> diff --git a/footer.php b/footer.php index d19cc4b..50519d2 100644 --- a/footer.php +++ b/footer.php @@ -64,7 +64,7 @@ diff --git a/functions.php b/functions.php index 479c761..c1b5e26 100644 --- a/functions.php +++ b/functions.php @@ -74,8 +74,7 @@ if ( ! function_exists( 'gridframe_setup' ) ) { // Thumbnail sizes add_image_size( 'gridframe-small', 200, 200, true ); - add_image_size( 'gridframe-medium', 520, 520, true ); - add_image_size( 'gridframe-medium-h', 520 ); + add_image_size( 'gridframe-medium', 400 ); add_image_size( 'gridframe-large', 940 ); // Thumbnail sizes custom widgets @@ -539,7 +538,6 @@ if ( ! function_exists( 'gridframe_body_class' ) ) { if ( get_theme_mod( 'boxed','off' ) == 'on' ) { $classes[] = 'boxed'; } if ( has_nav_menu( 'mobile' ) ) { $classes[] = 'mobile-menu'; } if ( get_theme_mod( 'mobile-sidebar-hide','on' ) != 'on' ) { $classes[] = 'mobile-sidebar-hide'; } - if ( get_theme_mod('profile-image') || get_theme_mod('profile-name') || get_theme_mod('profile-description') ) { $classes[] = 'skew-active'; } if (! ( is_user_logged_in() ) ) { $classes[] = 'logged-out'; } return $classes; } diff --git a/readme.txt b/readme.txt index 0707a2b..7c9c425 100644 --- a/readme.txt +++ b/readme.txt @@ -72,13 +72,15 @@ Screenshot images License: CC0 1.0 Universal (CC0 1.0) Source: https://stocksnap.io -Sidebar images -1. https://stocksnap.io/photo/X - CC0 1.0 Universal (CC0 1.0) +Header images +1. https://stocksnap.io/photo/TNK87N7464 - CC0 1.0 Universal (CC0 1.0) Content images -1. https://stocksnap.io/photo/X - CC0 1.0 Universal (CC0 1.0) +1. https://stocksnap.io/photo/R7J4JSU0EE - CC0 1.0 Universal (CC0 1.0) +2. https://stocksnap.io/photo/ETYYX6WJQI - CC0 1.0 Universal (CC0 1.0) +3. https://stocksnap.io/photo/ZCIZ1AWXTC - CC0 1.0 Universal (CC0 1.0) == Changelog == -= 1.0.0 - 2021-09-10 = += 1.0.0 - 2021-09-21 = * Initial release diff --git a/responsive.css b/responsive.css index 9c36879..be19591 100644 --- a/responsive.css +++ b/responsive.css @@ -1,5 +1,9 @@ #wrapper { min-width: 320px; } +@media only screen and (min-width: 1024px) and (max-width: 1024px) { + .type-portfolio { width: 300px; } +} + @media only screen and (max-width: 960px) { #profile-name { font-size: 44px; } } @@ -147,7 +151,8 @@ #profile-name, #profile-description { padding-left: 20px; padding-right: 20px; } - .type-portfolio { width: 100%; padding-left: 20px; padding-right: 20px; box-sizing: border-box; } + .magic-grid { margin-left: 20px; margin-right: 20px; } + .type-portfolio { width: 100%; } .front-widgets { margin-left: 20px; margin-right: 20px; } .content { padding: 0; } diff --git a/style.css b/style.css index d17eace..0197fed 100644 --- a/style.css +++ b/style.css @@ -1368,10 +1368,10 @@ li #reply-title { font-size: 0; margin: 0!important; padding: 0; height: 0; bord .wp-pagenavi a:active, .wp-pagenavi span.current { color: #333; } -.wp-pagenavi a { background: #eee; border-radius: 4px; color: #333; border: none; box-shadow: inset 0 1px 0 rgba(0,0,0,0.05); } +.wp-pagenavi a { background: #e5e5e5; border-radius: 20px; color: #333; border: none; box-shadow: inset 0 1px 0 rgba(0,0,0,0.05); } .wp-pagenavi a:hover, .wp-pagenavi a:active, -.wp-pagenavi span.current { background: #e5e5e5; border-radius: 4px; border: none; box-shadow: 0 1px 0 rgba(0,0,0,0.05); } +.wp-pagenavi span.current { background: #fff; border-radius: 20px; border: none; box-shadow: 0 1px 0 rgba(0,0,0,0.05); } /* ------------------------------------------------------------------------- *