create arrow list block style
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Aadil Ayub 2023-08-29 17:21:08 +05:00
parent 05f5156a1e
commit 36945564f7
3 changed files with 12 additions and 4 deletions

View File

@ -49,3 +49,8 @@
font-size: var(--wp--preset--font-size--medium); font-size: var(--wp--preset--font-size--medium);
} }
} }
/* For "Arrow" style lists */
ul.is-style-arrow-list {
list-style-image: url('https://beta.autonomic.zone/wp-content/uploads/2023/01/arrow.png');
}

View File

@ -26,4 +26,11 @@ wp.domReady( () => {
label: 'Markdown-style Heading', label: 'Markdown-style Heading',
} }
) )
wp.blocks.registerBlockStyle(
'core/list', {
name: 'arrow-list',
label: 'Arrows',
}
)
} ) } )

View File

@ -37,10 +37,6 @@ html, body {
} }
} }
.home .wp-site-blocks ul {
list-style-image: url('https://beta.autonomic.zone/wp-content/uploads/2023/01/arrow.png');
}
.home .wp-site-blocks h2 { .home .wp-site-blocks h2 {
color: var(--wp--preset--color--primary) color: var(--wp--preset--color--primary)
} }