Changeset 13272 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/sass/site/_site.scss
- Timestamp:
- 03/05/2024 02:45:07 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/sass/site/_site.scss
r11643 r13272 1 1 @import "../variables-site/variables-site"; 2 2 3 4 body, #pagebody {5 font-size: ms(0);6 }7 8 3 /*-------------------------------------------------------------- 9 4 # .site-header 10 5 --------------------------------------------------------------*/ 11 6 .site-header { 12 background: $color__wp-blue;7 background: var(--wp--preset--color--blueberry-1); 13 8 padding: 1rem 0; 14 9 position: relative; … … 86 81 --------------------------------------------------------------*/ 87 82 .main-navigation { 88 background: $color__wp-blue;83 background: var(--wp--preset--color--blueberry-1); 89 84 clear: both; 90 85 left: 0; … … 177 172 #wporg-header ul li.current-menu-item::after, 178 173 #wporg-header ul li.current_page_parent::after { 179 border-bottom: 9px solid $color__wp-blue;174 border-bottom: 9px solid var(--wp--preset--color--blueberry-1); 180 175 } 181 176 … … 251 246 /*-------------------------------------------------------------- 252 247 # .site-main 253 --------------------------------------------------------------*/ 254 .site-main { 255 margin: 0 auto; 256 max-width: $size__site-main; 257 padding: ms(10) ms(4); 258 259 @media screen and ( min-width: $ms-breakpoint ) { 260 padding: ms(10) 10px; 261 } 262 263 .single & { 264 padding: 0; 265 266 @media screen and ( min-width: $ms-breakpoint ) { 267 padding: 0 10px ms(10); 268 } 269 } 270 271 #page & { 272 padding: 0 10px ms(10); 273 } 274 275 .page-header { 276 277 h1 { 278 margin: 0; 279 } 280 281 p { 282 margin: 0.5rem 0; 283 } 284 } 285 286 .page-title { 287 font-size: ms( 4 ); 288 font-weight: 400; 289 } 290 291 .no-results { 292 margin: 0 auto; 293 max-width: ms(32); 294 padding: 0 2rem; 248 # Override original styles 249 --------------------------------------------------------------*/ 250 251 body:not(.trac):not(.home-page):not(.home) #main { 252 margin-top: 0; 253 padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--edge-space) var(--wp--preset--spacing--10); 254 } 255 256 @media screen and (max-width: 460px) { 257 258 #main { 259 margin: unset; 260 } 261 } 262 263 @media screen and (min-width: 960px) { 264 265 #header-inner, 266 #headline-inner, 267 #subnav-inner, 268 #showcase-inner, 269 #main, 270 #footer { 271 width: unset; 295 272 } 296 273 } … … 306 283 --------------------------------------------------------------*/ 307 284 .sidebar { 308 309 div { 310 margin-bottom: 2rem; 285 margin-top: 0; 286 287 // Override parent theme 288 body.single & { 289 margin-top: 0; 290 } 291 292 > div { 293 margin-bottom: var(--wp--preset--spacing--30); 311 294 312 295 ul { 313 296 margin-bottom: 0; 297 padding-left: unset; 314 298 } 315 299 316 300 ul > li { 317 font-size: ms(-2);318 border-top: 1px solid #eee;301 font-size: var(--wp--preset--font-size--small); 302 border-top: 1px solid var(--wp--custom--color--border); 319 303 padding: 0.5rem 0; 320 304 } 305 } 306 307 a { 308 text-decoration: none; 321 309 } 322 310 } … … 376 364 border-radius: 0; 377 365 box-shadow: none; 378 color: $color__text-input;366 color: #32373c; 379 367 display: block; 380 368 height: 100%; … … 438 426 439 427 .site-main & .search-field { 440 border: 1px solid $color__border-input;428 border: 1px solid var(--wp--preset--color--light-grey-1); 441 429 box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.07 ); 442 430 padding: 0.5rem; … … 457 445 } 458 446 447 /*-------------------------------------------------------------- 448 # .forums-homepage 449 # .page 450 --------------------------------------------------------------*/ 451 452 .forums-homepage-footer .wp-block-heading a { 453 text-decoration: none; 454 } 455 456 .forums-homepage-topics { 457 458 .wp-block-group-is-layout-grid.is-style-cards-grid .wp-block-wporg-link-wrapper h3 { 459 margin-bottom: unset; 460 } 461 } 459 462 460 463 /*-------------------------------------------------------------- … … 466 469 467 470 .entry-header { 468 margin-top: 2rem;469 471 470 472 .entry-title { 471 font-size: ms( 6 );472 font-weight: 400;473 margin: 0 auto;474 max-width: ms(32);475 473 476 474 @media screen and ( min-width: $ms-breakpoint ) { … … 482 480 .entry-content { 483 481 484 h2 {485 font-size: ms( 4 );486 font-weight: 400;487 }488 489 h3 {490 font-size: ms( 0 );491 font-weight: 600;492 letter-spacing: 0.01rem;493 text-transform: uppercase;494 }495 496 a {497 text-decoration: underline;498 }499 500 482 section { 501 padding: 2rem 0;483 margin: var(--wp--preset--spacing--30) 0 var(--wp--preset--spacing--50); 502 484 503 485 .container { 504 486 margin: 0 auto; 505 max-width: ms(32);506 487 507 488 @media screen and ( min-width: $ms-breakpoint ) { … … 515 496 516 497 & + section { 517 border-top: 2px solid $color__background-hr; 518 } 519 } 498 border-top: 2px solid var(--wp--preset--color--light-grey-1); 499 } 500 } 501 502 h2.toc-heading { 503 font-size: var(--wp--preset--font-size--heading-4); 504 line-height: var(--wp--custom--heading--level-4--typography--line-height); 505 font-weight: 600; 506 } 507 508 h3.toc-heading { 509 font-size: var(--wp--preset--font-size--heading-5); 510 line-height: var(--wp--custom--heading--level-5--typography--line-height); 511 font-weight: 600; 512 } 513 514 h2, 515 h3 { 516 517 &.toc-heading:target { 518 border-left-color: var(--wp--preset--color--blueberry-1); 519 } 520 } 521 522 .table-of-contents { 523 margin: 0 0 var(--wp--preset--spacing--20) var(--wp--preset--spacing--20); 524 525 .items { 526 font-size: var(--wp--preset--font-size--small); 527 528 li { 529 530 ul { 531 margin-left: 0; 532 } 533 534 a:hover { 535 color: var(--wp--custom--link--color--text); 536 } 537 } 538 } 539 } 540 541 p.toc-jump { 542 margin-bottom: unset; 543 } 544 } 545 546 .entry-footer { 547 margin-bottom: var(--wp--preset--spacing--40); 520 548 } 521 549
Note: See TracChangeset
for help on using the changeset viewer.