mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
5e52fa8477
Pullquotes were not inheriting the correct styling from the block editor. This commit resolves the issue by supporting typography options. 1. The `font-family` variable remains on the paragraph (both editor and front) so the citation continues to use the body font even when the site redefines `var(--pullquote--font-family)`. 2. The `font-size`, `font-style`, `font-weight`, `letter-spacing` and `line-height` are set on the Pullquote block to allow overriding with the sidebar settings. Then the block's paragraph element inherits those styles. 3. When the settings do not give a custom `line-height` from the sidebar, these stylesheets set the paragraph to `var(--pullquote--line-height)` instead of inheriting 1.6 from the block styles. This patch uses `:where()` to avoid increasing specificity. Moving styles from the paragraph element to the block should not affect the citation, which has had its own styles for `font-size`, `font-style`, `font-weight` and `letter-spacing`. Follow-up to [56959], [56451], [55089], [55088], [49574], [49320], [49216]. Props sabernhardt, poena, darshitrajyaguru97, harshgajipara, shailu25, skyakash12. Fixes #57854. Built from https://develop.svn.wordpress.org/trunk@57631 git-svn-id: http://core.svn.wordpress.org/trunk@57132 1a063a9b-81f0-0310-95a4-ce76da25c4cd |
||
---|---|---|
.. | ||
assets | ||
classes | ||
inc | ||
template-parts | ||
.npmrc | ||
.stylelintignore | ||
.stylelintrc-css.json | ||
.stylelintrc.json | ||
404.php | ||
archive.php | ||
comments.php | ||
footer.php | ||
functions.php | ||
header.php | ||
image.php | ||
index.php | ||
package-lock.json | ||
package.json | ||
page.php | ||
postcss.config.js | ||
readme.txt | ||
screenshot.png | ||
search.php | ||
searchform.php | ||
single.php | ||
style-rtl.css | ||
style.css |
=== Twenty Twenty-One ===
Contributors: wordpressdotorg
Requires at least: 5.3
Tested up to: 6.4
Requires PHP: 5.6
Stable tag: 2.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
== Description ==
Twenty Twenty-One is a blank canvas for your ideas and it makes the block editor your best brush.
With new block patterns, which allow you to create a beautiful layout in a matter of seconds, this theme’s soft colors and eye-catching — yet timeless — design will let your work shine.
Take it for a spin! See how Twenty Twenty-One elevates your portfolio, business website, or personal blog.
== Installation ==
1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button.
2. Type in Twenty Twenty-One in the search form and press the 'Enter' key on your keyboard.
3. Click on the 'Activate' button to use your new theme right away.
4. Go to INSERT ABOUT PAGE for a guide on how to customize this theme.
5. Navigate to Appearance > Customize in your admin panel and customize to your taste.
== Privacy ==
Twenty Twenty-One uses LocalStorage to save the setting when Dark Mode support is turned on or off.
LocalStorage is necessary for the setting to work and is only used when a user clicks on the Dark Mode button.
No data is saved in the database or transferred.
== Changelog ==
= 2.1 =
* Released: January 16, 2024
https://wordpress.org/documentation/article/twenty-twenty-one-changelog/#Version_2.1
= 2.0 =
* Released: November 7, 2023
https://wordpress.org/documentation/article/twenty-twenty-one-changelog/#Version_2.0
= 1.9 =
* Released: August 8, 2023
https://wordpress.org/documentation/article/twenty-twenty-one-changelog/#Version_1.9
= 1.8 =
* Released: March 28, 2023
https://wordpress.org/documentation/article/twenty-twenty-one-changelog/#Version_1.8
= 1.7 =
* Released: November 1, 2022
https://wordpress.org/documentation/article/twenty-twenty-one-changelog/#Version_1.7
= 1.6 =
* Released: May 24, 2022
https://wordpress.org/documentation/article/twenty-twenty-one-changelog/#Version_1.6
= 1.5 =
* Released: January 25, 2022
https://wordpress.org/documentation/article/twenty-twenty-one-changelog/#Version_1.5
= 1.4 =
* Released: July 20, 2021
https://wordpress.org/documentation/article/twenty-twenty-one-changelog/#Version_1.4
= 1.3 =
* Released: April 14, 2021
https://wordpress.org/documentation/article/twenty-twenty-one-changelog/#Version_1.3
= 1.2 =
* Released: March 9, 2021
https://wordpress.org/documentation/article/twenty-twenty-one-changelog/#Version_1.2
= 1.1 =
* Released: December 22, 2020
https://wordpress.org/documentation/article/twenty-twenty-one-changelog/#Version_1.1
= 1.0 =
* Released: December 8, 2020
https://wordpress.org/documentation/article/twenty-twenty-one-changelog/#Version_1.0
== Copyright ==
Twenty Twenty-One WordPress Theme, 2020-2024 WordPress.org
Twenty Twenty-One is distributed under the terms of the GNU GPL.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Twenty Twenty-One is derived from Seedlet, (C) 2020 Automattic, Inc.
Twenty Twenty-One is also based on:
Twenty Nineteen. 2018-2024 WordPress.org
Twenty Nineteen is distributed under the terms of the GNU GPL v2 or later.
Twenty Seventeen. Copyright (C) 2016-2024 WordPress.org
Twenty Seventeen is distributed under the terms of the GNU GPL v2 or later.
Twenty Sixteen. Copyright (C) 2015-2024 WordPress.org
Twenty Sixteen is distributed under the terms of the GNU GPL v2 or later.
Twenty Twenty. Copyright (C) 2020-2024 WordPress.org
Twenty Twenty is distributed under the terms of the GNU GPL v2 or later.
Underscores https://underscores.me/, Copyright (C) 2012-2024 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
Unless otherwise noted, the icons in this theme are derived from the WordPress
Icons Library, licensed under the terms of the GNU GPL v2 or later.
https://github.com/WordPress/gutenberg/tree/master/packages/icons
This theme bundles the following third-party resources:
input[type='checkbox'], input[type='radio'], input[type='ranged'],
https://css-tricks.com/custom-styling-form-inputs-with-modern-css-features/
https://css-tricks.com/styling-cross-browser-compatible-range-inputs-css/
https://codepen.io/aaroniker/pen/ZEYoxEY Copyright (c) 2020 Aaron Iker
https://codepen.io/chriscoyier/pen/FtnAa Copyright (c) 2020 Chris Coyier
License: MIT.
Images
Art by Berthe Morisot 1841-1895. Public domain.
https://www.wikiart.org/en/berthe-morisot/playing-in-the-sand
https://www.wikiart.org/en/berthe-morisot/roses-tremieres-hollyhocks-1884
https://www.wikiart.org/en/berthe-morisot/young-woman-in-mauve
https://www.wikiart.org/en/berthe-morisot/in-the-bois-de-boulogne
https://www.wikiart.org/en/berthe-morisot/daffodils
https://www.wikiart.org/en/berthe-morisot/self-portrait-1885
https://www.wikiart.org/en/berthe-morisot/the-garden-at-bougival-1884
https://www.wikiart.org/en/berthe-morisot/villa-with-orange-trees-nice
https://www.wikiart.org/en/berthe-morisot/reading