adjust header margins
[mdref/mdref] / public / index.css
index dd0e8eb53fd2f6fdb572266c5731116edfe03ed6..40f17d2524b9ad7a75bb9a08f41307bb8f463f82 100644 (file)
@@ -6,21 +6,21 @@ 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;
        color: #3f3f3f;
 }
 
 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;
@@ -46,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;
 }
@@ -69,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;
 }
 
@@ -103,6 +106,9 @@ a, h1 code>a {
 a:hover {
        text-decoration: none;
 }
+a[href^="http:"]:after, a[href^="https:"]:after {
+       content: " ⬈";
+}
 
 .var {
        color: #800000;
@@ -120,7 +126,7 @@ h1 code {
        line-height: 1.33;
 }
 
-footer, h1, li h3 {
+footer, h1, li h3, th {
        background: #708090;
        color: #f5f5dc;
 }
@@ -138,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;
 }
@@ -166,12 +185,15 @@ footer {
        font-size: smaller;
        text-align: center;
        clear: both;
-       margin-top: 8em;
+       position: fixed;
+       bottom: 0;
+       width: 100%;
+       padding: 0;
 }
 
 footer ul {
        margin: 0;
-       padding: 0;
+       padding: 1em 0;
 }
 
 footer li {
@@ -187,3 +209,14 @@ footer a {
 footer a:hover {
        text-decoration: underline;
 }
+
+table {
+       border-collapse: collapse;
+}
+th, td {
+       padding: .4em;
+}
+
+h1, footer, table, .sidebar, pre>code, li h3 {
+       box-shadow: 0 0 4px #708090;
+}