WordPress.org

Making WordPress.org

Changeset 802


Ignore:
Timestamp:
08/19/2014 05:37:16 PM (5 years ago)
Author:
coffee2code
Message:

WP.org P2 theme: add handbook name to the top of handbook pages. Fixes #439

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

Legend:

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

    r603 r802  
    77?>
    88<?php get_header(); ?>
     9
     10<div class="handbook-name"><span><?php esc_html_e( WPorg_Handbook::get_name() ); ?></span></div>
    911
    1012<!-- Also called on in footer but will not display the second time. -->
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/single-handbook.php

    r603 r802  
    77?>
    88<?php get_header(); ?>
     9
     10<div class="handbook-name"><span><?php esc_html_e( WPorg_Handbook::get_name() ); ?></span></div>
    911
    1012<!-- Also called on in footer but will not display the second time. -->
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/style.css

    r658 r802  
    184184    margin-right: 0;
    185185    margin-left: -236px;
     186}
     187
     188.handbook-name {
     189    text-align: center;
     190    color: #aaa;
     191    margin-left: -225px;
     192    margin-right: 14px;
     193    overflow-x: hidden;
     194    letter-spacing: 2px;
     195    font-size: 1.5em;
     196    text-transform: uppercase;
     197}
     198.handbook-name span {
     199    display: inline-block;
     200    position: relative;
     201}
     202.handbook-name span:before,
     203.handbook-name span:after {
     204    content: "";
     205    position: absolute;
     206    border-top: 1px solid #ccc;
     207    top: 49%;
     208    width: 600px;
     209}
     210.handbook-name span:before {
     211    right: 100%;
     212    margin-right: 10px;
     213}
     214.handbook-name span:after {
     215    left: 100%;
     216    margin-left: 10px;
    186217}
    187218
     
    329360        top: -2px;
    330361    }
     362    .handbook-name {
     363        margin: 1em 0 0;
     364    }
    331365}
    332366
     
    368402    border-bottom: 1px solid #d7d7d7;
    369403    width: 100%;
     404    }
     405    .handbook-name {
     406        margin-top: 1em;
    370407    }
    371408}
Note: See TracChangeset for help on using the changeset viewer.