Changeset 49728 for branches/5.6/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php
- Timestamp:
- 12/01/2020 07:25:43 PM (4 years ago)
- Location:
- branches/5.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.6
-
branches/5.6/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php
r49633 r49728 66 66 wp_add_inline_style( 67 67 'twenty-twenty-one-custom-color-overrides', 68 '.is-dark-theme.is-dark-theme .editor-styles-wrapper { --global--color-background: var(--global--color-dark-gray); --global--color-primary: var(--global--color-light-gray); --global--color-secondary: var(--global--color-light-gray); }'68 '.is-dark-theme.is-dark-theme .editor-styles-wrapper { --global--color-background: var(--global--color-dark-gray); --global--color-primary: var(--global--color-light-gray); --global--color-secondary: var(--global--color-light-gray); --button--color-text: var(--global--color-background); --button--color-text-hover: var(--global--color-secondary); --button--color-text-active: var(--global--color-secondary); --button--color-background: var(--global--color-secondary); --button--color-background-active: var(--global--color-background); --global--color-border: #9ea1a7; }' 69 69 ); 70 70 } … … 183 183 ); 184 184 185 $description = '<p>' . __( 'Dark Mode is a device setting. If a visitor to your site requests it, your site will be shown with a dark background and light text. <a href="https://wordpress.org/support/article/twenty-twenty-one/">Learn more about Dark Mode.</a>', 'twentytwentyone' ) . '</p>'; 185 $description = '<p>'; 186 $description .= sprintf( 187 // translators: %s is the wordpress.org Twenty Twenty-One support article URL. 188 __( 'Dark Mode is a device setting. If a visitor to your site requests it, your site will be shown with a dark background and light text. <a href="%s">Learn more about Dark Mode.</a>', 'twentytwentyone' ), 189 __( 'https://wordpress.org/support/article/twenty-twenty-one/', 'twentytwentyone' ) 190 ); 191 $description .= '</p>'; 186 192 $description .= '<p>' . __( 'Dark Mode can also be turned on and off with a button that you can find in the bottom right corner of the page.', 'twentytwentyone' ) . '</p>'; 187 193
Note: See TracChangeset
for help on using the changeset viewer.