From b89eea5e7b40248669facbd8ba824c7993a9601c Mon Sep 17 00:00:00 2001 From: Milo Casagrande Date: Thu, 9 Jan 2014 13:56:39 +0100 Subject: Added better README support. --- gitweb.css | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 71 insertions(+), 9 deletions(-) diff --git a/gitweb.css b/gitweb.css index f7c56df..e63e98c 100644 --- a/gitweb.css +++ b/gitweb.css @@ -214,14 +214,6 @@ a.rss_logo:hover { /* Elements ---------------------------------------------------------------------------- */ -.readme { - background: none repeat scroll 0 0 #EAF2F5; - border: 1px solid #BEDCE7; - margin: 0 auto 15px; - padding: 5px; - width: 94%; -} - .project_list, .shortlog, .tree, @@ -315,9 +307,79 @@ th .header { } .title { - width: 95%; + margin: 0 auto 15px auto; padding: 5px; + width: 95%; +} + +.readme { + background: #eaf2f5; + border: 1px solid #bedce7; + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + box-sizing: border-box; margin: 0 auto 15px auto; + padding: 15px; + width: 95%; +} + +.readme h1 { + display: block; + font-size: 2em; + font-weight: bold; + margin-bottom: 0.67em; + margin-top: 0; +} + +.readme h2 { + font-size: 1.5em; + font-weight: bold; + margin-bottom: 0.83em; +} + + +.readme h3 { + font-size: 1.17em; + font-weight: bold; + margin-bottom: 1em; +} + +.readme p { + margin-bottom: 1em; +} + +.readme ul { + list-style: disc; + margin-bottom: 1em; + margin-left: 1.5em; +} + +.readme ul ul { + margin-bottom: 0; +} + +.readme ol { + list-style: decimal; + margin-bottom: 1em; + margin-left: 1.5em; +} + +.readme ol ol { + margin-bottom: 0; +} + +.readme pre { + font-family: monospace; + margin: 1em 0; + white-space: pre; +} + +.readme tt, .readme code, .readme kbd, .readme samp { + font-family: monospace; +} + +.readme blockquote { + margin: 1em; } .projects_list, -- cgit v1.2.3