Changeset 171108
- Timestamp:
- 07/06/2022 11:26:35 AM (4 years ago)
- Location:
- davis-blocks/0.1.2
- Files:
-
- 5 edited
- 1 copied
-
. (copied) (copied from davis-blocks/0.1.1 )
-
readme.txt (modified) (1 diff)
-
style.css (modified) (11 diffs)
-
templates/page.html (modified) (1 diff)
-
templates/single.html (modified) (3 diffs)
-
theme.json (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
davis-blocks/0.1.2/readme.txt
r171062 r171108 46 46 == Changelog == 47 47 48 Version 0.1.2 (2022-07-06) 49 ------------------------- 50 - Better post header structure on single.html and page.html. 51 - Removed unnecessary groups around separators in the comment area of single.html. 52 - Better default styles for input elements. 53 - Added CSS to match the alignment of the post editor title to match the front-end. 54 - Set all figcaptions to use the small font size, and made the figcaption targeting more universal. 55 - Button block: Reset the border width to the default 2px, to match default padding values. 56 - Added hover styles to navigation links. 57 - Adjusted the theme description. 58 48 59 Version 0.1.1 (2022-07-05) 49 60 ------------------------- -
davis-blocks/0.1.2/style.css
r171062 r171108 3 3 Theme Name: Davis Blocks 4 4 Text Domain: davis-blocks 5 Version: 0.1. 16 Description: Davis Blocks is a clean and simple block theme built for Full Site Editing. It can be used out of the box as a lightweight blog theme, or as a foundation for greater things when modified in the Site Editor.5 Version: 0.1.2 6 Description: Davis Blocks is a clean, simple and fast block theme built for Full Site Editing. It can be used out of the box as a lightweight blog theme, or as a foundation for greater things when customized in the Site Editor. 7 7 Tags: blog, one-column, custom-background, custom-colors, custom-menu, editor-style, featured-images, sticky-post, threaded-comments, translation-ready, block-styles, wide-blocks, full-site-editing 8 8 Author: Anders Norén … … 17 17 18 18 /* 19 * Link styles. 20 * Necessary until the following issue is resolved in Gutenberg: 19 * Link styles. Necessary until the following issue is resolved in Gutenberg: 21 20 * https://github.com/WordPress/gutenberg/issues/27075 22 21 */ … … 27 26 } 28 27 29 a:hover { 30 text-decoration: none; 28 a:hover { text-decoration: none; } 29 30 .wp-block-navigation .wp-block-navigation-item a:hover, 31 .wp-block-navigation .wp-block-navigation-item a:focus { 32 text-decoration: underline; 33 text-decoration-style: solid; 31 34 } 32 35 33 36 /* Input styles */ 34 37 35 input, textarea, keygen,select, button {38 input, textarea, select, button { 36 39 background-color: inherit; 40 border-radius: 0; 41 font-family: inherit; 42 font-size: inherit; 43 } 44 45 input, textarea, select { 46 background-color: var( --wp--preset--color--background ); 47 border: .1rem solid var( --wp--preset--color--secondary ); 48 color: var( --wp--preset--color--foreground ); 49 padding: .5em; 50 } 51 52 /* Caption styles */ 53 54 :root figcaption { 37 55 color: inherit; 38 font-family: inherit; 39 } 40 41 /* Caption styles */ 42 43 .wp-block-video figcaption, 44 .wp-block-table figcaption, 45 .wp-block-image figcaption { 46 color: inherit; 47 } 48 49 /* 50 * Button hover styles. 51 * Necessary until the following issue is resolved in Gutenberg: 56 font-size: var( --wp--preset--font-size--small ); 57 } 58 59 /* 60 * Button hover styles. Necessary until the following issue is resolved in Gutenberg: 52 61 * https://github.com/WordPress/gutenberg/issues/27075 53 62 */ … … 60 69 61 70 /* 62 * Alignment styles. 63 * Relevant issues: 71 * Alignment styles. Relevant issues: 64 72 * https://github.com/WordPress/gutenberg/issues/35607 65 73 * https://github.com/WordPress/gutenberg/issues/35884 … … 107 115 */ 108 116 117 button, 118 input[type="button"], 119 input[type="submit"], 120 input[type="reset"], 109 121 .wp-block-search__button, 110 122 .wp-block-file .wp-block-file__button { … … 117 129 } 118 130 119 120 /* ------------------------------------------- */ 121 /* Blocks 122 /* ------------------------------------------- */ 123 131 /* Editor Post Title */ 132 133 .editor-post-title__input { text-align: center; } 134 135 /* Background Padding */ 136 137 h1.has-background, h2.has-background, h3.has-background, h4.has-background, h5.has-background, h6.has-background, :where(.wp-block-group.has-background) { padding: 1.5em; } 124 138 125 139 /* Block: Calendar */ … … 135 149 } 136 150 137 .wp-block-calendar table th { 138 background-color: var( --wp--preset--color--secondary ); 139 } 151 .wp-block-calendar table th { background-color: var( --wp--preset--color--secondary ); } 140 152 141 153 /* Block: File */ … … 147 159 } 148 160 149 :root .wp-block-file__button:not(:only-child) { 150 margin-left: var( --wp--custom--spacing--baseline ); 151 } 152 153 /* Block: Group */ 154 155 :where(.wp-block-group.has-background) { 156 padding: 1.5em; 157 } 161 :root .wp-block-file__button:not(:only-child) { margin-left: var( --wp--custom--spacing--baseline ); } 158 162 159 163 /* Block: Heading */ … … 170 174 /* Block: Navigation */ 171 175 172 .wp-block-navigation__responsive-container.is-menu-open { 173 padding: var(--wp--custom--spacing--outer); 174 } 176 .wp-block-navigation__responsive-container.is-menu-open { padding: var(--wp--custom--spacing--outer); } 175 177 176 178 /* Block: Post Comments Form */ … … 227 229 box-sizing: border-box; 228 230 content: ""; 229 display: block;230 231 height: 12px; 231 232 position: absolute; … … 245 246 } 246 247 247 .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { 248 background-color: var(--wp--preset--color--secondary); 249 } 248 .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background-color: var(--wp--preset--color--secondary); } -
davis-blocks/0.1.2/templates/page.html
r171026 r171108 4 4 <main class="wp-block-group"> 5 5 6 <!-- wp:post-title {"textAlign":"center","level":1,"fontSize":"medium"} /--> 6 <!-- wp:group {"style":{"spacing":{"blockGap":"30px"}},"layout":{"inherit":true}} --> 7 <div class="wp-block-group"> 8 <!-- wp:post-title {"textAlign":"center","level":1,"fontSize":"medium"} /--> 7 9 8 <!-- wp:group {"layout":{"inherit":true}} -->9 <div class="wp-block-group">10 10 <!-- wp:post-featured-image /--> 11 11 </div> -
davis-blocks/0.1.2/templates/single.html
r171026 r171108 5 5 <main class="wp-block-group"> 6 6 7 <!-- wp:post-title {"textAlign":"center","level":1,"fontSize":"medium"} /--> 7 <!-- wp:group {"style":{"spacing":{"blockGap":"30px"}},"layout":{"inherit":true}} --> 8 <div class="wp-block-group"> 9 <!-- wp:post-title {"textAlign":"center","level":1,"fontSize":"medium"} /--> 8 10 9 <!-- wp:group {"layout":{"inherit":true}} -->10 <div class="wp-block-group">11 11 <!-- wp:post-featured-image /--> 12 12 </div> … … 36 36 <!-- /wp:group --> 37 37 38 <!-- wp:group {"style":{"spacing":{"margin":{"top":"4em","bottom":"4em"}}}} -->39 <div class="wp-block-group" style="margin-top:4em;margin-bottom:4em">40 <!-- wp:separator {"backgroundColor":"secondary"} -->41 <hr42 class="wp-block-separator has-text-color has-secondary-color has-alpha-channel-opacity has-secondary-background-color has-background is-style-davis-separator" />43 <!-- /wp:separator -->44 </div>45 <!-- /wp:group -->46 47 38 <!-- wp:comments-query-loop --> 48 39 <div class="wp-block-comments-query-loop"> 40 41 <!-- wp:separator {"backgroundColor":"secondary"} --> 42 <hr class="wp-block-separator has-text-color has-secondary-color has-alpha-channel-opacity has-secondary-background-color has-background is-style-davis-separator" /> 43 <!-- /wp:separator --> 44 49 45 <!-- wp:comments-title {"textAlign":"center","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}},"fontSize":"medium"} /--> 50 46 … … 83 79 <div class="wp-block-group" style="margin-top:4em;margin-bottom:4em"> 84 80 <!-- wp:comments-pagination {"layout":{"type":"flex","justifyContent":"space-between"}} --> 85 <!-- wp:comments-pagination-previous /--> 86 87 <!-- wp:comments-pagination-next /--> 81 <!-- wp:comments-pagination-previous /--> 82 <!-- wp:comments-pagination-next /--> 88 83 <!-- /wp:comments-pagination --> 89 84 </div> 90 85 <!-- /wp:group --> 91 86 92 <!-- wp:group {"style":{"spacing":{"margin":{"top":"4em","bottom":"4em"}}}} --> 93 <div class="wp-block-group" style="margin-top:4em;margin-bottom:4em"> 94 <!-- wp:separator {"backgroundColor":"secondary","className":"is-style-davis-separator"} --> 95 <hr 96 class="wp-block-separator has-text-color has-secondary-color has-alpha-channel-opacity has-secondary-background-color has-background is-style-davis-separator" /> 97 <!-- /wp:separator --> 98 </div> 99 <!-- /wp:group --> 87 <!-- wp:separator {"backgroundColor":"secondary","className":"is-style-davis-separator"} --> 88 <hr class="wp-block-separator has-text-color has-secondary-color has-alpha-channel-opacity has-secondary-background-color has-background is-style-davis-separator" /> 89 <!-- /wp:separator --> 100 90 101 91 <!-- wp:post-comments-form /--> -
davis-blocks/0.1.2/theme.json
r171062 r171108 163 163 "core/button": { 164 164 "border": { 165 "radius": "0px", 166 "width": "1px" 165 "radius": "0px" 167 166 }, 168 167 "color": {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)