Making WordPress.org

Changeset 583


Ignore:
Timestamp:
05/01/2014 04:34:57 PM (10 years ago)
Author:
nacin
Message:

P2 child theme: Responsiveness.

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/footer.php

    r89 r583  
    66 */
    77?>
     8
     9    <?php get_sidebar( get_post_type() ); ?>
    810    <div class="clear"></div>
    911
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/header.php

    r377 r583  
    2727</div>
    2828
     29<?php is_home() && ! is_paged() && get_template_part( 'make-intro' ); ?>
     30
    2931<div id="wrapper">
    3032
    31     <?php is_home() && ! is_paged() && get_template_part( 'make-intro' ); ?>
    32 
    33     <?php get_sidebar( get_post_type() ); ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/style.css

    r581 r583  
    187187    }
    188188
    189     #main #postlist li {
     189/*  #main #postlist li {
    190190        margin-top: 5px!important;
    191191        padding-top: 0!important;
    192192    }
    193 
    194193    #main #postlist li {
    195194        padding: 0 !important;
    196195    }
    197 
     196*/
    198197    /* Override P2 iPhone styles */
    199198    #main ul#postlist li span.actions a.comment-reply-link {
     
    418417    background: #e4f2fd;
    419418    border: 1px solid #d9e1e7;
    420     margin-bottom: 10px;
     419    max-width: 978px;
     420    margin: 10px auto 0;
     421}
     422.make-welcome {
     423    padding-bottom: 14px;
    421424}
    422425.make-welcome h4 {
     426    margin: 14px 0;
     427}
     428.make-welcome p {
     429    display: inline;
     430}
     431.make-welcome h4,
     432.make-welcome .welcome p:first-child {
    423433    font-weight: normal;
    424434    font-size: 18px;
    425435    font-family: "Open Sans", serif;
    426436}
    427 .make-welcome h4, .make-welcome p {
    428     margin-bottom: 14px;
    429 }
    430 .make-welcome .welcome p:first-child {
    431     font-size: 22px;
    432     margin: 12px 0 23px;
    433     font-family: "Open Sans", serif;
    434 }
    435437.make-welcome .column {
    436438    vertical-align: top;
    437439    display: inline-block;
    438     width: 30%;
    439     min-width: 290px;
    440     padding: 1.5%;
     440    padding: 0 1.5%;
    441441}
    442442.make-welcome .welcome {
     
    444444}
    445445
     446@media screen and (min-width: 960px) {
     447    .make-welcome {
     448        padding-bottom: 0;
     449    }
     450    .make-welcome p {
     451        display: block;
     452    }
     453    .make-welcome .column {
     454        width: 30%;
     455        padding: 1.5%;
     456    }
     457    .make-welcome .welcome p:first-child {
     458        font-size: 22px;
     459        margin: 12px 0 23px;
     460    }
     461    .make-welcome h4, .make-welcome p {
     462        margin-bottom: 14px;
     463    }
     464}
    446465
    447466/* Styles for docs issue tracker */
     
    530549    color:white;
    531550}
     551
     552/* General responsive overrides */
     553#wrapper {
     554    width: auto;
     555    max-width: 742px; /* 978 - 236 */
     556    padding-right: 236px;
     557}
     558#post-types {
     559    width: auto;
     560}
     561#postbox div.avatar {
     562    clear: left;
     563}
     564#postbox input#posttitle,
     565#postbox input#postcitation,
     566#postbox textarea#posttext, textarea.posttext {
     567    display: block;
     568}
     569#sidebar {
     570}
     571.sleeve_main {
     572    float: left;
     573    margin-right: 0;
     574    width: 100%;
     575}
     576#sidebar {
     577    margin-right: -236px;
     578}
     579
     580@media screen and (max-width: 700px) {
     581    #wrapper {
     582        padding-right: 0;
     583    }
     584    #sidebar {
     585        clear: both;
     586        margin: 0;
     587        position: static;
     588        width: 100%;
     589        float: none;
     590    }
     591}
     592
Note: See TracChangeset for help on using the changeset viewer.