Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* General Image Block Adjustments for Dark Mode */
- .wp-block-image img {
- box-sizing: border-box;
- height: auto;
- max-width: 100%;
- vertical-align: bottom;
- }
- .wp-block-image[style*=border-radius] img, .wp-block-image[style*=border-radius]>a {
- border-radius: inherit;
- }
- .wp-block-image.has-custom-border img {
- box-sizing: border-box;
- }
- .wp-block-image.aligncenter {
- text-align: center;
- }
- .wp-block-image.alignfull img, .wp-block-image.alignwide img {
- height: auto;
- width: 100%;
- }
- /* Alignment & Caption Styles */
- .wp-block-image .aligncenter, .wp-block-image .alignleft, .wp-block-image .alignright, .wp-block-image.aligncenter, .wp-block-image.alignleft, .wp-block-image.alignright {
- display: table;
- }
- .wp-block-image .aligncenter>figcaption, .wp-block-image .alignleft>figcaption, .wp-block-image .alignright>figcaption, .wp-block-image.aligncenter>figcaption, .wp-block-image.alignleft>figcaption, .wp-block-image.alignright>figcaption {
- caption-side: bottom;
- display: table-caption;
- color: #ccc; /* Lighter text color for dark mode */
- }
- .wp-block-image .alignleft {
- float: left;
- margin: .5em 1em .5em 0;
- }
- .wp-block-image .alignright {
- float: right;
- margin: .5em 0 .5em 1em;
- }
- .wp-block-image .aligncenter {
- margin-left: auto;
- margin-right: auto;
- }
- .wp-block-image figcaption {
- color: #ccc; /* Lighter text color for readability in dark mode */
- margin-bottom: 1em;
- margin-top: .5em;
- }
- /* Specific Styles for Rounded Images and Circle Masks */
- .wp-block-image .is-style-rounded img, .wp-block-image.is-style-circle-mask img, .wp-block-image.is-style-rounded img {
- border-radius: 9999px;
- }
- @supports ((-webkit-mask-image: none) or (mask-image: none)) or (-webkit-mask-image: none) {
- .wp-block-image.is-style-circle-mask img {
- border-radius: 0;
- -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');
- mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');
- mask-mode: alpha;
- -webkit-mask-position: center;
- mask-position: center;
- -webkit-mask-repeat: no-repeat;
- mask-repeat: no-repeat;
- -webkit-mask-size: contain;
- mask-size: contain;
- }
- }
- /* Lightbox & Overlay Styles for Dark Mode */
- .wp-lightbox-overlay .scrim {
- background-color: #000; /* Darker background for overlays */
- opacity: .8; /* Adjusted for better visibility in dark mode */
- }
- .wp-lightbox-container button, .wp-lightbox-overlay .close-button {
- -webkit-backdrop-filter: blur(16px) saturate(180%);
- backdrop-filter: blur(16px) saturate(180%);
- background-color: rgba(255, 255, 255, .25); /* Lighter elements for contrast */
- color: #fff; /* Ensure text/icons within buttons are light */
- }
- /* Ensure visibility and readability of all elements in dark mode */
- .wp-lightbox-container button:hover, .wp-lightbox-overlay .close-button:hover {
- background-color: rgba(255, 255, 255, .35); /* Slightly lighter on hover for feedback */
- }
- /* Update border and style properties for dark mode as needed */
- .wp-block-image :where(.has-border-color), .wp-block-image :where([style*=border-color]), .wp-block-image :where([style*=border-width]) {
- border-color: #444; /* Lighter border color suitable for dark backgrounds */
- }
- /* Additional adjustments may be required based on specific needs */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement