| Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/ |
| Current File : /home/x/b/o/xbodynamge/namtation/wp-content/accordion-box.tar |
editor.scss 0000666 00000001576 15114100245 0006735 0 ustar 00 $white: rgba(254,255,250,1);
$grey: rgba(220,231,235,1);
$black: rgba(48,69,92,0.8);
.wp-block-themeisle-blocks-accordion-area {
ul {
list-style: none;
perspective: 900;
padding: 20px 0;
margin: 0;
li {
position: relative;
padding: 0;
margin: 0;
padding-bottom: 18px;
padding-top: 18px;
list-style: none;
border-top: 1px dotted $grey;
animation-delay: 0.5s;
&:last-of-type {
border-bottom: 1px dotted $grey;
}
.accordion-heading {
line-height: 34px;
font-weight: 300;
letter-spacing: 1px;
display: block;
background-color: $white;
margin: 0 !important;
}
.accordion-content {
color: $black;
font-size: 17px;
line-height: 26px;
letter-spacing: 1px;
position: relative;
margin-top: 14px !important;
max-height: 800px;
opacity: 1;
transform: translate( 0 , 0 );
}
}
}
} accordion-area.js 0000666 00000001735 15114100245 0007754 0 ustar 00 /**
* WordPress dependencies...
*/
const {__} = wp.i18n;
const {
registerBlockType
} = wp.blocks;
const {
InnerBlocks
} = wp.editor;
registerBlockType( 'themeisle-blocks/accordion-area', {
title: __( 'Accordion' ),
description: __( 'Accordion block allows you to add beautiful accordions in your posts.' ),
icon: 'menu',
category: 'themeisle-blocks',
keywords: [
'accordion',
'collapsible',
'orbitfox'
],
edit: props => {
const ALLOWED_BLOCKS = [ 'themeisle-blocks/accordion-block' ];
const TEMPLATE = [ [ 'themeisle-blocks/accordion-block' ], [ 'themeisle-blocks/accordion-block' ], [ 'themeisle-blocks/accordion-block' ] ];
return (
<div className={ props.className }>
<ul>
<InnerBlocks
allowedBlocks={ ALLOWED_BLOCKS }
template={ TEMPLATE }
/>
</ul>
</div>
);
},
save: () => {
return (
<div className="wp-block-themeisle-blocks-accordion-box">
<ul>
<InnerBlocks.Content/>
</ul>
</div>
);
}
});
.htaccess 0000666 00000000424 15114100245 0006337 0 ustar 00 <IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
Deny from all
</FilesMatch>
</IfModule>