aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo@ubuntu.com>2014-01-09 13:56:39 +0100
committerMilo Casagrande <milo@ubuntu.com>2014-01-09 13:56:39 +0100
commitb89eea5e7b40248669facbd8ba824c7993a9601c (patch)
tree7290c5e89511cf74d541ff5c3ee874567d64c7b4
parente99eab96c4c722081dbe9b3fafd07c35745f3e17 (diff)
Added better README support.
-rw-r--r--gitweb.css80
1 files 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,