Commit: 10e06f446e2c2081201121fc2bdd6f0ea6296e5d Author: Levi Morrison <[email protected]> Tue, 25 Mar 2014 09:59:36 -0600 Parents: 4346d06412f876ba99d96c3e2afafe2ec944959d Branches: master
Link: http://git.php.net/?p=web/shared.git;a=commitdiff;h=10e06f446e2c2081201121fc2bdd6f0ea6296e5d Log: Improved spacing around many wiki elements. The p, ul, and ol changes in default should apply to other sites; hopefully won't break too much. I'm really trying to standardize spacing. Changed paths: M styles/defaults.css M styles/wiki.css Diff: diff --git a/styles/defaults.css b/styles/defaults.css index 30e8870..b9f67af 100644 --- a/styles/defaults.css +++ b/styles/defaults.css @@ -86,7 +86,7 @@ h1, h2, h3, h4, h5, h6, dt { font-weight: bolder; color: #446; background: #E3E3F1; - padding: .5rem; + padding: .375em .5em; border-top: 2px solid #669; border-bottom: 1px solid #C6C6E2; border-radius: 0 0 2px 2px; @@ -115,7 +115,11 @@ dd { padding: 0.5em .444444444em !important; } p { - margin: .75rem 0; + margin: 0 0 .75rem; +} +ul, ol { + margin: 0 0 .75rem; + padding:0 0 0 2.5rem; } /* }}} */ diff --git a/styles/wiki.css b/styles/wiki.css index 93d4bbf..e60968a 100644 --- a/styles/wiki.css +++ b/styles/wiki.css @@ -987,3 +987,35 @@ div.footnotes { padding:.75em 0; margin: 0 0 .75em; } + +/* {{{ Spacing of Wiki Sections */ +/* If DokuWiki nested sections properly this would be much cleaner */ +h1 + .level1, +h2 + .level2, +h3 + .level3, +h4 + .level4, +h5 + .level5, +h6 + .level6 { + margin-bottom:1.5rem; +} +h3, h3 + .level3 { + margin-left:1.5rem; +} +h4, h4 + .level4 { + margin-left:3rem; +} +h5, h5 + .level5 { + margin-left:4.5rem; +} +h6, h6 + .level6 { + margin-left:6rem; +} +h1 + .level1 > :last-child, +h2 + .level2 > :last-child, +h3 + .level3 > :last-child, +h4 + .level4 > :last-child, +h5 + .level5 > :last-child, +h6 + .level6 > :last-child { + margin-bottom:0; +} +/* }}} */ -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
