@wordpress/block-editor 9.0.0 → 9.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/README.md +1 -0
- package/build/components/block-alignment-matrix-control/index.js +1 -6
- package/build/components/block-alignment-matrix-control/index.js.map +1 -1
- package/build/components/block-content-overlay/index.js +4 -82
- package/build/components/block-content-overlay/index.js.map +1 -1
- package/build/components/block-draggable/draggable-chip.native.js +64 -0
- package/build/components/block-draggable/draggable-chip.native.js.map +1 -0
- package/build/components/block-draggable/dropping-insertion-point.native.js +157 -0
- package/build/components/block-draggable/dropping-insertion-point.native.js.map +1 -0
- package/build/components/block-draggable/index.native.js +484 -0
- package/build/components/block-draggable/index.native.js.map +1 -0
- package/build/components/block-draggable/use-scroll-when-dragging.native.js +130 -0
- package/build/components/block-draggable/use-scroll-when-dragging.native.js.map +1 -0
- package/build/components/block-list/block-list-context.native.js +195 -0
- package/build/components/block-list/block-list-context.native.js.map +1 -0
- package/build/components/block-list/block-list-item-cell.native.js +67 -0
- package/build/components/block-list/block-list-item-cell.native.js.map +1 -0
- package/build/components/block-list/block-list-item.native.js +12 -9
- package/build/components/block-list/block-list-item.native.js.map +1 -1
- package/build/components/block-list/block.native.js +26 -5
- package/build/components/block-list/block.native.js.map +1 -1
- package/build/components/block-list/index.native.js +75 -23
- package/build/components/block-list/index.native.js.map +1 -1
- package/build/components/block-list/use-block-props/index.js +8 -4
- package/build/components/block-list/use-block-props/index.js.map +1 -1
- package/build/components/block-list/use-in-between-inserter.js +1 -1
- package/build/components/block-list/use-in-between-inserter.js.map +1 -1
- package/build/components/block-mobile-toolbar/index.native.js +9 -3
- package/build/components/block-mobile-toolbar/index.native.js.map +1 -1
- package/build/components/block-mover/index.native.js +17 -4
- package/build/components/block-mover/index.native.js.map +1 -1
- package/build/components/block-popover/inbetween.js +10 -2
- package/build/components/block-popover/inbetween.js.map +1 -1
- package/build/components/block-popover/index.js +4 -16
- package/build/components/block-popover/index.js.map +1 -1
- package/build/components/block-preview/index.js +1 -1
- package/build/components/block-preview/index.js.map +1 -1
- package/build/components/block-tools/selected-block-popover.js +1 -29
- package/build/components/block-tools/selected-block-popover.js.map +1 -1
- package/build/components/border-radius-control/input-controls.js +10 -3
- package/build/components/border-radius-control/input-controls.js.map +1 -1
- package/build/components/colors-gradients/dropdown.js +149 -44
- package/build/components/colors-gradients/dropdown.js.map +1 -1
- package/build/components/iframe/index.js +51 -50
- package/build/components/iframe/index.js.map +1 -1
- package/build/components/image-editor/use-save-image.js +3 -1
- package/build/components/image-editor/use-save-image.js.map +1 -1
- package/build/components/index.js +5 -14
- package/build/components/index.js.map +1 -1
- package/build/components/inserter/index.native.js +1 -1
- package/build/components/inserter/index.native.js.map +1 -1
- package/build/components/link-control/constants.js +11 -1
- package/build/components/link-control/constants.js.map +1 -1
- package/build/components/link-control/search-results.js +4 -3
- package/build/components/link-control/search-results.js.map +1 -1
- package/build/components/link-control/use-search-handler.js +4 -4
- package/build/components/link-control/use-search-handler.js.map +1 -1
- package/build/components/list-view/drop-indicator.js +0 -1
- package/build/components/list-view/drop-indicator.js.map +1 -1
- package/build/components/navigable-toolbar/index.js +12 -2
- package/build/components/navigable-toolbar/index.js.map +1 -1
- package/build/components/rich-text/format-toolbar-container.js +0 -1
- package/build/components/rich-text/format-toolbar-container.js.map +1 -1
- package/build/components/rich-text/index.js +1 -1
- package/build/components/rich-text/index.js.map +1 -1
- package/build/components/url-input/index.js +4 -1
- package/build/components/url-input/index.js.map +1 -1
- package/build/components/use-block-drop-zone/index.native.js +167 -0
- package/build/components/use-block-drop-zone/index.native.js.map +1 -0
- package/build/components/use-on-block-drop/index.native.js +95 -0
- package/build/components/use-on-block-drop/index.native.js.map +1 -0
- package/build/components/warning/index.js +6 -1
- package/build/components/warning/index.js.map +1 -1
- package/build/hooks/anchor.js.map +1 -1
- package/build/hooks/border.js +2 -7
- package/build/hooks/border.js.map +1 -1
- package/build/hooks/color-panel.js +14 -7
- package/build/hooks/color-panel.js.map +1 -1
- package/build/hooks/style.js +14 -13
- package/build/hooks/style.js.map +1 -1
- package/build/hooks/typography.js +6 -2
- package/build/hooks/typography.js.map +1 -1
- package/build-module/components/block-alignment-matrix-control/index.js +1 -6
- package/build-module/components/block-alignment-matrix-control/index.js.map +1 -1
- package/build-module/components/block-content-overlay/index.js +3 -78
- package/build-module/components/block-content-overlay/index.js.map +1 -1
- package/build-module/components/block-draggable/draggable-chip.native.js +50 -0
- package/build-module/components/block-draggable/draggable-chip.native.js.map +1 -0
- package/build-module/components/block-draggable/dropping-insertion-point.native.js +137 -0
- package/build-module/components/block-draggable/dropping-insertion-point.native.js.map +1 -0
- package/build-module/components/block-draggable/index.native.js +449 -0
- package/build-module/components/block-draggable/index.native.js.map +1 -0
- package/build-module/components/block-draggable/use-scroll-when-dragging.native.js +120 -0
- package/build-module/components/block-draggable/use-scroll-when-dragging.native.js.map +1 -0
- package/build-module/components/block-list/block-list-context.native.js +179 -0
- package/build-module/components/block-list/block-list-context.native.js.map +1 -0
- package/build-module/components/block-list/block-list-item-cell.native.js +59 -0
- package/build-module/components/block-list/block-list-item-cell.native.js.map +1 -0
- package/build-module/components/block-list/block-list-item.native.js +12 -9
- package/build-module/components/block-list/block-list-item.native.js.map +1 -1
- package/build-module/components/block-list/block.native.js +25 -5
- package/build-module/components/block-list/block.native.js.map +1 -1
- package/build-module/components/block-list/index.native.js +72 -23
- package/build-module/components/block-list/index.native.js.map +1 -1
- package/build-module/components/block-list/use-block-props/index.js +9 -5
- package/build-module/components/block-list/use-block-props/index.js.map +1 -1
- package/build-module/components/block-list/use-in-between-inserter.js +1 -1
- package/build-module/components/block-list/use-in-between-inserter.js.map +1 -1
- package/build-module/components/block-mobile-toolbar/index.native.js +8 -3
- package/build-module/components/block-mobile-toolbar/index.native.js.map +1 -1
- package/build-module/components/block-mover/index.native.js +18 -5
- package/build-module/components/block-mover/index.native.js.map +1 -1
- package/build-module/components/block-popover/inbetween.js +10 -2
- package/build-module/components/block-popover/inbetween.js.map +1 -1
- package/build-module/components/block-popover/index.js +4 -15
- package/build-module/components/block-popover/index.js.map +1 -1
- package/build-module/components/block-preview/index.js +1 -1
- package/build-module/components/block-preview/index.js.map +1 -1
- package/build-module/components/block-tools/selected-block-popover.js +2 -29
- package/build-module/components/block-tools/selected-block-popover.js.map +1 -1
- package/build-module/components/border-radius-control/input-controls.js +11 -4
- package/build-module/components/border-radius-control/input-controls.js.map +1 -1
- package/build-module/components/colors-gradients/dropdown.js +151 -46
- package/build-module/components/colors-gradients/dropdown.js.map +1 -1
- package/build-module/components/iframe/index.js +52 -51
- package/build-module/components/iframe/index.js.map +1 -1
- package/build-module/components/image-editor/use-save-image.js +2 -1
- package/build-module/components/image-editor/use-save-image.js.map +1 -1
- package/build-module/components/index.js +1 -2
- package/build-module/components/index.js.map +1 -1
- package/build-module/components/inserter/index.native.js +1 -1
- package/build-module/components/inserter/index.native.js.map +1 -1
- package/build-module/components/link-control/constants.js +5 -0
- package/build-module/components/link-control/constants.js.map +1 -1
- package/build-module/components/link-control/search-results.js +3 -4
- package/build-module/components/link-control/search-results.js.map +1 -1
- package/build-module/components/link-control/use-search-handler.js +5 -5
- package/build-module/components/link-control/use-search-handler.js.map +1 -1
- package/build-module/components/list-view/drop-indicator.js +0 -1
- package/build-module/components/list-view/drop-indicator.js.map +1 -1
- package/build-module/components/navigable-toolbar/index.js +12 -2
- package/build-module/components/navigable-toolbar/index.js.map +1 -1
- package/build-module/components/rich-text/format-toolbar-container.js +0 -1
- package/build-module/components/rich-text/format-toolbar-container.js.map +1 -1
- package/build-module/components/rich-text/index.js +1 -1
- package/build-module/components/rich-text/index.js.map +1 -1
- package/build-module/components/url-input/index.js +4 -1
- package/build-module/components/url-input/index.js.map +1 -1
- package/build-module/components/use-block-drop-zone/index.native.js +148 -0
- package/build-module/components/use-block-drop-zone/index.native.js.map +1 -0
- package/build-module/components/use-on-block-drop/index.native.js +83 -0
- package/build-module/components/use-on-block-drop/index.native.js.map +1 -0
- package/build-module/components/warning/index.js +6 -1
- package/build-module/components/warning/index.js.map +1 -1
- package/build-module/hooks/anchor.js.map +1 -1
- package/build-module/hooks/border.js +2 -7
- package/build-module/hooks/border.js.map +1 -1
- package/build-module/hooks/color-panel.js +11 -6
- package/build-module/hooks/color-panel.js.map +1 -1
- package/build-module/hooks/style.js +15 -14
- package/build-module/hooks/style.js.map +1 -1
- package/build-module/hooks/typography.js +6 -2
- package/build-module/hooks/typography.js.map +1 -1
- package/build-style/style-rtl.css +60 -174
- package/build-style/style.css +60 -174
- package/package.json +28 -28
- package/src/components/block-alignment-matrix-control/index.js +1 -5
- package/src/components/block-content-overlay/index.js +8 -95
- package/src/components/block-content-overlay/style.scss +2 -11
- package/src/components/block-draggable/draggable-chip.native.js +49 -0
- package/src/components/block-draggable/dropping-insertion-point.native.js +181 -0
- package/src/components/block-draggable/dropping-insertion-point.native.scss +8 -0
- package/src/components/block-draggable/index.native.js +458 -0
- package/src/components/block-draggable/style.native.scss +19 -0
- package/src/components/block-draggable/use-scroll-when-dragging.native.js +135 -0
- package/src/components/block-list/block-list-context.native.js +175 -0
- package/src/components/block-list/block-list-item-cell.native.js +49 -0
- package/src/components/block-list/block-list-item.native.js +7 -11
- package/src/components/block-list/block.native.js +36 -8
- package/src/components/block-list/index.native.js +54 -13
- package/src/components/block-list/test/block-list-context.native.js +253 -0
- package/src/components/block-list/test/fixtures/block-list-context.native.js +79 -0
- package/src/components/block-list/use-block-props/index.js +10 -5
- package/src/components/block-list/use-in-between-inserter.js +1 -1
- package/src/components/block-mobile-toolbar/index.native.js +8 -1
- package/src/components/block-mover/index.native.js +22 -6
- package/src/components/block-mover/test/__snapshots__/index.native.js.snap +6 -0
- package/src/components/block-popover/inbetween.js +9 -1
- package/src/components/block-popover/index.js +1 -16
- package/src/components/block-popover/style.scss +1 -0
- package/src/components/block-preview/index.js +1 -4
- package/src/components/block-switcher/style.scss +2 -39
- package/src/components/block-tools/selected-block-popover.js +1 -36
- package/src/components/block-tools/style.scss +1 -12
- package/src/components/border-radius-control/input-controls.js +16 -8
- package/src/components/border-radius-control/style.scss +3 -2
- package/src/components/colors-gradients/dropdown.js +156 -62
- package/src/components/colors-gradients/style.scss +51 -23
- package/src/components/duotone-control/style.scss +1 -7
- package/src/components/iframe/index.js +62 -54
- package/src/components/image-editor/use-save-image.js +2 -1
- package/src/components/index.js +1 -2
- package/src/components/inserter/index.native.js +1 -1
- package/src/components/inserter/style.scss +2 -1
- package/src/components/link-control/constants.js +11 -0
- package/src/components/link-control/search-results.js +4 -5
- package/src/components/link-control/use-search-handler.js +11 -5
- package/src/components/list-view/drop-indicator.js +0 -1
- package/src/components/list-view/style.scss +2 -1
- package/src/components/navigable-toolbar/index.js +12 -2
- package/src/components/preview-options/style.scss +0 -4
- package/src/components/rich-text/format-toolbar-container.js +0 -1
- package/src/components/rich-text/index.js +1 -1
- package/src/components/rich-text/style.scss +2 -8
- package/src/components/url-input/index.js +3 -1
- package/src/components/use-block-drop-zone/index.native.js +173 -0
- package/src/components/use-on-block-drop/index.native.js +119 -0
- package/src/components/warning/index.js +47 -42
- package/src/components/warning/test/__snapshots__/index.js.snap +15 -6
- package/src/components/warning/test/index.js +1 -1
- package/src/hooks/anchor.js +1 -1
- package/src/hooks/border.js +2 -11
- package/src/hooks/border.scss +0 -48
- package/src/hooks/color-panel.js +13 -9
- package/src/hooks/color.scss +0 -62
- package/src/hooks/style.js +25 -39
- package/src/hooks/typography.js +2 -0
- package/src/style.scss +0 -1
- package/build/components/colors-gradients/tools-panel-color-dropdown.js +0 -89
- package/build/components/colors-gradients/tools-panel-color-dropdown.js.map +0 -1
- package/build-module/components/colors-gradients/tools-panel-color-dropdown.js +0 -75
- package/build-module/components/colors-gradients/tools-panel-color-dropdown.js.map +0 -1
- package/src/components/block-alignment-matrix-control/style.scss +0 -10
- package/src/components/colors-gradients/tools-panel-color-dropdown.js +0 -85
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/block-editor/src/hooks/typography.js"],"names":["getBlockSupport","hasBlockSupport","__experimentalToolsPanelItem","ToolsPanelItem","__","InspectorControls","getFontAppearanceLabel","LINE_HEIGHT_SUPPORT_KEY","LineHeightEdit","hasLineHeightValue","resetLineHeight","useIsLineHeightDisabled","FONT_STYLE_SUPPORT_KEY","FONT_WEIGHT_SUPPORT_KEY","FontAppearanceEdit","hasFontAppearanceValue","resetFontAppearance","useIsFontAppearanceDisabled","useIsFontStyleDisabled","useIsFontWeightDisabled","FONT_FAMILY_SUPPORT_KEY","FontFamilyEdit","hasFontFamilyValue","resetFontFamily","useIsFontFamilyDisabled","FONT_SIZE_SUPPORT_KEY","FontSizeEdit","hasFontSizeValue","resetFontSize","useIsFontSizeDisabled","TEXT_DECORATION_SUPPORT_KEY","TextDecorationEdit","hasTextDecorationValue","resetTextDecoration","useIsTextDecorationDisabled","TEXT_TRANSFORM_SUPPORT_KEY","TextTransformEdit","hasTextTransformValue","resetTextTransform","useIsTextTransformDisabled","LETTER_SPACING_SUPPORT_KEY","LetterSpacingEdit","hasLetterSpacingValue","resetLetterSpacing","useIsLetterSpacingDisabled","TYPOGRAPHY_SUPPORT_KEY","TYPOGRAPHY_SUPPORT_KEYS","TypographyPanel","props","clientId","isFontFamilyDisabled","isFontSizeDisabled","isFontAppearanceDisabled","isLineHeightDisabled","isTextDecorationDisabled","isTextTransformDisabled","isLetterSpacingDisabled","hasFontStyles","hasFontWeights","isDisabled","useIsTypographyDisabled","isSupported","hasTypographySupport","name","defaultControls","createResetAllFilter","attribute","newAttributes","style","typography","undefined","fontFamily","fontSize","fontAppearance","fontStyle","fontWeight","lineHeight","textDecoration","textTransform","letterSpacing","blockName","some","key","configs","filter","Boolean","length"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,eAAT,EAA0BC,eAA1B,QAAiD,mBAAjD;AACA,SAASC,4BAA4B,IAAIC,cAAzC,QAA+D,uBAA/D;AACA,SAASC,EAAT,QAAmB,iBAAnB;AAEA;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E+B,KAAF,CADZ,EAEfnB,qBAAqB,CAAEmB,KAAF,CAFN,EAGfrC,uBAAuB,CAAEqC,KAAF,CAHR,EAIfxB,uBAAuB,CAAEwB,KAAF,CAJR,EAKfd,2BAA2B,CAAEc,KAAF,CALZ,EAMfT,0BAA0B,CAAES,KAAF,CANX,EAOfJ,0BAA0B,CAAEI,KAAF,CAPX,CAAhB;AAUA,SAAOmC,OAAO,CAACC,MAAR,CAAgBC,OAAhB,EAA0BC,MAA1B,KAAqCH,OAAO,CAACG,MAApD;AACA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { getBlockSupport, hasBlockSupport } from '@wordpress/blocks';\nimport { __experimentalToolsPanelItem as ToolsPanelItem } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport InspectorControls from '../components/inspector-controls';\nimport { getFontAppearanceLabel } from '../components/font-appearance-control';\n\nimport {\n\tLINE_HEIGHT_SUPPORT_KEY,\n\tLineHeightEdit,\n\thasLineHeightValue,\n\tresetLineHeight,\n\tuseIsLineHeightDisabled,\n} from './line-height';\nimport {\n\tFONT_STYLE_SUPPORT_KEY,\n\tFONT_WEIGHT_SUPPORT_KEY,\n\tFontAppearanceEdit,\n\thasFontAppearanceValue,\n\tresetFontAppearance,\n\tuseIsFontAppearanceDisabled,\n\tuseIsFontStyleDisabled,\n\tuseIsFontWeightDisabled,\n} from './font-appearance';\nimport {\n\tFONT_FAMILY_SUPPORT_KEY,\n\tFontFamilyEdit,\n\thasFontFamilyValue,\n\tresetFontFamily,\n\tuseIsFontFamilyDisabled,\n} from './font-family';\nimport {\n\tFONT_SIZE_SUPPORT_KEY,\n\tFontSizeEdit,\n\thasFontSizeValue,\n\tresetFontSize,\n\tuseIsFontSizeDisabled,\n} from './font-size';\nimport {\n\tTEXT_DECORATION_SUPPORT_KEY,\n\tTextDecorationEdit,\n\thasTextDecorationValue,\n\tresetTextDecoration,\n\tuseIsTextDecorationDisabled,\n} from './text-decoration';\nimport {\n\tTEXT_TRANSFORM_SUPPORT_KEY,\n\tTextTransformEdit,\n\thasTextTransformValue,\n\tresetTextTransform,\n\tuseIsTextTransformDisabled,\n} from './text-transform';\nimport {\n\tLETTER_SPACING_SUPPORT_KEY,\n\tLetterSpacingEdit,\n\thasLetterSpacingValue,\n\tresetLetterSpacing,\n\tuseIsLetterSpacingDisabled,\n} from './letter-spacing';\n\nexport const TYPOGRAPHY_SUPPORT_KEY = 'typography';\nexport const TYPOGRAPHY_SUPPORT_KEYS = [\n\tLINE_HEIGHT_SUPPORT_KEY,\n\tFONT_SIZE_SUPPORT_KEY,\n\tFONT_STYLE_SUPPORT_KEY,\n\tFONT_WEIGHT_SUPPORT_KEY,\n\tFONT_FAMILY_SUPPORT_KEY,\n\tTEXT_DECORATION_SUPPORT_KEY,\n\tTEXT_TRANSFORM_SUPPORT_KEY,\n\tLETTER_SPACING_SUPPORT_KEY,\n];\n\nexport function TypographyPanel( props ) {\n\tconst { clientId } = props;\n\tconst isFontFamilyDisabled = useIsFontFamilyDisabled( props );\n\tconst isFontSizeDisabled = useIsFontSizeDisabled( props );\n\tconst isFontAppearanceDisabled = useIsFontAppearanceDisabled( props );\n\tconst isLineHeightDisabled = useIsLineHeightDisabled( props );\n\tconst isTextDecorationDisabled = useIsTextDecorationDisabled( props );\n\tconst isTextTransformDisabled = useIsTextTransformDisabled( props );\n\tconst isLetterSpacingDisabled = useIsLetterSpacingDisabled( props );\n\n\tconst hasFontStyles = ! useIsFontStyleDisabled( props );\n\tconst hasFontWeights = ! useIsFontWeightDisabled( props );\n\n\tconst isDisabled = useIsTypographyDisabled( props );\n\tconst isSupported = hasTypographySupport( props.name );\n\n\tif ( isDisabled || ! isSupported ) return null;\n\n\tconst defaultControls = getBlockSupport( props.name, [\n\t\tTYPOGRAPHY_SUPPORT_KEY,\n\t\t'__experimentalDefaultControls',\n\t] );\n\n\tconst createResetAllFilter = ( attribute ) => ( newAttributes ) => ( {\n\t\t...newAttributes,\n\t\tstyle: {\n\t\t\t...newAttributes.style,\n\t\t\ttypography: {\n\t\t\t\t...newAttributes.style?.typography,\n\t\t\t\t[ attribute ]: undefined,\n\t\t\t},\n\t\t},\n\t} );\n\n\treturn (\n\t\t<InspectorControls __experimentalGroup=\"typography\">\n\t\t\t{ ! isFontFamilyDisabled && (\n\t\t\t\t<ToolsPanelItem\n\t\t\t\t\thasValue={ () => hasFontFamilyValue( props ) }\n\t\t\t\t\tlabel={ __( 'Font family' ) }\n\t\t\t\t\tonDeselect={ () => resetFontFamily( props ) }\n\t\t\t\t\tisShownByDefault={ defaultControls?.fontFamily }\n\t\t\t\t\tresetAllFilter={ ( newAttributes ) => ( {\n\t\t\t\t\t\t...newAttributes,\n\t\t\t\t\t\tfontFamily: undefined,\n\t\t\t\t\t} ) }\n\t\t\t\t\tpanelId={ clientId }\n\t\t\t\t>\n\t\t\t\t\t<FontFamilyEdit { ...props } />\n\t\t\t\t</ToolsPanelItem>\n\t\t\t) }\n\t\t\t{ ! isFontSizeDisabled && (\n\t\t\t\t<ToolsPanelItem\n\t\t\t\t\thasValue={ () => hasFontSizeValue( props ) }\n\t\t\t\t\tlabel={ __( 'Font size' ) }\n\t\t\t\t\tonDeselect={ () => resetFontSize( props ) }\n\t\t\t\t\tisShownByDefault={ defaultControls?.fontSize }\n\t\t\t\t\tresetAllFilter={ ( newAttributes ) => ( {\n\t\t\t\t\t\t...newAttributes,\n\t\t\t\t\t\tfontSize: undefined,\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t...newAttributes.style,\n\t\t\t\t\t\t\ttypography: {\n\t\t\t\t\t\t\t\t...newAttributes.style?.typography,\n\t\t\t\t\t\t\t\tfontSize: undefined,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t} ) }\n\t\t\t\t\tpanelId={ clientId }\n\t\t\t\t>\n\t\t\t\t\t<FontSizeEdit { ...props } />\n\t\t\t\t</ToolsPanelItem>\n\t\t\t) }\n\t\t\t{ ! isFontAppearanceDisabled && (\n\t\t\t\t<ToolsPanelItem\n\t\t\t\t\tclassName=\"single-column\"\n\t\t\t\t\thasValue={ () => hasFontAppearanceValue( props ) }\n\t\t\t\t\tlabel={ getFontAppearanceLabel(\n\t\t\t\t\t\thasFontStyles,\n\t\t\t\t\t\thasFontWeights\n\t\t\t\t\t) }\n\t\t\t\t\tonDeselect={ () => resetFontAppearance( props ) }\n\t\t\t\t\tisShownByDefault={ defaultControls?.fontAppearance }\n\t\t\t\t\tresetAllFilter={ ( newAttributes ) => ( {\n\t\t\t\t\t\t...newAttributes,\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t...newAttributes.style,\n\t\t\t\t\t\t\ttypography: {\n\t\t\t\t\t\t\t\t...newAttributes.style?.typography,\n\t\t\t\t\t\t\t\tfontStyle: undefined,\n\t\t\t\t\t\t\t\tfontWeight: undefined,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t} ) }\n\t\t\t\t\tpanelId={ clientId }\n\t\t\t\t>\n\t\t\t\t\t<FontAppearanceEdit { ...props } />\n\t\t\t\t</ToolsPanelItem>\n\t\t\t) }\n\t\t\t{ ! isLineHeightDisabled && (\n\t\t\t\t<ToolsPanelItem\n\t\t\t\t\tclassName=\"single-column\"\n\t\t\t\t\thasValue={ () => hasLineHeightValue( props ) }\n\t\t\t\t\tlabel={ __( 'Line height' ) }\n\t\t\t\t\tonDeselect={ () => resetLineHeight( props ) }\n\t\t\t\t\tisShownByDefault={ defaultControls?.lineHeight }\n\t\t\t\t\tresetAllFilter={ createResetAllFilter( 'lineHeight' ) }\n\t\t\t\t\tpanelId={ clientId }\n\t\t\t\t>\n\t\t\t\t\t<LineHeightEdit { ...props } />\n\t\t\t\t</ToolsPanelItem>\n\t\t\t) }\n\t\t\t{ ! isTextDecorationDisabled && (\n\t\t\t\t<ToolsPanelItem\n\t\t\t\t\tclassName=\"single-column\"\n\t\t\t\t\thasValue={ () => hasTextDecorationValue( props ) }\n\t\t\t\t\tlabel={ __( 'Decoration' ) }\n\t\t\t\t\tonDeselect={ () => resetTextDecoration( props ) }\n\t\t\t\t\tisShownByDefault={ defaultControls?.textDecoration }\n\t\t\t\t\tresetAllFilter={ createResetAllFilter( 'textDecoration' ) }\n\t\t\t\t\tpanelId={ clientId }\n\t\t\t\t>\n\t\t\t\t\t<TextDecorationEdit { ...props } />\n\t\t\t\t</ToolsPanelItem>\n\t\t\t) }\n\t\t\t{ ! isTextTransformDisabled && (\n\t\t\t\t<ToolsPanelItem\n\t\t\t\t\tclassName=\"single-column\"\n\t\t\t\t\thasValue={ () => hasTextTransformValue( props ) }\n\t\t\t\t\tlabel={ __( 'Letter case' ) }\n\t\t\t\t\tonDeselect={ () => resetTextTransform( props ) }\n\t\t\t\t\tisShownByDefault={ defaultControls?.textTransform }\n\t\t\t\t\tresetAllFilter={ createResetAllFilter( 'textTransform' ) }\n\t\t\t\t\tpanelId={ clientId }\n\t\t\t\t>\n\t\t\t\t\t<TextTransformEdit { ...props } />\n\t\t\t\t</ToolsPanelItem>\n\t\t\t) }\n\t\t\t{ ! isLetterSpacingDisabled && (\n\t\t\t\t<ToolsPanelItem\n\t\t\t\t\tclassName=\"single-column\"\n\t\t\t\t\thasValue={ () => hasLetterSpacingValue( props ) }\n\t\t\t\t\tlabel={ __( 'Letter spacing' ) }\n\t\t\t\t\tonDeselect={ () => resetLetterSpacing( props ) }\n\t\t\t\t\tisShownByDefault={ defaultControls?.letterSpacing }\n\t\t\t\t\tresetAllFilter={ createResetAllFilter( 'letterSpacing' ) }\n\t\t\t\t\tpanelId={ clientId }\n\t\t\t\t>\n\t\t\t\t\t<LetterSpacingEdit { ...props } />\n\t\t\t\t</ToolsPanelItem>\n\t\t\t) }\n\t\t</InspectorControls>\n\t);\n}\n\nexport const hasTypographySupport = ( blockName ) => {\n\treturn TYPOGRAPHY_SUPPORT_KEYS.some( ( key ) =>\n\t\thasBlockSupport( blockName, key )\n\t);\n};\n\nfunction useIsTypographyDisabled( props = {} ) {\n\tconst configs = [\n\t\tuseIsFontAppearanceDisabled( props ),\n\t\tuseIsFontSizeDisabled( props ),\n\t\tuseIsLineHeightDisabled( props ),\n\t\tuseIsFontFamilyDisabled( props ),\n\t\tuseIsTextDecorationDisabled( props ),\n\t\tuseIsTextTransformDisabled( props ),\n\t\tuseIsLetterSpacingDisabled( props ),\n\t];\n\n\treturn configs.filter( Boolean ).length === configs.length;\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["@wordpress/block-editor/src/hooks/typography.js"],"names":["getBlockSupport","hasBlockSupport","__experimentalToolsPanelItem","ToolsPanelItem","__","InspectorControls","getFontAppearanceLabel","LINE_HEIGHT_SUPPORT_KEY","LineHeightEdit","hasLineHeightValue","resetLineHeight","useIsLineHeightDisabled","FONT_STYLE_SUPPORT_KEY","FONT_WEIGHT_SUPPORT_KEY","FontAppearanceEdit","hasFontAppearanceValue","resetFontAppearance","useIsFontAppearanceDisabled","useIsFontStyleDisabled","useIsFontWeightDisabled","FONT_FAMILY_SUPPORT_KEY","FontFamilyEdit","hasFontFamilyValue","resetFontFamily","useIsFontFamilyDisabled","FONT_SIZE_SUPPORT_KEY","FontSizeEdit","hasFontSizeValue","resetFontSize","useIsFontSizeDisabled","TEXT_DECORATION_SUPPORT_KEY","TextDecorationEdit","hasTextDecorationValue","resetTextDecoration","useIsTextDecorationDisabled","TEXT_TRANSFORM_SUPPORT_KEY","TextTransformEdit","hasTextTransformValue","resetTextTransform","useIsTextTransformDisabled","LETTER_SPACING_SUPPORT_KEY","LetterSpacingEdit","hasLetterSpacingValue","resetLetterSpacing","useIsLetterSpacingDisabled","TYPOGRAPHY_SUPPORT_KEY","TYPOGRAPHY_SUPPORT_KEYS","TypographyPanel","props","clientId","isFontFamilyDisabled","isFontSizeDisabled","isFontAppearanceDisabled","isLineHeightDisabled","isTextDecorationDisabled","isTextTransformDisabled","isLetterSpacingDisabled","hasFontStyles","hasFontWeights","isDisabled","useIsTypographyDisabled","isSupported","hasTypographySupport","name","defaultControls","createResetAllFilter","attribute","newAttributes","style","typography","undefined","fontFamily","fontSize","fontAppearance","fontStyle","fontWeight","lineHeight","textDecoration","textTransform","letterSpacing","blockName","some","key","configs","filter","Boolean","length"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,eAAT,EAA0BC,eAA1B,QAAiD,mBAAjD;AACA,SAASC,4BAA4B,IAAIC,cAAzC,QAA+D,uBAA/D;AACA,SAASC,EAAT,QAAmB,iBAAnB;AAEA;AACA;AACA;;AACA,OAAOC,iBAAP,MAA8B,kCAA9B;AACA,SAASC,sBAAT,QAAuC,uCAAvC;AAEA,SACCC,uBADD,EAECC,cAFD,EAGCC,kBAHD,EAICC,eAJD,EAKCC,uBALD,QAMO,eANP;AAOA,SACCC,sBADD,EAECC,uBAFD,EAGCC,kBAHD,EAICC,sBAJD,EAKCC,mBALD,EAMCC,2BAND,EAOCC,sBAPD,EAQCC,uBARD,QASO,mBATP;AAUA,SACCC,uBADD,EAECC,cAFD,EAGCC,kBAHD,EAICC,eAJD,EAKCC,uBALD,QAMO,eANP;AAOA,SACCC,qBADD,EAECC,YAFD,EAGCC,gBAHD,EAICC,aAJD,EAKCC,qBALD,QAMO,aANP;AAOA,SACCC,2BADD,EAECC,kBAFD,EAGCC,sBAHD,EAICC,mBAJD,EAKCC,2BALD,QAMO,mBANP;AAOA,SACCC,0BADD,EAECC,iBAFD,EAGCC,qBAHD,EAICC,kBAJD,EAKCC,0BALD,QAMO,kBANP;AAOA,SACCC,0BADD,EAECC,iBAFD,EAGCC,qBAHD,EAICC,kBAJD,EAKCC,0BALD,QAMO,kBANP;AAQA,OAAO,MAAMC,sBAAsB,GAAG,YAA/B;AACP,OAAO,MAAMC,uBAAuB,GAAG,CACtCvC,uBADsC,EAEtCkB,qBAFsC,EAGtCb,sBAHsC,EAItCC,uBAJsC,EAKtCO,uBALsC,EAMtCU,2BANsC,EAOtCK,0BAPsC,EAQtCK,0BARsC,CAAhC;AAWP,OAAO,SAASO,eAAT,CAA0BC,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AxB,CATD,CA1GF,CADD;AAyHA;AAED,OAAO,MAAMc,oBAAoB,GAAKkB,SAAF,IAAiB;AACpD,SAAOlC,uBAAuB,CAACmC,IAAxB,CAAgCC,GAAF,IACpCjF,eAAe,CAAE+E,SAAF,EAAaE,GAAb,CADT,CAAP;AAGA,CAJM;;AAMP,SAAStB,uBAAT,GAA+C;AAAA,MAAbZ,KAAa,uEAAL,EAAK;AAC9C,QAAMmC,OAAO,GAAG,CACflE,2BAA2B,CAAE+B,KAAF,CADZ,EAEfnB,qBAAqB,CAAEmB,KAAF,CAFN,EAGfrC,uBAAuB,CAAEqC,KAAF,CAHR,EAIfxB,uBAAuB,CAAEwB,KAAF,CAJR,EAKfd,2BAA2B,CAAEc,KAAF,CALZ,EAMfT,0BAA0B,CAAES,KAAF,CANX,EAOfJ,0BAA0B,CAAEI,KAAF,CAPX,CAAhB;AAUA,SAAOmC,OAAO,CAACC,MAAR,CAAgBC,OAAhB,EAA0BC,MAA1B,KAAqCH,OAAO,CAACG,MAApD;AACA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { getBlockSupport, hasBlockSupport } from '@wordpress/blocks';\nimport { __experimentalToolsPanelItem as ToolsPanelItem } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport InspectorControls from '../components/inspector-controls';\nimport { getFontAppearanceLabel } from '../components/font-appearance-control';\n\nimport {\n\tLINE_HEIGHT_SUPPORT_KEY,\n\tLineHeightEdit,\n\thasLineHeightValue,\n\tresetLineHeight,\n\tuseIsLineHeightDisabled,\n} from './line-height';\nimport {\n\tFONT_STYLE_SUPPORT_KEY,\n\tFONT_WEIGHT_SUPPORT_KEY,\n\tFontAppearanceEdit,\n\thasFontAppearanceValue,\n\tresetFontAppearance,\n\tuseIsFontAppearanceDisabled,\n\tuseIsFontStyleDisabled,\n\tuseIsFontWeightDisabled,\n} from './font-appearance';\nimport {\n\tFONT_FAMILY_SUPPORT_KEY,\n\tFontFamilyEdit,\n\thasFontFamilyValue,\n\tresetFontFamily,\n\tuseIsFontFamilyDisabled,\n} from './font-family';\nimport {\n\tFONT_SIZE_SUPPORT_KEY,\n\tFontSizeEdit,\n\thasFontSizeValue,\n\tresetFontSize,\n\tuseIsFontSizeDisabled,\n} from './font-size';\nimport {\n\tTEXT_DECORATION_SUPPORT_KEY,\n\tTextDecorationEdit,\n\thasTextDecorationValue,\n\tresetTextDecoration,\n\tuseIsTextDecorationDisabled,\n} from './text-decoration';\nimport {\n\tTEXT_TRANSFORM_SUPPORT_KEY,\n\tTextTransformEdit,\n\thasTextTransformValue,\n\tresetTextTransform,\n\tuseIsTextTransformDisabled,\n} from './text-transform';\nimport {\n\tLETTER_SPACING_SUPPORT_KEY,\n\tLetterSpacingEdit,\n\thasLetterSpacingValue,\n\tresetLetterSpacing,\n\tuseIsLetterSpacingDisabled,\n} from './letter-spacing';\n\nexport const TYPOGRAPHY_SUPPORT_KEY = 'typography';\nexport const TYPOGRAPHY_SUPPORT_KEYS = [\n\tLINE_HEIGHT_SUPPORT_KEY,\n\tFONT_SIZE_SUPPORT_KEY,\n\tFONT_STYLE_SUPPORT_KEY,\n\tFONT_WEIGHT_SUPPORT_KEY,\n\tFONT_FAMILY_SUPPORT_KEY,\n\tTEXT_DECORATION_SUPPORT_KEY,\n\tTEXT_TRANSFORM_SUPPORT_KEY,\n\tLETTER_SPACING_SUPPORT_KEY,\n];\n\nexport function TypographyPanel( props ) {\n\tconst { clientId } = props;\n\tconst isFontFamilyDisabled = useIsFontFamilyDisabled( props );\n\tconst isFontSizeDisabled = useIsFontSizeDisabled( props );\n\tconst isFontAppearanceDisabled = useIsFontAppearanceDisabled( props );\n\tconst isLineHeightDisabled = useIsLineHeightDisabled( props );\n\tconst isTextDecorationDisabled = useIsTextDecorationDisabled( props );\n\tconst isTextTransformDisabled = useIsTextTransformDisabled( props );\n\tconst isLetterSpacingDisabled = useIsLetterSpacingDisabled( props );\n\n\tconst hasFontStyles = ! useIsFontStyleDisabled( props );\n\tconst hasFontWeights = ! useIsFontWeightDisabled( props );\n\n\tconst isDisabled = useIsTypographyDisabled( props );\n\tconst isSupported = hasTypographySupport( props.name );\n\n\tif ( isDisabled || ! isSupported ) return null;\n\n\tconst defaultControls = getBlockSupport( props.name, [\n\t\tTYPOGRAPHY_SUPPORT_KEY,\n\t\t'__experimentalDefaultControls',\n\t] );\n\n\tconst createResetAllFilter = ( attribute ) => ( newAttributes ) => ( {\n\t\t...newAttributes,\n\t\tstyle: {\n\t\t\t...newAttributes.style,\n\t\t\ttypography: {\n\t\t\t\t...newAttributes.style?.typography,\n\t\t\t\t[ attribute ]: undefined,\n\t\t\t},\n\t\t},\n\t} );\n\n\treturn (\n\t\t<InspectorControls __experimentalGroup=\"typography\">\n\t\t\t{ ! isFontFamilyDisabled && (\n\t\t\t\t<ToolsPanelItem\n\t\t\t\t\thasValue={ () => hasFontFamilyValue( props ) }\n\t\t\t\t\tlabel={ __( 'Font family' ) }\n\t\t\t\t\tonDeselect={ () => resetFontFamily( props ) }\n\t\t\t\t\tisShownByDefault={ defaultControls?.fontFamily }\n\t\t\t\t\tresetAllFilter={ ( newAttributes ) => ( {\n\t\t\t\t\t\t...newAttributes,\n\t\t\t\t\t\tfontFamily: undefined,\n\t\t\t\t\t} ) }\n\t\t\t\t\tpanelId={ clientId }\n\t\t\t\t>\n\t\t\t\t\t<FontFamilyEdit { ...props } />\n\t\t\t\t</ToolsPanelItem>\n\t\t\t) }\n\t\t\t{ ! isFontSizeDisabled && (\n\t\t\t\t<ToolsPanelItem\n\t\t\t\t\thasValue={ () => hasFontSizeValue( props ) }\n\t\t\t\t\t/* translators: Ensure translation is distinct from \"Letter case\" */\n\t\t\t\t\tlabel={ __( 'Font size' ) }\n\t\t\t\t\tonDeselect={ () => resetFontSize( props ) }\n\t\t\t\t\tisShownByDefault={ defaultControls?.fontSize }\n\t\t\t\t\tresetAllFilter={ ( newAttributes ) => ( {\n\t\t\t\t\t\t...newAttributes,\n\t\t\t\t\t\tfontSize: undefined,\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t...newAttributes.style,\n\t\t\t\t\t\t\ttypography: {\n\t\t\t\t\t\t\t\t...newAttributes.style?.typography,\n\t\t\t\t\t\t\t\tfontSize: undefined,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t} ) }\n\t\t\t\t\tpanelId={ clientId }\n\t\t\t\t>\n\t\t\t\t\t<FontSizeEdit { ...props } />\n\t\t\t\t</ToolsPanelItem>\n\t\t\t) }\n\t\t\t{ ! isFontAppearanceDisabled && (\n\t\t\t\t<ToolsPanelItem\n\t\t\t\t\tclassName=\"single-column\"\n\t\t\t\t\thasValue={ () => hasFontAppearanceValue( props ) }\n\t\t\t\t\tlabel={ getFontAppearanceLabel(\n\t\t\t\t\t\thasFontStyles,\n\t\t\t\t\t\thasFontWeights\n\t\t\t\t\t) }\n\t\t\t\t\tonDeselect={ () => resetFontAppearance( props ) }\n\t\t\t\t\tisShownByDefault={ defaultControls?.fontAppearance }\n\t\t\t\t\tresetAllFilter={ ( newAttributes ) => ( {\n\t\t\t\t\t\t...newAttributes,\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t...newAttributes.style,\n\t\t\t\t\t\t\ttypography: {\n\t\t\t\t\t\t\t\t...newAttributes.style?.typography,\n\t\t\t\t\t\t\t\tfontStyle: undefined,\n\t\t\t\t\t\t\t\tfontWeight: undefined,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t} ) }\n\t\t\t\t\tpanelId={ clientId }\n\t\t\t\t>\n\t\t\t\t\t<FontAppearanceEdit { ...props } />\n\t\t\t\t</ToolsPanelItem>\n\t\t\t) }\n\t\t\t{ ! isLineHeightDisabled && (\n\t\t\t\t<ToolsPanelItem\n\t\t\t\t\tclassName=\"single-column\"\n\t\t\t\t\thasValue={ () => hasLineHeightValue( props ) }\n\t\t\t\t\tlabel={ __( 'Line height' ) }\n\t\t\t\t\tonDeselect={ () => resetLineHeight( props ) }\n\t\t\t\t\tisShownByDefault={ defaultControls?.lineHeight }\n\t\t\t\t\tresetAllFilter={ createResetAllFilter( 'lineHeight' ) }\n\t\t\t\t\tpanelId={ clientId }\n\t\t\t\t>\n\t\t\t\t\t<LineHeightEdit { ...props } />\n\t\t\t\t</ToolsPanelItem>\n\t\t\t) }\n\t\t\t{ ! isTextDecorationDisabled && (\n\t\t\t\t<ToolsPanelItem\n\t\t\t\t\tclassName=\"single-column\"\n\t\t\t\t\thasValue={ () => hasTextDecorationValue( props ) }\n\t\t\t\t\tlabel={ __( 'Decoration' ) }\n\t\t\t\t\tonDeselect={ () => resetTextDecoration( props ) }\n\t\t\t\t\tisShownByDefault={ defaultControls?.textDecoration }\n\t\t\t\t\tresetAllFilter={ createResetAllFilter( 'textDecoration' ) }\n\t\t\t\t\tpanelId={ clientId }\n\t\t\t\t>\n\t\t\t\t\t<TextDecorationEdit { ...props } />\n\t\t\t\t</ToolsPanelItem>\n\t\t\t) }\n\t\t\t{ ! isTextTransformDisabled && (\n\t\t\t\t<ToolsPanelItem\n\t\t\t\t\tclassName=\"single-column\"\n\t\t\t\t\thasValue={ () => hasTextTransformValue( props ) }\n\t\t\t\t\t/* translators: Ensure translation is distinct from \"Font size\" */\n\t\t\t\t\tlabel={ __( 'Letter case' ) }\n\t\t\t\t\tonDeselect={ () => resetTextTransform( props ) }\n\t\t\t\t\tisShownByDefault={ defaultControls?.textTransform }\n\t\t\t\t\tresetAllFilter={ createResetAllFilter( 'textTransform' ) }\n\t\t\t\t\tpanelId={ clientId }\n\t\t\t\t>\n\t\t\t\t\t<TextTransformEdit { ...props } />\n\t\t\t\t</ToolsPanelItem>\n\t\t\t) }\n\t\t\t{ ! isLetterSpacingDisabled && (\n\t\t\t\t<ToolsPanelItem\n\t\t\t\t\tclassName=\"single-column\"\n\t\t\t\t\thasValue={ () => hasLetterSpacingValue( props ) }\n\t\t\t\t\tlabel={ __( 'Letter spacing' ) }\n\t\t\t\t\tonDeselect={ () => resetLetterSpacing( props ) }\n\t\t\t\t\tisShownByDefault={ defaultControls?.letterSpacing }\n\t\t\t\t\tresetAllFilter={ createResetAllFilter( 'letterSpacing' ) }\n\t\t\t\t\tpanelId={ clientId }\n\t\t\t\t>\n\t\t\t\t\t<LetterSpacingEdit { ...props } />\n\t\t\t\t</ToolsPanelItem>\n\t\t\t) }\n\t\t</InspectorControls>\n\t);\n}\n\nexport const hasTypographySupport = ( blockName ) => {\n\treturn TYPOGRAPHY_SUPPORT_KEYS.some( ( key ) =>\n\t\thasBlockSupport( blockName, key )\n\t);\n};\n\nfunction useIsTypographyDisabled( props = {} ) {\n\tconst configs = [\n\t\tuseIsFontAppearanceDisabled( props ),\n\t\tuseIsFontSizeDisabled( props ),\n\t\tuseIsLineHeightDisabled( props ),\n\t\tuseIsFontFamilyDisabled( props ),\n\t\tuseIsTextDecorationDisabled( props ),\n\t\tuseIsTextTransformDisabled( props ),\n\t\tuseIsLetterSpacingDisabled( props ),\n\t];\n\n\treturn configs.filter( Boolean ).length === configs.length;\n}\n"]}
|
|
@@ -107,14 +107,6 @@
|
|
|
107
107
|
margin-top: 0;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
.block-editor-block-alignment-matrix-control__popover .components-popover__content {
|
|
111
|
-
min-width: 0;
|
|
112
|
-
width: auto;
|
|
113
|
-
}
|
|
114
|
-
.block-editor-block-alignment-matrix-control__popover .components-popover__content > div {
|
|
115
|
-
padding: 8px;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
110
|
.block-editor-block-icon {
|
|
119
111
|
display: flex;
|
|
120
112
|
align-items: center;
|
|
@@ -524,18 +516,8 @@
|
|
|
524
516
|
}
|
|
525
517
|
}
|
|
526
518
|
|
|
527
|
-
.block-editor-block-list__block-popover-inserter {
|
|
528
|
-
position: absolute;
|
|
529
|
-
top: -9999em;
|
|
530
|
-
margin-bottom: 14px;
|
|
531
|
-
}
|
|
532
|
-
.block-editor-block-list__block-popover-inserter.is-visible {
|
|
533
|
-
position: static;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
519
|
.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon,
|
|
537
|
-
.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon
|
|
538
|
-
.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon {
|
|
520
|
+
.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon {
|
|
539
521
|
background: #1e1e1e;
|
|
540
522
|
border-radius: 2px;
|
|
541
523
|
color: #fff;
|
|
@@ -544,8 +526,7 @@
|
|
|
544
526
|
height: 24px;
|
|
545
527
|
}
|
|
546
528
|
.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover,
|
|
547
|
-
.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover
|
|
548
|
-
.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon:hover {
|
|
529
|
+
.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover {
|
|
549
530
|
color: #fff;
|
|
550
531
|
background: var(--wp-admin-theme-color);
|
|
551
532
|
}
|
|
@@ -889,7 +870,7 @@
|
|
|
889
870
|
margin: 0.67em 0;
|
|
890
871
|
}
|
|
891
872
|
|
|
892
|
-
.block-editor-block-content-overlay
|
|
873
|
+
.block-editor-block-content-overlay::before {
|
|
893
874
|
content: "";
|
|
894
875
|
position: absolute;
|
|
895
876
|
top: 0;
|
|
@@ -901,16 +882,10 @@
|
|
|
901
882
|
border-radius: 2px;
|
|
902
883
|
z-index: 10;
|
|
903
884
|
}
|
|
904
|
-
.block-editor-block-content-overlay:hover:not(.is-dragging-blocks)
|
|
885
|
+
.block-editor-block-content-overlay:hover:not(.is-dragging-blocks)::before {
|
|
905
886
|
background: rgba(var(--wp-admin-theme-color--rgb), 0.1);
|
|
906
887
|
box-shadow: 0 0 0 1px var(--wp-admin-theme-color) inset;
|
|
907
888
|
}
|
|
908
|
-
.block-editor-block-content-overlay.overlay-active:not(.is-dragging-blocks) * {
|
|
909
|
-
pointer-events: none;
|
|
910
|
-
}
|
|
911
|
-
.block-editor-block-content-overlay.is-dragging-blocks {
|
|
912
|
-
box-shadow: 0 0 0 1px var(--wp-admin-theme-color);
|
|
913
|
-
}
|
|
914
889
|
|
|
915
890
|
.block-editor-block-draggable-chip-wrapper {
|
|
916
891
|
position: absolute;
|
|
@@ -1094,6 +1069,7 @@
|
|
|
1094
1069
|
width: max-content;
|
|
1095
1070
|
background: none;
|
|
1096
1071
|
border: none;
|
|
1072
|
+
outline: none;
|
|
1097
1073
|
box-shadow: none;
|
|
1098
1074
|
overflow-y: visible;
|
|
1099
1075
|
pointer-events: none;
|
|
@@ -1240,10 +1216,6 @@
|
|
|
1240
1216
|
font-size: 14px;
|
|
1241
1217
|
}
|
|
1242
1218
|
|
|
1243
|
-
.block-editor-block-switcher__popover {
|
|
1244
|
-
margin-right: 6px;
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
1219
|
.components-button.block-editor-block-switcher__no-switcher-icon {
|
|
1248
1220
|
display: flex;
|
|
1249
1221
|
}
|
|
@@ -1286,39 +1258,16 @@
|
|
|
1286
1258
|
min-width: 300px;
|
|
1287
1259
|
}
|
|
1288
1260
|
|
|
1289
|
-
.components-popover.block-editor-block-switcher__popover .components-popover__content > div {
|
|
1290
|
-
min-width: auto;
|
|
1291
|
-
display: flex;
|
|
1292
|
-
background: #fff;
|
|
1293
|
-
padding: 0;
|
|
1294
|
-
}
|
|
1295
|
-
.components-popover.block-editor-block-switcher__popover .components-popover__content > div .components-menu-group {
|
|
1296
|
-
margin: 0;
|
|
1297
|
-
}
|
|
1298
|
-
|
|
1299
|
-
.block-editor-block-switcher__popover .components-popover__content .block-editor-block-styles {
|
|
1300
|
-
margin: 0 -3px;
|
|
1301
|
-
}
|
|
1302
|
-
.block-editor-block-switcher__popover .components-popover__content .components-panel__body {
|
|
1303
|
-
border: 0;
|
|
1304
|
-
position: relative;
|
|
1305
|
-
z-index: 1;
|
|
1306
|
-
}
|
|
1307
|
-
.block-editor-block-switcher__popover .components-popover__content .components-panel__body + .components-panel__body {
|
|
1308
|
-
border-top: 1px solid #e0e0e0;
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
1261
|
.block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container {
|
|
1312
1262
|
position: absolute;
|
|
1313
1263
|
top: -12px;
|
|
1314
|
-
right: calc(100% +
|
|
1264
|
+
right: calc(100% + 16px);
|
|
1315
1265
|
}
|
|
1316
1266
|
|
|
1317
1267
|
.block-editor-block-switcher__preview__popover {
|
|
1318
1268
|
display: none;
|
|
1319
1269
|
}
|
|
1320
1270
|
.block-editor-block-switcher__preview__popover.components-popover {
|
|
1321
|
-
margin-right: 4px;
|
|
1322
1271
|
margin-top: 11px;
|
|
1323
1272
|
}
|
|
1324
1273
|
@media (min-width: 782px) {
|
|
@@ -1331,6 +1280,7 @@
|
|
|
1331
1280
|
border: 1px solid #1e1e1e;
|
|
1332
1281
|
background: #fff;
|
|
1333
1282
|
border-radius: 2px;
|
|
1283
|
+
outline: none;
|
|
1334
1284
|
}
|
|
1335
1285
|
.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview {
|
|
1336
1286
|
width: 300px;
|
|
@@ -1631,7 +1581,7 @@
|
|
|
1631
1581
|
.components-border-radius-control .components-border-radius-control__wrapper > .components-unit-control-wrapper {
|
|
1632
1582
|
width: 110px;
|
|
1633
1583
|
margin-bottom: 0;
|
|
1634
|
-
margin-left:
|
|
1584
|
+
margin-left: 12px;
|
|
1635
1585
|
flex-shrink: 0;
|
|
1636
1586
|
}
|
|
1637
1587
|
.components-border-radius-control .components-border-radius-control__wrapper .components-range-control {
|
|
@@ -1653,7 +1603,7 @@
|
|
|
1653
1603
|
width: 70%;
|
|
1654
1604
|
flex-wrap: wrap;
|
|
1655
1605
|
}
|
|
1656
|
-
.components-border-radius-control .components-border-radius-control__input-controls-wrapper .components-
|
|
1606
|
+
.components-border-radius-control .components-border-radius-control__input-controls-wrapper .components-border-radius-control__tooltip-wrapper {
|
|
1657
1607
|
width: calc(50% - 8px);
|
|
1658
1608
|
margin-bottom: 8px;
|
|
1659
1609
|
margin-left: 8px;
|
|
@@ -1662,6 +1612,7 @@
|
|
|
1662
1612
|
display: flex;
|
|
1663
1613
|
justify-content: center;
|
|
1664
1614
|
margin-right: 2px;
|
|
1615
|
+
margin-top: 3px;
|
|
1665
1616
|
}
|
|
1666
1617
|
.components-border-radius-control .component-border-radius-control__linked-button.has-icon svg {
|
|
1667
1618
|
margin-left: 0;
|
|
@@ -1736,21 +1687,10 @@
|
|
|
1736
1687
|
width: 100%;
|
|
1737
1688
|
}
|
|
1738
1689
|
|
|
1739
|
-
.block-editor-panel-color-gradient-settings__dropdown-content .components-popover__content
|
|
1690
|
+
.block-editor-panel-color-gradient-settings__dropdown-content .components-popover__content {
|
|
1740
1691
|
width: 280px;
|
|
1741
1692
|
}
|
|
1742
1693
|
|
|
1743
|
-
@media (min-width: 782px) {
|
|
1744
|
-
.block-editor-panel-color-gradient-settings__dropdown-content .components-popover__content {
|
|
1745
|
-
margin-left: 156px !important;
|
|
1746
|
-
}
|
|
1747
|
-
.block-editor-panel-color-gradient-settings__dropdown-content.is-from-top .components-popover__content {
|
|
1748
|
-
margin-top: -60px !important;
|
|
1749
|
-
}
|
|
1750
|
-
.block-editor-panel-color-gradient-settings__dropdown-content.is-from-bottom .components-popover__content {
|
|
1751
|
-
margin-bottom: -60px !important;
|
|
1752
|
-
}
|
|
1753
|
-
}
|
|
1754
1694
|
.block-editor-panel-color-gradient-settings__dropdown:last-child > div {
|
|
1755
1695
|
border-bottom-width: 0;
|
|
1756
1696
|
}
|
|
@@ -1759,10 +1699,50 @@
|
|
|
1759
1699
|
padding-top: 12px !important;
|
|
1760
1700
|
padding-bottom: 12px !important;
|
|
1761
1701
|
}
|
|
1762
|
-
.block-editor-panel-color-gradient-settings__item
|
|
1702
|
+
.block-editor-panel-color-gradient-settings__item.is-open {
|
|
1703
|
+
background: #f0f0f0;
|
|
1704
|
+
color: var(--wp-admin-theme-color);
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
.block-editor-panel-color-gradient-settings__color-indicator {
|
|
1763
1708
|
background: linear-gradient(45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
|
|
1764
1709
|
}
|
|
1765
|
-
|
|
1710
|
+
|
|
1711
|
+
/**
|
|
1712
|
+
* The following styles replicate the separated border of the
|
|
1713
|
+
* `ItemGroup` component but allows for hidden items. This is because
|
|
1714
|
+
* to maintain the order of `ToolsPanel` controls, each `ToolsPanelItem`
|
|
1715
|
+
* must at least render a placeholder which would otherwise interfere
|
|
1716
|
+
* with the `:last-child` styles.
|
|
1717
|
+
*/
|
|
1718
|
+
.block-editor-tools-panel-color-gradient-settings__item {
|
|
1719
|
+
padding: 0;
|
|
1720
|
+
border-right: 1px solid rgba(0, 0, 0, 0.1);
|
|
1721
|
+
border-left: 1px solid rgba(0, 0, 0, 0.1);
|
|
1722
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
1723
|
+
}
|
|
1724
|
+
.block-editor-tools-panel-color-gradient-settings__item.first {
|
|
1725
|
+
border-top-right-radius: 2px;
|
|
1726
|
+
border-top-left-radius: 2px;
|
|
1727
|
+
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
|
1728
|
+
}
|
|
1729
|
+
.block-editor-tools-panel-color-gradient-settings__item.last {
|
|
1730
|
+
border-bottom-right-radius: 2px;
|
|
1731
|
+
border-bottom-left-radius: 2px;
|
|
1732
|
+
}
|
|
1733
|
+
.block-editor-tools-panel-color-gradient-settings__item > div,
|
|
1734
|
+
.block-editor-tools-panel-color-gradient-settings__item > div > button {
|
|
1735
|
+
border-radius: inherit;
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
.block-editor-tools-panel-color-gradient-settings__dropdown {
|
|
1739
|
+
display: block;
|
|
1740
|
+
padding: 0;
|
|
1741
|
+
}
|
|
1742
|
+
.block-editor-tools-panel-color-gradient-settings__dropdown > button {
|
|
1743
|
+
height: 46px;
|
|
1744
|
+
}
|
|
1745
|
+
.block-editor-tools-panel-color-gradient-settings__dropdown > button.is-open {
|
|
1766
1746
|
background: #f0f0f0;
|
|
1767
1747
|
color: var(--wp-admin-theme-color);
|
|
1768
1748
|
}
|
|
@@ -1892,7 +1872,7 @@
|
|
|
1892
1872
|
text-align: right;
|
|
1893
1873
|
}
|
|
1894
1874
|
|
|
1895
|
-
.block-editor-duotone-control__popover > .components-popover__content
|
|
1875
|
+
.block-editor-duotone-control__popover > .components-popover__content {
|
|
1896
1876
|
padding: 16px;
|
|
1897
1877
|
width: 280px;
|
|
1898
1878
|
}
|
|
@@ -1914,10 +1894,6 @@
|
|
|
1914
1894
|
font-size: 12px;
|
|
1915
1895
|
}
|
|
1916
1896
|
|
|
1917
|
-
.block-editor-duotone-control__popover:not([data-y-axis=middle][data-x-axis=right]) > .components-popover__content {
|
|
1918
|
-
margin-right: -14px;
|
|
1919
|
-
}
|
|
1920
|
-
|
|
1921
1897
|
.components-font-appearance-control {
|
|
1922
1898
|
margin-bottom: 24px;
|
|
1923
1899
|
}
|
|
@@ -2887,10 +2863,11 @@
|
|
|
2887
2863
|
height: 1px;
|
|
2888
2864
|
}
|
|
2889
2865
|
|
|
2890
|
-
.block-editor-list-view-drop-indicator
|
|
2866
|
+
.block-editor-list-view-drop-indicator > .components-popover__content {
|
|
2891
2867
|
margin-right: 0;
|
|
2892
2868
|
border: none;
|
|
2893
2869
|
box-shadow: none;
|
|
2870
|
+
outline: none;
|
|
2894
2871
|
}
|
|
2895
2872
|
|
|
2896
2873
|
.block-editor-list-view-placeholder {
|
|
@@ -3119,13 +3096,10 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|
|
3119
3096
|
min-width: auto;
|
|
3120
3097
|
margin-bottom: 8px;
|
|
3121
3098
|
box-shadow: none;
|
|
3122
|
-
|
|
3123
|
-
border-radius: 2px;
|
|
3124
|
-
background-color: #fff;
|
|
3099
|
+
outline: none;
|
|
3125
3100
|
}
|
|
3126
|
-
.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group,
|
|
3127
3101
|
.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar {
|
|
3128
|
-
border:
|
|
3102
|
+
border-radius: 2px;
|
|
3129
3103
|
}
|
|
3130
3104
|
.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control,
|
|
3131
3105
|
.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle {
|
|
@@ -3578,44 +3552,6 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|
|
3578
3552
|
grid-column: span 1;
|
|
3579
3553
|
}
|
|
3580
3554
|
|
|
3581
|
-
.block-editor__border-box-control__popover .components-popover__content,
|
|
3582
|
-
.block-editor__border-box-control__popover-top .components-popover__content,
|
|
3583
|
-
.block-editor__border-box-control__popover-right .components-popover__content,
|
|
3584
|
-
.block-editor__border-box-control__popover-bottom .components-popover__content,
|
|
3585
|
-
.block-editor__border-box-control__popover-left .components-popover__content {
|
|
3586
|
-
width: 282px;
|
|
3587
|
-
}
|
|
3588
|
-
|
|
3589
|
-
@media (min-width: 782px) {
|
|
3590
|
-
.block-editor__border-box-control__popover .components-popover__content,
|
|
3591
|
-
.block-editor__border-box-control__popover-left .components-popover__content {
|
|
3592
|
-
margin-left: 52px !important;
|
|
3593
|
-
}
|
|
3594
|
-
|
|
3595
|
-
.block-editor__border-box-control__popover-top .components-popover__content,
|
|
3596
|
-
.block-editor__border-box-control__popover-bottom .components-popover__content {
|
|
3597
|
-
margin-left: 107px !important;
|
|
3598
|
-
}
|
|
3599
|
-
|
|
3600
|
-
.block-editor__border-box-control__popover-right .components-popover__content {
|
|
3601
|
-
margin-left: 162px !important;
|
|
3602
|
-
}
|
|
3603
|
-
|
|
3604
|
-
.block-editor__border-box-control__popover.is-from-top .components-popover__content,
|
|
3605
|
-
.block-editor__border-box-control__popover-top.is-from-top .components-popover__content,
|
|
3606
|
-
.block-editor__border-box-control__popover-right.is-from-top .components-popover__content,
|
|
3607
|
-
.block-editor__border-box-control__popover-bottom.is-from-top .components-popover__content,
|
|
3608
|
-
.block-editor__border-box-control__popover-left.is-from-top .components-popover__content {
|
|
3609
|
-
margin-top: -52px !important;
|
|
3610
|
-
}
|
|
3611
|
-
.block-editor__border-box-control__popover.is-from-bottom .components-popover__content,
|
|
3612
|
-
.block-editor__border-box-control__popover-top.is-from-bottom .components-popover__content,
|
|
3613
|
-
.block-editor__border-box-control__popover-right.is-from-bottom .components-popover__content,
|
|
3614
|
-
.block-editor__border-box-control__popover-bottom.is-from-bottom .components-popover__content,
|
|
3615
|
-
.block-editor__border-box-control__popover-left.is-from-bottom .components-popover__content {
|
|
3616
|
-
margin-bottom: -52px !important;
|
|
3617
|
-
}
|
|
3618
|
-
}
|
|
3619
3555
|
.dimensions-block-support-panel .single-column {
|
|
3620
3556
|
grid-column: span 1;
|
|
3621
3557
|
}
|
|
@@ -3632,17 +3568,6 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|
|
3632
3568
|
|
|
3633
3569
|
.color-block-support-panel {
|
|
3634
3570
|
/* Increased specificity required to remove the slot wrapper's row gap */
|
|
3635
|
-
/**
|
|
3636
|
-
* The following styles replicate the separated border of the
|
|
3637
|
-
* `ItemGroup` component but allows for hidden items. This is because
|
|
3638
|
-
* to maintain the order of `ToolsPanel` controls, each `ToolsPanelItem`
|
|
3639
|
-
* must at least render a placeholder which would otherwise interfere
|
|
3640
|
-
* with the `:last-child` styles.
|
|
3641
|
-
*/
|
|
3642
|
-
/**
|
|
3643
|
-
* The following few styles fix the layout and spacing for the due to the
|
|
3644
|
-
* introduced wrapper element by the `Item` component.
|
|
3645
|
-
*/
|
|
3646
3571
|
}
|
|
3647
3572
|
.color-block-support-panel .block-editor-contrast-checker {
|
|
3648
3573
|
/**
|
|
@@ -3660,43 +3585,6 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|
|
3660
3585
|
.color-block-support-panel.color-block-support-panel .color-block-support-panel__inner-wrapper {
|
|
3661
3586
|
row-gap: 0;
|
|
3662
3587
|
}
|
|
3663
|
-
.color-block-support-panel .block-editor-tools-panel-color-gradient-settings__item {
|
|
3664
|
-
padding: 0;
|
|
3665
|
-
border-right: 1px solid rgba(0, 0, 0, 0.1);
|
|
3666
|
-
border-left: 1px solid rgba(0, 0, 0, 0.1);
|
|
3667
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
3668
|
-
}
|
|
3669
|
-
.color-block-support-panel .block-editor-tools-panel-color-gradient-settings__item.first {
|
|
3670
|
-
border-top-right-radius: 2px;
|
|
3671
|
-
border-top-left-radius: 2px;
|
|
3672
|
-
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
|
3673
|
-
}
|
|
3674
|
-
.color-block-support-panel .block-editor-tools-panel-color-gradient-settings__item.last {
|
|
3675
|
-
border-bottom-right-radius: 2px;
|
|
3676
|
-
border-bottom-left-radius: 2px;
|
|
3677
|
-
}
|
|
3678
|
-
.color-block-support-panel .block-editor-tools-panel-color-gradient-settings__item > div,
|
|
3679
|
-
.color-block-support-panel .block-editor-tools-panel-color-gradient-settings__item > div > button {
|
|
3680
|
-
border-radius: inherit;
|
|
3681
|
-
}
|
|
3682
|
-
.color-block-support-panel .block-editor-panel-color-gradient-settings__color-indicator {
|
|
3683
|
-
background: linear-gradient(45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
|
|
3684
|
-
}
|
|
3685
|
-
.color-block-support-panel .block-editor-tools-panel-color-dropdown {
|
|
3686
|
-
display: block;
|
|
3687
|
-
padding: 0;
|
|
3688
|
-
}
|
|
3689
|
-
.color-block-support-panel .block-editor-tools-panel-color-dropdown > button {
|
|
3690
|
-
height: 46px;
|
|
3691
|
-
}
|
|
3692
|
-
.color-block-support-panel .block-editor-tools-panel-color-dropdown > button.is-open {
|
|
3693
|
-
background: #f0f0f0;
|
|
3694
|
-
color: var(--wp-admin-theme-color);
|
|
3695
|
-
}
|
|
3696
|
-
.color-block-support-panel .color-block-support-panel__item-group > div {
|
|
3697
|
-
grid-column: span 2;
|
|
3698
|
-
border-radius: inherit;
|
|
3699
|
-
}
|
|
3700
3588
|
|
|
3701
3589
|
.block-editor__padding-visualizer {
|
|
3702
3590
|
position: absolute;
|
|
@@ -3880,6 +3768,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|
|
3880
3768
|
|
|
3881
3769
|
.block-editor-inserter__popover.is-quick .components-popover__content {
|
|
3882
3770
|
border: none;
|
|
3771
|
+
outline: none;
|
|
3883
3772
|
}
|
|
3884
3773
|
.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter > * {
|
|
3885
3774
|
border-right: 1px solid #ccc;
|
|
@@ -4152,7 +4041,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|
|
4152
4041
|
border-top: 1px solid #ddd;
|
|
4153
4042
|
}
|
|
4154
4043
|
|
|
4155
|
-
.block-editor-inserter__popover.is-quick > .components-popover__content
|
|
4044
|
+
.block-editor-inserter__popover.is-quick > .components-popover__content {
|
|
4156
4045
|
padding: 0;
|
|
4157
4046
|
}
|
|
4158
4047
|
|
|
@@ -4236,9 +4125,6 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|
|
4236
4125
|
padding-right: 8px;
|
|
4237
4126
|
}
|
|
4238
4127
|
|
|
4239
|
-
.block-editor-post-preview__dropdown-content .components-popover__content {
|
|
4240
|
-
overflow-y: visible;
|
|
4241
|
-
}
|
|
4242
4128
|
.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:first-child {
|
|
4243
4129
|
padding-bottom: 8px;
|
|
4244
4130
|
}
|