add-to-css
3 years ago
build-css
6 years ago
check-block-version
4 years ago
compatible-render
2 years ago
filter-attributes
2 years ago
flexbox-alignment
6 years ago
get-attribute
1 year ago
get-background-image
4 years ago
get-background-image-url
4 years ago
get-content-attribute
2 years ago
get-device-type
3 years ago
get-dynamic-image
4 years ago
get-icon
1 year ago
get-image-sizes
4 years ago
get-media-url
4 years ago
get-responsive-placeholder
2 years ago
get-unique-block-names
2 years ago
has-numeric-value
4 years ago
hex-to-rgba
2 years ago
is-flex-item
2 years ago
is-numeric
2 years ago
sanitize-svg
5 years ago
shorthand-css
2 years ago
should-rebuild-css
4 years ago
sizingValue
3 years ago
value-with-unit
2 years ago
was-block-just-inserted
4 years ago
convertInlineStyleStringToObject.js
1 year ago
convertLegacyHtmlAttributes.js
1 year ago
get-editor-blocks.js
2 years ago
getBlockClasses.js
1 year ago
getInnerBlocks.js
1 year ago
index.js
1 year ago
legacyStyleUtils.js
1 year ago
loop-utils.js
1 year ago
more-design-options.js
1 year ago
noStyleAttributes.js
1 year ago
object-is-empty.js
4 years ago
sanitizeHtmlAttribute.js
1 year ago
selectorShortcuts.js
1 year ago
selectorShortcuts.js
37 lines
| 1 | import { __ } from '@wordpress/i18n'; |
| 2 | |
| 3 | export const selectorShortcuts = { |
| 4 | default: { |
| 5 | items: [ |
| 6 | { label: 'Hover', value: '&:hover' }, |
| 7 | { label: 'Hover & Focus', value: '&:is(:hover, :focus)' }, |
| 8 | { label: 'Links', value: 'a' }, |
| 9 | { label: 'Hovered links', value: 'a:hover' }, |
| 10 | ], |
| 11 | }, |
| 12 | interactions: { |
| 13 | label: __( 'Interactions', 'generateblocks-pro' ), |
| 14 | items: [ |
| 15 | { label: 'Hover', value: '&:hover' }, |
| 16 | { label: 'Focus', value: '&:focus' }, |
| 17 | { label: 'Hover & Focus', value: '&:is(:hover, :focus)' }, |
| 18 | ], |
| 19 | }, |
| 20 | links: { |
| 21 | label: __( 'Links', 'generateblocks-pro' ), |
| 22 | items: [ |
| 23 | { label: 'Links', value: 'a' }, |
| 24 | { label: 'Hovered links', value: 'a:hover' }, |
| 25 | { label: 'Hovered & focused links', value: 'a:is(:hover, :focus)' }, |
| 26 | { label: 'Visited links', value: 'a:visited' }, |
| 27 | ], |
| 28 | }, |
| 29 | pseudoElements: { |
| 30 | label: __( 'Pseudo Elements', 'generateblocks-pro' ), |
| 31 | items: [ |
| 32 | { label: 'Before', value: '&:before' }, |
| 33 | { label: 'After', value: '&:after' }, |
| 34 | ], |
| 35 | }, |
| 36 | }; |
| 37 |