| 1 | /* --------------------------------------------------------------------------------------------- |
|---|
| 2 | |
|---|
| 3 | Theme Name: Beaumont |
|---|
| 4 | Text Domain: beaumont |
|---|
| 5 | Version: 0.2.3 |
|---|
| 6 | Description: Beaumont is a simple block theme for your words. It includes a handful of block patterns to help you create beautiful layouts, ten different theme styles to choose from, and seven different layouts for the blog archive. Demo: https://andersnoren.se/themes/beaumont/ |
|---|
| 7 | Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, sticky-post, threaded-comments, translation-ready, block-styles, wide-blocks, full-site-editing |
|---|
| 8 | Author: Anders Norén |
|---|
| 9 | Author URI: https://andersnoren.se |
|---|
| 10 | Theme URI: https://andersnoren.se/teman/beaumont-wordpress-theme/ |
|---|
| 11 | License: GNU General Public License version 2.0 |
|---|
| 12 | License URI: http://www.gnu.org/licenses/gpl-2.0.html |
|---|
| 13 | Requires PHP: 5.6 |
|---|
| 14 | Tested up to: 6.3 |
|---|
| 15 | |
|---|
| 16 | All files, unless otherwise stated, are released under the GNU General Public License |
|---|
| 17 | version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) |
|---|
| 18 | |
|---|
| 19 | /* --------------------------------------------------------------------------------------------- */ |
|---|
| 20 | |
|---|
| 21 | body { |
|---|
| 22 | -moz-osx-font-smoothing: grayscale; |
|---|
| 23 | -webkit-font-smoothing: antialiased; |
|---|
| 24 | } |
|---|
| 25 | |
|---|
| 26 | a { text-underline-offset: .2em; } |
|---|
| 27 | |
|---|
| 28 | /* Input styles */ |
|---|
| 29 | |
|---|
| 30 | input, textarea, select, button { |
|---|
| 31 | background-color: inherit; |
|---|
| 32 | border-radius: 0; |
|---|
| 33 | font-family: inherit; |
|---|
| 34 | font-size: inherit; |
|---|
| 35 | font-weight: inherit; |
|---|
| 36 | letter-spacing: inherit; |
|---|
| 37 | margin: 0; |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 40 | input, textarea, select { |
|---|
| 41 | background-color: var( --wp--preset--color--background ); |
|---|
| 42 | border: .1rem solid var( --wp--preset--color--secondary ); |
|---|
| 43 | box-sizing: border-box; |
|---|
| 44 | color: var( --wp--preset--color--foreground ); |
|---|
| 45 | max-width: 100%; |
|---|
| 46 | padding: .5em; |
|---|
| 47 | } |
|---|
| 48 | |
|---|
| 49 | ::placeholder { |
|---|
| 50 | color: var( --wp--preset--color--primary ); |
|---|
| 51 | opacity: 1; |
|---|
| 52 | } |
|---|
| 53 | |
|---|
| 54 | label { |
|---|
| 55 | font-size: var( --wp--preset--font-size--small ); |
|---|
| 56 | font-weight: 500; |
|---|
| 57 | } |
|---|
| 58 | |
|---|
| 59 | /* Editor Post Title */ |
|---|
| 60 | |
|---|
| 61 | .editor-post-title__input { |
|---|
| 62 | text-align: center; |
|---|
| 63 | } |
|---|
| 64 | |
|---|
| 65 | /* Background Padding */ |
|---|
| 66 | |
|---|
| 67 | h1.has-background, h2.has-background, h3.has-background, h4.has-background, h5.has-background, h6.has-background,p.has-background { |
|---|
| 68 | padding: min( 1em, var(--wp--preset--spacing--40) ); |
|---|
| 69 | } |
|---|
| 70 | |
|---|
| 71 | :where(.wp-block-group.has-background) { |
|---|
| 72 | padding: min( 2em, var(--wp--preset--spacing--40) ); |
|---|
| 73 | } |
|---|
| 74 | |
|---|
| 75 | /* ------------------------------------------- */ |
|---|
| 76 | /* Typography |
|---|
| 77 | /* ------------------------------------------- */ |
|---|
| 78 | |
|---|
| 79 | .has-huge-font-size, .has-heading-1-font-size, .has-heading-2-font-size, .has-heading-3-font-size, .has-heading-4-font-size, .has-heading-5-font-size { |
|---|
| 80 | letter-spacing: var( --wp--custom--typography--letter-spacing--heading ); |
|---|
| 81 | line-height: var( --wp--custom--typography--line-height--headings ); |
|---|
| 82 | } |
|---|
| 83 | |
|---|
| 84 | .has-medium-font-size { |
|---|
| 85 | line-height: var( --wp--custom--typography--line-height--body ); |
|---|
| 86 | } |
|---|
| 87 | |
|---|
| 88 | /* ------------------------------------------- */ |
|---|
| 89 | /* Helper Classes |
|---|
| 90 | /* ------------------------------------------- */ |
|---|
| 91 | |
|---|
| 92 | .hide-when-empty:empty { display: none !important; } |
|---|
| 93 | .no-shrink { flex-shrink: 0 !important; } |
|---|
| 94 | |
|---|
| 95 | /* ------------------------------------------- */ |
|---|
| 96 | /* Blocks |
|---|
| 97 | /* ------------------------------------------- */ |
|---|
| 98 | |
|---|
| 99 | /* Block: Avatar ----------------------------- */ |
|---|
| 100 | |
|---|
| 101 | .wp-block-avatar img { |
|---|
| 102 | display: block; |
|---|
| 103 | } |
|---|
| 104 | |
|---|
| 105 | /* Block: Calendar --------------------------- */ |
|---|
| 106 | |
|---|
| 107 | .wp-block-calendar table caption, |
|---|
| 108 | .wp-block-calendar table tbody { |
|---|
| 109 | color: var( --wp--preset--color--foreground ); |
|---|
| 110 | } |
|---|
| 111 | |
|---|
| 112 | .wp-block-calendar th, |
|---|
| 113 | .wp-block-calendar tbody td { |
|---|
| 114 | border-color: var( --wp--preset--color--primary ); |
|---|
| 115 | } |
|---|
| 116 | |
|---|
| 117 | .wp-block-calendar table th { |
|---|
| 118 | background-color: var( --wp--preset--color--primary ); |
|---|
| 119 | } |
|---|
| 120 | |
|---|
| 121 | /* Block: Comments --------------------------- */ |
|---|
| 122 | |
|---|
| 123 | #cancel-comment-reply-link { |
|---|
| 124 | font-weight: 500; |
|---|
| 125 | letter-spacing: var(--wp--custom--typography--letter-spacing--body); |
|---|
| 126 | } |
|---|
| 127 | |
|---|
| 128 | .wp-block-post-comments-form input[type=submit] { |
|---|
| 129 | border-radius: 999px; |
|---|
| 130 | font-size: var( --wp--preset--font-size--small ); |
|---|
| 131 | } |
|---|
| 132 | |
|---|
| 133 | /* Block: File ------------------------------- */ |
|---|
| 134 | |
|---|
| 135 | .wp-block-file { |
|---|
| 136 | align-items: center; |
|---|
| 137 | display: flex; |
|---|
| 138 | justify-content: space-between; |
|---|
| 139 | } |
|---|
| 140 | |
|---|
| 141 | :root .wp-block-file__button:not(:only-child) { |
|---|
| 142 | margin-left: var(--wp--preset--spacing--40); |
|---|
| 143 | } |
|---|
| 144 | |
|---|
| 145 | /* Block: Heading ---------------------------- */ |
|---|
| 146 | |
|---|
| 147 | .wp-block-post-content h1:not([style*="margin-top"]):not(:first-child), |
|---|
| 148 | .wp-block-post-content h2:not([style*="margin-top"]):not(:first-child), |
|---|
| 149 | .wp-block-post-content h3:not([style*="margin-top"]):not(:first-child), |
|---|
| 150 | .wp-block-post-content h4:not([style*="margin-top"]):not(:first-child), |
|---|
| 151 | .wp-block-post-content h5:not([style*="margin-top"]):not(:first-child), |
|---|
| 152 | .wp-block-post-content h6:not([style*="margin-top"]):not(:first-child) { |
|---|
| 153 | margin-top: 1.25em !important; |
|---|
| 154 | } |
|---|
| 155 | |
|---|
| 156 | .wp-block-post-content h1:not([style*="margin-bottom"]):not(:last-child), |
|---|
| 157 | .wp-block-post-content h2:not([style*="margin-bottom"]):not(:last-child), |
|---|
| 158 | .wp-block-post-content h3:not([style*="margin-bottom"]):not(:last-child), |
|---|
| 159 | .wp-block-post-content h4:not([style*="margin-bottom"]):not(:last-child), |
|---|
| 160 | .wp-block-post-content h5:not([style*="margin-bottom"]):not(:last-child), |
|---|
| 161 | .wp-block-post-content h6:not([style*="margin-bottom"]):not(:last-child) { |
|---|
| 162 | margin-bottom: .75em !important; |
|---|
| 163 | } |
|---|
| 164 | |
|---|
| 165 | /* Block: Paragraph -------------------------- */ |
|---|
| 166 | |
|---|
| 167 | .has-drop-cap:not(:focus):first-letter { |
|---|
| 168 | font-size: 5.3em; |
|---|
| 169 | font-weight: inherit; |
|---|
| 170 | transform: translateY( .06em ); |
|---|
| 171 | } |
|---|
| 172 | |
|---|
| 173 | /* Block: Post Comments Form ----------------- */ |
|---|
| 174 | |
|---|
| 175 | ol.wp-block-comment-template { |
|---|
| 176 | margin: 0; |
|---|
| 177 | } |
|---|
| 178 | |
|---|
| 179 | .wp-block-post-comments-form input:not([type=submit]), |
|---|
| 180 | .wp-block-post-comments-form textarea { |
|---|
| 181 | border-color: var( --wp--preset--color--secondary ); |
|---|
| 182 | } |
|---|
| 183 | |
|---|
| 184 | .required-field-message, .comment-notes { |
|---|
| 185 | display: none; |
|---|
| 186 | } |
|---|
| 187 | |
|---|
| 188 | .logged-in-as { |
|---|
| 189 | color: var( --wp--preset--color--primary ); |
|---|
| 190 | } |
|---|
| 191 | |
|---|
| 192 | .comment-reply-title { |
|---|
| 193 | margin: 0; |
|---|
| 194 | } |
|---|
| 195 | |
|---|
| 196 | /* Block: Post Content ----------------------- */ |
|---|
| 197 | |
|---|
| 198 | .is-root-container > .alignwide:not(:first-child), .wp-block-post-content > .alignwide:not(:first-child), |
|---|
| 199 | .is-root-container > .alignfull:not(:first-child), .wp-block-post-content > .alignfull:not(:first-child) { |
|---|
| 200 | margin-top: 64px; |
|---|
| 201 | } |
|---|
| 202 | |
|---|
| 203 | .is-root-container > .alignwide:not(:last-child), .wp-block-post-content > .alignwide:not(:last-child), |
|---|
| 204 | .is-root-container > .alignfull:not(:last-child), .wp-block-post-content > .alignfull:not(:last-child) { |
|---|
| 205 | margin-bottom: 64px; |
|---|
| 206 | } |
|---|
| 207 | |
|---|
| 208 | /* Block: Post Template ---------------------- */ |
|---|
| 209 | |
|---|
| 210 | .wp-block-post-template { |
|---|
| 211 | --wp--style--block-gap: 0; |
|---|
| 212 | } |
|---|
| 213 | |
|---|
| 214 | /* Block: Pull Quote ------------------------- */ |
|---|
| 215 | |
|---|
| 216 | :root .wp-block-pullquote.alignleft, |
|---|
| 217 | :root .wp-block-pullquote.alignright { |
|---|
| 218 | max-width: min( 316px, 50% ); |
|---|
| 219 | } |
|---|
| 220 | |
|---|
| 221 | .wp-block-pullquote blockquote p { |
|---|
| 222 | hanging-punctuation: first; |
|---|
| 223 | line-height: inherit; |
|---|
| 224 | } |
|---|
| 225 | |
|---|
| 226 | /* Block: Query Pagination ------------------- */ |
|---|
| 227 | |
|---|
| 228 | .wp-block-query-pagination > .wp-block-query-pagination-next, |
|---|
| 229 | .wp-block-query-pagination > .wp-block-query-pagination-numbers, |
|---|
| 230 | .wp-block-query-pagination > .wp-block-query-pagination-previous { |
|---|
| 231 | margin-bottom: 0; |
|---|
| 232 | } |
|---|
| 233 | |
|---|
| 234 | .wp-block-query-pagination-next:only-child { |
|---|
| 235 | margin-left: auto; |
|---|
| 236 | } |
|---|
| 237 | |
|---|
| 238 | .wp-block-query-pagination-numbers { |
|---|
| 239 | display: flex; |
|---|
| 240 | gap: .5em; |
|---|
| 241 | } |
|---|
| 242 | |
|---|
| 243 | .wp-block-query-pagination-numbers .current { |
|---|
| 244 | color: var( --wp--preset--color--primary ); |
|---|
| 245 | } |
|---|
| 246 | |
|---|
| 247 | /* STYLE: VERTICAL SEPARATORS */ |
|---|
| 248 | |
|---|
| 249 | .wp-block-query-pagination.is-style-beaumont-vertical-separators { |
|---|
| 250 | border-top: 1px solid var( --wp--preset--color--secondary ); |
|---|
| 251 | gap: 0; |
|---|
| 252 | } |
|---|
| 253 | |
|---|
| 254 | .wp-block-query-pagination.is-style-beaumont-vertical-separators a, |
|---|
| 255 | .wp-block-query-pagination-numbers { |
|---|
| 256 | position: relative; |
|---|
| 257 | } |
|---|
| 258 | |
|---|
| 259 | .wp-block-query-pagination.is-style-beaumont-vertical-separators .post-navigation-link-previous a:before, |
|---|
| 260 | .wp-block-query-pagination.is-style-beaumont-vertical-separators .post-navigation-link-next a:before { |
|---|
| 261 | position: absolute; |
|---|
| 262 | } |
|---|
| 263 | |
|---|
| 264 | .wp-block-query-pagination.is-style-beaumont-vertical-separators .post-navigation-link-previous a:before { content: "←"; } |
|---|
| 265 | .wp-block-query-pagination.is-style-beaumont-vertical-separators .post-navigation-link-next a:before { content: "→"; } |
|---|
| 266 | |
|---|
| 267 | /* Horizontal Orientation */ |
|---|
| 268 | |
|---|
| 269 | .wp-block-query-pagination.is-style-beaumont-vertical-separators:not(.is-vertical) { |
|---|
| 270 | border-bottom: 1px solid var( --wp--preset--color--secondary ); |
|---|
| 271 | gap: 16px; |
|---|
| 272 | padding: 16px 0; |
|---|
| 273 | } |
|---|
| 274 | |
|---|
| 275 | .wp-block-query-pagination.is-style-beaumont-vertical-separators:not(.is-vertical) .post-navigation-link-previous a { padding-left: 1.6em; } |
|---|
| 276 | .wp-block-query-pagination.is-style-beaumont-vertical-separators:not(.is-vertical) .post-navigation-link-previous a:before { left: 0; } |
|---|
| 277 | |
|---|
| 278 | .wp-block-query-pagination.is-style-beaumont-vertical-separators:not(.is-vertical) .post-navigation-link-next a { padding-right: 1.6em; } |
|---|
| 279 | .wp-block-query-pagination.is-style-beaumont-vertical-separators:not(.is-vertical) .post-navigation-link-next a:before { right: 0; } |
|---|
| 280 | |
|---|
| 281 | /* Vertical Orientation */ |
|---|
| 282 | |
|---|
| 283 | .wp-block-query-pagination.is-style-beaumont-vertical-separators.is-vertical > *:empty { |
|---|
| 284 | display: none; |
|---|
| 285 | } |
|---|
| 286 | |
|---|
| 287 | .wp-block-query-pagination.is-style-beaumont-vertical-separators.is-vertical > *:not(:empty) { |
|---|
| 288 | border-bottom: 1px solid var( --wp--preset--color--secondary ); |
|---|
| 289 | margin: 0; |
|---|
| 290 | padding: 16px 0; |
|---|
| 291 | width: 100%; |
|---|
| 292 | } |
|---|
| 293 | |
|---|
| 294 | .wp-block-query-pagination.is-style-beaumont-vertical-separators.is-vertical .post-navigation-link-previous a, |
|---|
| 295 | .wp-block-query-pagination.is-style-beaumont-vertical-separators.is-vertical .post-navigation-link-previous + .wp-block-query-pagination-numbers, |
|---|
| 296 | .wp-block-query-pagination.is-style-beaumont-vertical-separators.is-vertical .post-navigation-link-next a { |
|---|
| 297 | box-sizing: border-box; |
|---|
| 298 | padding-left: 1.6em; |
|---|
| 299 | } |
|---|
| 300 | |
|---|
| 301 | .wp-block-query-pagination.is-style-beaumont-vertical-separators.is-vertical .post-navigation-link-next a:before, |
|---|
| 302 | .wp-block-query-pagination.is-style-beaumont-vertical-separators.is-vertical .post-navigation-link-previous a:before { |
|---|
| 303 | left: 0; |
|---|
| 304 | } |
|---|
| 305 | |
|---|
| 306 | /* Block: Quote ------------------------------ */ |
|---|
| 307 | |
|---|
| 308 | blockquote p:first-child { margin-top: 0; } |
|---|
| 309 | blockquote p:last-of-type { margin-bottom: 0; } |
|---|
| 310 | |
|---|
| 311 | blockquote cite { |
|---|
| 312 | display: block; |
|---|
| 313 | } |
|---|
| 314 | |
|---|
| 315 | /* Block: Separator -------------------------- */ |
|---|
| 316 | |
|---|
| 317 | :root hr[class*="is-style-beaumont-diamond"] { |
|---|
| 318 | background-color: transparent !important; |
|---|
| 319 | background: linear-gradient(90deg, currentColor 0%, currentColor calc( 50% - 20px ), transparent calc( 50% - 20px ), transparent calc( 50% + 20px ), currentColor calc( 50% + 20px ), currentColor 100%); |
|---|
| 320 | border: none; |
|---|
| 321 | height: 1px !important; |
|---|
| 322 | overflow: visible; |
|---|
| 323 | position: relative; |
|---|
| 324 | } |
|---|
| 325 | |
|---|
| 326 | :root hr.is-style-beaumont-diamond { width: 201px !important; } |
|---|
| 327 | :root hr.is-style-beaumont-diamond-wide { width: 100% !important; } |
|---|
| 328 | |
|---|
| 329 | :root hr[class*="is-style-beaumont-diamond"]:before { |
|---|
| 330 | background-color: currentColor; |
|---|
| 331 | content: ""; |
|---|
| 332 | display: block; |
|---|
| 333 | position: absolute; |
|---|
| 334 | left: calc( 50% - 3.5px ); |
|---|
| 335 | top: calc( 50% - 3.5px ); |
|---|
| 336 | height: 7px; |
|---|
| 337 | transform: rotate( 45deg ); |
|---|
| 338 | width: 7px; |
|---|
| 339 | } |
|---|
| 340 | |
|---|
| 341 | /* Block: Search Form ------------------------ */ |
|---|
| 342 | |
|---|
| 343 | .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper, |
|---|
| 344 | .wp-block-search__input { |
|---|
| 345 | border-color: var( --wp--preset--color--secondary ); |
|---|
| 346 | } |
|---|
| 347 | |
|---|
| 348 | /* SETTING: BUTTON INSIDE */ |
|---|
| 349 | |
|---|
| 350 | .wp-block-search__button-inside .wp-block-search__inside-wrapper, |
|---|
| 351 | .wp-block-search__button-inside .wp-block-search__input { |
|---|
| 352 | box-sizing: border-box; |
|---|
| 353 | margin: 0; |
|---|
| 354 | padding: .375em .5em .375em .75em !important; |
|---|
| 355 | } |
|---|