X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=public%2Findex.css;h=e305c7a07927f7643cb6ca12ac9d404169672363;hb=17dc7637588fb5d34bdc13e17e52db49f02bd3d8;hp=a48ac00cbe108890578606ee1001f2ed4bf40cd4;hpb=d7b9f83d24b7af987618921f555c9e5e2c2f4b95;p=mdref%2Fmdref diff --git a/public/index.css b/public/index.css index a48ac00..e305c7a 100644 --- a/public/index.css +++ b/public/index.css @@ -6,41 +6,58 @@ body, code { font-family: Inconsolata, Monospace, 'Courier New', Courier, monospace; } body { - font-size: 1.5em; + line-height: 140%; + 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 +71,24 @@ code code { } pre>code { + display: inline-block; padding: 1em; + min-width: 50%; + line-height: 110%; } pre>code, pre>code code { background: #333; color: #eee; } -p, pre { +p, pre, table, dl { margin: 1em 2em; } +li>p { + margin: 1em 0; +} + blockquote { border-top: 1px solid #800000; border-bottom: 1px solid #800000; @@ -73,6 +97,7 @@ blockquote { } ul { + margin-top: 1em; margin-bottom: 2em; } li { @@ -84,6 +109,9 @@ a, h1 code>a { a:hover { text-decoration: none; } +a[href^="http:"]:after, a[href^="https:"]:after { + content: " ⬈"; +} .var { color: #800000; @@ -101,7 +129,7 @@ h1 code { line-height: 1.33; } -footer, h1, li h3 { +footer, h1, li h3, th { background: #708090; color: #f5f5dc; } @@ -119,6 +147,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 +188,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 +204,29 @@ 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; +} +dt { + font-weight: bold; + margin-top: 1em; +} +dd { + line-height: 1.2em; + margin-left: 1em; +} +h1, footer, table, .sidebar, pre>code, li h3 { + box-shadow: 0 0 4px #708090; +}