Browse Source

Fotograma: Preps for submission (#7690)

Co-authored-by: Sarah Norris <sarah@sekai.co.uk>
Takashi Irie 1 year ago
parent
commit
4f72ca4a7c
4 changed files with 82 additions and 86 deletions
  1. 2 2
      fotograma/readme.txt
  2. BIN
      fotograma/screenshot.png
  3. 6 35
      fotograma/style.css
  4. 74 49
      fotograma/theme.json

+ 2 - 2
fotograma/readme.txt

@@ -1,7 +1,7 @@
 === Fotograma ===
 Contributors: Automattic
-Requires at least: 6.2
-Tested up to: 6.2
+Requires at least: 6.0
+Tested up to: 6.4
 Requires PHP: 5.7
 License: GPLv2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html

BIN
fotograma/screenshot.png


+ 6 - 35
fotograma/style.css

@@ -4,21 +4,15 @@ Theme URI: https://wordpress.com/theme/fotograma/
 Author: Automattic
 Author URI: https://automattic.com/
 Description: Fotograma is a portfolio theme for photographers seeking to showcase powerful photography in large sizes.
-Requires at least: 5.8
-Tested up to: 6.2
+Requires at least: 6.0
+Tested up to: 6.4
 Requires PHP: 5.7
 Version: 1.0.2
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: fotograma
-Tags: photography, one-column, wide-blocks, block-patterns, block-styles, custom-background, 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, blog, news
-*//*
- * OpenType feature for Noto Sans Japanese.
- * It re-spaces glyphs designed to be set on full-em widths, fitting them onto half-em widths.
- */
-body {
-	font-feature-settings: "halt";
-}
+Tags: photography, one-column, wide-blocks, block-styles, featured-images, full-site-editing, rtl-language-support, style-variations, threaded-comments, translation-ready
+*/
 
 /*
  * Control the hover stylings of outline block style.
@@ -40,35 +34,12 @@ a {
 	text-underline-offset: 2px;
 }
 
-/*
- * Avatar Block
- * Fix border radius setting for the avatar block
- * https://github.com/WordPress/gutenberg/issues/48253
- */
-.wp-block-avatar a,
-.wp-block-avatar img {
-	border-radius: inherit;
-}
-
 /*
  * Pull quote Block
  * Reset the browser default margins for blockquote element
  * https://github.com/WordPress/gutenberg/issues/44129
  */
-.wp-block-pullquote blockquote {
+.wp-block-pullquote blockquote,
+.wp-block-pullquote p {
 	margin: 0;
 }
-
-/*
- * Term Description Block
- * Reset the browser default margins for paragraph element
- * https://github.com/WordPress/gutenberg/issues/50515
- */
-
-.wp-block-term-description p:first-child {
-	margin-top: 0;
-}
-
-.wp-block-term-description p:last-child {
-	margin-bottom: 0;
-}

+ 74 - 49
fotograma/theme.json

@@ -6,9 +6,9 @@
 			"custom": true,
 			"customDuotone": true,
 			"customGradient": true,
-			"defaultDuotone": true,
-			"defaultGradients": true,
-			"defaultPalette": true,
+			"defaultDuotone": false,
+			"defaultGradients": false,
+			"defaultPalette": false,
 			"duotone": [],
 			"gradients": [],
 			"palette": [
@@ -41,11 +41,7 @@
 		"spacing": {
 			"customSpacingSize": true,
 			"spacingScale": {
-				"increment": 1.5,
-				"mediumStep": 1.5,
-				"operator": "*",
-				"steps": 0,
-				"unit": "rem"
+				"steps": 0
 			},
 			"spacingSizes": [
 				{
@@ -195,9 +191,6 @@
 			"core/avatar": {
 				"border": {
 					"radius": "999px"
-				},
-				"typography": {
-					"lineHeight": "0"
 				}
 			},
 			"core/button": {
@@ -208,10 +201,10 @@
 						},
 						"spacing": {
 							"padding": {
-								"bottom": "15px",
-								"left": "27px",
-								"right": "27px",
-								"top": "17px"
+								"bottom": "calc(1rem - 1px)",
+								"left": "calc(1.75rem - 1px)",
+								"right": "calc(1.75rem - 1px)",
+								"top": "calc(1.125rem - 1px)"
 							}
 						}
 					}
@@ -223,7 +216,7 @@
 				}
 			},
 			"core/calendar": {
-				"css": ".wp-block-calendar table:where(:not(.has-text-color)) {color: var(--wp--preset--color--contrast);} .wp-block-calendar table:where(:not(.has-text-color)) td,.wp-block-calendar table:where(:not(.has-text-color)) th {border-color: var(--wp--preset--color--contrast);}:where(.wp-block-calendar table:not(.has-background) th) {background-color: var(--wp--preset--color--contrast);color: var(--wp--preset--color--base);}"
+				"css": ".wp-block-calendar table:where(:not(.has-text-color)) {color: var(--wp--preset--color--contrast);} &.wp-block-calendar table:where(:not(.has-text-color)) td {border-color: var(--wp--preset--color--contrast);} &.wp-block-calendar table:where(:not(.has-text-color)) th {border-color: var(--wp--preset--color--contrast);} & :where(.wp-block-calendar table:not(.has-background) th) {background-color: var(--wp--preset--color--contrast);color: var(--wp--preset--color--base);}"
 			},
 			"core/categories": {
 				"elements": {
@@ -251,9 +244,6 @@
 					"style": "solid",
 					"width": "1px"
 				},
-				"color": {
-					"background": "rgba(0,0,0,0.2)"
-				},
 				"spacing": {
 					"padding": {
 						"bottom": "var(--wp--preset--spacing--40)",
@@ -327,16 +317,15 @@
 							"width": "1px"
 						},
 						"spacing": {
-							"padding": "2px 8px"
+							"padding": "0.125rem 0.5rem"
 						},
 						"typography": {
-							"fontSize": "var(--wp--preset--font-size--small)",
 							"textDecoration": "none"
 						}
 					}
 				},
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--small)",
+					"fontSize": "var(--wp--preset--font-size--x-small)",
 					"fontWeight": "400",
 					"letterSpacing": "0.04em",
 					"textTransform": "uppercase"
@@ -360,8 +349,8 @@
 			"core/comments-title": {
 				"spacing": {
 					"margin": {
-						"bottom": "var(--wp--preset--spacing--50)",
-						"top": "0px"
+						"bottom": "0px",
+						"top": "var(--wp--preset--spacing--50)"
 					}
 				},
 				"typography": {
@@ -382,7 +371,7 @@
 				"css": " .wp-element-caption{text-align:center;}"
 			},
 			"core/latest-comments": {
-				"css": " .wp-block-latest-comments__comment-date {font-size: var(--wp--preset--font-size--x-small);}.wp-block-latest-comments__comment-excerpt p{font-size: var(--wp--preset--font-size--small);}.wp-block-latest-comments__comment-excerpt p{margin:var(--wp--preset--spacing--30) 0 var(--wp--preset--spacing--50)}",
+				"css": " .wp-block-latest-comments__comment-meta{font-size: inherit;} & .wp-block-latest-comments__comment-date{font-size: inherit;} & .wp-block-latest-comments__comment-excerpt p{font-size: inherit;} & .wp-block-latest-comments__comment-excerpt p{margin:0 0 var(--wp--style--block-gap)} &:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment-excerpt p)){line-height:calc(1em + 0.375rem);}",
 				"elements": {
 					"link": {
 						":hover": {
@@ -402,7 +391,7 @@
 				}
 			},
 			"core/latest-posts": {
-				"css": " .wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date {font-size: var(--wp--preset--font-size--x-small);}.wp-block-latest-posts__post-excerpt{margin:var(--wp--preset--spacing--40) 0 var(--wp--preset--spacing--50)}",
+				"css": ".wp-block-latest-posts .wp-block-latest-posts__post-author{font-size: inherit;} & .wp-block-latest-posts__post-date{font-size: inherit;} & .wp-block-latest-posts__post-excerpt{margin:0 0 var(--wp--style--block-gap)} & .wp-block-latest-posts__post-title{text-decoration: none;}",
 				"elements": {
 					"link": {
 						":hover": {
@@ -423,6 +412,20 @@
 					}
 				}
 			},
+			"core/loginout": {
+				"elements": {
+					"link": {
+						":hover": {
+							"typography": {
+								"textDecoration": "underline"
+							}
+						},
+						"typography": {
+							"textDecoration": "none"
+						}
+					}
+				}
+			},
 			"core/navigation": {
 				"css": ".wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {border-color:var(--wp--preset--color--contrast);} .wp-block-navigation__submenu-container.has-background {padding:0;}",
 				"elements": {
@@ -461,7 +464,7 @@
 				}
 			},
 			"core/post-author": {
-				"css": ".wp-block-post-author .wp-block-post-author__byline{font-size:0.7em;} .wp-block-post-author .wp-block-post-author__bio {font-size:inherit;} .wp-block-post-author__avatar img {vertical-align:middle;} .wp-block-post-author__bio {margin:0;} .wp-block-post-author__avatar img {border-radius: 999px;}",
+				"css": "& .wp-block-post-author__byline{font-size:inherit;}&.wp-block-post-author .wp-block-post-author__name a{text-decoration:none;}&.wp-block-post-author .wp-block-post-author__bio{font-size:inherit;margin:0;}& .wp-block-post-author__avatar img{border-radius: 999px;vertical-align:middle;}",
 				"elements": {
 					"link": {
 						":hover": {
@@ -513,7 +516,7 @@
 				}
 			},
 			"core/post-comments-form": {
-				"css": ".wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]), .wp-block-post-comments-form .comment-form textarea {line-height: inherit;} .wp-block-post-comments-form .form-submit {margin-bottom: 0;}"
+				"css": "&.comment-form input:not([type=submit]):not([type=checkbox]){line-height: inherit;} & .comment-form textarea{line-height: inherit;} & .comment-form > *{margin-top:var(--wp--style--block-gap);margin-bottom:0}"
 			},
 			"core/post-comments-link": {
 				"elements": {
@@ -532,6 +535,18 @@
 					"fontSize": "var(--wp--preset--font-size--small)"
 				}
 			},
+			"core/post-content": {
+				"elements": {
+					"heading": {
+						"spacing": {
+							"margin": {
+								"bottom": "var(--wp--preset--spacing--50)",
+								"top": "var(--wp--preset--spacing--60)"
+							}
+						}
+					}
+				}
+			},
 			"core/post-date": {
 				"elements": {
 					"link": {
@@ -613,7 +628,12 @@
 				},
 				"css": ".wp-block-pullquote cite {display:block;margin-top: var(--wp--preset--spacing--50)}",
 				"spacing": {
-					"padding": "var(--wp--preset--spacing--50)"
+					"padding": {
+						"bottom": "var(--wp--preset--spacing--50)",
+						"left": "var(--wp--preset--spacing--50)",
+						"right": "var(--wp--preset--spacing--50)",
+						"top": "var(--wp--preset--spacing--50)"
+					}
 				},
 				"typography": {
 					"fontSize": "var(--wp--preset--font-size--large)",
@@ -637,6 +657,15 @@
 					"fontSize": "var(--wp--preset--font-size--small)"
 				}
 			},
+			"core/query-pagination-next": {
+				"css": ".wp-block-query-pagination-next{margin:0;}"
+			},
+			"core/query-pagination-numbers": {
+				"css": ".wp-block-query-pagination-numbers{margin:0;}"
+			},
+			"core/query-pagination-previous": {
+				"css": ".wp-block-query-pagination-previous{margin:0;}"
+			},
 			"core/query-title": {
 				"typography": {
 					"fontSize": "var(--wp--preset--font-size--large)"
@@ -708,15 +737,7 @@
 					"text": "var(--wp--preset--color--contrast)"
 				}
 			},
-			"core/site-tagline": {
-				"typography": {
-					"fontSize": "var(--wp--preset--font-size--medium)"
-				}
-			},
 			"core/site-title": {
-				"color": {
-					"text": "var(--wp--preset--color--contrast)"
-				},
 				"elements": {
 					"link": {
 						":hover": {
@@ -748,7 +769,7 @@
 				}
 			},
 			"core/table": {
-				"css": " + .wp-element-caption {text-align:center;}"
+				"css": "& thead{border-bottom-width: 1px;} & tfoot{border-top-width: 1px;} & + .wp-element-caption{text-align:center;}}"
 			},
 			"core/table-of-contents": {
 				"elements": {
@@ -765,9 +786,10 @@
 				}
 			},
 			"core/tag-cloud": {
-				"css": ".wp-block-tag-cloud.is-style-outline a {border-radius: 999px; padding: 0 1rem;} .wp-block-tag-cloud.is-style-outline a:hover {color: var(--wp--preset--color--base); background-color: var(--wp--preset--color--contrast);}"
+				"css": ".wp-block-tag-cloud.is-style-outline{font-size:var(--wp--preset--font-size--small);line-height:1} &.wp-block-tag-cloud.is-style-outline a:hover {color: var(--wp--preset--color--base); background-color: var(--wp--preset--color--contrast);} &.wp-block-tag-cloud.is-style-outline a {border-radius:999px;padding: 0.25rem 0.75rem;} "
 			},
 			"core/term-description": {
+				"css": "& p+p {margin-top:calc(1em + 0.5rem);}",
 				"typography": {
 					"fontSize": "var(--wp--preset--font-size--small)"
 				}
@@ -806,10 +828,10 @@
 				},
 				"spacing": {
 					"padding": {
-						"bottom": "16px",
-						"left": "28px",
-						"right": "28px",
-						"top": "18px"
+						"bottom": "1rem",
+						"left": "1.75rem",
+						"right": "1.75rem",
+						"top": "1.125rem"
 					}
 				},
 				"typography": {
@@ -899,10 +921,10 @@
 		"spacing": {
 			"blockGap": "var(--wp--preset--spacing--50)",
 			"padding": {
-				"bottom": "0",
+				"bottom": "0px",
 				"left": "var(--wp--preset--spacing--50)",
 				"right": "var(--wp--preset--spacing--50)",
-				"top": "0"
+				"top": "0px"
 			}
 		},
 		"typography": {
@@ -914,16 +936,19 @@
 	},
 	"templateParts": [
 		{
-			"area": "comments",
-			"name": "comments"
+			"area": "uncategorized",
+			"name": "comments",
+			"title": "Comments"
 		},
 		{
 			"area": "header",
-			"name": "header"
+			"name": "header",
+			"title": "Header"
 		},
 		{
 			"area": "footer",
-			"name": "footer"
+			"name": "footer",
+			"title": "Footer"
 		}
 	],
 	"version": 2,