<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[613] sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/style.css: P2 child theme: Rearrange styles so handbook design only affects handbook; fix some responsive design pieces.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://meta.trac.wordpress.org/changeset/613">613</a></dd>
<dt>Author</dt> <dd>samuelsidler</dd>
<dt>Date</dt> <dd>2014-05-13 16:21:54 +0000 (Tue, 13 May 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>P2 child theme: Rearrange styles so handbook design only affects handbook; fix some responsive design pieces.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgp2stylecss">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/style.css</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgp2stylecss"></a>
<div class="modfile"><h4>Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/style.css (612 => 613)</h4>
<pre class="diff"><span>
<span class="info">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/style.css 2014-05-12 23:13:50 UTC (rev 612)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/style.css 2014-05-13 16:21:54 UTC (rev 613)
</span><span class="lines">@@ -4,12 +4,12 @@
</span><span class="cx"> Description: Child theme of p2, with modifications specifically for make.wordpress.org p2 blogs.
</span><span class="cx"> */
</span><span class="cx">
</span><ins>+/* Handbook-specific styles */
</ins><span class="cx"> .post-type-archive-handbook .postcontent,
</span><span class="cx"> .single-handbook .postcontent {
</span><span class="cx"> padding-left: 0;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-/* Better styling for handbook sidebars if they use a "Table of Contents" menu */
</del><span class="cx"> .post-type-archive-handbook ul#menu-table-of-contents a[href="#"],
</span><span class="cx"> .single-handbook ul#menu-table-of-contents a[href="#"] {
</span><span class="cx"> font-weight: bold;
</span><span class="lines">@@ -41,27 +41,31 @@
</span><span class="cx"> padding: 5px 0;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-.single-handbook a {
</del><ins>+.post-type-archive-handbook #wrapper a,
+.single-handbook #wrapper a {
</ins><span class="cx"> color: #267db2;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+.post-type-archive-handbook .current-menu-item a,
</ins><span class="cx"> .single-handbook .current-menu-item a {
</span><span class="cx"> color: #267db2!important;
</span><span class="cx"> font-weight: bold!important;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+.post-type-archive-handbook .current-menu-item ul li a,
</ins><span class="cx"> .single-handbook .current-menu-item ul li a {
</span><span class="cx"> color: #555!important;
</span><span class="cx"> font-weight: normal!important;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-.single-handbook a:hover,
-.post-type-archive-handbook a:hover,
</del><ins>+.single-handbook #wrapper a:hover,
+.post-type-archive-handbook #wrapper a:hover,
</ins><span class="cx"> .single-handbook .current-menu-item ul li a:hover,
</span><span class="cx"> .post-type-archive-handbook .current-menu-item ul li a:hover {
</span><span class="cx"> color: #d54e21!important;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+.post-type-archive-handbook div.table-of-contents,
</ins><span class="cx"> .single-handbook div.table-of-contents {
</span><span class="cx"> float: right;
</span><span class="cx"> width: 200px;
</span><span class="lines">@@ -72,6 +76,7 @@
</span><span class="cx"> position: relative;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+.post-type-archive-handbook div.table-of-contents h2,
</ins><span class="cx"> .single-handbook div.table-of-contents h2 {
</span><span class="cx"> margin: 0;
</span><span class="cx"> padding-bottom: 8px!important;
</span><span class="lines">@@ -82,23 +87,28 @@
</span><span class="cx"> background: #d6d6d6;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+.post-type-archive-handbook ul.items,
</ins><span class="cx"> .single-handbook ul.items {
</span><span class="cx"> margin-bottom: 8px!important;
</span><span class="cx"> list-style-type: none!important;
</span><span class="cx"> padding-right: 10px;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+.post-type-archive-handbook ul.items li,
</ins><span class="cx"> .single-handbook ul.items li {
</span><span class="cx"> padding-bottom: 6px!important;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+.post-type-archive-handbook ul.items li ul li,
+.post-type-archive-handbook ul.items li ul li ul li,
</ins><span class="cx"> .single-handbook ul.items li ul li,
</span><span class="cx"> .single-handbook ul.items li ul li ul li {
</span><span class="cx"> padding-bottom: 0!important;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+.post-type-archive-handbook ul.items li a,
</ins><span class="cx"> .single-handbook ul.items li a {
</span><del>- color: #555;
</del><ins>+ color: #555!important;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> li.type-handbook {
</span><span class="lines">@@ -141,20 +151,40 @@
</span><span class="cx"> margin: 0;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-ul#menu-table-of-contents {
</del><ins>+.post-type-archive-handbook ul#menu-table-of-contents,
+.single-handbook ul#menu-table-of-contents {
</ins><span class="cx"> padding: 12px;
</span><span class="cx"> background: #f5f5f5;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-ul#menu-table-of-contents > li {
</del><ins>+.post-type-archive-handbook ul#menu-table-of-contents > li,
+.single-handbook ul#menu-table-of-contents > li {
</ins><span class="cx"> list-style: none;
</span><del>- margin-bottom: 16px;
</del><span class="cx"> }
</span><span class="cx">
</span><del>-ul#menu-table-of-contents li ul a {
</del><ins>+.post-type-archive-handbook ul#menu-table-of-contents li ul a ,
+.single-handbook ul#menu-table-of-contents li ul a {
</ins><span class="cx"> font-weight: normal;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+.post-type-archive-handbook .sleeve_main,
+.single-handbook .sleeve_main {
+ float: right;
+}
+
+.post-type-archive-handbook #wrapper,
+.single-handbook #wrapper {
+ padding-right: 0;
+ padding-left: 236px;
+}
+
+.post-type-archive-handbook #sidebar,
+.single-handbook #sidebar {
+ float: left;
+ margin-right: 0;
+ margin-left: -236px;
+}
+
</ins><span class="cx"> /* Responsive design for handbooks */
</span><span class="cx"> @media (max-width: 480px) {
</span><span class="cx"> .post-type-archive-handbook .sleeve_main,
</span><span class="lines">@@ -163,57 +193,58 @@
</span><span class="cx"> padding: 0 10px;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+ .post-type-archive-handbook #wrapper,
</ins><span class="cx"> .single-handbook #wrapper {
</span><span class="cx"> padding: 0 !important;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+ .post-type-archive-handbook .sleeve_main,
</ins><span class="cx"> .single-handbook .sleeve_main {
</span><span class="cx"> padding: 0;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- .single-handbook #headline h2 {
- margin-left: 6px;
- }
-
</del><ins>+ .post-type-archive-handbook #main h2,
</ins><span class="cx"> .single-handbook #main h2 {
</span><del>- padding-bottom: 10px;
</del><span class="cx"> display: inline-block !important;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+ .post-type-archive-handbook #main h6 span.meta span.actions,
</ins><span class="cx"> .single-handbook #main h6 span.meta span.actions {
</span><del>- font-size: 12px !important;
</del><ins>+ font-size: 11px !important;
</ins><span class="cx"> }
</span><span class="cx">
</span><ins>+ .post-type-archive-handbook #main ul#postlist li span.actions a.comment-reply-link,
</ins><span class="cx"> .single-handbook #main ul#postlist li span.actions a.comment-reply-link {
</span><span class="cx"> display: inline-block !important;
</span><del>- margin-right: 10px;
</del><span class="cx"> padding: 0 !important;
</span><span class="cx"> }
</span><ins>+
+ .post-type-archive-handbook #main ul#postlist li span.actions a.comment-reply-link:hover,
+ .post-type-archive-handbook #main ul#postlist li span.actions a.comment-reply-link:focus,
+ .post-type-archive-handbook #main ul#postlist li span.actions a.comment-reply-link:active,
</ins><span class="cx"> .single-handbook #main ul#postlist li span.actions a.comment-reply-link:hover,
</span><span class="cx"> .single-handbook #main ul#postlist li span.actions a.comment-reply-link:focus,
</span><span class="cx"> .single-handbook #main ul#postlist li span.actions a.comment-reply-link:active {
</span><span class="cx"> color: #d54e21 !important;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- .single-handbook #main ul#postlist li span.actions a.follow-link {
- font-size: 12px;
- margin-right: 10px;
- }
-
</del><ins>+ .post-type-archive-handbook #main h6,
</ins><span class="cx"> .single-handbook #main h6 {
</span><del>- padding: 5px 0;
- margin: 0;
</del><ins>+ margin: 0 0 20px 0;
</ins><span class="cx"> }
</span><span class="cx">
</span><ins>+ .post-type-archive-handbook #main .actions,
</ins><span class="cx"> .single-handbook #main .actions {
</span><span class="cx"> position: relative;
</span><span class="cx"> float: right;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+ .post-type-archive-handbook #sidebar,
</ins><span class="cx"> .single-handbook #sidebar {
</span><span class="cx"> margin-left: 0;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+ .post-type-archive-handbook #main #respond,
</ins><span class="cx"> .single-handbook #main #respond {
</span><span class="cx"> margin-left: 0;
</span><span class="cx"> }
</span><span class="lines">@@ -223,25 +254,20 @@
</span><span class="cx"> display: none;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- #main h2 {
</del><ins>+ .post-type-archive-handbook #main h2,
+ .single-handbook #main h2 {
</ins><span class="cx"> display: inline !important;
</span><span class="cx"> font-size: 20px !important;
</span><ins>+ padding-bottom: 5px!important;
</ins><span class="cx"> font-weight: normal;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- #main ul#postlist {
</del><ins>+ .post-type-archive-handbook #main ul#postlist,
+ .single-handbook #main ul#postlist {
</ins><span class="cx"> margin: 0!important;
</span><span class="cx"> clear: both;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-/* #main #postlist li {
- margin-top: 5px!important;
- padding-top: 0!important;
- }
- #main #postlist li {
- padding: 0 !important;
- }
-*/
</del><span class="cx"> /* Override P2 iPhone styles */
</span><span class="cx"> #main ul#postlist li span.actions a.comment-reply-link {
</span><span class="cx"> background: none!important;
</span><span class="lines">@@ -249,7 +275,6 @@
</span><span class="cx"> -webkit-box-shadow: none!important;
</span><span class="cx"> color: #555!important;
</span><span class="cx"> display: block;
</span><del>- font-size: 12px !important;
</del><span class="cx"> font-weight: normal!important;
</span><span class="cx"> padding: 0 10px 0 0!important;
</span><span class="cx"> position: relative!important;
</span><span class="lines">@@ -261,15 +286,23 @@
</span><span class="cx"> display: inline!important;
</span><span class="cx"> }
</span><span class="cx"> }
</span><ins>+
</ins><span class="cx"> @media (max-width: 700px) {
</span><span class="cx"> .post-type-archive-handbook #wrapper,
</span><span class="cx"> .single-handbook #wrapper {
</span><del>- margin: 0;
</del><ins>+ margin: 0 13px 0 13px;
</ins><span class="cx"> padding-left: 0 !important;
</span><ins>+ padding-bottom: 0!important;
</ins><span class="cx"> }
</span><ins>+ .post-type-archive-handbook #sidebar,
+ .single-handbook #sidebar {
+ margin: 0;
+ padding: 5px 0 0 0;
+ display: block !important;
+ }
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-
</del><ins>+/* Secondary header design */
</ins><span class="cx"> #headline .menu {
</span><span class="cx"> list-style: none;
</span><span class="cx"> float: right;
</span><span class="lines">@@ -284,6 +317,19 @@
</span><span class="cx"> padding-left: 20px;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+/* Responsive design for secondary header */
+@media (max-width: 480px) {
+ #headline h2 {
+ margin-left: 6px;
+ font-size: 20px;
+ }
+
+body.wporg-make #headline h2 a:before {
+ font-size: 20px;
+ width: 24px;
+ }
+}
+
</ins><span class="cx"> @media (max-width: 740px) {
</span><span class="cx"> #headline .menu {
</span><span class="cx"> float: left;
</span><span class="lines">@@ -296,17 +342,7 @@
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><del>-@media (max-width: 480px) {
- #headline h2 {
- font-size: 20px;
- }
</del><span class="cx">
</span><del>-body.wporg-make #headline h2 a:before {
- font-size: 20px;
- width: 24px;
- }
-}
-
</del><span class="cx"> html body {
</span><span class="cx"> line-height: normal;
</span><span class="cx"> background: white;
</span><span class="lines">@@ -388,7 +424,7 @@
</span><span class="cx">
</span><span class="cx"> #main h6 {
</span><span class="cx"> background-color: #f5f5f5;
</span><del>- height: 20px;
</del><ins>+ height: 18px;
</ins><span class="cx"> padding: 0;
</span><span class="cx"> margin: 0 0 20px 0;
</span><span class="cx"> }
</span><span class="lines">@@ -630,28 +666,8 @@
</span><span class="cx"> margin-right: -236px;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-.post-type-archive-handbook .sleeve_main,
-.single-handbook .sleeve_main {
- float: right;
-}
-
-.post-type-archive-handbook #wrapper,
-.single-handbook #wrapper {
- padding-right: 0;
- padding-left: 236px;
-}
-
-.post-type-archive-handbook #sidebar,
-.single-handbook #sidebar {
- float: left;
- margin-right: 0;
- margin-left: -236px;
-}
-
</del><span class="cx"> @media screen and (max-width: 700px) {
</span><del>- #wrapper,
- .post-type-archive-handbook #wrapper,
- .simgle-handbook #wrapper {
</del><ins>+ #wrapper {
</ins><span class="cx"> padding-left: 0;
</span><span class="cx"> padding-right: 0;
</span><span class="cx"> }
</span><span class="lines">@@ -662,13 +678,16 @@
</span><span class="cx"> width: 100%;
</span><span class="cx"> float: none;
</span><span class="cx"> }
</span><del>- .post-type-archive-handbook #sidebar,
- .single-handbook #sidebar {
- margin-left: 0;
- display: block !important;
</del><ins>+ #sidebar ul {
+ margin-bottom: 0;
</ins><span class="cx"> }
</span><ins>+ #sidebar ul li {
+ margin-bottom: 0;
+ }
+ #main {
+ padding: 0 0 10px 0;
+ }
</ins><span class="cx"> #main .controls {
</span><span class="cx"> position: static;
</span><span class="cx"> }
</span><span class="cx"> }
</span><del>-
</del></span></pre>
</div>
</div>
</body>
</html>