adjust header margins
[mdref/mdref] / public / index.css
index ce3f5aa3515c2e7df4bd7d9ba0f3f4fbc51479d8..40f17d2524b9ad7a75bb9a08f41307bb8f463f82 100644 (file)
@@ -6,7 +6,7 @@ body, code {
        font-family: Inconsolata, Monospace, 'Courier New', Courier, monospace;
 }
 body {
-       font-size: 1.5em;
+       font-size: 1.1em;
        margin: 0;
        padding: 0;
        padding-bottom: 5em;
@@ -16,12 +16,11 @@ body {
 body>* {
        margin-left: 1em;
 }
-body>ul {
+body>ul, body>div>ul {
        margin-left: 2em;
 }
 
 .sidebar {
-       font-size: .9em;
        float: right;
        background: #f0f0f0;
        border-bottom-left-radius: 10px;
@@ -47,16 +46,17 @@ body>ul {
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
        text-decoration: none;
-       color: white;
        font-weight: bold;
        text-shadow: 0 0 5px red;
 }
 
+.sidebar .edit a {
+       color: white !important;
+}
 code { 
-       display: inline-block;
        border-radius: 2px;
        padding: 0px 2px 2px 2px;
-       background: #e0e0e0;
+       background: #f0f0f0;
        color: #606060;
        box-shadow: 0 0 1px #999;
 }
@@ -70,14 +70,16 @@ code code {
 }
 
 pre>code {
+       display: inline-block;
        padding: 1em;
+       min-width: 50%;
 }
 pre>code, pre>code code {
        background: #333;
        color: #eee;
 }
 
-p, pre {
+p, pre, table {
        margin: 1em 2em;
 }
 
@@ -104,6 +106,9 @@ a, h1 code>a {
 a:hover {
        text-decoration: none;
 }
+a[href^="http:"]:after, a[href^="https:"]:after {
+       content: " ⬈";
+}
 
 .var {
        color: #800000;
@@ -139,6 +144,19 @@ li h3 {
        margin: .5em 0 0 0;
 }
 
+body>h3, body>div>h3 {
+       margin-left: 1.25em;
+}
+body>h4, body>div>h4 {
+       margin-left: 1.5em;
+}
+body>h5, body>div>h5 {
+       margin-left: 1.75em;
+}
+body>h6, body>div>h6 {
+       margin-left: 2em;
+}
+
 h1 .constant, pre>code .consant, li h3 .constant {
        color: #98fb98;
 }