From d2970d9268d021745c6a380ede47b4d0c8a8e424 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Tue, 20 Aug 2024 13:35:33 +0200 Subject: [PATCH 01/14] Try link and focus styles --- functions.php | 20 ++++++++++++++++++++ style.css | 15 +++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/functions.php b/functions.php index eaf2d755..c1296dd6 100644 --- a/functions.php +++ b/functions.php @@ -7,3 +7,23 @@ * @package Twenty Twenty-Five * @since Twenty Twenty-Five 1.0 */ + +/** + * Enqueue stylesheet.css in the editors. + */ + function twenty_twenty_five_editor_style() { + add_editor_style( get_parent_theme_file_uri( 'style.css' ) ); +} +add_action( 'after_setup_theme', 'twenty_twenty_five_editor_style' ); + +/** + * Enqueue stylesheet.css on the front. + */ +function twenty_twenty_five_enqueue_styles() { + wp_enqueue_style( + 'twenty-twenty-five-style', + get_parent_theme_file_uri( 'style.css' ), + array(), + wp_get_theme()->get( 'Version' ) ); +} +add_action( 'wp_enqueue_scripts', 'twenty_twenty_five_enqueue_styles' ); diff --git a/style.css b/style.css index c61ca7d1..b3ae8b1f 100644 --- a/style.css +++ b/style.css @@ -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; +} From c81f0d58afea711f2ea685d33438e393ced49b86 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Tue, 20 Aug 2024 13:38:17 +0200 Subject: [PATCH 02/14] Use tabs instead of spaces! --- style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/style.css b/style.css index b3ae8b1f..57427ab0 100644 --- a/style.css +++ b/style.css @@ -25,6 +25,6 @@ Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, feature /* Focus styles */ :where(.wp-site-blocks *:focus) { - outline-width: 2px; - outline-style: solid; + outline-width: 2px; + outline-style: solid; } From 2962534ef1119efa9f2ead9df0428df202bc547c Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Tue, 20 Aug 2024 13:48:07 +0200 Subject: [PATCH 03/14] Add editor-style.css --- editor-style.css | 8 ++++++++ functions.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 editor-style.css diff --git a/editor-style.css b/editor-style.css new file mode 100644 index 00000000..5e7e4530 --- /dev/null +++ b/editor-style.css @@ -0,0 +1,8 @@ +/* + * Link styles + * https://github.com/WordPress/gutenberg/issues/42319 + */ + a { + text-decoration-thickness: 1px !important; + text-underline-offset: .1em; +} diff --git a/functions.php b/functions.php index c1296dd6..876cd8eb 100644 --- a/functions.php +++ b/functions.php @@ -12,7 +12,7 @@ * Enqueue stylesheet.css in the editors. */ function twenty_twenty_five_editor_style() { - add_editor_style( get_parent_theme_file_uri( 'style.css' ) ); + add_editor_style( get_parent_theme_file_uri( 'editor-style.css' ) ); } add_action( 'after_setup_theme', 'twenty_twenty_five_editor_style' ); From 580d50c150ad1acbafd9f8dce4668a541bb3c89b Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Tue, 20 Aug 2024 13:58:01 +0200 Subject: [PATCH 04/14] Try to fix coding standard issues :) --- editor-style.css | 2 +- functions.php | 13 +++++++------ style.css | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/editor-style.css b/editor-style.css index 5e7e4530..13b91baa 100644 --- a/editor-style.css +++ b/editor-style.css @@ -2,7 +2,7 @@ * Link styles * https://github.com/WordPress/gutenberg/issues/42319 */ - a { +a { text-decoration-thickness: 1px !important; text-underline-offset: .1em; } diff --git a/functions.php b/functions.php index 876cd8eb..4877fcb6 100644 --- a/functions.php +++ b/functions.php @@ -11,7 +11,7 @@ /** * Enqueue stylesheet.css in the editors. */ - function twenty_twenty_five_editor_style() { +function twenty_twenty_five_editor_style() { add_editor_style( get_parent_theme_file_uri( 'editor-style.css' ) ); } add_action( 'after_setup_theme', 'twenty_twenty_five_editor_style' ); @@ -20,10 +20,11 @@ function twenty_twenty_five_editor_style() { * Enqueue stylesheet.css on the front. */ function twenty_twenty_five_enqueue_styles() { - wp_enqueue_style( - 'twenty-twenty-five-style', - get_parent_theme_file_uri( 'style.css' ), - array(), - wp_get_theme()->get( 'Version' ) ); + wp_enqueue_style( + 'twenty-twenty-five-style', + get_parent_theme_file_uri( 'style.css' ), + array(), + wp_get_theme()->get( 'Version' ), + ); } add_action( 'wp_enqueue_scripts', 'twenty_twenty_five_enqueue_styles' ); diff --git a/style.css b/style.css index 57427ab0..cca7810e 100644 --- a/style.css +++ b/style.css @@ -18,7 +18,7 @@ Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, feature * Link styles * https://github.com/WordPress/gutenberg/issues/42319 */ - a { +a { text-decoration-thickness: 1px !important; text-underline-offset: .1em; } From 5cafc24bfb847ed68d468818ff88bb05afc53f45 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Tue, 20 Aug 2024 14:20:58 +0200 Subject: [PATCH 05/14] Update functions.php --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 4877fcb6..ea08bd24 100644 --- a/functions.php +++ b/functions.php @@ -9,7 +9,7 @@ */ /** - * Enqueue stylesheet.css in the editors. + * Enqueue editor-style.css in the editors. */ function twenty_twenty_five_editor_style() { add_editor_style( get_parent_theme_file_uri( 'editor-style.css' ) ); From 0d949242cc3db17c507a60f1e06a264aa3b28de1 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Thu, 22 Aug 2024 15:21:20 +0200 Subject: [PATCH 06/14] Update functions.php Co-authored-by: Juan Aldasoro --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index ea08bd24..0bfb66f4 100644 --- a/functions.php +++ b/functions.php @@ -11,7 +11,7 @@ /** * Enqueue editor-style.css in the editors. */ -function twenty_twenty_five_editor_style() { +function twentytwentyfive_editor_style() { add_editor_style( get_parent_theme_file_uri( 'editor-style.css' ) ); } add_action( 'after_setup_theme', 'twenty_twenty_five_editor_style' ); From fb2b827c831d4a4df4502bd3fb11422eb6204035 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Thu, 22 Aug 2024 15:21:29 +0200 Subject: [PATCH 07/14] Update functions.php Co-authored-by: Juan Aldasoro --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 0bfb66f4..47003e2e 100644 --- a/functions.php +++ b/functions.php @@ -14,7 +14,7 @@ function twentytwentyfive_editor_style() { add_editor_style( get_parent_theme_file_uri( 'editor-style.css' ) ); } -add_action( 'after_setup_theme', 'twenty_twenty_five_editor_style' ); +add_action( 'after_setup_theme', 'twentytwentyfive_editor_style' ); /** * Enqueue stylesheet.css on the front. From 51e33b96ce3de7747859ea46fb2d5637e7414d8a Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Thu, 22 Aug 2024 15:21:35 +0200 Subject: [PATCH 08/14] Update functions.php Co-authored-by: Juan Aldasoro --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 47003e2e..4aa5c0ac 100644 --- a/functions.php +++ b/functions.php @@ -19,7 +19,7 @@ function twentytwentyfive_editor_style() { /** * Enqueue stylesheet.css on the front. */ -function twenty_twenty_five_enqueue_styles() { +function twentytwentyfive_enqueue_styles() { wp_enqueue_style( 'twenty-twenty-five-style', get_parent_theme_file_uri( 'style.css' ), From 4b39570ed7019e230d3752fe5f2e800cf1dd63e4 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Thu, 22 Aug 2024 15:21:46 +0200 Subject: [PATCH 09/14] Update functions.php Co-authored-by: Juan Aldasoro --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 4aa5c0ac..40df4914 100644 --- a/functions.php +++ b/functions.php @@ -21,7 +21,7 @@ function twentytwentyfive_editor_style() { */ function twentytwentyfive_enqueue_styles() { wp_enqueue_style( - 'twenty-twenty-five-style', + 'twentytwentyfive-style', get_parent_theme_file_uri( 'style.css' ), array(), wp_get_theme()->get( 'Version' ), From 15fc21ce240246e883c152cffa889807cb0f0c01 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Thu, 22 Aug 2024 15:21:56 +0200 Subject: [PATCH 10/14] Update functions.php Co-authored-by: Juan Aldasoro --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 40df4914..dfdcf02f 100644 --- a/functions.php +++ b/functions.php @@ -27,4 +27,4 @@ function twentytwentyfive_enqueue_styles() { wp_get_theme()->get( 'Version' ), ); } -add_action( 'wp_enqueue_scripts', 'twenty_twenty_five_enqueue_styles' ); +add_action( 'wp_enqueue_scripts', 'twentytwentyfive_enqueue_styles' ); From e00306be79568279fb9532d852412d2e868dc097 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Sat, 24 Aug 2024 05:07:24 +0200 Subject: [PATCH 11/14] Move the editor-style.css to the assets/css folder, update doc blocks. --- editor-style.css => assets/css/editor-style.css | 0 functions.php | 8 +++++++- 2 files changed, 7 insertions(+), 1 deletion(-) rename editor-style.css => assets/css/editor-style.css (100%) diff --git a/editor-style.css b/assets/css/editor-style.css similarity index 100% rename from editor-style.css rename to assets/css/editor-style.css diff --git a/functions.php b/functions.php index d519c439..adf3c74a 100644 --- a/functions.php +++ b/functions.php @@ -11,14 +11,20 @@ /** * Enqueue editor-style.css in the editors. + * + * @since Twenty Twenty-Five 1.0 + * @return void */ function twentytwentyfive_editor_style() { - add_editor_style( get_parent_theme_file_uri( 'editor-style.css' ) ); + add_editor_style( get_parent_theme_file_uri( 'assets/css/editor-style.css' ) ); } add_action( 'after_setup_theme', 'twentytwentyfive_editor_style' ); /** * Enqueue stylesheet.css on the front. + * + * @since Twenty Twenty-Five 1.0 + * @return void */ function twentytwentyfive_enqueue_styles() { wp_enqueue_style( From fc49a0901b4747f791ce2e702ebeabf730cbc353 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Sat, 24 Aug 2024 05:08:38 +0200 Subject: [PATCH 12/14] Meh, remove space in the doc block. --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index adf3c74a..93982676 100644 --- a/functions.php +++ b/functions.php @@ -11,7 +11,7 @@ /** * Enqueue editor-style.css in the editors. - * + * * @since Twenty Twenty-Five 1.0 * @return void */ @@ -22,7 +22,7 @@ function twentytwentyfive_editor_style() { /** * Enqueue stylesheet.css on the front. - * + * * @since Twenty Twenty-Five 1.0 * @return void */ From aeb09e8e5f83b822488bd224ec2a4e56250e0204 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Mon, 26 Aug 2024 14:31:18 +0200 Subject: [PATCH 13/14] Add pattern: Contact: Info and locations --- patterns/contact-info-locations.php | 93 +++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 patterns/contact-info-locations.php diff --git a/patterns/contact-info-locations.php b/patterns/contact-info-locations.php new file mode 100644 index 00000000..c84a6dae --- /dev/null +++ b/patterns/contact-info-locations.php @@ -0,0 +1,93 @@ + + +
+ +

How to get in touch with us

+ + + +
+ +
+ +

Social media

+ + + + + + + + +

Email:

+ + +

Example@example.com

+ +
+ + + +
+ +
+ +

New York

+ + +

123 Example St.Manhattan, NY 10300 United States

+ +
+ + + +
+ +

New York

+ + +

123 Example St.Manhattan, NY 10300 United States

+ +
+ + + +
+ +

New York

+ + + +

123 Example St.Manhattan, NY 10300 United States

+ +
+ + + +
+ +

New York

+ + +

123 Example St.Manhattan, NY 10300 United States

+ +
+ +
+ +
+ +
+ From 80d4e400dc87f12931668f4d8e8e8f8a9da37b7f Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Mon, 26 Aug 2024 17:21:46 +0200 Subject: [PATCH 14/14] Delete contact-info-locations.php --- patterns/contact-info-locations.php | 93 ----------------------------- 1 file changed, 93 deletions(-) delete mode 100644 patterns/contact-info-locations.php diff --git a/patterns/contact-info-locations.php b/patterns/contact-info-locations.php deleted file mode 100644 index c84a6dae..00000000 --- a/patterns/contact-info-locations.php +++ /dev/null @@ -1,93 +0,0 @@ - - -
- -

How to get in touch with us

- - - -
- -
- -

Social media

- - - - - - - - -

Email:

- - -

Example@example.com

- -
- - - -
- -
- -

New York

- - -

123 Example St.Manhattan, NY 10300 United States

- -
- - - -
- -

New York

- - -

123 Example St.Manhattan, NY 10300 United States

- -
- - - -
- -

New York

- - - -

123 Example St.Manhattan, NY 10300 United States

- -
- - - -
- -

New York

- - -

123 Example St.Manhattan, NY 10300 United States

- -
- -
- -
- -
-