浏览代码

Upsidedown: Tweaks for initial release (#6814)

* Remove CSS for table block

* Update copyright text

* Bump version

* Add blog tag

* Update copyright year to 2023

* Remove font-smoothing

* Update link to wp.org

* Update noir variation so colours are inverted

* Capitalise variation name

* Style focus states on links and buttons

* Remove queryIds from templates
Sarah Norris 2 年之前
父节点
当前提交
442ff228ee

+ 1 - 1
upsidedown/patterns/header.php

@@ -46,7 +46,7 @@
                         <!-- /wp:social-links -->
                         <!-- /wp:social-links -->
 
 
                         <!-- wp:paragraph -->
                         <!-- wp:paragraph -->
-                        <p><?php echo esc_html__( 'Explore my side projects and work using', 'upsidedown' ); ?>&nbsp;<a rel="noreferrer noopener" href="http://www.wordpress.org" target="_blank"><span style="text-decoration: underline;"><?php echo esc_html__( 'this link', 'upsidedown' ); ?></span></a></p>
+                        <p><?php echo esc_html__( 'Explore my side projects and work using', 'upsidedown' ); ?>&nbsp;<a rel="noreferrer noopener" href="https://www.wordpress.org" target="_blank"><span style="text-decoration: underline;"><?php echo esc_html__( 'this link', 'upsidedown' ); ?></span></a></p>
                         <!-- /wp:paragraph -->
                         <!-- /wp:paragraph -->
                     </div>
                     </div>
                     <!-- /wp:group -->
                     <!-- /wp:group -->

+ 4 - 1
upsidedown/readme.txt

@@ -12,6 +12,9 @@ Upsidedown is a blog theme designed in the WordPress Site Editor. With its neat
 
 
 == Changelog ==
 == Changelog ==
 
 
+= 1.0.0 =
+* Version bump for release
+
 = 0.0.3 =
 = 0.0.3 =
 * Fix spacing on templates (#6799)
 * Fix spacing on templates (#6799)
 
 
@@ -23,7 +26,7 @@ Upsidedown is a blog theme designed in the WordPress Site Editor. With its neat
 
 
 == Copyright ==
 == Copyright ==
 
 
-Upsidedown WordPress Theme, (C) 2022 Dotorg Themes Design
+Upsidedown WordPress Theme, (C) 2023 Automattic
 Upsidedown is distributed under the terms of the GNU GPL.
 Upsidedown is distributed under the terms of the GNU GPL.
 
 
 This program is free software: you can redistribute it and/or modify
 This program is free software: you can redistribute it and/or modify

+ 7 - 38
upsidedown/style.css

@@ -7,62 +7,31 @@ Description: Upsidedown is a blog theme designed in the WordPress Site Editor. W
 Requires at least: 6.0
 Requires at least: 6.0
 Tested up to: 6.1
 Tested up to: 6.1
 Requires PHP: 5.7
 Requires PHP: 5.7
-Version: 0.0.3
+Version: 1.0.0
 License: GNU General Public License v2 or later
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Template: 
 Template: 
 Text Domain: upsidedown
 Text Domain: upsidedown
-Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks
+Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks, blog
 */
 */
 
 
-/*
- * Font smoothing
- * https://github.com/WordPress/gutenberg/issues/35934
- */
-body {
-	-moz-osx-font-smoothing: grayscale;
-	-webkit-font-smoothing: antialiased;
-}
-
 /*
 /*
  * Control the hover stylings of outline block style.
  * Control the hover stylings of outline block style.
  * Unnecessary once block styles are configurable via theme.json
  * Unnecessary once block styles are configurable via theme.json
  * https://github.com/WordPress/gutenberg/issues/42794
  * https://github.com/WordPress/gutenberg/issues/42794
  */
  */
-.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
+.wp-block-button.is-style-outline
+	> .wp-block-button__link:not(.has-background):hover {
 	background-color: var(--wp--preset--color--primary);
 	background-color: var(--wp--preset--color--primary);
 	color: var(--wp--preset--color--secondary);
 	color: var(--wp--preset--color--secondary);
 	border-color: var(--wp--preset--color--primary);
 	border-color: var(--wp--preset--color--primary);
 }
 }
 
 
-/**
- * Currently table styles are only available with 'wp-block-styles' 
- * theme support (block css) thus the following needs to be included
- * since 'wp-block-styles' aren't used for this theme.
- * https://github.com/WordPress/gutenberg/issues/45065
- */
-.wp-block-table thead {
-	border-bottom: 3px solid;
-}
-.wp-block-table tfoot {
-	border-top: 3px solid;
-}
-.wp-block-table td,
-.wp-block-table th {
-	padding: var(--wp--preset--spacing--30);
-	border: 1px solid;
-	word-break: normal;
-}
-.wp-block-table figcaption {
-	font-size: var(--wp--preset--font-size--small);
-	text-align: center;
-}
-
 /*
 /*
  * Link styles
  * Link styles
  * https://github.com/WordPress/gutenberg/issues/42319
  * https://github.com/WordPress/gutenberg/issues/42319
  */
  */
 a {
 a {
-	text-decoration-thickness: .0625em !important;
-	text-underline-offset: .15em;
-}
+	text-decoration-thickness: 0.0625em !important;
+	text-underline-offset: 0.15em;
+}

+ 3 - 20
upsidedown/styles/noir.json

@@ -3,36 +3,19 @@
 		"color": {
 		"color": {
 			"palette": [
 			"palette": [
 				{
 				{
-					"color": "#111111",
+					"color": "#f9f9f9",
 					"name": "Primary",
 					"name": "Primary",
 					"slug": "primary"
 					"slug": "primary"
 				},
 				},
 				{
 				{
-					"color": "#f9f9f9",
+					"color": "#111111",
 					"name": "Secondary",
 					"name": "Secondary",
 					"slug": "secondary"
 					"slug": "secondary"
 				}
 				}
 			]
 			]
 		}
 		}
 	},
 	},
-	"styles": {
-		"color": {
-			"background": "var(--wp--preset--color--primary)",
-			"text": "var(--wp--preset--color--secondary)"
-		},
-		"elements": {
-			"heading": {
-				"color": {
-					"text": "var(--wp--preset--color--secondary)"
-				}
-			},
-			"link": {
-				"color": {
-					"text": "var(--wp--preset--color--secondary)"
-				}
-			}
-		}
-	},
+	"title": "Noir",
 	"version": 2,
 	"version": 2,
 	"$schema": "https://schemas.wp.org/trunk/theme.json"
 	"$schema": "https://schemas.wp.org/trunk/theme.json"
 }
 }

+ 1 - 1
upsidedown/templates/archive.html

@@ -12,7 +12,7 @@
 
 
         <!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"margin":{"top":"0px","bottom":"0px"}}},"layout":{"type":"constrained","contentSize":"1200px"}} -->
         <!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"margin":{"top":"0px","bottom":"0px"}}},"layout":{"type":"constrained","contentSize":"1200px"}} -->
         <div class="wp-block-group alignwide" style="margin-top:0px;margin-bottom:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
         <div class="wp-block-group alignwide" style="margin-top:0px;margin-bottom:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
-            <!-- wp:query {"queryId":0,"query":{"perPage":"6","pages":0,"offset":"0","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"displayLayout":{"type":"list"},"layout":{"type":"default"}} -->
+            <!-- wp:query {"query":{"perPage":"6","pages":0,"offset":"0","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"displayLayout":{"type":"list"},"layout":{"type":"default"}} -->
             <div class="wp-block-query">
             <div class="wp-block-query">
                 <!-- wp:post-template {"align":"wide"} -->
                 <!-- wp:post-template {"align":"wide"} -->
                 <!-- wp:group {"style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"blockGap":"0px","margin":{"top":"0px","bottom":"0px"}},"border":{"top":{"width":"2px"}}},"layout":{"inherit":true,"type":"constrained"}} -->
                 <!-- wp:group {"style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"blockGap":"0px","margin":{"top":"0px","bottom":"0px"}},"border":{"top":{"width":"2px"}}},"layout":{"inherit":true,"type":"constrained"}} -->

+ 1 - 1
upsidedown/templates/index.html

@@ -2,7 +2,7 @@
 
 
 <!-- wp:group {"style":{"spacing":{"blockGap":"0px","padding":{"top":"0px","bottom":"0px"},"margin":{"top":"0px","bottom":"0px"}}},"layout":{"type":"constrained","contentSize":"1200px"}} -->
 <!-- wp:group {"style":{"spacing":{"blockGap":"0px","padding":{"top":"0px","bottom":"0px"},"margin":{"top":"0px","bottom":"0px"}}},"layout":{"type":"constrained","contentSize":"1200px"}} -->
 <div class="wp-block-group" style="margin-top:0px;margin-bottom:0px;padding-top:0px;padding-bottom:0px">
 <div class="wp-block-group" style="margin-top:0px;margin-bottom:0px;padding-top:0px;padding-bottom:0px">
-    <!-- wp:query {"queryId":0,"query":{"perPage":"6","pages":0,"offset":"0","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"tagName":"main","displayLayout":{"type":"list"},"layout":{"type":"default"}} -->
+    <!-- wp:query {"query":{"perPage":"6","pages":0,"offset":"0","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"tagName":"main","displayLayout":{"type":"list"},"layout":{"type":"default"}} -->
     <main class="wp-block-query">
     <main class="wp-block-query">
         <!-- wp:post-template {"align":"wide"} -->
         <!-- wp:post-template {"align":"wide"} -->
 
 

+ 1 - 1
upsidedown/templates/search.html

@@ -15,7 +15,7 @@
 
 
         <!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0px","padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"margin":{"top":"0px","bottom":"0px"}}},"layout":{"type":"constrained","contentSize":"1200px"}} -->
         <!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0px","padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"margin":{"top":"0px","bottom":"0px"}}},"layout":{"type":"constrained","contentSize":"1200px"}} -->
         <div class="wp-block-group alignwide" style="margin-top:0px;margin-bottom:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
         <div class="wp-block-group alignwide" style="margin-top:0px;margin-bottom:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
-            <!-- wp:query {"queryId":0,"query":{"perPage":"6","pages":0,"offset":"0","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"displayLayout":{"type":"list"},"layout":{"type":"default"}} -->
+            <!-- wp:query {"query":{"perPage":"6","pages":0,"offset":"0","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"displayLayout":{"type":"list"},"layout":{"type":"default"}} -->
             <div class="wp-block-query">
             <div class="wp-block-query">
                 <!-- wp:post-template {"align":"wide"} -->
                 <!-- wp:post-template {"align":"wide"} -->
                 <!-- wp:group {"style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"blockGap":"0px","margin":{"top":"0px","bottom":"0px"}},"border":{"top":{"width":"2px"}}},"layout":{"inherit":true,"type":"constrained"}} -->
                 <!-- wp:group {"style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"blockGap":"0px","margin":{"top":"0px","bottom":"0px"}},"border":{"top":{"width":"2px"}}},"layout":{"inherit":true,"type":"constrained"}} -->

+ 13 - 0
upsidedown/theme.json

@@ -331,6 +331,9 @@
 					"color": {
 					"color": {
 						"background": "var(--wp--preset--color--primary)",
 						"background": "var(--wp--preset--color--primary)",
 						"text": "var(--wp--preset--color--secondary)"
 						"text": "var(--wp--preset--color--secondary)"
+					},
+					"typography": {
+						"textDecoration": "underline"
 					}
 					}
 				},
 				},
 				":hover": {
 				":hover": {
@@ -405,12 +408,22 @@
 						"textDecoration": "none"
 						"textDecoration": "none"
 					}
 					}
 				},
 				},
+				":focus": {
+					"typography": {
+						"textDecoration": "underline"
+					}
+				},
 				"color": {
 				"color": {
 					"text": "var(--wp--preset--color--primary)"
 					"text": "var(--wp--preset--color--primary)"
 				},
 				},
 				"typography": {
 				"typography": {
 					"lineHeight": "1.4"
 					"lineHeight": "1.4"
 				}
 				}
+			},
+			"caption": {
+				"typography": {
+					"fontSize": "var(--wp--preset--font-size--small)"
+				}
 			}
 			}
 		},
 		},
 		"spacing": {
 		"spacing": {