Making WordPress.org

Changeset 4790


Ignore:
Timestamp:
01/25/2017 11:34:06 PM (8 years ago)
Author:
coffee2code
Message:

Breate: Fix display of handbook name (seen in multi-handbook sites) after changes in [4789].

See #2389.

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

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/single-handbook.php

    r4251 r4790  
    1010<?php $is_landing_page = wporg_is_handbook_landing_page(); ?>
    1111
     12<?php get_sidebar( 'handbook' ); ?>
     13
    1214<?php if ( ! $is_landing_page && 'handbook' !== wporg_get_current_handbook() ) { ?>
    13 <div class="handbook-name"><span><a href="<?php echo esc_url( get_post_type_archive_link( wporg_get_current_handbook() ) ); ?>"><?php echo esc_html( wporg_get_current_handbook_name() ); ?></a></span></div>
     15<div class="handbook-name-container">
     16    <div class="handbook-name"><span>
     17        <a href="<?php echo esc_url( get_post_type_archive_link( wporg_get_current_handbook() ) ); ?>"><?php echo esc_html( wporg_get_current_handbook_name() ); ?></a>
     18    </span></div>
     19</div>
    1420<?php } ?>
    15 
    16 <?php get_sidebar( 'handbook' ); ?>
    1721
    1822<div id="primary" class="content-area">
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/style.css

    r4789 r4790  
    772772}
    773773
     774.handbook-name-container {
     775    position: absolute;
     776    right: 0;
     777    width: 75%;
     778    margin-left: 25%;
     779    background-color: #fff;
     780}
     781
     782@media(max-width: 876px) {
     783    .handbook-name-container {
     784        width: 100%;
     785        margin-left: 0;
     786    }
     787}
     788
    774789.handbook-name {
    775790    text-align: center;
    776791    color: #aaa;
    777     margin-bottom: 1.5em;
     792    margin-top: 0.5em;
    778793    overflow: hidden;
    779794    letter-spacing: 2px;
     
    792807    border-top: 1px solid #ccc;
    793808    top: 49%;
    794     width: 600px;
     809    width: 100px;
    795810}
    796811.handbook-name span:before {
    797     right: 100%;
    798     margin-right: 10px;
     812    left: 0;
     813    margin-left: -110px;
    799814}
    800815.handbook-name span:after {
    801     left: 100%;
    802     margin-left: 10px;
     816    right: 0;
     817    margin-right: -110px;
    803818}
    804819
Note: See TracChangeset for help on using the changeset viewer.