X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=public%2Findex.css;h=22417db30804ddc7c0267a4535c45c2ba10a871a;hb=3015c9c29d9b5842a171c3d1bac93172167aef61;hp=2f86d6662aa6d626b68cb5cb47547ff51613031e;hpb=f38828a34ee165669db60ac17a4befaf91c05119;p=mdref%2Fmdref diff --git a/public/index.css b/public/index.css index 2f86d66..22417db 100644 --- a/public/index.css +++ b/public/index.css @@ -1,26 +1,38 @@ -* { +* { font-size: 99.9%; } +html, body{ + height: 100%; + min-height: 100%; +} body, code { font-family: Inconsolata, Monospace, 'Courier New', Courier, monospace; } body { - font-size: 1.5em; + line-height: 1.5; + font-size: 1.1em; margin: 0; padding: 0; color: #3f3f3f; } -body>* { +div.page { + margin: auto; + max-width: 1200px; + min-height: 100%; + padding-bottom: 5em; + box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.5); +} + +div.page>* { margin-left: 1em; } -body>ul { +div.page>ul, div.page>div>ul { margin-left: 2em; } .sidebar { - font-size: .9em; float: right; background: #f0f0f0; border-bottom-left-radius: 10px; @@ -40,21 +52,24 @@ body>ul { .sidebar .edit { display: block; - position: absolute; + position: relative; top: 2em; - right: 0.5em; + right: 0; + -webkit-transform: rotate(45deg); transform: rotate(45deg); text-decoration: none; - color: white; font-weight: bold; text-shadow: 0 0 5px red; + float: right; } -code { - display: inline-block; +.sidebar .edit a { + color: white !important; +} +code { border-radius: 2px; padding: 0px 2px 2px 2px; - background: #e0e0e0; + background: #f0f0f0; color: #606060; box-shadow: 0 0 1px #999; } @@ -68,15 +83,24 @@ code code { } pre>code { + display: inline-block; padding: 1em; + min-width: 50%; + line-height: 1.2; } + pre>code, pre>code code { background: #333; color: #eee; } -p, pre { +p, pre, table, dl { margin: 1em 2em; + margin-left: 2em !important; +} + +pre>code, table, dl { + margin-bottom: 2em !important; } li>p { @@ -87,10 +111,11 @@ blockquote { border-top: 1px solid #800000; border-bottom: 1px solid #800000; background: #ffe4e1; - margin: 2em 0; + margin: 2em 0 !important; } ul { + margin-top: 1em; margin-bottom: 2em; } li { @@ -102,6 +127,9 @@ a, h1 code>a { a:hover { text-decoration: none; } +a[href^="http:"]:after, a[href^="https:"]:after { + content: " ⬈"; +} .var { color: #800000; @@ -112,6 +140,7 @@ a:hover { h1 { line-height: 1.5; + margin-left: 0 !important; } h1 code { font-weight: normal; @@ -119,13 +148,14 @@ h1 code { line-height: 1.33; } -footer, h1, li h3 { +footer, h1, li h3, th { background: #708090; color: #f5f5dc; } footer, h1 { margin: 0; + max-width: 1200px; padding: 1em; } @@ -137,6 +167,19 @@ li h3 { margin: .5em 0 0 0; } +div.page>h3, div.page>div>h3 { + margin-left: 1.25em; +} +div.page>h4, div.page>div>h4 { + margin-left: 1.5em; +} +div.page>h5, div.page>div>h5 { + margin-left: 1.75em; +} +div.page>h6, div.page>div>h6 { + margin-left: 2em; +} + h1 .constant, pre>code .consant, li h3 .constant { color: #98fb98; } @@ -165,12 +208,16 @@ footer { font-size: smaller; text-align: center; clear: both; - margin-top: 8em; + position: fixed; + bottom: 0; + width: 100%; + padding: 0; + margin: 0 !important; } footer ul { margin: 0; - padding: 0; + padding: 1em 0; } footer li { @@ -185,4 +232,22 @@ footer a { footer a:hover { text-decoration: underline; -} \ No newline at end of file +} + +table { + border-collapse: collapse; +} +th, td { + padding: .4em; +} +dt { + font-weight: bold; + margin-top: 1em; +} +dd { + line-height: 1.33; + margin-left: 1em; +} +h1, footer, table, .sidebar, pre>code, li h3 { + box-shadow: 0 0 4px #708090; +}