| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 /* 2 Theme Name: Ipsum 3 Theme URI: https://wordpress.org/themes/ipsum/ 4 Author: the WordPress team 5 Author URI: https://wordpress.org 6 Description: Ipsum is a blank canvas built around the blogging experience, our proposal for what a default theme should be. Named after lorem ipsum, the placeholder that fills a page until real content arrives, it is composed enough to stand on its own and to be transformed the moment people start writing. 7 Requires at least: 7.2 8 Tested up to: 7.2 9 Requires PHP: 7.4 10 Version: 1.0 11 License: GNU General Public License v2 or later 12 License URI: http://www.gnu.org/licenses/gpl-2.0.html 13 Text Domain: ipsum 14 Tags: one-column, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, blog 15 */ 16 17 /* 18 * IMPORTANT: This file is only served on the frontend when `SCRIPT_DEBUG` is enabled; 19 * in most instances, the `style.min.css` file will be served. It is not recommended that you 20 * use the Theme File Editor to modify this stylesheet. Instead, add the necessary style 21 * overrides via "Additional CSS" in the Site Editor. 22 */ 23 24 /* Crossfade page transition */ 25 26 @media (prefers-reduced-motion: no-preference) { 27 @view-transition { 28 navigation: auto; 29 } 30 } 31 32 /* Font smoothing */ 33 body { 34 text-rendering: geometricprecision; 35 -webkit-font-smoothing: antialiased; 36 -moz-osx-font-smoothing: grayscale; 37 38 /* 39 * Let long unbroken strings, such as URLs, break onto the next line 40 * instead of pushing the page wider than the viewport when zoomed in. 41 * https://www.w3.org/WAI/WCAG22/Understanding/reflow.html 42 */ 43 overflow-wrap: break-word; 44 } 45 46 /* 47 * Progressive enhancement to reduce widows and orphans 48 * https://github.com/WordPress/gutenberg/issues/55190 49 */ 50 h1, 51 h2, 52 h3, 53 h4, 54 h5, 55 h6, 56 blockquote, 57 caption, 58 figcaption, 59 p { 60 text-wrap: pretty; 61 } 62 63 /* 64 * Link styles 65 * https://github.com/WordPress/gutenberg/issues/42319 66 * Dotted editorial underlines; !important also keeps the style from being reset 67 * by the text-decoration shorthand emitted in generated global styles. 68 * The span selector catches the editor's inline underline format. 69 */ 70 a, 71 u, 72 ins, 73 span[style*="text-decoration"] { 74 text-decoration-thickness: 1px !important; 75 text-decoration-style: dotted !important; 76 text-underline-offset: 0.1em; 77 } 78 79 /* Focus ring in the text color, so it keeps contrast in every color variation. Buttons keep theme.json's. */ 80 :where(.wp-site-blocks *:focus-visible:not(.wp-element-button, .wp-block-button__link)) { 81 outline: 2px dotted currentcolor; 82 outline-offset: 2px; 83 } 84 85 /* 86 * Breathing room when jumping to in-page anchors (e.g. the comments CTA 87 * landing on #comments or #respond), so targets don't sit flush with the 88 * viewport edge. 89 */ 90 :target { 91 scroll-margin-block-start: var(--wp--preset--spacing--50); 92 } 93 94 /* 95 * The comments list starts flush with its heading, unlike the comment form, 96 * whose internal whitespace pads its landing — match their perceived offset. 97 */ 98 #comments { 99 scroll-margin-block-start: var(--wp--preset--spacing--70); 100 } 101 102 /* 103 * Change the position of the more block on the front, by making it a block level element. 104 * https://github.com/WordPress/gutenberg/issues/65934 105 */ 106 .more-link { 107 display: block; 108 } 109 110 /* 111 * Prevents unnecessary scrollbars while handling long lines of preformatted text. 112 * https://core.trac.wordpress.org/ticket/63875 113 */ 114 :where(pre) { 115 overflow-x: auto; 116 } 117 118 /* 119 * Make sure headers and footers have no margin, so the root block gap 120 * never adds spacing the parts don't control themselves. 121 * https://github.com/WordPress/gutenberg/issues/47637 122 */ 123 header.wp-block-template-part, 124 footer.wp-block-template-part { 125 margin-block-start: 0; 126 } 127 128 /* 129 * Tables. All table styling lives here in one block (theme.json css strings 130 * cannot carry comments, and its table css remaps selectors onto the inner 131 * table) — edit or remove any rule below independently. 132 * 133 * Strokes: every table line — outer border, cell grid, and the rule under 134 * the header — draws in the Border color, matching the calendar. 135 */ 136 .wp-block-table table, 137 .wp-block-table th, 138 .wp-block-table td { 139 border-color: var(--wp--preset--color--accent-6); 140 } 141 142 /* 143 * Header row: the Surface color as ground, a single hairline underneath 144 * (!important beats core's `thead { border-bottom: 3px solid }`, whose color 145 * would otherwise resolve to currentColor), and the theme's meta voice — 146 * Manrope, small, bold — for the labels. 147 */ 148 .wp-block-table thead { 149 background-color: var(--wp--preset--color--accent-5); 150 border-bottom-width: 1px !important; 151 border-bottom-color: var(--wp--preset--color--accent-6); 152 } 153 154 .wp-block-table thead th { 155 text-align: start; 156 font-family: var(--wp--preset--font-family--manrope); 157 font-size: var(--wp--preset--font-size--small); 158 font-style: normal; 159 font-weight: 700; 160 } 161 162 /* 163 * Striped tables: tint rows and rule with the Surface color instead of core's 164 * fixed gray, so stripes stay legible under every color variation. 165 */ 166 .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { 167 background-color: var(--wp--preset--color--accent-5); 168 } 169 170 .wp-block-table.is-style-stripes { 171 border-bottom-color: var(--wp--preset--color--accent-5); 172 } 173 174 /* 175 * Author cards: core hides the Author Name block for post types that do not 176 * support authors, but the hand-written "Written by" byline would remain. 177 * Hide the card when the Author Name block renders nothing, so the avatar and 178 * the byline disappear together. 179 * https://github.com/WordPress/ipsum/issues/166 180 */ 181 .author-card:not(:has(.wp-block-post-author-name)) { 182 display: none; 183 } 184 185 /* 186 * Comments rows in post lists: core renders nothing for the Comments Link 187 * block when comments are closed, but the hand-written "·" and "›" would 188 * remain. Hide the row when the Comments Link block renders nothing, so the 189 * separators disappear with it. 190 * https://github.com/WordPress/ipsum/issues/173 191 */ 192 .comments-meta:not(:has(.wp-block-post-comments-link)) { 193 display: none; 194 } 195 196 /* 197 * Long unbroken author names still grow their flex row (avatar + meta). 198 * Comment content inherits body's break-word once the template wrapper is a 199 * plain group; only the author needs anywhere so min-content can shrink. 200 */ 201 .wp-block-comment-author-name { 202 overflow-wrap: anywhere; 203 } 204 205 /* 206 * Sticky headers: a sticky root block inside a template part has no room to 207 * travel — the part's wrapper element is exactly as tall as its content — so 208 * the wrapper itself must carry the stickiness. Keyed on the class core emits 209 * for the position support, so any header design set to sticky just works. 210 */ 211 header.wp-block-template-part:has(> .is-position-sticky) { 212 position: sticky; 213 inset-block-start: 0; 214 z-index: 10; 215 } 216 217 /* 218 * Keep a sticky header clear of the admin bar: it is fixed over the viewport, 219 * so logged-in users would see the header slide beneath it. Core publishes the 220 * bar's height (32px desktop / 46px small screens) as a custom property. 221 */ 222 .admin-bar header.wp-block-template-part:has(> .is-position-sticky) { 223 inset-block-start: var(--wp-admin--admin-bar--height, 32px); 224 } 225 226 /* Below 600px the admin bar scrolls away (core's breakpoint), so stick to the very top. */ 227 @media (max-width: 600px) { 228 .admin-bar header.wp-block-template-part:has(> .is-position-sticky) { 229 inset-block-start: 0; 230 } 231 } 232 233 /* 234 * Keep focused elements and anchor targets from scrolling under a sticky 235 * header. Scroll padding can't follow the header's real height, so this is a 236 * generous guess: Header Sticky is under 120px tall with its 48px logo, and 237 * 10rem leaves room for a bigger logo or a title that wraps. Too much padding 238 * only leaves a little more space above what you scroll to. It replaces core's 239 * admin bar scroll padding, so the bar's height is added back. 240 */ 241 html:has(header.wp-block-template-part > .is-position-sticky) { 242 scroll-padding-block-start: calc(var(--wp-admin--admin-bar--height, 0px) + 10rem); 243 } 244 245 /* 246 * While the navigation overlay is open, lift the sticky header above the 247 * admin bar and the pinned Search Bar, matching the non-sticky headers. 248 */ 249 header.wp-block-template-part:has(> .is-position-sticky):has(.wp-block-navigation__responsive-container.is-menu-open) { 250 z-index: 100000; 251 } 252 253 /* 254 * Short pages: a sticky bottom bar can only pin within the page's own height, 255 * so the site wrapper must reach at least the viewport; main grows to push 256 * the footer and the pinned bar down on pages with little content. 257 */ 258 .wp-site-blocks { 259 display: flex; 260 flex-direction: column; 261 min-height: 100vh; 262 min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px)); 263 } 264 265 .wp-site-blocks > main { 266 flex-grow: 1; 267 } 268 269 /* 270 * Arrival bar: the blank canvas keeps index and single visually close, so a 271 * thin accent bar sweeps the top of the viewport when a single post loads, 272 * then fades — a quiet confirmation that navigation happened. The sweep is a 273 * scaleX() transform rather than a width change so it runs on the compositor 274 * instead of relaying out and repainting every frame while the page loads. 275 * Transforms have no logical origin, so RTL flips the origin to follow the 276 * reading direction. 277 */ 278 @media (prefers-reduced-motion: no-preference) { 279 .single::before { 280 content: ""; 281 position: fixed; 282 inset-block-start: 0; 283 inset-inline-start: 0; 284 block-size: 3px; 285 inline-size: 100%; 286 background-color: var(--wp--preset--color--accent-1); 287 z-index: 99; 288 pointer-events: none; 289 transform-origin: left; 290 animation: ipsum-arrival 0.9s ease-out forwards; 291 } 292 293 .rtl.single::before { 294 transform-origin: right; 295 } 296 297 .admin-bar.single::before { 298 inset-block-start: var(--wp-admin--admin-bar--height, 32px); 299 } 300 301 @keyframes ipsum-arrival { 302 0% { 303 transform: scaleX(0); 304 opacity: 1; 305 } 306 307 60% { 308 transform: scaleX(1); 309 opacity: 1; 310 } 311 312 100% { 313 transform: scaleX(1); 314 opacity: 0; 315 } 316 } 317 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Wed Dec 2 08:20:02 2026 | Cross-referenced by PHPXref |