initial commit
This commit is contained in:
89
hamrokhaanpaan/wp-includes/blocks/gallery/block.json
Normal file
89
hamrokhaanpaan/wp-includes/blocks/gallery/block.json
Normal file
@ -0,0 +1,89 @@
|
||||
{
|
||||
"apiVersion": 2,
|
||||
"name": "core/gallery",
|
||||
"title": "Gallery",
|
||||
"category": "media",
|
||||
"description": "Display multiple images in a rich gallery.",
|
||||
"keywords": [ "images", "photos" ],
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"images": {
|
||||
"type": "array",
|
||||
"default": [],
|
||||
"source": "query",
|
||||
"selector": ".blocks-gallery-item",
|
||||
"query": {
|
||||
"url": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"selector": "img",
|
||||
"attribute": "src"
|
||||
},
|
||||
"fullUrl": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"selector": "img",
|
||||
"attribute": "data-full-url"
|
||||
},
|
||||
"link": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"selector": "img",
|
||||
"attribute": "data-link"
|
||||
},
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"selector": "img",
|
||||
"attribute": "alt",
|
||||
"default": ""
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"selector": "img",
|
||||
"attribute": "data-id"
|
||||
},
|
||||
"caption": {
|
||||
"type": "string",
|
||||
"source": "html",
|
||||
"selector": ".blocks-gallery-item__caption"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ids": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "number"
|
||||
},
|
||||
"default": []
|
||||
},
|
||||
"columns": {
|
||||
"type": "number",
|
||||
"minimum": 1,
|
||||
"maximum": 8
|
||||
},
|
||||
"caption": {
|
||||
"type": "string",
|
||||
"source": "html",
|
||||
"selector": ".blocks-gallery-caption"
|
||||
},
|
||||
"imageCrop": {
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"linkTo": {
|
||||
"type": "string"
|
||||
},
|
||||
"sizeSlug": {
|
||||
"type": "string",
|
||||
"default": "large"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": true
|
||||
},
|
||||
"editorStyle": "wp-block-gallery-editor",
|
||||
"style": "wp-block-gallery"
|
||||
}
|
174
hamrokhaanpaan/wp-includes/blocks/gallery/editor-rtl.css
Normal file
174
hamrokhaanpaan/wp-includes/blocks/gallery/editor-rtl.css
Normal file
@ -0,0 +1,174 @@
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Breakpoints & Media Queries
|
||||
*/
|
||||
/**
|
||||
* SCSS Variables.
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Fonts & basic variables.
|
||||
*/
|
||||
/**
|
||||
* Grid System.
|
||||
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||
*/
|
||||
/**
|
||||
* Dimensions.
|
||||
*/
|
||||
/**
|
||||
* Shadows.
|
||||
*/
|
||||
/**
|
||||
* Editor widths.
|
||||
*/
|
||||
/**
|
||||
* Block & Editor UI.
|
||||
*/
|
||||
/**
|
||||
* Block paddings.
|
||||
*/
|
||||
/**
|
||||
* React Native specific.
|
||||
* These variables do not appear to be used anywhere else.
|
||||
*/
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/**
|
||||
* Long content fade mixin
|
||||
*
|
||||
* Creates a fading overlay to signify that the content is longer
|
||||
* than the space allows.
|
||||
*/
|
||||
/**
|
||||
* Focus styles.
|
||||
*/
|
||||
/**
|
||||
* Applies editor left position to the selector passed as argument
|
||||
*/
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
/**
|
||||
* Allows users to opt-out of animations via OS-level preferences.
|
||||
*/
|
||||
/**
|
||||
* Reset default styles for JavaScript UI based pages.
|
||||
* This is a WP-admin agnostic reset
|
||||
*/
|
||||
/**
|
||||
* Reset the WP Admin page styles for Gutenberg-like pages.
|
||||
*/
|
||||
.wp-block-gallery li {
|
||||
list-style-type: none;
|
||||
}
|
||||
.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label {
|
||||
display: none;
|
||||
}
|
||||
.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
figure.wp-block-gallery {
|
||||
display: block;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.blocks-gallery-grid.blocks-gallery-grid {
|
||||
padding-right: 0;
|
||||
margin-right: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.blocks-gallery-item figure:not(.is-selected):focus,
|
||||
.blocks-gallery-item img:focus {
|
||||
outline: none;
|
||||
}
|
||||
.blocks-gallery-item figure.is-selected::before {
|
||||
box-shadow: 0 0 0 1px #fff inset, 0 0 0 3px var(--wp-admin-theme-color) inset;
|
||||
content: "";
|
||||
outline: 2px solid transparent;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
z-index: 1;
|
||||
pointer-events: none;
|
||||
}
|
||||
.blocks-gallery-item figure.is-selected figcaption {
|
||||
z-index: 2;
|
||||
}
|
||||
.blocks-gallery-item figure.is-transient img {
|
||||
opacity: 0.3;
|
||||
}
|
||||
.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu {
|
||||
display: inline-flex;
|
||||
}
|
||||
.blocks-gallery-item .block-editor-media-placeholder {
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
}
|
||||
.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.block-library-gallery-item__inline-menu {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -2px;
|
||||
margin: 8px;
|
||||
z-index: 20;
|
||||
transition: box-shadow 0.2s ease-out;
|
||||
border-radius: 2px;
|
||||
background: #fff;
|
||||
border: 1px solid #1e1e1e;
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.block-library-gallery-item__inline-menu {
|
||||
transition-duration: 0s;
|
||||
transition-delay: 0s;
|
||||
}
|
||||
}
|
||||
.block-library-gallery-item__inline-menu:hover {
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
@media (min-width: 600px) {
|
||||
.columns-7 .block-library-gallery-item__inline-menu, .columns-8 .block-library-gallery-item__inline-menu {
|
||||
padding: 2px;
|
||||
}
|
||||
}
|
||||
.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus) {
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
@media (min-width: 600px) {
|
||||
.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon, .columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon {
|
||||
padding: 0;
|
||||
width: inherit;
|
||||
height: inherit;
|
||||
}
|
||||
}
|
||||
.block-library-gallery-item__inline-menu.is-left {
|
||||
right: -2px;
|
||||
}
|
||||
.block-library-gallery-item__inline-menu.is-right {
|
||||
left: -2px;
|
||||
}
|
||||
|
||||
.blocks-gallery-item .components-spinner {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 50%;
|
||||
margin-top: -9px;
|
||||
margin-right: -9px;
|
||||
}
|
1
hamrokhaanpaan/wp-includes/blocks/gallery/editor-rtl.min.css
vendored
Normal file
1
hamrokhaanpaan/wp-includes/blocks/gallery/editor-rtl.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.wp-block-gallery li{list-style-type:none}.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}figure.wp-block-gallery{display:block;margin:0}.blocks-gallery-grid.blocks-gallery-grid{padding-right:0;margin-right:0;margin-bottom:0}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";outline:2px solid transparent;position:absolute;top:0;left:0;bottom:0;right:0;z-index:1;pointer-events:none}.blocks-gallery-item figure.is-selected figcaption{z-index:2}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{margin:0;height:100%}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{display:none;position:absolute;top:-2px;margin:8px;z-index:20;transition:box-shadow .2s ease-out;border-radius:2px;background:#fff;border:1px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-duration:0s;transition-delay:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{padding:0;width:inherit;height:inherit}}.block-library-gallery-item__inline-menu.is-left{right:-2px}.block-library-gallery-item__inline-menu.is-right{left:-2px}.blocks-gallery-item .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}
|
174
hamrokhaanpaan/wp-includes/blocks/gallery/editor.css
Normal file
174
hamrokhaanpaan/wp-includes/blocks/gallery/editor.css
Normal file
@ -0,0 +1,174 @@
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Breakpoints & Media Queries
|
||||
*/
|
||||
/**
|
||||
* SCSS Variables.
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Fonts & basic variables.
|
||||
*/
|
||||
/**
|
||||
* Grid System.
|
||||
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||
*/
|
||||
/**
|
||||
* Dimensions.
|
||||
*/
|
||||
/**
|
||||
* Shadows.
|
||||
*/
|
||||
/**
|
||||
* Editor widths.
|
||||
*/
|
||||
/**
|
||||
* Block & Editor UI.
|
||||
*/
|
||||
/**
|
||||
* Block paddings.
|
||||
*/
|
||||
/**
|
||||
* React Native specific.
|
||||
* These variables do not appear to be used anywhere else.
|
||||
*/
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/**
|
||||
* Long content fade mixin
|
||||
*
|
||||
* Creates a fading overlay to signify that the content is longer
|
||||
* than the space allows.
|
||||
*/
|
||||
/**
|
||||
* Focus styles.
|
||||
*/
|
||||
/**
|
||||
* Applies editor left position to the selector passed as argument
|
||||
*/
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
/**
|
||||
* Allows users to opt-out of animations via OS-level preferences.
|
||||
*/
|
||||
/**
|
||||
* Reset default styles for JavaScript UI based pages.
|
||||
* This is a WP-admin agnostic reset
|
||||
*/
|
||||
/**
|
||||
* Reset the WP Admin page styles for Gutenberg-like pages.
|
||||
*/
|
||||
.wp-block-gallery li {
|
||||
list-style-type: none;
|
||||
}
|
||||
.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label {
|
||||
display: none;
|
||||
}
|
||||
.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
figure.wp-block-gallery {
|
||||
display: block;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.blocks-gallery-grid.blocks-gallery-grid {
|
||||
padding-left: 0;
|
||||
margin-left: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.blocks-gallery-item figure:not(.is-selected):focus,
|
||||
.blocks-gallery-item img:focus {
|
||||
outline: none;
|
||||
}
|
||||
.blocks-gallery-item figure.is-selected::before {
|
||||
box-shadow: 0 0 0 1px #fff inset, 0 0 0 3px var(--wp-admin-theme-color) inset;
|
||||
content: "";
|
||||
outline: 2px solid transparent;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 1;
|
||||
pointer-events: none;
|
||||
}
|
||||
.blocks-gallery-item figure.is-selected figcaption {
|
||||
z-index: 2;
|
||||
}
|
||||
.blocks-gallery-item figure.is-transient img {
|
||||
opacity: 0.3;
|
||||
}
|
||||
.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu {
|
||||
display: inline-flex;
|
||||
}
|
||||
.blocks-gallery-item .block-editor-media-placeholder {
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
}
|
||||
.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.block-library-gallery-item__inline-menu {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -2px;
|
||||
margin: 8px;
|
||||
z-index: 20;
|
||||
transition: box-shadow 0.2s ease-out;
|
||||
border-radius: 2px;
|
||||
background: #fff;
|
||||
border: 1px solid #1e1e1e;
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.block-library-gallery-item__inline-menu {
|
||||
transition-duration: 0s;
|
||||
transition-delay: 0s;
|
||||
}
|
||||
}
|
||||
.block-library-gallery-item__inline-menu:hover {
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
@media (min-width: 600px) {
|
||||
.columns-7 .block-library-gallery-item__inline-menu, .columns-8 .block-library-gallery-item__inline-menu {
|
||||
padding: 2px;
|
||||
}
|
||||
}
|
||||
.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus) {
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
@media (min-width: 600px) {
|
||||
.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon, .columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon {
|
||||
padding: 0;
|
||||
width: inherit;
|
||||
height: inherit;
|
||||
}
|
||||
}
|
||||
.block-library-gallery-item__inline-menu.is-left {
|
||||
left: -2px;
|
||||
}
|
||||
.block-library-gallery-item__inline-menu.is-right {
|
||||
right: -2px;
|
||||
}
|
||||
|
||||
.blocks-gallery-item .components-spinner {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin-top: -9px;
|
||||
margin-left: -9px;
|
||||
}
|
1
hamrokhaanpaan/wp-includes/blocks/gallery/editor.min.css
vendored
Normal file
1
hamrokhaanpaan/wp-includes/blocks/gallery/editor.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.wp-block-gallery li{list-style-type:none}.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}figure.wp-block-gallery{display:block;margin:0}.blocks-gallery-grid.blocks-gallery-grid{padding-left:0;margin-left:0;margin-bottom:0}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";outline:2px solid transparent;position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none}.blocks-gallery-item figure.is-selected figcaption{z-index:2}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{margin:0;height:100%}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{display:none;position:absolute;top:-2px;margin:8px;z-index:20;transition:box-shadow .2s ease-out;border-radius:2px;background:#fff;border:1px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-duration:0s;transition-delay:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{padding:0;width:inherit;height:inherit}}.block-library-gallery-item__inline-menu.is-left{left:-2px}.block-library-gallery-item__inline-menu.is-right{right:-2px}.blocks-gallery-item .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}
|
286
hamrokhaanpaan/wp-includes/blocks/gallery/style-rtl.css
Normal file
286
hamrokhaanpaan/wp-includes/blocks/gallery/style-rtl.css
Normal file
@ -0,0 +1,286 @@
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Breakpoints & Media Queries
|
||||
*/
|
||||
/**
|
||||
* SCSS Variables.
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Fonts & basic variables.
|
||||
*/
|
||||
/**
|
||||
* Grid System.
|
||||
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||
*/
|
||||
/**
|
||||
* Dimensions.
|
||||
*/
|
||||
/**
|
||||
* Shadows.
|
||||
*/
|
||||
/**
|
||||
* Editor widths.
|
||||
*/
|
||||
/**
|
||||
* Block & Editor UI.
|
||||
*/
|
||||
/**
|
||||
* Block paddings.
|
||||
*/
|
||||
/**
|
||||
* React Native specific.
|
||||
* These variables do not appear to be used anywhere else.
|
||||
*/
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/**
|
||||
* Long content fade mixin
|
||||
*
|
||||
* Creates a fading overlay to signify that the content is longer
|
||||
* than the space allows.
|
||||
*/
|
||||
/**
|
||||
* Focus styles.
|
||||
*/
|
||||
/**
|
||||
* Applies editor left position to the selector passed as argument
|
||||
*/
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
/**
|
||||
* Allows users to opt-out of animations via OS-level preferences.
|
||||
*/
|
||||
/**
|
||||
* Reset default styles for JavaScript UI based pages.
|
||||
* This is a WP-admin agnostic reset
|
||||
*/
|
||||
/**
|
||||
* Reset the WP Admin page styles for Gutenberg-like pages.
|
||||
*/
|
||||
.wp-block-gallery,
|
||||
.blocks-gallery-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
.wp-block-gallery .blocks-gallery-image,
|
||||
.wp-block-gallery .blocks-gallery-item,
|
||||
.blocks-gallery-grid .blocks-gallery-image,
|
||||
.blocks-gallery-grid .blocks-gallery-item {
|
||||
margin: 0 0 1em 1em;
|
||||
display: flex;
|
||||
flex-grow: 1;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
align-self: flex-start;
|
||||
width: calc(50% - 1em);
|
||||
}
|
||||
.wp-block-gallery .blocks-gallery-image:nth-of-type(even),
|
||||
.wp-block-gallery .blocks-gallery-item:nth-of-type(even),
|
||||
.blocks-gallery-grid .blocks-gallery-image:nth-of-type(even),
|
||||
.blocks-gallery-grid .blocks-gallery-item:nth-of-type(even) {
|
||||
margin-left: 0;
|
||||
}
|
||||
.wp-block-gallery .blocks-gallery-image figure,
|
||||
.wp-block-gallery .blocks-gallery-item figure,
|
||||
.blocks-gallery-grid .blocks-gallery-image figure,
|
||||
.blocks-gallery-grid .blocks-gallery-item figure {
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
}
|
||||
@supports (position: sticky) {
|
||||
.wp-block-gallery .blocks-gallery-image figure,
|
||||
.wp-block-gallery .blocks-gallery-item figure,
|
||||
.blocks-gallery-grid .blocks-gallery-image figure,
|
||||
.blocks-gallery-grid .blocks-gallery-item figure {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
.wp-block-gallery .blocks-gallery-image img,
|
||||
.wp-block-gallery .blocks-gallery-item img,
|
||||
.blocks-gallery-grid .blocks-gallery-image img,
|
||||
.blocks-gallery-grid .blocks-gallery-item img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
width: 100%;
|
||||
}
|
||||
@supports (position: sticky) {
|
||||
.wp-block-gallery .blocks-gallery-image img,
|
||||
.wp-block-gallery .blocks-gallery-item img,
|
||||
.blocks-gallery-grid .blocks-gallery-image img,
|
||||
.blocks-gallery-grid .blocks-gallery-item img {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
.wp-block-gallery .blocks-gallery-image figcaption,
|
||||
.wp-block-gallery .blocks-gallery-item figcaption,
|
||||
.blocks-gallery-grid .blocks-gallery-image figcaption,
|
||||
.blocks-gallery-grid .blocks-gallery-item figcaption {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
max-height: 100%;
|
||||
overflow: auto;
|
||||
padding: 3em 0.77em 0.7em;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
font-size: 0.8em;
|
||||
background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent);
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
}
|
||||
.wp-block-gallery .blocks-gallery-image figcaption img,
|
||||
.wp-block-gallery .blocks-gallery-item figcaption img,
|
||||
.blocks-gallery-grid .blocks-gallery-image figcaption img,
|
||||
.blocks-gallery-grid .blocks-gallery-item figcaption img {
|
||||
display: inline;
|
||||
}
|
||||
.wp-block-gallery figcaption,
|
||||
.blocks-gallery-grid figcaption {
|
||||
flex-grow: 1;
|
||||
}
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-image, .wp-block-gallery.is-cropped .blocks-gallery-item,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-image,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-item {
|
||||
align-self: inherit;
|
||||
}
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-image a,
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-image img, .wp-block-gallery.is-cropped .blocks-gallery-item a,
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-item img,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-image a,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-image img,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-item a,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-item img {
|
||||
width: 100%;
|
||||
}
|
||||
@supports (position: sticky) {
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-image a,
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-image img, .wp-block-gallery.is-cropped .blocks-gallery-item a,
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-item img,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-image a,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-image img,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-item a,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-item img {
|
||||
height: 100%;
|
||||
flex: 1;
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
.wp-block-gallery.columns-1 .blocks-gallery-image, .wp-block-gallery.columns-1 .blocks-gallery-item,
|
||||
.blocks-gallery-grid.columns-1 .blocks-gallery-image,
|
||||
.blocks-gallery-grid.columns-1 .blocks-gallery-item {
|
||||
width: 100%;
|
||||
margin-left: 0;
|
||||
}
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-gallery.columns-3 .blocks-gallery-image, .wp-block-gallery.columns-3 .blocks-gallery-item,
|
||||
.blocks-gallery-grid.columns-3 .blocks-gallery-image,
|
||||
.blocks-gallery-grid.columns-3 .blocks-gallery-item {
|
||||
width: calc(33.3333333333% - 0.6666666667em);
|
||||
margin-left: 1em;
|
||||
}
|
||||
.wp-block-gallery.columns-4 .blocks-gallery-image, .wp-block-gallery.columns-4 .blocks-gallery-item,
|
||||
.blocks-gallery-grid.columns-4 .blocks-gallery-image,
|
||||
.blocks-gallery-grid.columns-4 .blocks-gallery-item {
|
||||
width: calc(25% - 0.75em);
|
||||
margin-left: 1em;
|
||||
}
|
||||
.wp-block-gallery.columns-5 .blocks-gallery-image, .wp-block-gallery.columns-5 .blocks-gallery-item,
|
||||
.blocks-gallery-grid.columns-5 .blocks-gallery-image,
|
||||
.blocks-gallery-grid.columns-5 .blocks-gallery-item {
|
||||
width: calc(20% - 0.8em);
|
||||
margin-left: 1em;
|
||||
}
|
||||
.wp-block-gallery.columns-6 .blocks-gallery-image, .wp-block-gallery.columns-6 .blocks-gallery-item,
|
||||
.blocks-gallery-grid.columns-6 .blocks-gallery-image,
|
||||
.blocks-gallery-grid.columns-6 .blocks-gallery-item {
|
||||
width: calc(16.6666666667% - 0.8333333333em);
|
||||
margin-left: 1em;
|
||||
}
|
||||
.wp-block-gallery.columns-7 .blocks-gallery-image, .wp-block-gallery.columns-7 .blocks-gallery-item,
|
||||
.blocks-gallery-grid.columns-7 .blocks-gallery-image,
|
||||
.blocks-gallery-grid.columns-7 .blocks-gallery-item {
|
||||
width: calc(14.2857142857% - 0.8571428571em);
|
||||
margin-left: 1em;
|
||||
}
|
||||
.wp-block-gallery.columns-8 .blocks-gallery-image, .wp-block-gallery.columns-8 .blocks-gallery-item,
|
||||
.blocks-gallery-grid.columns-8 .blocks-gallery-image,
|
||||
.blocks-gallery-grid.columns-8 .blocks-gallery-item {
|
||||
width: calc(12.5% - 0.875em);
|
||||
margin-left: 1em;
|
||||
}
|
||||
.wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n), .wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n),
|
||||
.blocks-gallery-grid.columns-1 .blocks-gallery-image:nth-of-type(1n),
|
||||
.blocks-gallery-grid.columns-1 .blocks-gallery-item:nth-of-type(1n) {
|
||||
margin-left: 0;
|
||||
}
|
||||
.wp-block-gallery.columns-2 .blocks-gallery-image:nth-of-type(2n), .wp-block-gallery.columns-2 .blocks-gallery-item:nth-of-type(2n),
|
||||
.blocks-gallery-grid.columns-2 .blocks-gallery-image:nth-of-type(2n),
|
||||
.blocks-gallery-grid.columns-2 .blocks-gallery-item:nth-of-type(2n) {
|
||||
margin-left: 0;
|
||||
}
|
||||
.wp-block-gallery.columns-3 .blocks-gallery-image:nth-of-type(3n), .wp-block-gallery.columns-3 .blocks-gallery-item:nth-of-type(3n),
|
||||
.blocks-gallery-grid.columns-3 .blocks-gallery-image:nth-of-type(3n),
|
||||
.blocks-gallery-grid.columns-3 .blocks-gallery-item:nth-of-type(3n) {
|
||||
margin-left: 0;
|
||||
}
|
||||
.wp-block-gallery.columns-4 .blocks-gallery-image:nth-of-type(4n), .wp-block-gallery.columns-4 .blocks-gallery-item:nth-of-type(4n),
|
||||
.blocks-gallery-grid.columns-4 .blocks-gallery-image:nth-of-type(4n),
|
||||
.blocks-gallery-grid.columns-4 .blocks-gallery-item:nth-of-type(4n) {
|
||||
margin-left: 0;
|
||||
}
|
||||
.wp-block-gallery.columns-5 .blocks-gallery-image:nth-of-type(5n), .wp-block-gallery.columns-5 .blocks-gallery-item:nth-of-type(5n),
|
||||
.blocks-gallery-grid.columns-5 .blocks-gallery-image:nth-of-type(5n),
|
||||
.blocks-gallery-grid.columns-5 .blocks-gallery-item:nth-of-type(5n) {
|
||||
margin-left: 0;
|
||||
}
|
||||
.wp-block-gallery.columns-6 .blocks-gallery-image:nth-of-type(6n), .wp-block-gallery.columns-6 .blocks-gallery-item:nth-of-type(6n),
|
||||
.blocks-gallery-grid.columns-6 .blocks-gallery-image:nth-of-type(6n),
|
||||
.blocks-gallery-grid.columns-6 .blocks-gallery-item:nth-of-type(6n) {
|
||||
margin-left: 0;
|
||||
}
|
||||
.wp-block-gallery.columns-7 .blocks-gallery-image:nth-of-type(7n), .wp-block-gallery.columns-7 .blocks-gallery-item:nth-of-type(7n),
|
||||
.blocks-gallery-grid.columns-7 .blocks-gallery-image:nth-of-type(7n),
|
||||
.blocks-gallery-grid.columns-7 .blocks-gallery-item:nth-of-type(7n) {
|
||||
margin-left: 0;
|
||||
}
|
||||
.wp-block-gallery.columns-8 .blocks-gallery-image:nth-of-type(8n), .wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n),
|
||||
.blocks-gallery-grid.columns-8 .blocks-gallery-image:nth-of-type(8n),
|
||||
.blocks-gallery-grid.columns-8 .blocks-gallery-item:nth-of-type(8n) {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
.wp-block-gallery .blocks-gallery-image:last-child,
|
||||
.wp-block-gallery .blocks-gallery-item:last-child,
|
||||
.blocks-gallery-grid .blocks-gallery-image:last-child,
|
||||
.blocks-gallery-grid .blocks-gallery-item:last-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
.wp-block-gallery.alignleft, .wp-block-gallery.alignright,
|
||||
.blocks-gallery-grid.alignleft,
|
||||
.blocks-gallery-grid.alignright {
|
||||
max-width: 420px;
|
||||
width: 100%;
|
||||
}
|
||||
.wp-block-gallery.aligncenter .blocks-gallery-item figure,
|
||||
.blocks-gallery-grid.aligncenter .blocks-gallery-item figure {
|
||||
justify-content: center;
|
||||
}
|
1
hamrokhaanpaan/wp-includes/blocks/gallery/style-rtl.min.css
vendored
Normal file
1
hamrokhaanpaan/wp-includes/blocks/gallery/style-rtl.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
286
hamrokhaanpaan/wp-includes/blocks/gallery/style.css
Normal file
286
hamrokhaanpaan/wp-includes/blocks/gallery/style.css
Normal file
@ -0,0 +1,286 @@
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Breakpoints & Media Queries
|
||||
*/
|
||||
/**
|
||||
* SCSS Variables.
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Fonts & basic variables.
|
||||
*/
|
||||
/**
|
||||
* Grid System.
|
||||
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||
*/
|
||||
/**
|
||||
* Dimensions.
|
||||
*/
|
||||
/**
|
||||
* Shadows.
|
||||
*/
|
||||
/**
|
||||
* Editor widths.
|
||||
*/
|
||||
/**
|
||||
* Block & Editor UI.
|
||||
*/
|
||||
/**
|
||||
* Block paddings.
|
||||
*/
|
||||
/**
|
||||
* React Native specific.
|
||||
* These variables do not appear to be used anywhere else.
|
||||
*/
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/**
|
||||
* Long content fade mixin
|
||||
*
|
||||
* Creates a fading overlay to signify that the content is longer
|
||||
* than the space allows.
|
||||
*/
|
||||
/**
|
||||
* Focus styles.
|
||||
*/
|
||||
/**
|
||||
* Applies editor left position to the selector passed as argument
|
||||
*/
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
/**
|
||||
* Allows users to opt-out of animations via OS-level preferences.
|
||||
*/
|
||||
/**
|
||||
* Reset default styles for JavaScript UI based pages.
|
||||
* This is a WP-admin agnostic reset
|
||||
*/
|
||||
/**
|
||||
* Reset the WP Admin page styles for Gutenberg-like pages.
|
||||
*/
|
||||
.wp-block-gallery,
|
||||
.blocks-gallery-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
.wp-block-gallery .blocks-gallery-image,
|
||||
.wp-block-gallery .blocks-gallery-item,
|
||||
.blocks-gallery-grid .blocks-gallery-image,
|
||||
.blocks-gallery-grid .blocks-gallery-item {
|
||||
margin: 0 1em 1em 0;
|
||||
display: flex;
|
||||
flex-grow: 1;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
align-self: flex-start;
|
||||
width: calc(50% - 1em);
|
||||
}
|
||||
.wp-block-gallery .blocks-gallery-image:nth-of-type(even),
|
||||
.wp-block-gallery .blocks-gallery-item:nth-of-type(even),
|
||||
.blocks-gallery-grid .blocks-gallery-image:nth-of-type(even),
|
||||
.blocks-gallery-grid .blocks-gallery-item:nth-of-type(even) {
|
||||
margin-right: 0;
|
||||
}
|
||||
.wp-block-gallery .blocks-gallery-image figure,
|
||||
.wp-block-gallery .blocks-gallery-item figure,
|
||||
.blocks-gallery-grid .blocks-gallery-image figure,
|
||||
.blocks-gallery-grid .blocks-gallery-item figure {
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
}
|
||||
@supports (position: sticky) {
|
||||
.wp-block-gallery .blocks-gallery-image figure,
|
||||
.wp-block-gallery .blocks-gallery-item figure,
|
||||
.blocks-gallery-grid .blocks-gallery-image figure,
|
||||
.blocks-gallery-grid .blocks-gallery-item figure {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
.wp-block-gallery .blocks-gallery-image img,
|
||||
.wp-block-gallery .blocks-gallery-item img,
|
||||
.blocks-gallery-grid .blocks-gallery-image img,
|
||||
.blocks-gallery-grid .blocks-gallery-item img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
width: 100%;
|
||||
}
|
||||
@supports (position: sticky) {
|
||||
.wp-block-gallery .blocks-gallery-image img,
|
||||
.wp-block-gallery .blocks-gallery-item img,
|
||||
.blocks-gallery-grid .blocks-gallery-image img,
|
||||
.blocks-gallery-grid .blocks-gallery-item img {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
.wp-block-gallery .blocks-gallery-image figcaption,
|
||||
.wp-block-gallery .blocks-gallery-item figcaption,
|
||||
.blocks-gallery-grid .blocks-gallery-image figcaption,
|
||||
.blocks-gallery-grid .blocks-gallery-item figcaption {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
max-height: 100%;
|
||||
overflow: auto;
|
||||
padding: 3em 0.77em 0.7em;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
font-size: 0.8em;
|
||||
background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent);
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
}
|
||||
.wp-block-gallery .blocks-gallery-image figcaption img,
|
||||
.wp-block-gallery .blocks-gallery-item figcaption img,
|
||||
.blocks-gallery-grid .blocks-gallery-image figcaption img,
|
||||
.blocks-gallery-grid .blocks-gallery-item figcaption img {
|
||||
display: inline;
|
||||
}
|
||||
.wp-block-gallery figcaption,
|
||||
.blocks-gallery-grid figcaption {
|
||||
flex-grow: 1;
|
||||
}
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-image, .wp-block-gallery.is-cropped .blocks-gallery-item,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-image,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-item {
|
||||
align-self: inherit;
|
||||
}
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-image a,
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-image img, .wp-block-gallery.is-cropped .blocks-gallery-item a,
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-item img,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-image a,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-image img,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-item a,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-item img {
|
||||
width: 100%;
|
||||
}
|
||||
@supports (position: sticky) {
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-image a,
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-image img, .wp-block-gallery.is-cropped .blocks-gallery-item a,
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-item img,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-image a,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-image img,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-item a,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-item img {
|
||||
height: 100%;
|
||||
flex: 1;
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
.wp-block-gallery.columns-1 .blocks-gallery-image, .wp-block-gallery.columns-1 .blocks-gallery-item,
|
||||
.blocks-gallery-grid.columns-1 .blocks-gallery-image,
|
||||
.blocks-gallery-grid.columns-1 .blocks-gallery-item {
|
||||
width: 100%;
|
||||
margin-right: 0;
|
||||
}
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-gallery.columns-3 .blocks-gallery-image, .wp-block-gallery.columns-3 .blocks-gallery-item,
|
||||
.blocks-gallery-grid.columns-3 .blocks-gallery-image,
|
||||
.blocks-gallery-grid.columns-3 .blocks-gallery-item {
|
||||
width: calc(33.3333333333% - 0.6666666667em);
|
||||
margin-right: 1em;
|
||||
}
|
||||
.wp-block-gallery.columns-4 .blocks-gallery-image, .wp-block-gallery.columns-4 .blocks-gallery-item,
|
||||
.blocks-gallery-grid.columns-4 .blocks-gallery-image,
|
||||
.blocks-gallery-grid.columns-4 .blocks-gallery-item {
|
||||
width: calc(25% - 0.75em);
|
||||
margin-right: 1em;
|
||||
}
|
||||
.wp-block-gallery.columns-5 .blocks-gallery-image, .wp-block-gallery.columns-5 .blocks-gallery-item,
|
||||
.blocks-gallery-grid.columns-5 .blocks-gallery-image,
|
||||
.blocks-gallery-grid.columns-5 .blocks-gallery-item {
|
||||
width: calc(20% - 0.8em);
|
||||
margin-right: 1em;
|
||||
}
|
||||
.wp-block-gallery.columns-6 .blocks-gallery-image, .wp-block-gallery.columns-6 .blocks-gallery-item,
|
||||
.blocks-gallery-grid.columns-6 .blocks-gallery-image,
|
||||
.blocks-gallery-grid.columns-6 .blocks-gallery-item {
|
||||
width: calc(16.6666666667% - 0.8333333333em);
|
||||
margin-right: 1em;
|
||||
}
|
||||
.wp-block-gallery.columns-7 .blocks-gallery-image, .wp-block-gallery.columns-7 .blocks-gallery-item,
|
||||
.blocks-gallery-grid.columns-7 .blocks-gallery-image,
|
||||
.blocks-gallery-grid.columns-7 .blocks-gallery-item {
|
||||
width: calc(14.2857142857% - 0.8571428571em);
|
||||
margin-right: 1em;
|
||||
}
|
||||
.wp-block-gallery.columns-8 .blocks-gallery-image, .wp-block-gallery.columns-8 .blocks-gallery-item,
|
||||
.blocks-gallery-grid.columns-8 .blocks-gallery-image,
|
||||
.blocks-gallery-grid.columns-8 .blocks-gallery-item {
|
||||
width: calc(12.5% - 0.875em);
|
||||
margin-right: 1em;
|
||||
}
|
||||
.wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n), .wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n),
|
||||
.blocks-gallery-grid.columns-1 .blocks-gallery-image:nth-of-type(1n),
|
||||
.blocks-gallery-grid.columns-1 .blocks-gallery-item:nth-of-type(1n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
.wp-block-gallery.columns-2 .blocks-gallery-image:nth-of-type(2n), .wp-block-gallery.columns-2 .blocks-gallery-item:nth-of-type(2n),
|
||||
.blocks-gallery-grid.columns-2 .blocks-gallery-image:nth-of-type(2n),
|
||||
.blocks-gallery-grid.columns-2 .blocks-gallery-item:nth-of-type(2n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
.wp-block-gallery.columns-3 .blocks-gallery-image:nth-of-type(3n), .wp-block-gallery.columns-3 .blocks-gallery-item:nth-of-type(3n),
|
||||
.blocks-gallery-grid.columns-3 .blocks-gallery-image:nth-of-type(3n),
|
||||
.blocks-gallery-grid.columns-3 .blocks-gallery-item:nth-of-type(3n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
.wp-block-gallery.columns-4 .blocks-gallery-image:nth-of-type(4n), .wp-block-gallery.columns-4 .blocks-gallery-item:nth-of-type(4n),
|
||||
.blocks-gallery-grid.columns-4 .blocks-gallery-image:nth-of-type(4n),
|
||||
.blocks-gallery-grid.columns-4 .blocks-gallery-item:nth-of-type(4n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
.wp-block-gallery.columns-5 .blocks-gallery-image:nth-of-type(5n), .wp-block-gallery.columns-5 .blocks-gallery-item:nth-of-type(5n),
|
||||
.blocks-gallery-grid.columns-5 .blocks-gallery-image:nth-of-type(5n),
|
||||
.blocks-gallery-grid.columns-5 .blocks-gallery-item:nth-of-type(5n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
.wp-block-gallery.columns-6 .blocks-gallery-image:nth-of-type(6n), .wp-block-gallery.columns-6 .blocks-gallery-item:nth-of-type(6n),
|
||||
.blocks-gallery-grid.columns-6 .blocks-gallery-image:nth-of-type(6n),
|
||||
.blocks-gallery-grid.columns-6 .blocks-gallery-item:nth-of-type(6n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
.wp-block-gallery.columns-7 .blocks-gallery-image:nth-of-type(7n), .wp-block-gallery.columns-7 .blocks-gallery-item:nth-of-type(7n),
|
||||
.blocks-gallery-grid.columns-7 .blocks-gallery-image:nth-of-type(7n),
|
||||
.blocks-gallery-grid.columns-7 .blocks-gallery-item:nth-of-type(7n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
.wp-block-gallery.columns-8 .blocks-gallery-image:nth-of-type(8n), .wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n),
|
||||
.blocks-gallery-grid.columns-8 .blocks-gallery-image:nth-of-type(8n),
|
||||
.blocks-gallery-grid.columns-8 .blocks-gallery-item:nth-of-type(8n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
.wp-block-gallery .blocks-gallery-image:last-child,
|
||||
.wp-block-gallery .blocks-gallery-item:last-child,
|
||||
.blocks-gallery-grid .blocks-gallery-image:last-child,
|
||||
.blocks-gallery-grid .blocks-gallery-item:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
.wp-block-gallery.alignleft, .wp-block-gallery.alignright,
|
||||
.blocks-gallery-grid.alignleft,
|
||||
.blocks-gallery-grid.alignright {
|
||||
max-width: 420px;
|
||||
width: 100%;
|
||||
}
|
||||
.wp-block-gallery.aligncenter .blocks-gallery-item figure,
|
||||
.blocks-gallery-grid.aligncenter .blocks-gallery-item figure {
|
||||
justify-content: center;
|
||||
}
|
1
hamrokhaanpaan/wp-includes/blocks/gallery/style.min.css
vendored
Normal file
1
hamrokhaanpaan/wp-includes/blocks/gallery/style.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user