first commit

This commit is contained in:
CHIEFSOFT\ameye
2023-11-30 13:20:54 -05:00
commit e9e5c0546c
5833 changed files with 1801865 additions and 0 deletions
@@ -0,0 +1,216 @@
<?php
/**
* The admin-specific functionality of the module.
*
* @link https://codesupply.co
* @since 1.0.0
*
* @package Powerkit
* @subpackage Modules/Admin
*/
/**
* The admin-specific functionality of the module.
*/
class Powerkit_Content_Formatting_Admin extends Powerkit_Module_Admin {
/**
* Initialize
*/
public function initialize() {
add_action( 'mce_buttons_2', array( $this, 'mce_buttons_2' ) );
add_filter( 'tiny_mce_before_init', array( $this, 'mce_before_init_insert_formats' ) );
}
/**
* Unshift Styleselect.
*
* @param array $buttons array of buttons.
*/
public function mce_buttons_2( $buttons ) {
array_unshift( $buttons, 'styleselect' );
return $buttons;
}
/**
* Insert formats
*
* @param array $init_array array of style formats.
*/
public function mce_before_init_insert_formats( $init_array ) {
$style_formats = array(
array(
'title' => esc_html__( 'Drop Cap', 'powerkit' ),
'items' => array(
array(
'title' => esc_html__( 'Simple', 'powerkit' ),
'block' => 'p',
'classes' => 'pk-dropcap pk-dropcap-simple',
'wrapper' => false,
),
array(
'title' => esc_html__( 'Bordered', 'powerkit' ),
'block' => 'p',
'classes' => 'pk-dropcap pk-dropcap-borders',
'wrapper' => false,
),
array(
'title' => esc_html__( 'Border Right', 'powerkit' ),
'block' => 'p',
'classes' => 'pk-dropcap pk-dropcap-border-right',
'wrapper' => false,
),
array(
'title' => esc_html__( 'Background Light', 'powerkit' ),
'block' => 'p',
'classes' => 'pk-dropcap pk-block-bg pk-dropcap-bg-light',
'wrapper' => false,
),
array(
'title' => esc_html__( 'Background Inverse', 'powerkit' ),
'block' => 'p',
'classes' => 'pk-dropcap pk-block-bg pk-dropcap-bg-inverse',
'wrapper' => false,
),
),
),
array(
'title' => esc_html__( 'Callout', 'powerkit' ),
'block' => 'div',
'classes' => 'pk-callout',
),
array(
'title' => esc_html__( 'Block', 'powerkit' ),
'items' => array(
array(
'title' => esc_html__( 'Borders', 'powerkit' ),
'items' => array(
array(
'title' => esc_html__( 'Top', 'powerkit' ),
'block' => 'div',
'classes' => 'pk-content-block pk-block-border-top',
),
array(
'title' => esc_html__( 'Bottom', 'powerkit' ),
'block' => 'div',
'classes' => 'pk-content-block pk-block-border-bottom',
),
array(
'title' => esc_html__( 'Left', 'powerkit' ),
'block' => 'div',
'classes' => 'pk-content-block pk-block-border-left',
),
array(
'title' => esc_html__( 'Right', 'powerkit' ),
'block' => 'div',
'classes' => 'pk-content-block pk-block-border-right',
),
array(
'title' => esc_html__( 'All', 'powerkit' ),
'block' => 'div',
'classes' => 'pk-content-block pk-block-border-all',
),
),
),
array(
'title' => esc_html__( 'Background', 'powerkit' ),
'block' => 'div',
'items' => array(
array(
'title' => esc_html__( 'Light', 'powerkit' ),
'block' => 'div',
'classes' => 'pk-content-block pk-block-bg pk-block-bg-light',
),
array(
'title' => esc_html__( 'Inverse', 'powerkit' ),
'block' => 'div',
'classes' => 'pk-content-block pk-block-bg pk-block-bg-inverse',
),
),
),
array(
'title' => esc_html__( 'Shadows', 'powerkit' ),
'block' => 'div',
'classes' => 'pk-content-block pk-block-shadows',
),
array(
'title' => esc_html__( 'Alignment', 'powerkit' ),
'items' => array(
array(
'title' => esc_html__( 'Left', 'powerkit' ),
'block' => 'div',
'classes' => 'pk-content-block pk-block-alignment-left',
),
array(
'title' => esc_html__( 'Right', 'powerkit' ),
'block' => 'div',
'classes' => 'pk-content-block pk-block-alignment-right',
),
),
),
),
),
array(
'title' => esc_html__( 'Numbered Headings', 'powerkit' ),
'items' => array(
array(
'title' => esc_html__( 'Heading 2', 'powerkit' ),
'block' => 'h2',
'classes' => 'pk-heading-numbered',
),
array(
'title' => esc_html__( 'Heading 3', 'powerkit' ),
'block' => 'h3',
'classes' => 'pk-heading-numbered',
),
array(
'title' => esc_html__( 'Heading 4', 'powerkit' ),
'block' => 'h4',
'classes' => 'pk-heading-numbered',
),
array(
'title' => esc_html__( 'Heading 5', 'powerkit' ),
'block' => 'h5',
'classes' => 'pk-heading-numbered',
),
array(
'title' => esc_html__( 'Heading 6', 'powerkit' ),
'block' => 'h6',
'classes' => 'pk-heading-numbered',
),
),
),
array(
'title' => esc_html__( 'Lists', 'powerkit' ),
'items' => array(
array(
'title' => esc_html__( 'Style', 'powerkit' ),
'selector' => 'ol,ul',
'attributes' => array(
'class' => 'pk-list-styled',
),
),
array(
'title' => esc_html__( 'Positive', 'powerkit' ),
'selector' => 'ol,ul',
'attributes' => array(
'class' => 'pk-list-positive',
),
),
array(
'title' => esc_html__( 'Negative', 'powerkit' ),
'selector' => 'ol,ul',
'attributes' => array(
'class' => 'pk-list-negative',
),
),
),
),
);
$init_array['style_formats'] = wp_json_encode( $style_formats );
return $init_array;
}
}
@@ -0,0 +1,53 @@
<?php
/**
* Content Formatting
*
* @package Powerkit
* @subpackage Modules
*/
if ( class_exists( 'Powerkit_Module' ) ) {
/**
* Init module
*/
class Powerkit_Content_Formatting extends Powerkit_Module {
/**
* Register module
*/
public function register() {
$this->name = esc_html__( 'Content Formatting', 'powerkit' );
$this->desc = esc_html__( 'A few nice extra content formatting features: numbered headings, styled lists, badges, drop-caps, and content blocks.', 'powerkit' );
$this->slug = 'content_formatting';
$this->type = 'default';
$this->category = 'content';
$this->priority = 140;
$this->public = true;
$this->enabled = true;
$this->links = array(
array(
'name' => esc_html__( 'View documentation', 'powerkit' ),
'url' => powerkit_get_setting( 'documentation' ) . '/content-presentation/content-formatting/',
'target' => '_blank',
),
);
}
/**
* Initialize module
*/
public function initialize() {
/* Load the required dependencies for this module */
// Admin and public area.
require_once dirname( __FILE__ ) . '/admin/class-powerkit-content-formatting-admin.php';
require_once dirname( __FILE__ ) . '/public/class-powerkit-content-formatting-public.php';
new Powerkit_Content_Formatting_Admin( $this->slug );
new Powerkit_Content_Formatting_Public( $this->slug );
}
}
new Powerkit_Content_Formatting();
}
@@ -0,0 +1,49 @@
<?php
/**
* The public-facing functionality of the module.
*
* @link https://codesupply.co
* @since 1.0.0
*
* @package Powerkit
* @subpackage Modules/public
*/
/**
* The public-facing functionality of the module.
*/
class Powerkit_Content_Formatting_Public extends Powerkit_Module_Public {
/**
* Initialize
*/
public function initialize() {
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ), 6 );
add_action( 'after_setup_theme', array( $this, 'after_setup_theme' ), 6 );
}
/**
* This function will register scripts and styles for admin dashboard.
*
* @param string $page Current page.
*/
public function admin_enqueue_scripts( $page ) {
wp_enqueue_style( 'powerkit-content-formatting', powerkit_style( plugin_dir_url( __FILE__ ) . 'css/public-powerkit-content-formatting.css' ), array(), powerkit_get_setting( 'version' ) );
}
/**
* Sets up theme defaults and registers support for various WordPress features.
*/
public function after_setup_theme() {
add_editor_style( powerkit_style( plugin_dir_url( __FILE__ ) . 'css/public-powerkit-content-formatting.css' ) );
}
/**
* Register the stylesheets for the public-facing side of the site.
*/
public function wp_enqueue_scripts() {
wp_enqueue_style( 'powerkit-content-formatting', powerkit_style( plugin_dir_url( __FILE__ ) . 'css/public-powerkit-content-formatting.css' ), array(), powerkit_get_setting( 'version' ), 'all' );
// Add RTL support.
wp_style_add_data( 'powerkit-content-formatting', 'rtl', 'replace' );
}
}
@@ -0,0 +1,422 @@
/**
* All of the CSS for your public-facing functionality should be
* included in this file.
*/
/**
* Environment for all styles (variables, additions, etc).
*/
/*--------------------------------------------------------------*/
/*--------------------------------------------------------------*/
.content,
.entry-content,
.mce-content-body {
counter-reset: h2;
}
.content h2,
.entry-content h2,
.mce-content-body h2 {
counter-reset: h3;
}
.content h3,
.entry-content h3,
.mce-content-body h3 {
counter-reset: h4;
}
.content h4,
.entry-content h4,
.mce-content-body h4 {
counter-reset: h5;
}
.content h5,
.entry-content h5,
.mce-content-body h5 {
counter-reset: h6;
}
.pk-list-styled,
.pk-list-positive,
.pk-list-negative {
line-height: 1.5;
list-style: none;
font-size: 1rem;
}
.pk-list-styled:not(:first-child),
.pk-list-positive:not(:first-child),
.pk-list-negative:not(:first-child) {
margin-top: 1.5rem;
}
.pk-list-styled:not(:last-child),
.pk-list-positive:not(:last-child),
.pk-list-negative:not(:last-child) {
margin-bottom: 1.5rem;
}
.pk-list-styled li:not(:first-child),
.pk-list-positive li:not(:first-child),
.pk-list-negative li:not(:first-child) {
margin-top: 0.5rem;
}
.pk-list-styled > li,
.pk-list-positive > li,
.pk-list-negative > li {
position: relative;
padding-right: 2.5rem;
}
.pk-list-styled > li:before,
.pk-list-positive > li:before,
.pk-list-negative > li:before {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
right: 0;
top: 0;
}
ol.pk-list-styled,
ol.pk-list-positive,
ol.pk-list-negative {
counter-reset: ol;
}
ol.pk-list-styled > li:before,
ol.pk-list-positive > li:before,
ol.pk-list-negative > li:before {
width: 1.5rem;
height: 1.5rem;
content: counter(ol);
counter-increment: ol;
color: #495057;
font-size: 0.875rem;
font-weight: 600;
background-color: #e9ecef;
border-radius: 50%;
line-height: 1;
}
ul.pk-list-styled > li:before {
content: '';
width: 0.25rem;
height: 0.25rem;
background: #ced4da;
margin-top: 0.75rem;
right: 1rem;
}
ol.pk-list-styled ul,
ol.pk-list-styled ol,
ul.pk-list-styled ol,
ul.pk-list-styled ul {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
padding-right: 0;
font-size: 0.875rem;
}
ol.pk-list-styled ul > li:not(:first-child),
ol.pk-list-styled ol > li:not(:first-child),
ul.pk-list-styled ol > li:not(:first-child),
ul.pk-list-styled ul > li:not(:first-child) {
margin-top: 0.25rem;
}
ol.pk-list-positive > li:before {
background-color: #28a745;
color: #fff;
}
ol.pk-list-negative > li:before {
background-color: #dc3545;
color: #fff;
}
ul.pk-list-positive > li:before,
ul.pk-list-negative > li:before {
width: 1.5rem;
font-family: 'powerkit-icons';
}
ul.pk-list-positive > li:before {
content: "\e912";
color: #28a745;
}
ul.pk-list-negative > li:before {
content: "\e913";
color: #dc3545;
}
.pk-heading-numbered {
display: flex;
}
.pk-heading-numbered:before {
margin-left: 1rem;
}
h2.pk-heading-numbered:before {
display: flex;
justify-content: center;
align-items: center;
height: 2.5rem;
flex: 0 0 2.5rem;
border-radius: 50%;
background: #ced4da;
color: white;
counter-increment: h2;
content: counter(h2);
}
h3.pk-heading-numbered:before {
counter-increment: h3;
content: counter(h3);
}
h2.pk-heading-numbered ~ h3.pk-heading-numbered:before {
content: counter(h2) "." counter(h3);
}
h4.pk-heading-numbered:before {
counter-increment: h4;
content: counter(h4);
}
h3.pk-heading-numbered ~ h4.pk-heading-numbered:before {
content: counter(h3) "." counter(h4);
}
h2.pk-heading-numbered ~ h3.pk-heading-numbered ~ h4.pk-heading-numbered:before {
content: counter(h2) "." counter(h3) "." counter(h4);
}
h5.pk-heading-numbered:before {
counter-increment: h5;
content: counter(h5);
}
h4.pk-heading-numbered ~ h5.pk-heading-numbered:before {
content: counter(h4) "." counter(h5);
}
h3.pk-heading-numbered ~ h4.pk-heading-numbered ~ h5.pk-heading-numbered:before {
content: counter(h3) "." counter(h4) "." counter(h5);
}
h2.pk-heading-numbered ~ h3.pk-heading-numbered ~ h4.pk-heading-numbered ~ h5.pk-heading-numbered:before {
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5);
}
h6.pk-heading-numbered:before {
counter-increment: h6;
content: counter(h6);
}
h5.pk-heading-numbered ~ h6.pk-heading-numbered:before {
content: counter(h5) "." counter(h6);
}
h4.pk-heading-numbered ~ h5.pk-heading-numbered ~ h6.pk-heading-numbered:before {
content: counter(h4) "." counter(h5) "." counter(h6);
}
h3.pk-heading-numbered ~ h4.pk-heading-numbered ~ h5.pk-heading-numbered ~ h6.pk-heading-numbered:before {
content: counter(h3) "." counter(h4) "." counter(h5) "." counter(h6);
}
h2.pk-heading-numbered ~ h3.pk-heading-numbered ~ h4.pk-heading-numbered ~ h5.pk-heading-numbered ~ h6.pk-heading-numbered:before {
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6);
}
.content .pk-dropcap,
.entry-content .pk-dropcap,
.mce-content-body .pk-dropcap {
text-align: right;
}
.content .pk-dropcap:after,
.entry-content .pk-dropcap:after,
.mce-content-body .pk-dropcap:after {
content: "";
display: table;
clear: both;
padding-top: 14px;
}
.content .pk-dropcap:first-letter,
.entry-content .pk-dropcap:first-letter,
.mce-content-body .pk-dropcap:first-letter {
display: block;
float: right;
margin-top: 0.5rem;
margin-left: 2rem;
margin-bottom: 1rem;
color: black;
font-size: 2.5rem;
line-height: 1;
text-align: center;
}
.content .pk-dropcap-bg-inverse:first-letter,
.entry-content .pk-dropcap-bg-inverse:first-letter,
.mce-content-body .pk-dropcap-bg-inverse:first-letter {
padding: 0.5rem 1rem;
background: black;
color: #fff;
}
.content .pk-dropcap-bg-light:first-letter,
.entry-content .pk-dropcap-bg-light:first-letter,
.mce-content-body .pk-dropcap-bg-light:first-letter {
padding: 0.5rem 1rem;
background: #f8f9fa;
}
.content .pk-dropcap-borders:first-letter,
.entry-content .pk-dropcap-borders:first-letter,
.mce-content-body .pk-dropcap-borders:first-letter {
margin-top: 0.25rem;
padding: 0.5rem 1rem;
border: 1px solid #dee2e6;
}
.content .pk-dropcap-border-right:first-letter,
.entry-content .pk-dropcap-border-right:first-letter,
.mce-content-body .pk-dropcap-border-right:first-letter {
padding-left: 2rem;
border-left: 1px solid #dee2e6;
border-radius: 0;
}
.content .pk-callout,
.entry-content .pk-callout,
.mce-content-body .pk-callout {
font-size: 1.25rem;
font-weight: 600;
}
.content .pk-content-block,
.entry-content .pk-content-block,
.mce-content-body .pk-content-block {
margin-bottom: 2rem;
}
.content .pk-content-block > *:last-child,
.entry-content .pk-content-block > *:last-child,
.mce-content-body .pk-content-block > *:last-child {
margin-bottom: 0;
}
.content .pk-block-alignment-left,
.entry-content .pk-block-alignment-left,
.mce-content-body .pk-block-alignment-left {
float: right;
max-width: 50%;
margin-left: 2rem;
}
.content .pk-block-alignment-right,
.entry-content .pk-block-alignment-right,
.mce-content-body .pk-block-alignment-right {
float: left;
max-width: 50%;
margin-right: 2rem;
}
.content .pk-block-border-left,
.entry-content .pk-block-border-left,
.mce-content-body .pk-block-border-left {
padding-right: 2rem;
border-right: 1px solid #dee2e6;
}
.content .pk-block-border-right,
.entry-content .pk-block-border-right,
.mce-content-body .pk-block-border-right {
padding-left: 2rem;
border-left: 1px solid #dee2e6;
}
.content .pk-block-border-top:before,
.entry-content .pk-block-border-top:before,
.mce-content-body .pk-block-border-top:before {
background-color: #dee2e6;
display: block;
width: 4rem;
height: 1px;
margin: 2rem auto;
content: "";
}
.content .pk-block-border-bottom:after,
.entry-content .pk-block-border-bottom:after,
.mce-content-body .pk-block-border-bottom:after {
background-color: #dee2e6;
display: block;
width: 4rem;
height: 1px;
margin: 2rem auto;
content: "";
}
.content .pk-block-border-all,
.entry-content .pk-block-border-all,
.mce-content-body .pk-block-border-all {
padding: 2rem;
border: 1px solid #dee2e6;
}
.content .pk-block-bg-light,
.entry-content .pk-block-bg-light,
.mce-content-body .pk-block-bg-light {
background: #f8f9fa;
padding: 2rem;
}
.content .pk-block-bg-inverse,
.entry-content .pk-block-bg-inverse,
.mce-content-body .pk-block-bg-inverse {
background: black;
padding: 2rem;
color: #fff;
}
.content .pk-block-bg .pk-alert,
.entry-content .pk-block-bg .pk-alert,
.mce-content-body .pk-block-bg .pk-alert {
background-color: white;
}
.content .pk-block-bg .pk-subscribe-form-wrap form,
.entry-content .pk-block-bg .pk-subscribe-form-wrap form,
.mce-content-body .pk-block-bg .pk-subscribe-form-wrap form {
box-shadow: none;
}
.content .pk-block-shadows,
.entry-content .pk-block-shadows,
.mce-content-body .pk-block-shadows {
padding: 2rem;
box-shadow: 0 0 1rem rgba(0, 0, 0, 0.075);
}
@media (max-width: 767.98px) {
.content .pk-content-block,
.entry-content .pk-content-block,
.mce-content-body .pk-content-block {
float: none;
width: 100%;
max-width: 100%;
border-right: none;
border-left: none;
margin-right: 0;
margin-left: 0;
}
}
@@ -0,0 +1,422 @@
/**
* All of the CSS for your public-facing functionality should be
* included in this file.
*/
/**
* Environment for all styles (variables, additions, etc).
*/
/*--------------------------------------------------------------*/
/*--------------------------------------------------------------*/
.content,
.entry-content,
.mce-content-body {
counter-reset: h2;
}
.content h2,
.entry-content h2,
.mce-content-body h2 {
counter-reset: h3;
}
.content h3,
.entry-content h3,
.mce-content-body h3 {
counter-reset: h4;
}
.content h4,
.entry-content h4,
.mce-content-body h4 {
counter-reset: h5;
}
.content h5,
.entry-content h5,
.mce-content-body h5 {
counter-reset: h6;
}
.pk-list-styled,
.pk-list-positive,
.pk-list-negative {
line-height: 1.5;
list-style: none;
font-size: 1rem;
}
.pk-list-styled:not(:first-child),
.pk-list-positive:not(:first-child),
.pk-list-negative:not(:first-child) {
margin-top: 1.5rem;
}
.pk-list-styled:not(:last-child),
.pk-list-positive:not(:last-child),
.pk-list-negative:not(:last-child) {
margin-bottom: 1.5rem;
}
.pk-list-styled li:not(:first-child),
.pk-list-positive li:not(:first-child),
.pk-list-negative li:not(:first-child) {
margin-top: 0.5rem;
}
.pk-list-styled > li,
.pk-list-positive > li,
.pk-list-negative > li {
position: relative;
padding-left: 2.5rem;
}
.pk-list-styled > li:before,
.pk-list-positive > li:before,
.pk-list-negative > li:before {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
left: 0;
top: 0;
}
ol.pk-list-styled,
ol.pk-list-positive,
ol.pk-list-negative {
counter-reset: ol;
}
ol.pk-list-styled > li:before,
ol.pk-list-positive > li:before,
ol.pk-list-negative > li:before {
width: 1.5rem;
height: 1.5rem;
content: counter(ol);
counter-increment: ol;
color: #495057;
font-size: 0.875rem;
font-weight: 600;
background-color: #e9ecef;
border-radius: 50%;
line-height: 1;
}
ul.pk-list-styled > li:before {
content: '';
width: 0.25rem;
height: 0.25rem;
background: #ced4da;
margin-top: 0.75rem;
left: 1rem;
}
ol.pk-list-styled ul,
ol.pk-list-styled ol,
ul.pk-list-styled ol,
ul.pk-list-styled ul {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
padding-left: 0;
font-size: 0.875rem;
}
ol.pk-list-styled ul > li:not(:first-child),
ol.pk-list-styled ol > li:not(:first-child),
ul.pk-list-styled ol > li:not(:first-child),
ul.pk-list-styled ul > li:not(:first-child) {
margin-top: 0.25rem;
}
ol.pk-list-positive > li:before {
background-color: #28a745;
color: #fff;
}
ol.pk-list-negative > li:before {
background-color: #dc3545;
color: #fff;
}
ul.pk-list-positive > li:before,
ul.pk-list-negative > li:before {
width: 1.5rem;
font-family: 'powerkit-icons';
}
ul.pk-list-positive > li:before {
content: "\e912";
color: #28a745;
}
ul.pk-list-negative > li:before {
content: "\e913";
color: #dc3545;
}
.pk-heading-numbered {
display: flex;
}
.pk-heading-numbered:before {
margin-right: 1rem;
}
h2.pk-heading-numbered:before {
display: flex;
justify-content: center;
align-items: center;
height: 2.5rem;
flex: 0 0 2.5rem;
border-radius: 50%;
background: #ced4da;
color: white;
counter-increment: h2;
content: counter(h2);
}
h3.pk-heading-numbered:before {
counter-increment: h3;
content: counter(h3);
}
h2.pk-heading-numbered ~ h3.pk-heading-numbered:before {
content: counter(h2) "." counter(h3);
}
h4.pk-heading-numbered:before {
counter-increment: h4;
content: counter(h4);
}
h3.pk-heading-numbered ~ h4.pk-heading-numbered:before {
content: counter(h3) "." counter(h4);
}
h2.pk-heading-numbered ~ h3.pk-heading-numbered ~ h4.pk-heading-numbered:before {
content: counter(h2) "." counter(h3) "." counter(h4);
}
h5.pk-heading-numbered:before {
counter-increment: h5;
content: counter(h5);
}
h4.pk-heading-numbered ~ h5.pk-heading-numbered:before {
content: counter(h4) "." counter(h5);
}
h3.pk-heading-numbered ~ h4.pk-heading-numbered ~ h5.pk-heading-numbered:before {
content: counter(h3) "." counter(h4) "." counter(h5);
}
h2.pk-heading-numbered ~ h3.pk-heading-numbered ~ h4.pk-heading-numbered ~ h5.pk-heading-numbered:before {
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5);
}
h6.pk-heading-numbered:before {
counter-increment: h6;
content: counter(h6);
}
h5.pk-heading-numbered ~ h6.pk-heading-numbered:before {
content: counter(h5) "." counter(h6);
}
h4.pk-heading-numbered ~ h5.pk-heading-numbered ~ h6.pk-heading-numbered:before {
content: counter(h4) "." counter(h5) "." counter(h6);
}
h3.pk-heading-numbered ~ h4.pk-heading-numbered ~ h5.pk-heading-numbered ~ h6.pk-heading-numbered:before {
content: counter(h3) "." counter(h4) "." counter(h5) "." counter(h6);
}
h2.pk-heading-numbered ~ h3.pk-heading-numbered ~ h4.pk-heading-numbered ~ h5.pk-heading-numbered ~ h6.pk-heading-numbered:before {
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6);
}
.content .pk-dropcap,
.entry-content .pk-dropcap,
.mce-content-body .pk-dropcap {
text-align: left;
}
.content .pk-dropcap:after,
.entry-content .pk-dropcap:after,
.mce-content-body .pk-dropcap:after {
content: "";
display: table;
clear: both;
padding-top: 14px;
}
.content .pk-dropcap:first-letter,
.entry-content .pk-dropcap:first-letter,
.mce-content-body .pk-dropcap:first-letter {
display: block;
float: left;
margin-top: 0.5rem;
margin-right: 2rem;
margin-bottom: 1rem;
color: black;
font-size: 2.5rem;
line-height: 1;
text-align: center;
}
.content .pk-dropcap-bg-inverse:first-letter,
.entry-content .pk-dropcap-bg-inverse:first-letter,
.mce-content-body .pk-dropcap-bg-inverse:first-letter {
padding: 0.5rem 1rem;
background: black;
color: #fff;
}
.content .pk-dropcap-bg-light:first-letter,
.entry-content .pk-dropcap-bg-light:first-letter,
.mce-content-body .pk-dropcap-bg-light:first-letter {
padding: 0.5rem 1rem;
background: #f8f9fa;
}
.content .pk-dropcap-borders:first-letter,
.entry-content .pk-dropcap-borders:first-letter,
.mce-content-body .pk-dropcap-borders:first-letter {
margin-top: 0.25rem;
padding: 0.5rem 1rem;
border: 1px solid #dee2e6;
}
.content .pk-dropcap-border-right:first-letter,
.entry-content .pk-dropcap-border-right:first-letter,
.mce-content-body .pk-dropcap-border-right:first-letter {
padding-right: 2rem;
border-right: 1px solid #dee2e6;
border-radius: 0;
}
.content .pk-callout,
.entry-content .pk-callout,
.mce-content-body .pk-callout {
font-size: 1.25rem;
font-weight: 600;
}
.content .pk-content-block,
.entry-content .pk-content-block,
.mce-content-body .pk-content-block {
margin-bottom: 2rem;
}
.content .pk-content-block > *:last-child,
.entry-content .pk-content-block > *:last-child,
.mce-content-body .pk-content-block > *:last-child {
margin-bottom: 0;
}
.content .pk-block-alignment-left,
.entry-content .pk-block-alignment-left,
.mce-content-body .pk-block-alignment-left {
float: left;
max-width: 50%;
margin-right: 2rem;
}
.content .pk-block-alignment-right,
.entry-content .pk-block-alignment-right,
.mce-content-body .pk-block-alignment-right {
float: right;
max-width: 50%;
margin-left: 2rem;
}
.content .pk-block-border-left,
.entry-content .pk-block-border-left,
.mce-content-body .pk-block-border-left {
padding-left: 2rem;
border-left: 1px solid #dee2e6;
}
.content .pk-block-border-right,
.entry-content .pk-block-border-right,
.mce-content-body .pk-block-border-right {
padding-right: 2rem;
border-right: 1px solid #dee2e6;
}
.content .pk-block-border-top:before,
.entry-content .pk-block-border-top:before,
.mce-content-body .pk-block-border-top:before {
background-color: #dee2e6;
display: block;
width: 4rem;
height: 1px;
margin: 2rem auto;
content: "";
}
.content .pk-block-border-bottom:after,
.entry-content .pk-block-border-bottom:after,
.mce-content-body .pk-block-border-bottom:after {
background-color: #dee2e6;
display: block;
width: 4rem;
height: 1px;
margin: 2rem auto;
content: "";
}
.content .pk-block-border-all,
.entry-content .pk-block-border-all,
.mce-content-body .pk-block-border-all {
padding: 2rem;
border: 1px solid #dee2e6;
}
.content .pk-block-bg-light,
.entry-content .pk-block-bg-light,
.mce-content-body .pk-block-bg-light {
background: #f8f9fa;
padding: 2rem;
}
.content .pk-block-bg-inverse,
.entry-content .pk-block-bg-inverse,
.mce-content-body .pk-block-bg-inverse {
background: black;
padding: 2rem;
color: #fff;
}
.content .pk-block-bg .pk-alert,
.entry-content .pk-block-bg .pk-alert,
.mce-content-body .pk-block-bg .pk-alert {
background-color: white;
}
.content .pk-block-bg .pk-subscribe-form-wrap form,
.entry-content .pk-block-bg .pk-subscribe-form-wrap form,
.mce-content-body .pk-block-bg .pk-subscribe-form-wrap form {
box-shadow: none;
}
.content .pk-block-shadows,
.entry-content .pk-block-shadows,
.mce-content-body .pk-block-shadows {
padding: 2rem;
box-shadow: 0 0 1rem rgba(0, 0, 0, 0.075);
}
@media (max-width: 767.98px) {
.content .pk-content-block,
.entry-content .pk-content-block,
.mce-content-body .pk-content-block {
float: none;
width: 100%;
max-width: 100%;
border-left: none;
border-right: none;
margin-left: 0;
margin-right: 0;
}
}