first commit
This commit is contained in:
+54
@@ -0,0 +1,54 @@
|
||||
/**
|
||||
* All of the CSS for your public-facing functionality should be
|
||||
* included in this file.
|
||||
*/
|
||||
/**
|
||||
* Environment for all styles (variables, additions, etc).
|
||||
*/
|
||||
/*--------------------------------------------------------------*/
|
||||
/*--------------------------------------------------------------*/
|
||||
.wp-block-separator {
|
||||
--cnvs-wp-block-separator-color: #dee2e6;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------*/
|
||||
.editor-styles-wrapper .wp-block-separator {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-separator:not(.has-text-color) {
|
||||
color: var(--cnvs-wp-block-separator-color);
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-separator.is-style-cnvs-separator-double, .editor-styles-wrapper .wp-block-separator.is-style-cnvs-separator-dotted, .editor-styles-wrapper .wp-block-separator.is-style-cnvs-separator-dashed {
|
||||
position: relative;
|
||||
display: block;
|
||||
height: 10px !important;
|
||||
background-color: transparent !important;
|
||||
border-bottom: none !important;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-separator.is-style-cnvs-separator-double:after, .editor-styles-wrapper .wp-block-separator.is-style-cnvs-separator-dotted:after, .editor-styles-wrapper .wp-block-separator.is-style-cnvs-separator-dashed:after {
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 0;
|
||||
left: 0;
|
||||
margin-top: -1px;
|
||||
border-bottom: 2px solid;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-separator.is-style-cnvs-separator-double:after {
|
||||
border-bottom-width: 4px !important;
|
||||
border-bottom-style: double !important;
|
||||
margin-top: -2px;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-separator.is-style-cnvs-separator-dotted:after {
|
||||
border-bottom-style: dotted !important;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-separator.is-style-cnvs-separator-dashed:after {
|
||||
border-bottom-style: dashed !important;
|
||||
}
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
/**
|
||||
* All of the CSS for your public-facing functionality should be
|
||||
* included in this file.
|
||||
*/
|
||||
/**
|
||||
* Environment for all styles (variables, additions, etc).
|
||||
*/
|
||||
/*--------------------------------------------------------------*/
|
||||
/*--------------------------------------------------------------*/
|
||||
.wp-block-separator {
|
||||
--cnvs-wp-block-separator-color: #dee2e6;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------*/
|
||||
.editor-styles-wrapper .wp-block-separator {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-separator:not(.has-text-color) {
|
||||
color: var(--cnvs-wp-block-separator-color);
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-separator.is-style-cnvs-separator-double, .editor-styles-wrapper .wp-block-separator.is-style-cnvs-separator-dotted, .editor-styles-wrapper .wp-block-separator.is-style-cnvs-separator-dashed {
|
||||
position: relative;
|
||||
display: block;
|
||||
height: 10px !important;
|
||||
background-color: transparent !important;
|
||||
border-bottom: none !important;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-separator.is-style-cnvs-separator-double:after, .editor-styles-wrapper .wp-block-separator.is-style-cnvs-separator-dotted:after, .editor-styles-wrapper .wp-block-separator.is-style-cnvs-separator-dashed:after {
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin-top: -1px;
|
||||
border-bottom: 2px solid;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-separator.is-style-cnvs-separator-double:after {
|
||||
border-bottom-width: 4px !important;
|
||||
border-bottom-style: double !important;
|
||||
margin-top: -2px;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-separator.is-style-cnvs-separator-dotted:after {
|
||||
border-bottom-style: dotted !important;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-separator.is-style-cnvs-separator-dashed:after {
|
||||
border-bottom-style: dashed !important;
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/**
|
||||
* All of the CSS for your public-facing functionality should be
|
||||
* included in this file.
|
||||
*/
|
||||
/**
|
||||
* Environment for all styles (variables, additions, etc).
|
||||
*/
|
||||
/*--------------------------------------------------------------*/
|
||||
/*--------------------------------------------------------------*/
|
||||
.wp-block-separator {
|
||||
--cnvs-wp-block-separator-color: #dee2e6;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------*/
|
||||
.content .wp-block-separator:not(.has-text-color),
|
||||
.entry-content .wp-block-separator:not(.has-text-color) {
|
||||
color: var(--cnvs-wp-block-separator-color);
|
||||
}
|
||||
|
||||
.content .wp-block-separator.is-style-cnvs-separator-double, .content .wp-block-separator.is-style-cnvs-separator-dotted, .content .wp-block-separator.is-style-cnvs-separator-dashed,
|
||||
.entry-content .wp-block-separator.is-style-cnvs-separator-double,
|
||||
.entry-content .wp-block-separator.is-style-cnvs-separator-dotted,
|
||||
.entry-content .wp-block-separator.is-style-cnvs-separator-dashed {
|
||||
position: relative;
|
||||
display: block;
|
||||
height: 10px;
|
||||
background-color: transparent !important;
|
||||
border-bottom: none !important;
|
||||
}
|
||||
|
||||
.content .wp-block-separator.is-style-cnvs-separator-double:after, .content .wp-block-separator.is-style-cnvs-separator-dotted:after, .content .wp-block-separator.is-style-cnvs-separator-dashed:after,
|
||||
.entry-content .wp-block-separator.is-style-cnvs-separator-double:after,
|
||||
.entry-content .wp-block-separator.is-style-cnvs-separator-dotted:after,
|
||||
.entry-content .wp-block-separator.is-style-cnvs-separator-dashed:after {
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 0;
|
||||
left: 0;
|
||||
margin-top: -1px;
|
||||
border-bottom: 2px solid;
|
||||
}
|
||||
|
||||
.content .wp-block-separator.is-style-cnvs-separator-double:after,
|
||||
.entry-content .wp-block-separator.is-style-cnvs-separator-double:after {
|
||||
border-bottom-width: 4px !important;
|
||||
border-bottom-style: double !important;
|
||||
margin-top: -2px;
|
||||
}
|
||||
|
||||
.content .wp-block-separator.is-style-cnvs-separator-dotted:after,
|
||||
.entry-content .wp-block-separator.is-style-cnvs-separator-dotted:after {
|
||||
border-bottom-style: dotted !important;
|
||||
}
|
||||
|
||||
.content .wp-block-separator.is-style-cnvs-separator-dashed:after,
|
||||
.entry-content .wp-block-separator.is-style-cnvs-separator-dashed:after {
|
||||
border-bottom-style: dashed !important;
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/**
|
||||
* All of the CSS for your public-facing functionality should be
|
||||
* included in this file.
|
||||
*/
|
||||
/**
|
||||
* Environment for all styles (variables, additions, etc).
|
||||
*/
|
||||
/*--------------------------------------------------------------*/
|
||||
/*--------------------------------------------------------------*/
|
||||
.wp-block-separator {
|
||||
--cnvs-wp-block-separator-color: #dee2e6;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------*/
|
||||
.content .wp-block-separator:not(.has-text-color),
|
||||
.entry-content .wp-block-separator:not(.has-text-color) {
|
||||
color: var(--cnvs-wp-block-separator-color);
|
||||
}
|
||||
|
||||
.content .wp-block-separator.is-style-cnvs-separator-double, .content .wp-block-separator.is-style-cnvs-separator-dotted, .content .wp-block-separator.is-style-cnvs-separator-dashed,
|
||||
.entry-content .wp-block-separator.is-style-cnvs-separator-double,
|
||||
.entry-content .wp-block-separator.is-style-cnvs-separator-dotted,
|
||||
.entry-content .wp-block-separator.is-style-cnvs-separator-dashed {
|
||||
position: relative;
|
||||
display: block;
|
||||
height: 10px;
|
||||
background-color: transparent !important;
|
||||
border-bottom: none !important;
|
||||
}
|
||||
|
||||
.content .wp-block-separator.is-style-cnvs-separator-double:after, .content .wp-block-separator.is-style-cnvs-separator-dotted:after, .content .wp-block-separator.is-style-cnvs-separator-dashed:after,
|
||||
.entry-content .wp-block-separator.is-style-cnvs-separator-double:after,
|
||||
.entry-content .wp-block-separator.is-style-cnvs-separator-dotted:after,
|
||||
.entry-content .wp-block-separator.is-style-cnvs-separator-dashed:after {
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin-top: -1px;
|
||||
border-bottom: 2px solid;
|
||||
}
|
||||
|
||||
.content .wp-block-separator.is-style-cnvs-separator-double:after,
|
||||
.entry-content .wp-block-separator.is-style-cnvs-separator-double:after {
|
||||
border-bottom-width: 4px !important;
|
||||
border-bottom-style: double !important;
|
||||
margin-top: -2px;
|
||||
}
|
||||
|
||||
.content .wp-block-separator.is-style-cnvs-separator-dotted:after,
|
||||
.entry-content .wp-block-separator.is-style-cnvs-separator-dotted:after {
|
||||
border-bottom-style: dotted !important;
|
||||
}
|
||||
|
||||
.content .wp-block-separator.is-style-cnvs-separator-dashed:after,
|
||||
.entry-content .wp-block-separator.is-style-cnvs-separator-dashed:after {
|
||||
border-bottom-style: dashed !important;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
!function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=100)}({100:function(e,r,t){e.exports=t(101)},101:function(e,r){var t=wp.i18n.__,n=wp.blocks.registerBlockStyle;n("core/separator",{name:"cnvs-separator-double",label:t("Double")}),n("core/separator",{name:"cnvs-separator-dotted",label:t("Dotted")}),n("core/separator",{name:"cnvs-separator-dashed",label:t("Dashed")})}});
|
||||
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
const {
|
||||
__,
|
||||
} = wp.i18n;
|
||||
|
||||
const {
|
||||
registerBlockStyle,
|
||||
} = wp.blocks;
|
||||
|
||||
/*
|
||||
* core/separator
|
||||
*/
|
||||
registerBlockStyle( 'core/separator', {
|
||||
name: 'cnvs-separator-double',
|
||||
label: __( 'Double' ),
|
||||
} );
|
||||
registerBlockStyle( 'core/separator', {
|
||||
name: 'cnvs-separator-dotted',
|
||||
label: __( 'Dotted' ),
|
||||
} );
|
||||
registerBlockStyle( 'core/separator', {
|
||||
name: 'cnvs-separator-dashed',
|
||||
label: __( 'Dashed' ),
|
||||
} );
|
||||
Reference in New Issue
Block a user