Bläddra i källkod

Creatio: Bulk fixes (#7237)

* Update style.css

Remove blockGap between header/sections/footer for Pattern Assembler.

* Update footer.php

Update footer pattern - remove the space at the bottom.

* Update index.html

Add top padding to content in index template (required after removing gaps between header/content/footer, but also it felt a bit tight).

* Update single.html

Change the layout setting on the post content to all full-width/wide blocks inside post/page content.

* Update style.css

Update the theme meta info.

* Update readme.txt

Update the theme meta info.
alaczek 2 år sedan
förälder
incheckning
ce127931f9
5 ändrade filer med 31 tillägg och 30 borttagningar
  1. 1 5
      creatio/patterns/footer.php
  2. 3 19
      creatio/readme.txt
  3. 21 4
      creatio/style.css
  4. 5 1
      creatio/templates/index.html
  5. 1 1
      creatio/templates/single.html

+ 1 - 5
creatio/patterns/footer.php

@@ -27,8 +27,4 @@
 </p>
 <!-- /wp:paragraph --></div>
 <!-- /wp:group --></div>
-<!-- /wp:group -->
-
-<!-- wp:spacer {"height":"var(--wp--preset--spacing--80)"} -->
-<div style="height:var(--wp--preset--spacing--80)" aria-hidden="true" class="wp-block-spacer"></div>
-<!-- /wp:spacer -->
+<!-- /wp:group -->

+ 3 - 19
creatio/readme.txt

@@ -1,7 +1,7 @@
 === Creatio ===
 Contributors: Automattic
-Requires at least: 6.0
-Tested up to: 6.2.3
+Requires at least: 6.1
+Tested up to: 6.2
 Requires PHP: 5.7
 License: GPLv2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -12,10 +12,7 @@ Creatio is a simple, minimal theme that supports full-site editing and global st
 
 == Changelog ==
 
-= 0.0.2 =
-* Update Creatio (#7229)
-
-= 0.0.1 =
+= 1.0.0 =
 * Initial release
 
 == Copyright ==
@@ -34,8 +31,6 @@ 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.
 
-This theme bundles the following third-party resources:
-
 Inter Font
 Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
 This Font Software is licensed under the SIL Open Font License, Version 1.1. This license is available with a FAQ at: http://scripts.sil.org/OFL 
@@ -49,14 +44,3 @@ This Font Software is licensed under the SIL Open Font License, Version 1.1. Thi
 License URL: http://scripts.sil.org/OFL 
 Source: https://github.com/googlefonts/literata
 -- End of Literata Font credits --
-
-Image by Thought Catalog
-https://www.pexels.com/photo/three-assorted-colored-books-2228546/
-
-Image by Victor Freitas
-https://www.pexels.com/photo/person-in-black-shorts-and-pink-sneakers-lying-on-floor-2261486/
-
-Image by Brando.ltd
-https://www.pexels.com/photo/a-person-holding-black-smartphone-9878730/
-
-Included in theme screenshot and in a front page template.

+ 21 - 4
creatio/style.css

@@ -4,14 +4,14 @@ Theme URI: https://wordpress.com/theme/creatio
 Author: Automattic
 Author URI: https://automattic.com/
 Description: Creatio is a simple, minimal theme that supports full-site editing and global styles. Use it to build something beautiful.
-Requires at least: 6.0
-Tested up to: 6.2.3
+Requires at least: 6.1
+Tested up to: 6.2
 Requires PHP: 5.7
-Version: 0.0.2
+Version: 1.0.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: creatio
-Tags: blog, news, portfolio, one-column, three-columns, wide-blocks, block-patterns, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, rtl-language-support, style-variations, template-editing, theme-options, threaded-comments, translation-ready, shawburn
+Tags: blog, news, one-column, three-columns, wide-blocks, block-patterns, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, rtl-language-support, style-variations, template-editing, theme-options, threaded-comments, translation-ready
 */
 
 /*
@@ -55,4 +55,21 @@ Tags: blog, news, portfolio, one-column, three-columns, wide-blocks, block-patte
 a {
 	text-decoration-thickness: .0625em !important;
 	text-underline-offset: .15em;
+}
+
+/**
+ * Remove blockGap between header/sections/footer for Pattern Assembler.
+ * See https://github.com/Automattic/wp-calypso/issues/78097 for reference. 
+ */
+
+/* Remove the gap from the editor. */
+.editor-styles-wrapper :where(.wp-site-blocks) > * {
+    margin-block-start: 0;
+    margin-block-end: 0;
+}
+
+/* Remove the gap from the front-end. */
+:where(.wp-site-blocks) > * {
+    margin-block-start: 0;
+    margin-block-end: 0;
 }

+ 5 - 1
creatio/templates/index.html

@@ -1,6 +1,9 @@
 <!-- wp:template-part {"slug":"header"} /-->
 
 
+
+<!-- wp:group {"style":{"spacing":{"padding":{"top":"4vw"}}},"layout":{"type":"default"}} -->
+<div class="wp-block-group" style="padding-top:4vw">
 <!-- wp:query {"queryId":0,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"tagName":"main","displayLayout":{"type":"flex","columns":3},"layout":{"type":"constrained","wideSize":"1200px"}} -->
 <main class="wp-block-query"><!-- wp:post-template -->
 <!-- wp:group -->
@@ -33,6 +36,7 @@
 <!-- wp:query-pagination-next /-->
 <!-- /wp:query-pagination --></div>
 <!-- /wp:group --></main>
-<!-- /wp:query -->
+<!-- /wp:query --></div>
+<!-- /wp:group -->
 
 <!-- wp:template-part {"slug":"footer"} /-->

+ 1 - 1
creatio/templates/single.html

@@ -10,7 +10,7 @@
 <!-- wp:post-featured-image /-->
 
 <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"left":"40px","right":"40px","bottom":"40px","top":"40px"}}},"layout":{"type":"constrained"}} -->
-<div class="wp-block-group alignfull" style="padding-top:40px;padding-right:40px;padding-bottom:40px;padding-left:40px"><!-- wp:post-content {"lock":{"move":false,"remove":false},"layout":{"type":"default"}} /--></div>
+<div class="wp-block-group alignfull" style="padding-top:40px;padding-right:40px;padding-bottom:40px;padding-left:40px"><!-- wp:post-content {"lock":{"move":false,"remove":false},"layout":{"type":"constrained"}} /--></div>
 <!-- /wp:group -->
 
 <!-- wp:spacer {"height":"40px"} -->