adjust header margins
[mdref/mdref] / public / index.css
index a48ac00cbe108890578606ee1001f2ed4bf40cd4..40f17d2524b9ad7a75bb9a08f41307bb8f463f82 100644 (file)
@@ -6,41 +6,57 @@ 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;
        padding: 0;
        width: auto;
+       min-width: 200px;
        padding-right: 1em;
 }
 .sidebar>ul {
 }
 .sidebar ul {
        margin-left: 1em;
+       margin-top: .5em;
        padding: 0;
        list-style-type: none;
 }
 
+.sidebar .edit {
+       display: block;
+       position: absolute;
+       top: 2em;
+       right: 0.5em;
+       -webkit-transform: rotate(45deg);
+       transform: rotate(45deg);
+       text-decoration: none;
+       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;
 }
@@ -54,17 +70,23 @@ 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;
 }
 
+li>p {
+       margin: 1em 0;
+}
+
 blockquote {
        border-top: 1px solid #800000;
        border-bottom: 1px solid #800000;
@@ -84,6 +106,9 @@ a, h1 code>a {
 a:hover {
        text-decoration: none;
 }
+a[href^="http:"]:after, a[href^="https:"]:after {
+       content: " ⬈";
+}
 
 .var {
        color: #800000;
@@ -101,7 +126,7 @@ h1 code {
        line-height: 1.33;
 }
 
-footer, h1, li h3 {
+footer, h1, li h3, th {
        background: #708090;
        color: #f5f5dc;
 }
@@ -119,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;
 }
@@ -147,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 {
@@ -160,3 +201,22 @@ footer li {
        display: inline-block;
        margin: 0 1em;
 }
+
+footer a {
+       text-decoration: none;
+}
+
+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;
+}