summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'themes/mantra')
-rw-r--r--themes/mantra/admin/main.php10
-rw-r--r--themes/mantra/admin/settings.php11
-rw-r--r--themes/mantra/content/content-aside.php2
-rw-r--r--themes/mantra/content/content-chat.php2
-rw-r--r--themes/mantra/content/content-image.php2
-rw-r--r--themes/mantra/content/content-link.php2
-rw-r--r--themes/mantra/content/content-quote.php2
-rw-r--r--themes/mantra/content/content-status.php2
-rw-r--r--themes/mantra/functions.php2
-rw-r--r--themes/mantra/includes/custom-styles.php62
-rw-r--r--themes/mantra/includes/theme-functions.php12
-rw-r--r--themes/mantra/readme.txt13
-rw-r--r--themes/mantra/resources/css/style-mobile.css9
-rw-r--r--themes/mantra/style.css94
14 files changed, 161 insertions, 64 deletions
diff --git a/themes/mantra/admin/main.php b/themes/mantra/admin/main.php
index d769a9e6..8187cbf1 100644
--- a/themes/mantra/admin/main.php
+++ b/themes/mantra/admin/main.php
@@ -204,11 +204,11 @@ function mantra_init_fn(){
add_settings_field('mantra_fheader', __('Featured Images as HEADER Images ','mantra') , 'cryout_setting_fheader_fn', 'mantra-page', 'featured_section');
/*** socials ***/
- add_settings_field('mantra_socials1', __('Link nr. 1','mantra') , 'cryout_setting_socials1_fn', 'mantra-page', 'socials_section');
- add_settings_field('mantra_socials2', __('Link nr. 2','mantra') , 'cryout_setting_socials2_fn', 'mantra-page', 'socials_section');
- add_settings_field('mantra_socials3', __('Link nr. 3','mantra') , 'cryout_setting_socials3_fn', 'mantra-page', 'socials_section');
- add_settings_field('mantra_socials4', __('Link nr. 4','mantra') , 'cryout_setting_socials4_fn', 'mantra-page', 'socials_section');
- add_settings_field('mantra_socials5', __('Link nr. 5','mantra') , 'cryout_setting_socials5_fn', 'mantra-page', 'socials_section');
+ add_settings_field('mantra_socials1', __('Link #1','mantra') , 'cryout_setting_socials1_fn', 'mantra-page', 'socials_section');
+ add_settings_field('mantra_socials2', __('Link #2','mantra') , 'cryout_setting_socials2_fn', 'mantra-page', 'socials_section');
+ add_settings_field('mantra_socials3', __('Link #3','mantra') , 'cryout_setting_socials3_fn', 'mantra-page', 'socials_section');
+ add_settings_field('mantra_socials4', __('Link #4','mantra') , 'cryout_setting_socials4_fn', 'mantra-page', 'socials_section');
+ add_settings_field('mantra_socials5', __('Link #5','mantra') , 'cryout_setting_socials5_fn', 'mantra-page', 'socials_section');
add_settings_field('mantra_socialshow', __('Socials display','mantra') , 'cryout_setting_socialsdisplay_fn', 'mantra-page', 'socials_section');
/*** misc ***/
diff --git a/themes/mantra/admin/settings.php b/themes/mantra/admin/settings.php
index 81875345..fba14efd 100644
--- a/themes/mantra/admin/settings.php
+++ b/themes/mantra/admin/settings.php
@@ -529,7 +529,7 @@ function cryout_setting_fronttext_fn() {
<div class='slidebox'>
<h4 class='slidetitle'><?php _e("Hide areas","mantra")?> </h4>
<div class='slidercontent'>
- <div style='width:100%;'><?php _e("Choose the areas to hide on the first page.","mantra") ?></div>
+ <div style='width:100%;'><?php _e("Choose the areas to hide on the homepage.","mantra") ?></div>
<?php
$options = array( "FronHeader", "FrontMenu", "FrontWidget" , "FrontFooter","FrontBack");
@@ -1552,8 +1552,7 @@ function cryout_setting_fheader_fn() {
echo ">$labels[$id]</option>";
}
echo "</select>";
- echo "<div><small>".__("Show featured images on headers. The header will be replaced with a featured image if you selected it as a Featured Image in the post and
- and if it is bigger or at least equal to the current header size.","mantra")."</small></div>";
+ echo "<div><small>".__("Show featured images on headers. The header will be replaced with a featured image if you selected it as a Featured Image in the post and and if it is bigger or at least equal to the current header size.","mantra")."</small></div>";
}
@@ -1602,15 +1601,15 @@ function cryout_setting_socials2_fn() {
}
function cryout_setting_socials3_fn() {
-cryout_setting_social_master(5);
+ cryout_setting_social_master(5);
}
function cryout_setting_socials4_fn() {
-cryout_setting_social_master(7);
+ cryout_setting_social_master(7);
}
function cryout_setting_socials5_fn() {
-cryout_setting_social_master(9);
+ cryout_setting_social_master(9);
}
function cryout_setting_socialsdisplay_fn() {
diff --git a/themes/mantra/content/content-aside.php b/themes/mantra/content/content-aside.php
index 5b275d81..0ce1ca03 100644
--- a/themes/mantra/content/content-aside.php
+++ b/themes/mantra/content/content-aside.php
@@ -14,7 +14,7 @@
<header class="entry-header">
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'mantra' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php cryout_post_title_hook(); ?>
- <div class="entry-meta2">
+ <div class="entry-meta entry-meta2">
<h3 class="entry-format"><?php _e( 'Aside', 'mantra' ); ?></h3>
<?php mantra_posted_on(); ?>
<?php /* if ( comments_open() && ! post_password_required() ) :*/ ?>
diff --git a/themes/mantra/content/content-chat.php b/themes/mantra/content/content-chat.php
index d85f0784..51569e96 100644
--- a/themes/mantra/content/content-chat.php
+++ b/themes/mantra/content/content-chat.php
@@ -14,7 +14,7 @@
<header class="entry-header">
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'mantra' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php cryout_post_title_hook(); ?>
- <div class="entry-meta2">
+ <div class="entry-meta entry-meta2">
<h3 class="entry-format"><?php _e( 'Chat', 'mantra' ); ?></h3>
<?php mantra_posted_on(); ?>
<?php /* if ( comments_open() && ! post_password_required() ) :*/ ?>
diff --git a/themes/mantra/content/content-image.php b/themes/mantra/content/content-image.php
index c53ea855..84906277 100644
--- a/themes/mantra/content/content-image.php
+++ b/themes/mantra/content/content-image.php
@@ -13,7 +13,7 @@
<header class="entry-header">
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'mantra' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php cryout_post_title_hook(); ?>
- <div class="entry-meta2">
+ <div class="entry-meta entry-meta2">
<h3 class="entry-format"><?php _e( 'Image', 'mantra' ); ?></h3>
<?php mantra_posted_on(); ?>
<?php /* if ( comments_open() && ! post_password_required() ) :*/ ?>
diff --git a/themes/mantra/content/content-link.php b/themes/mantra/content/content-link.php
index e6f6493c..ac9c1d47 100644
--- a/themes/mantra/content/content-link.php
+++ b/themes/mantra/content/content-link.php
@@ -14,7 +14,7 @@
<header class="entry-header">
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'mantra' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php cryout_post_title_hook(); ?>
- <div class="entry-meta2">
+ <div class="entry-meta entry-meta2">
<h3 class="entry-format"><?php _e( 'Link', 'mantra' ); ?></h3>
<?php mantra_posted_on(); ?>
<?php /* if ( comments_open() && ! post_password_required() ) :*/ ?>
diff --git a/themes/mantra/content/content-quote.php b/themes/mantra/content/content-quote.php
index b0105a79..695625ab 100644
--- a/themes/mantra/content/content-quote.php
+++ b/themes/mantra/content/content-quote.php
@@ -12,7 +12,7 @@
<header class="entry-header">
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'mantra' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php cryout_post_title_hook(); ?>
- <div class="entry-meta2">
+ <div class="entry-meta entry-meta2">
<h3 class="entry-format"><?php _e( 'Quote', 'mantra' ); ?></h3>
<?php mantra_posted_on(); ?>
<?php /* if ( comments_open() && ! post_password_required() ) :*/ ?>
diff --git a/themes/mantra/content/content-status.php b/themes/mantra/content/content-status.php
index 75d91d6b..38ee0abd 100644
--- a/themes/mantra/content/content-status.php
+++ b/themes/mantra/content/content-status.php
@@ -24,7 +24,7 @@
<div class="avatar">
<?php echo get_avatar( get_the_author_meta( 'ID' ), apply_filters( 'mantra_status_avatar', '65' ) ); ?>
</div>
- <div class="entry-meta2">
+ <div class="entry-meta entry-meta2">
<h3 class="entry-format"><?php _e( 'Status', 'mantra' ); ?></h3>
<?php mantra_posted_on(); ?>
<?php /* if ( comments_open() && ! post_password_required() ) :*/ ?>
diff --git a/themes/mantra/functions.php b/themes/mantra/functions.php
index ff875ae0..764325e6 100644
--- a/themes/mantra/functions.php
+++ b/themes/mantra/functions.php
@@ -9,7 +9,7 @@
// theme specifics
define ('_CRYOUT_THEME_NAME','mantra');
-define ('_CRYOUT_THEME_VERSION','3.1.0');
+define ('_CRYOUT_THEME_VERSION','3.2.0');
require_once(get_template_directory() . "/admin/main.php"); // Load necessary admin files
diff --git a/themes/mantra/includes/custom-styles.php b/themes/mantra/includes/custom-styles.php
index 9ec4b91b..aa398636 100644
--- a/themes/mantra/includes/custom-styles.php
+++ b/themes/mantra/includes/custom-styles.php
@@ -1,13 +1,50 @@
<?php
-function cryout_optset($var, $val1, $val2='', $val3='', $val4=''){
- $vals = array( $val1, $val2, $val3, $val4 );
- if ( in_array($var, $vals) ) {
- return false;
- } else {
- return true;
+function mantra_body_classes($classes) {
+ $options = mantra_get_theme_options();
+
+ $classes[] = sprintf( 'mantra-image-%s', strtolower($options['mantra_image']) );
+ $classes[] = sprintf( 'mantra-caption-%s', preg_replace('/[^a-z0-9]/i', '-', strtolower($options['mantra_caption']) ) );
+ $classes[] = sprintf( 'mantra-hratio-%s', intval($options['mantra_hratio']) );
+
+ // layout classes are for frontend reference only; styling is still below, case dependent
+ switch ($options['mantra_side']):
+ case "1c": $classes[] = 'mantra-no-sidebar'; break;
+ case "2cSr": $classes[] = 'mantra-sidebar-right'; break;
+ case "2cSl": $classes[] = 'mantra-sidebar-left'; break;
+ case "3cSr": $classes[] = 'mantra-sidebars-right'; break;
+ case "3cSl": $classes[] = 'mantra-sidebars-left'; break;
+ case "3cSs": $classes[] = 'mantra-sidebars-sided'; break;
+ endswitch;
+
+ $magazine_layout = FALSE;
+ if ($options['mantra_magazinelayout'] == "Enable") {
+ if (is_front_page()) {
+ if ( ($options['mantra_frontpage'] == "Enable") && (($options['mantra_frontposts']) != "Disable") ) { /* not magazine layout */ }
+ else { $magazine_layout = TRUE; }
+ } else {
+ $magazine_layout = TRUE;
+ }
}
-}
+ if ( is_front_page() && ($options['mantra_frontpage'] == "Enable") && (($options['mantra_frontposts']) == "Enable") ) { $magazine_layout = TRUE; }
+ if ($magazine_layout) $classes[] = 'mantra-magazine-layout';
+
+ if ( is_front_page() && ($options['mantra_frontpage'] == "Enable") && (get_option('show_on_front') == 'posts') ) {
+ $classes[] = 'mantra-presentation-page';
+ $classes[] = sprintf( 'mantra-coldisplay-%s', $options['mantra_nrcolumns'] );
+ }
+
+ switch ($options['mantra_menualign']):
+ case "center": $classes[] = 'mantra-menu-center'; break;
+ case "right": $classes[] = 'mantra-menu-right'; break;
+ case "rightmulti": $classes[] = 'mantra-menu-rightmulti'; break;
+ default: $classes[] = 'mantra-menu-left'; break;
+ endswitch;
+
+ return $classes;
+} // mantra_body_classes()
+add_filter( 'body_class', 'mantra_body_classes' );
+
function mantra_custom_styles() {
$options = mantra_get_theme_options();
@@ -141,14 +178,14 @@ function mantra_custom_styles() {
elseif ($mantra_fontsubheader != "Default") { ?> .entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4,
.entry-content h5, .entry-content h6 {font-family:<?php echo $mantra_fontsubheader ?>; }<?php }
- if ($mantra_caption != "Light") { ?> #content .wp-caption { <?php
+/* if ($mantra_caption != "Light") { ?> #content .wp-caption { <?php
if ($mantra_caption == "White") { ?> background-color:#FFF;<?php }
elseif ($mantra_caption == "Light Gray") {?> background-color:#EEE;<?php }
elseif ($mantra_caption == "Gray") {?> background-color:#CCC;<?php }
elseif ($mantra_caption == "Dark Gray") {?> background-color:#444; color:#CCC;<?php }
elseif ($mantra_caption == "Black") {?> background-color:#000; color:#CCC;<?php }
?> }
- <?php }
+ <?php } */
if ($mantra_menurounded == "Disable") { ?> #access ul li {border-radius:0;}<?php }
if ($mantra_metaback == "White") { ?> .entry-meta { background:#FFF;} <?php }
elseif ($mantra_metaback == "None") { ?> .entry-meta { background:#FFF;border:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;} <?php }
@@ -197,12 +234,6 @@ function mantra_custom_styles() {
#footer-widget-area a { color:<?php echo esc_attr( $mantra_footertext ); ?>; }
#footer-widget-area a:hover { color:<?php echo esc_attr( $mantra_footerhover ); ?>; } <?php
- switch ($mantra_menualign) {
- case "center": ?> #access ul { display: table; margin: 0 auto; } <?php break;
- case "right": ?> #access .menu-header, div.menu { float: right; } <?php break;
- default: break;
- } // switch ?>
-
#content .wp-caption { background-image:url(<?php echo get_template_directory_uri() . "/resources/images/pins/" . esc_attr($mantra_pin); ?>.png); } <?php
if ($mantra_sidebullet != "arrow_white") { ?> .widget-area ul ul li { background-image: url(<?php echo get_template_directory_uri() . "/resources/images/bullets/" . esc_attr($mantra_sidebullet); ?>.png); background-position: left calc(2em / 2 - 4px); } <?php }
@@ -223,7 +254,6 @@ function mantra_custom_styles() {
if (($mantra_mobile == "Enable") && $mantra_hcontain) { ?> #branding { -webkit-background-size: contain !important; -moz-background-size: contain !important; background-size: contain !important; } <?php } ?>
#branding { height:<?php echo $mantra_hheight; ?>px ;} <?php
- if ($mantra_hratio) { ?> @media (max-width: 800px) {#branding, #bg_image { min-height:inherit !important; } }<?php }
return ob_get_clean();
} // mantra_custom_styles()
diff --git a/themes/mantra/includes/theme-functions.php b/themes/mantra/includes/theme-functions.php
index dfadb1cd..889764e5 100644
--- a/themes/mantra/includes/theme-functions.php
+++ b/themes/mantra/includes/theme-functions.php
@@ -267,7 +267,7 @@ add_filter( 'wp_link_pages_args', 'mantra_nextpage_links' );
function mantra_site_info() { ?>
<div style="text-align:center;clear:both;padding-top:4px;" >
<a href="<?php echo esc_url( home_url( '/' ) ) ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
- <?php bloginfo( 'name' ); ?></a> | <?php _e('Powered by','mantra')?> <a target="_blank" href="<?php echo 'http://www.cryoutcreations.eu';?>" title="<?php echo 'Mantra Theme by '.
+ <?php bloginfo( 'name' ); ?></a> | <?php _e('Powered by','mantra')?> <a target="_blank" href="<?php echo 'http://www.cryoutcreations.eu/mantra';?>" title="<?php echo 'Mantra Theme by '.
'Cryout Creations';?>"><?php echo 'Mantra' ?></a> &amp; <a target="_blank" href="<?php echo esc_url('http://wordpress.org/' ); ?>"
title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'mantra'); ?>"> <?php printf(' %s.', 'WordPress' ); ?>
</a>
@@ -282,7 +282,7 @@ add_action( 'cryout_footer_hook', 'mantra_site_info', 12 );
function mantra_copyright() {
global $mantra_options; ?>
<div id="site-copyright">
- <?php echo $mantra_options['mantra_copyright'] ?>
+ <?php echo wp_kses_post( do_shortcode( $mantra_options['mantra_copyright'] ) ) ?>
</div>
<?php
}
@@ -350,4 +350,12 @@ function mantra_fav_icon() {
if ($mantra_options['mantra_favicon']) add_action( 'cryout_header_hook', 'mantra_fav_icon' );
+/**
+* WordPress 5.2+ wp_body_open() support
+*/
+function mantra_wp_body_open() {
+ do_action( 'wp_body_open' );
+}
+add_action( 'cryout_body_hook', 'mantra_wp_body_open', 5 );
+
// FIN \ No newline at end of file
diff --git a/themes/mantra/readme.txt b/themes/mantra/readme.txt
index 563bab36..e5309064 100644
--- a/themes/mantra/readme.txt
+++ b/themes/mantra/readme.txt
@@ -4,8 +4,8 @@ Copyright 2011-19 Cryout Creations
Author: Cryout Creations
Requires at least: 4.2
-Tested up to: 5.0.3
-Stable tag: 3.1.0
+Tested up to: 5.2
+Stable tag: 3.2.0
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl.html
Donate link: https://www.cryoutcreations.eu/donate/
@@ -95,6 +95,15 @@ Turkish - Emre Dalkili�
== Changelog ==
+= 3.2.0 =
+* Added support for WordPress 5.2 wp_body_open() hook
+* Added shortcodes support in custom footer text
+* Rewrote some styling to use body classes instead of generated inline CSS (menu alignment, caption style, image border style, header image ratio)
+* Extended content image border option to apply to Gutenberg inserted images
+* Fixed left/right social icons overlapped by sidebar widget titles on some screen sizes
+* Fixed featured images sometimes getting cropped due to overflowing their container
+* Fixed sidebars sometimes using absolute height on mobile devices
+
= 3.1.0 =
* Added 'mantra_header_image_crop' filter for 'header' image size crop position attribute
* Added HTML markup auto-correction on presentation page extra text areas
diff --git a/themes/mantra/resources/css/style-mobile.css b/themes/mantra/resources/css/style-mobile.css
index 7aea81d3..c7374d6c 100644
--- a/themes/mantra/resources/css/style-mobile.css
+++ b/themes/mantra/resources/css/style-mobile.css
@@ -23,7 +23,7 @@
body {
font-size: .95em;
}
-
+
#content,
#frontpage,
#frontpage + #container > #content,
@@ -65,6 +65,11 @@
width: 100%;
}
+ .mantra-hratio-1 #branding,
+ .mantra-hratio-1 #bg_image {
+ min-height: inherit !important;
+ }
+
#header-container > div {
margin-top: 7px;
margin-left: 14px;
@@ -110,7 +115,7 @@
#primary,
#secondary {
width: 100%;
- height: auto;
+ height: auto !important;
}
#slider,
diff --git a/themes/mantra/style.css b/themes/mantra/style.css
index 7f9f1905..fe8ae72d 100644
--- a/themes/mantra/style.css
+++ b/themes/mantra/style.css
@@ -4,7 +4,7 @@ Theme URI: https://www.cryoutcreations.eu/wordpress-themes/mantra
Description: Mantra is a do-it-yourself WordPress theme, featuring a pack of over 100 customization options and easy to use tweaks capable of tuning WordPress to your very specific needs and likes. With the help of a simple and efficient user interface you can customize everything:the layout (1,2 or 3 columns), total and partial site widths, colors (all texts, links, backgrounds etc.), fonts (over 35 font-families plus all Google Fonts), text and header sizes, post metas, post excerpts, post formats, header and background images, custom menus, 27 social media links and icons, pins, bullets and much much more. With a fully responsive layout,a customizable showcase presentation page, animated slider, magazine and blog layouts, 8 widget areas, modern graphics and an easy and intuitive admin section, you can start creating your dream site right now.
Author: Cryout Creations
Author URI: https://www.cryoutcreations.eu
-Version: 3.1.0
+Version: 3.2.0
License: GNU General Public License v2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, three-columns, right-sidebar, left-sidebar, footer-widgets, grid-layout, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, front-page-post-form, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, blog, entertainment, news
@@ -733,8 +733,8 @@ div.menu {
margin-bottom: 0;
}
- #access ul li.current_page_item,
- #access ul li.current-menu-item {
+#access ul li.current_page_item,
+#access ul li.current-menu-item {
background: #fff;
box-shadow: none;
}
@@ -866,6 +866,17 @@ a.continue-reading-link,
color: #5F5B5B;
}
+.mantra-menu-center #access ul {
+ display: table;
+ margin: 0 auto;
+}
+
+.mantra-menu-right #access .menu-header,
+.mantra-menu-right div.menu {
+ float: right;
+}
+
+
/* =Menu -SECONDARY
-------------------------------------------------------------- */
@@ -1531,6 +1542,11 @@ article.format-aside h3.entry-format {
/* =Images
-------------------------------------------------------------- */
+.post-thumbnail {
+ max-width: 100%;
+ height: auto;
+}
+
.entry-content img {
margin: 0;
height: auto;
@@ -1544,21 +1560,24 @@ article.format-aside h3.entry-format {
img:hover {}
.alignleft,
-img.alignleft {
+img.alignleft,
+.alignleft img {
float: left;
margin-right: 24px;
margin-top: 4px;
}
.alignright,
-img.alignright {
+img.alignright,
+.alignright img {
float: right;
margin-top: 4px;
margin-left: 24px;
}
.aligncenter,
-img.aligncenter {
+img.aligncenter,
+.aligncenter img {
clear: both;
margin-right: auto;
margin-left: auto;
@@ -1584,14 +1603,14 @@ img.aligncenter {
.wp-caption img {
width: 100%;
- margin: 0 auto;
+ margin: 0 auto 5px;
padding: 0;
border: none;
box-shadow: none;
}
.wp-caption p.wp-caption-text {
- padding: 10px;
+ padding: 5px;
font-size: .9em;
text-align: center;
text-indent: 0;
@@ -1611,6 +1630,12 @@ img.aligncenter {
height: auto;
}
+.mantra-caption-light #content .wp-caption {}
+.mantra-caption-white #content .wp-caption { background-color: #FFF; }
+.mantra-caption-light-gray #content .wp-caption { background-color: #EEE; }
+.mantra-caption-gray #content .wp-caption { background-color: #CCC; }
+.mantra-caption-dark-gray #content .wp-caption { background-color: #444; color: #CCC; }
+.mantra-caption-black #content .wp-caption { background-color: #000; color: #CCC; }
/* =Navigation
-------------------------------------------------------------- */
@@ -1702,7 +1727,7 @@ h3#comments-title {
margin: 0 0 10px 0;
padding: 0 0px 10px 56px;
position: relative;
- line-height: 24px;
+/* line-height: 24px; */
list-style: none;
background: #FFF;
background-image:none;
@@ -1762,12 +1787,13 @@ h3#comments-title {
.comment-meta {
display: block;
float: left;
- margin-bottom: 5px;
+ margin-bottom: 0;
margin-left: 10px;
font-size: .8em;
text-transform: uppercase;
opacity: 0.5;
letter-spacing: 1px;
+ line-height: 27px;
}
.comment-meta a:link,
@@ -2399,6 +2425,7 @@ img#wpstats {
top: 50%;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
+ z-index: 100;
}
#smenul a,
@@ -2489,15 +2516,24 @@ article.sticky {
}
/* CUSTOM IMAGE BORDER */
-.entry-content .imageOne,
-.entry-summary .imageOne {
+.mantra-image-none .entry-content img[class*='align'],
+.mantra-image-none .entry-content [class*='wp-block'][class*='align'] img,
+.mantra-image-none .entry-summary img[class*='align'],
+.mantra-image-none .entry-summary [class*='wp-block'][class*='align'] img { }
+
+.mantra-image-one .entry-content img[class*='align'],
+.mantra-image-one .entry-content [class*='wp-block'][class*='align'] img,
+.mantra-image-one .entry-summary img[class*='align'],
+.mantra-image-one .entry-summary [class*='wp-block'][class*='align'] img {
height: auto;
padding: 3px;
border: 1px solid #DDD !important;
}
-.entry-content .imageTwo,
-.entry-summary .imageTwo {
+.mantra-image-two .entry-content img[class*='align'],
+.mantra-image-two .entry-content [class*='wp-block'][class*='align'] img,
+.mantra-image-two .entry-summary img[class*='align'],
+.mantra-image-two .entry-summary [class*='wp-block'][class*='align'] img {
padding: 3px;
border: 1px solid #EEE;
background-color: #FFFFFF;
@@ -2505,33 +2541,43 @@ article.sticky {
box-shadow: 0 0 4px #CCC;
}
-.entry-content .imageThree,
-.entry-summary .imageThree {
+.mantra-image-three .entry-content img[class*='align'],
+.mantra-image-three .entry-content [class*='wp-block'][class*='align'] img,
+.mantra-image-three .entry-summary img[class*='align'],
+.mantra-image-three .entry-summary [class*='wp-block'][class*='align'] img {
padding: 3px;
border: 6px solid #EEEEEE;
border-radius: 5px;
background-color: #FFFFFF;
}
-.entry-content .imageFour,
-.entry-summary .imageFour {
+.mantra-image-four .entry-content img[class*='align'],
+.mantra-image-four .entry-content [class*='wp-block'][class*='align'] img,
+.mantra-image-four .entry-summary img[class*='align'],
+.mantra-image-four .entry-summary [class*='wp-block'][class*='align'] img {
border: 1px solid #666 !important;
box-shadow: 0 3px 4px #999;
}
-.entry-content .imageFive,
-.entry-summary .imageFive {
+.mantra-image-five .entry-content img[class*='align'],
+.mantra-image-five .entry-content [class*='wp-block'][class*='align'] img,
+.mantra-image-five .entry-summary img[class*='align'],
+.mantra-image-five .entry-summary [class*='wp-block'][class*='align'] img {
border: 3px solid #DDD !important;
}
-.entry-content .imageSix,
-.entry-summary .imageSix {
+.mantra-image-six .entry-content img[class*='align'],
+.mantra-image-six .entry-content [class*='wp-block'][class*='align'] img,
+.mantra-image-six .entry-summary img[class*='align'],
+.mantra-image-six .entry-summary [class*='wp-block'][class*='align'] img {
border: 8px solid #BBB !important;
box-shadow: 0 0 5px #333;
}
-.entry-content .imageSeven,
-.entry-summary .imageSeven {
+.mantra-image-seven .entry-content img[class*='align'],
+.mantra-image-seven .entry-content [class*='wp-block'][class*='align'] img,
+.mantra-image-seven .entry-summary img[class*='align'],
+.mantra-image-seven .entry-summary [class*='wp-block'][class*='align'] img {
padding: 7px;
border: 1px solid #CCC;
background-color: #FFFFFF;