Making WordPress.org

Changeset 14034


Ignore:
Timestamp:
09/09/2024 11:44:52 PM (8 months ago)
Author:
adamwood
Message:

Make 2024: Complete local nav and welcome box styling

See https://github.com/WordPress/wordpress.org/issues/363

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/patterns/local-nav.php

    r14030 r14034  
    22ob_start();
    33do_action('wporg_breathe_before_name', 'front');
    4 $team_icon = ob_get_clean();
     4$before_name_front = ob_get_clean();
     5
     6ob_start();
     7do_action('wporg_breathe_before_name', 'nonfront');
     8$before_name_nonfront = ob_get_clean();
    59
    610if ( function_exists( 'register_block_pattern' ) ) {
     
    2024                <!-- /wp:wporg/local-navigation-bar -->',
    2125                esc_url( home_url() ),
    22                 $team_icon,
     26                is_front_page() && is_home() ? $before_name_front : $before_name_nonfront,
    2327                esc_html( get_bloginfo('name') )
    2428            ),
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/style.css

    r14026 r14034  
    11/*
    2  * Theme Name: WordPress.org Breathe
     2 * Theme Name: WordPress.org Breathe 2024
    33 * Template: p2-breathe
    44 * Description: Child theme of P2 Breathe, with modifications specifically for WordPress.org.
     
    266266}
    267267
     268/* Title icon */
     269
     270.wporg-make .wp-block-site-title a:before,
     271body.wporg-make #headline h2 a:before {
     272    -webkit-font-smoothing: antialiased;
     273    display: inline-block;
     274    font: normal 24px/1 'dashicons';
     275    vertical-align: middle;
     276    width: 32px;
     277}
     278
     279body.make-core #headline h2 a:before { content: '\f475'; }
     280body.make-design #headline h2 a:before { content: '\f309'; }
     281body.make-mobile #headline h2 a:before { content: '\f470'; }
     282body.make-accessibility #headline h2 a:before { content: '\f483'; }
     283body.make-polyglots #headline h2 a:before { content: '\f326'; }
     284body.make-support #headline h2 a:before { content: '\f125'; }
     285body.make-themes #headline h2 a:before { content: '\f100'; }
     286body.make-plugins #headline h2 a:before { content: '\f106'; }
     287body.make-docs #headline h2 a:before { content: '\f105'; }
     288body.make-community #headline h2 a:before { content: '\f307'; }
     289body.make-meta #headline h2 a:before { content: '\f325'; }
     290body.make-training #headline h2 a:before { content: '\f118'; }
     291body.make-flow #headline h2 a:before { content: '\f115'; }
     292body.make-tv #headline h2 a:before { content: '\f235'; }
     293body.make-marketing #headline h2 a:before { content: '\f130'; }
     294body.make-cli #headline h2 a:before { content: '\f345'; }
     295body.make-hosting #headline h2 a:before { content: '\f176'; }
     296
     297.make-core .wp-block-site-title a:before { content: '\f475'; }
     298.make-design .wp-block-site-title a:before { content: '\f309'; }
     299.make-mobile .wp-block-site-title a:before { content: '\f470'; }
     300.make-accessibility .wp-block-site-title a:before { content: '\f483'; }
     301.make-polyglots .wp-block-site-title a:before { content: '\f326'; }
     302.make-support .wp-block-site-title a:before { content: '\f125'; }
     303.make-themes .wp-block-site-title a:before { content: '\f100'; }
     304.make-plugins .wp-block-site-title a:before { content: '\f106'; }
     305.make-docs .wp-block-site-title a:before { content: '\f105'; }
     306.make-community .wp-block-site-title a:before { content: '\f307'; }
     307.make-meta .wp-block-site-title a:before { content: '\f325'; }
     308.make-training .wp-block-site-title a:before { content: '\f118'; }
     309.make-systems .wp-block-site-title a:before { content: '\f107'; }
     310.make-flow .wp-block-site-title a:before { content: '\f115'; }
     311.make-tv .wp-block-site-title a:before { content: '\f235'; }
     312.make-marketing .wp-block-site-title a:before { content: '\f130'; }
     313.make-cli .wp-block-site-title a:before { content: '\f345'; }
     314.make-hosting .wp-block-site-title a:before { content: '\f176'; }
     315
    268316/* Adjustments for teams with SVG icons. */
     317.wporg-make.make-openverse .wp-block-site-title a::before,
     318.wporg-make.make-performance .wp-block-site-title a::before {
     319    display: none;
     320}
     321
    269322.wp-block-site-title svg {
    270323    height: 30px;
     
    272325    vertical-align: middle;
    273326}
     327
     328/* Post form */
     329
     330.o2-editor .o2-editor-wrapper {
     331    border-radius: 2px;
     332    border: var(--wp--custom--form--border--width) var(--wp--custom--form--border--style) var(--wp--custom--form--border--color);
     333}
     334
     335.o2-editor .o2-editor-footer .o2-editor-tabs li.selected a {
     336    border-top: 1px #fff solid;
     337    background: #fff;
     338}
     339
     340.o2-editor .o2-editor-footer .o2-editor-tabs li a {
     341    padding: 0.25em 1.2em 0.5em 1.2em;
     342    background: var(--wp--preset--color--light-grey-2);
     343    border: 1px solid var(--wp--preset--color--charcoal-5);
     344    border-top: 1px solid var(--wp--preset--color--light-grey-2);
     345    vertical-align: middle;
     346    -webkit-border-bottom-left-radius: 3px;
     347    -webkit-border-bottom-right-radius: 3px;
     348    -moz-border-radius-bottomleft: 3px;
     349    -moz-border-radius-bottomright: 3px;
     350    border-bottom-left-radius: 2px;
     351    border-bottom-right-radius: 2px;
     352    font-family: "Inter", sans-serif;
     353    font-size: 12px;
     354    border-left: 0px;
     355}
     356
     357.o2-editor .o2-editor-footer .o2-editor-tabs li:first-of-type {
     358    border-left: 1px solid var(--wp--preset--color--charcoal-5);
     359}
     360
     361.o2-editor .o2-editor-footer .o2-editor-tabs li a:before {
     362    content: none;
     363}
     364
     365/* Sidebar */
    274366
    275367#secondary-content a {
     
    500592}
    501593.widget_search input[type="search"], #subscribe-email input[type="email"] {
    502     width: 90%;
     594    width: 100%;
    503595    box-sizing: border-box;
    504596    padding: 1rem;
    505597    font-size: 14px;
    506     border: 1px solid #eee;
     598    border-radius: 2px;
    507599}
    508600
     
    545637}
    546638
     639article.post .o2-post,
     640article#post-new .o2-post,
     641article.page .o2-post {
     642    padding-top: var(--wp--preset--spacing--50);
     643}
     644
    547645.o2-post {
    548     border-top: 2px solid #ddd;
    549 }
     646    border-top: 1px solid var(--wp--custom--color--border);
     647    margin-top: 40px;
     648}
     649
    550650.o2-post .o2-post {
    551     border-top: 1px solid #ddd;
    552 }
     651    border-top-width: 1px;
     652}
     653
    553654.page .o2-post {
    554655    padding: 0 !important;
    555656}
     657
    556658.page .o2-post .entry-content {
    557659    padding: 0;
     
    561663    margin-bottom: 1.5em;
    562664}
     665
    563666.o2-post #searchform:last-child {
    564667    margin-bottom: 5em;
    565668}
     669
    566670.o2-post #searchform #searchsubmit {
    567671    height: 33.5px;
    568672    padding-bottom: .6em;
     673}
     674
     675.single-post article.post .o2-post {
     676    padding-top: 0;
     677    margin-top: 0;
     678    border-top: none;
     679}
     680
     681.o2-post-comments .o2-comment .comment-content {
     682    margin-left: 45px;
    569683}
    570684
     
    9241038
    9251039.make-welcome .entry-meta {
    926     margin: 0;
     1040    margin: 0 !important;
    9271041    position: absolute;
    9281042    right: var(--wp--preset--spacing--edge-space);
Note: See TracChangeset for help on using the changeset viewer.