Commits

Steve Losh  committed 4bc7754

Add styles for non-markedup README files.

  • Participants
  • Parent commits 51cdb33

Comments (0)

Files changed (1)

File bitbucket.css

    http://bitbucket.org/sjl/bitbucket-prettifier 
 */
 
+/* Basic styles to set up a rhythm. */
 #readme-viewer {
     font-size: 14px !important;
     line-height: 1.5;
     padding: 1.5em;
     font-family: "Helvetica Neue", Helvetica, Geneva, Arial, sans-serif;
 }
-
 #readme-viewer p, #readme-viewer ul, #readme-viewer ol {
     margin: 0 0 1.5em 0;
 }
-
 #readme-viewer p {
     padding-top: 0;
     padding-bottom: 0;
 }
 
+/* Header styles to keep the rhythm. */
 #readme-viewer h1, #readme-viewer h2, #readme-viewer h3, #readme-viewer h4, #readme-viewer h5, #readme-viewer h6 {
     font-weight: normal;
 }
+#readme-viewer h1 {
+    margin: 0 0 0.75em !important;
+    font-size: 2em;
+}
+#readme-viewer h2 {
+    margin: 0 0 1em !important;
+    font-size: 1.5em;
+}
+#readme-viewer h3 {
+    margin: 0 0 1.286em !important;
+    font-size: 1.167em;
+}
+#readme-viewer h4 {
+    margin: 0 0 1.5em !important;
+    font-size: 1em;
+}
+#readme-viewer h5 {
+    margin: 0 0 1.8em !important;
+    font-size: .834em;
+}
+#readme-viewer h6 {
+    margin: 0 0 2em !important;
+    font-size: .75em;
+}
 
-#readme-viewer h1 {margin: 0 0 0.75em !important; font-size: 2em;}
-#readme-viewer h2 {margin: 0 0 1em !important; font-size: 1.5em;}
-#readme-viewer h3 {margin: 0 0 1.286em !important; font-size: 1.167em;}
-#readme-viewer h4 {margin: 0 0 1.5em !important; font-size: 1em;}
-#readme-viewer h5 {margin: 0 0 1.8em !important; font-size: .834em;}
-#readme-viewer h6 {margin: 0 0 2em !important; font-size: .75em;}
-
-
+/* Code block styles. */
 #readme-viewer code, #readme-viewer span.pre {
     font-family: "Monaco", "Consolas", "Courier New", Courier, mono;
     color: #404040;
 }
-
 #readme-viewer pre {
-	font-size: 14px !important;
-	line-height: 1.5 !important;
+    font-size: 14px !important;
+    line-height: 1.5 !important;
     font-family: "Monaco", "Consolas", "Courier New", Courier, mono;
     border: 1px solid #aaa;
     padding: 0.5em 1.5em;
     margin: -0.5em 3em 1em 3em;
     color: #404040;
 }
-
 #readme-viewer p code, #readme-viewer li code, #readme-viewer tt.docutils.literal {
     border: 1px solid #ccc;
     padding: 2px;
     background-color: #fafafa;
-}
+}
+
+/* Non-markedup README styles. */
+div#readme-viewer table.highlighttable tbody pre {
+    font-size: 12px !important;
+    margin: 0 !important;
+    padding: 1.5em !important;
+}
+div#readme-viewer table.highlighttable tbody td {
+    background-color: inherit !important;
+    border: 0 !important;
+}