Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Try link and focus styles #94

Merged
merged 16 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions editor-style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Link styles
* https://github.com/WordPress/gutenberg/issues/42319
*/
a {
text-decoration-thickness: 1px !important;
text-underline-offset: .1em;
}
21 changes: 21 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,24 @@
* @package Twenty Twenty-Five
* @since Twenty Twenty-Five 1.0
*/

/**
* Enqueue stylesheet.css in the editors.
carolinan marked this conversation as resolved.
Show resolved Hide resolved
*/
function twenty_twenty_five_editor_style() {
carolinan marked this conversation as resolved.
Show resolved Hide resolved
add_editor_style( get_parent_theme_file_uri( 'editor-style.css' ) );
carolinan marked this conversation as resolved.
Show resolved Hide resolved
}
add_action( 'after_setup_theme', 'twenty_twenty_five_editor_style' );
carolinan marked this conversation as resolved.
Show resolved Hide resolved

/**
* Enqueue stylesheet.css on the front.
carolinan marked this conversation as resolved.
Show resolved Hide resolved
*/
function twenty_twenty_five_enqueue_styles() {
carolinan marked this conversation as resolved.
Show resolved Hide resolved
wp_enqueue_style(
'twenty-twenty-five-style',
carolinan marked this conversation as resolved.
Show resolved Hide resolved
get_parent_theme_file_uri( 'style.css' ),
carolinan marked this conversation as resolved.
Show resolved Hide resolved
array(),
wp_get_theme()->get( 'Version' ),
);
}
add_action( 'wp_enqueue_scripts', 'twenty_twenty_five_enqueue_styles' );
carolinan marked this conversation as resolved.
Show resolved Hide resolved
15 changes: 15 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,18 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
* Link styles
* https://github.com/WordPress/gutenberg/issues/42319
*/
a {
text-decoration-thickness: 1px !important;
text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
outline-width: 2px;
outline-style: solid;
}
Loading