Making WordPress.org

Changeset 14081


Ignore:
Timestamp:
09/26/2024 03:57:08 AM (15 months ago)
Author:
adamwood
Message:

Make 2024: Organize blog block styles

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/style.css

    r14080 r14081  
    162162
    163163/*
    164  * 2021 global header/footer
     164 * Block styles
    165165 */
     166
     167/* 2021 global header/footer */
     168
    166169.wp-block-group.global-header button,
    167170.wp-block-group.global-header input[type="button"],
     
    190193}
    191194
    192 /* Gutenberg overrides */
    193 
    194195.wp-block-embed figcaption,
    195196.wp-block-image figcaption,
     
    200201}
    201202
     203.wp-block-group.has-background {
     204    padding: var(--wp--preset--spacing--20);
     205}
     206
    202207/* Local navigation */
    203208
     
    211216.custom-menu .wp-block-wporg-local-navigation-bar + .site {
    212217    margin-top: var(--wp--preset--spacing--50);
     218}
     219
     220/** Make Core local nav items with icons only **/
     221.wp-block-wporg-local-navigation-bar .wp-block-navigation-item a:before {
     222    font: 20px/var(--wp--custom--body--small--typography--line-height) 'dashicons';
     223    display: inline-block;
     224    -webkit-font-smoothing: antialiased;
     225    vertical-align: middle;
     226}
     227
     228.wp-block-wporg-local-navigation-bar .wp-block-navigation-item a[href*="browser"] .wp-block-navigation-item__label,
     229.wp-block-wporg-local-navigation-bar .wp-block-navigation-item a[href*="timeline"] .wp-block-navigation-item__label,
     230.wp-block-wporg-local-navigation-bar .wp-block-navigation-item a[href*="newticket"] .wp-block-navigation-item__label {
     231    clip: rect(1px, 1px, 1px, 1px);
     232    word-wrap: normal !important;
     233    border: 0;
     234    clip-path: inset(50%);
     235    height: 1px;
     236    margin: -1px;
     237    overflow: hidden;
     238    padding: 0;
     239    position: absolute;
     240    width: 1px;
     241}
     242
     243.wp-block-wporg-local-navigation-bar .wp-block-navigation-item a[href*="browser"]:before {
     244    content: "\f475";
     245}
     246
     247.wp-block-wporg-local-navigation-bar .wp-block-navigation-item a[href*="timeline"]:before {
     248    content: "\f321";
     249}
     250
     251.wp-block-wporg-local-navigation-bar .wp-block-navigation-item a[href*="newticket"]:before {
     252    content: "\f119";
     253}
     254
     255.icon-core-performance {
     256    background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg version='1.1' viewBox='0 0 94 94' xmlns='http://www.w3.org/2000/svg' xmlns:cc='http://creativecommons.org/ns%23' xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%3E%3Cdefs%3E%3Cstyle%3Epath%7Bfill:%23555;%7D%3C/style%3E%3C/defs%3E%3Cpath d='m39.21 20.85h-11.69c-1.38 0-2.5 1.12-2.5 2.5v11.69c0 1.38 1.12 2.5 2.5 2.5h11.69c1.38 0 2.5-1.12 2.5-2.5v-11.69c0-1.38-1.12-2.5-2.5-2.5z'/%3E%3Cpath d='M41.71,58.96v11.69c0,.66-.26,1.3-.73,1.77-.47,.47-1.11,.73-1.77,.73h-11.69c-.66,0-1.3-.26-1.77-.73-.47-.47-.73-1.11-.73-1.77v-21.37c0-.4,.1-.79,.28-1.14,.03-.06,.07-.12,.1-.18,.21-.33,.49-.61,.83-.82l11.67-7.04c.44-.27,.95-.39,1.47-.36,.51,.03,1,.23,1.4,.55,.26,.21,.47,.46,.63,.75,.16,.29,.26,.61,.29,.94,.02,.11,.02,.22,.02,.34v5.38s0,.07,0,.11v11.08s0,.04,0,.07Z'/%3E%3Cpath d='M68.98,30.23v16.84c0,.33-.06,.65-.19,.96-.13,.3-.31,.58-.54,.81l-6.88,6.88c-.23,.23-.51,.42-.81,.54-.3,.13-.63,.19-.96,.19h-13.15c-.66,0-1.3-.26-1.77-.73-.47-.47-.73-1.11-.73-1.77v-11.69c0-.66,.26-1.3,.73-1.77,.47-.47,1.11-.73,1.77-.73h13.08s1.11,0,1.11-1.11-1.11-1.11-1.11-1.11h-13.08c-.66,0-1.3-.26-1.77-.73s-.73-1.11-.73-1.77v-11.69c0-.66,.26-1.3,.73-1.77,.47-.47,1.11-.73,1.77-.73h13.15c.33,0,.65,.06,.96,.19,.3,.13,.58,.31,.81,.54l6.88,6.88c.23,.23,.42,.51,.54,.81,.13,.3,.19,.63,.19,.96Z'/%3E%3C/svg%3E%0A");
     257    background-position: center;
     258    background-repeat: no-repeat;
     259    height: 24px;
     260    width: 24px;
    213261}
    214262
     
    20622110}
    20632111
    2064 /** Make Core local nav items with icons only **/
    2065 .wp-block-wporg-local-navigation-bar .wp-block-navigation-item a:before {
    2066     font: 20px/var(--wp--custom--body--small--typography--line-height) 'dashicons';
    2067     display: inline-block;
    2068     -webkit-font-smoothing: antialiased;
    2069     vertical-align: middle;
    2070 }
    2071 
    2072 .wp-block-wporg-local-navigation-bar .wp-block-navigation-item a[href*="browser"] .wp-block-navigation-item__label,
    2073 .wp-block-wporg-local-navigation-bar .wp-block-navigation-item a[href*="timeline"] .wp-block-navigation-item__label,
    2074 .wp-block-wporg-local-navigation-bar .wp-block-navigation-item a[href*="newticket"] .wp-block-navigation-item__label {
    2075     clip: rect(1px, 1px, 1px, 1px);
    2076     word-wrap: normal !important;
    2077     border: 0;
    2078     clip-path: inset(50%);
    2079     height: 1px;
    2080     margin: -1px;
    2081     overflow: hidden;
    2082     padding: 0;
    2083     position: absolute;
    2084     width: 1px;
    2085 }
    2086 
    2087 .wp-block-wporg-local-navigation-bar .wp-block-navigation-item a[href*="browser"]:before {
    2088     content: "\f475";
    2089 }
    2090 
    2091 .wp-block-wporg-local-navigation-bar .wp-block-navigation-item a[href*="timeline"]:before {
    2092     content: "\f321";
    2093 }
    2094 
    2095 .wp-block-wporg-local-navigation-bar .wp-block-navigation-item a[href*="newticket"]:before {
    2096     content: "\f119";
    2097 }
    2098 
    2099 .icon-core-performance {
    2100     background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg version='1.1' viewBox='0 0 94 94' xmlns='http://www.w3.org/2000/svg' xmlns:cc='http://creativecommons.org/ns%23' xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%3E%3Cdefs%3E%3Cstyle%3Epath%7Bfill:%23555;%7D%3C/style%3E%3C/defs%3E%3Cpath d='m39.21 20.85h-11.69c-1.38 0-2.5 1.12-2.5 2.5v11.69c0 1.38 1.12 2.5 2.5 2.5h11.69c1.38 0 2.5-1.12 2.5-2.5v-11.69c0-1.38-1.12-2.5-2.5-2.5z'/%3E%3Cpath d='M41.71,58.96v11.69c0,.66-.26,1.3-.73,1.77-.47,.47-1.11,.73-1.77,.73h-11.69c-.66,0-1.3-.26-1.77-.73-.47-.47-.73-1.11-.73-1.77v-21.37c0-.4,.1-.79,.28-1.14,.03-.06,.07-.12,.1-.18,.21-.33,.49-.61,.83-.82l11.67-7.04c.44-.27,.95-.39,1.47-.36,.51,.03,1,.23,1.4,.55,.26,.21,.47,.46,.63,.75,.16,.29,.26,.61,.29,.94,.02,.11,.02,.22,.02,.34v5.38s0,.07,0,.11v11.08s0,.04,0,.07Z'/%3E%3Cpath d='M68.98,30.23v16.84c0,.33-.06,.65-.19,.96-.13,.3-.31,.58-.54,.81l-6.88,6.88c-.23,.23-.51,.42-.81,.54-.3,.13-.63,.19-.96,.19h-13.15c-.66,0-1.3-.26-1.77-.73-.47-.47-.73-1.11-.73-1.77v-11.69c0-.66,.26-1.3,.73-1.77,.47-.47,1.11-.73,1.77-.73h13.08s1.11,0,1.11-1.11-1.11-1.11-1.11-1.11h-13.08c-.66,0-1.3-.26-1.77-.73s-.73-1.11-.73-1.77v-11.69c0-.66,.26-1.3,.73-1.77,.47-.47,1.11-.73,1.77-.73h13.15c.33,0,.65,.06,.96,.19,.3,.13,.58,.31,.81,.54l6.88,6.88c.23,.23,.42,.51,.54,.81,.13,.3,.19,.63,.19,.96Z'/%3E%3C/svg%3E%0A");
    2101     background-position: center;
    2102     background-repeat: no-repeat;
    2103     height: 24px;
    2104     width: 24px;
    2105 }
    2106 
    21072112.notice {
    21082113    background: #fff;
Note: See TracChangeset for help on using the changeset viewer.