X-Git-Url: https://git.shemshak.org/~bandali/bndl.org/blobdiff_plain/fcc5b13a58e980e00772e664d12f24690328069d..06611295e7000b1f22c4af109cb6ddb476cc97ad:/static/style.css diff --git a/static/style.css b/static/style.css index 1036bbd..d54ddfe 100644 --- a/static/style.css +++ b/static/style.css @@ -1,25 +1,26 @@ body { - /* background: #fffffa; */ - font-family: sans-serif; - line-height: 1.6; - padding: 2em; + background: #d9d8d1; + font: 18px/1.6 sans-serif; + margin: 0; } -header, nav, main, footer { - margin: auto; - max-width: 38rem; +body > header, body > nav, main, body > footer { + padding: 0 2em; } body > header { - margin-bottom: 0.25em; + padding-top: 1em; } body > header h1 { margin: 0; - font-size: 100%; + font-size: 1em; } header a { color: inherit; } +nav { + margin-bottom: 1em; +} nav ul { margin: 0; padding: 0; @@ -34,22 +35,24 @@ nav li + li { nav a { color: #333; } -nav, main { - margin-bottom: 1.5em; +main { + background: #ebeae4; + padding-top: 1em; + padding-bottom: 1em; } -header >:not(h1) { +article header >:not(h1) { font-size: 0.875em; } header > h1 + p { margin-top: -1em; } footer { - border-top: 1px solid #bbb; font-size: 0.84em; - padding-top: 1em; + margin-left: 0.4em; } -footer p { - margin: 0; + +main > * { + max-width: 43rem; } h1 { @@ -73,9 +76,16 @@ a:hover, a:focus { a:active { outline-offset: 2px; } - -h4 { - margin: 0.75em auto; +a.permalink { + color: #ddd; + font: 1.2em/1 "TeX Gyre Termes", serif; + text-decoration: none; + transition: color 150ms linear; + user-select: none; +} +a.permalink:hover, :hover > a.permalink, :target a.permalink { + color: #999; + transition: color 150ms linear; } article h3 { @@ -101,9 +111,20 @@ article h3 { bottom: 0.05em; } -.center-text { +.center { text-align: center; } +.justify { + text-align: justify; +} + +details { + margin: 1em 0; + padding: 0.5em; +} +details summary { + cursor: pointer; +} sup, sub { position: relative; @@ -143,19 +164,12 @@ blockquote#abstract { text-align: justify; } -pre, code { - background: #f6f6f6; - font: 1.15em monospace; -} pre { display: inline-block; margin: 0.5em 0; min-width: 100%; padding: 1em; } -pre:first-of-type { - margin-top: 0; -} pre > code { padding: 0; background: initial; @@ -164,11 +178,23 @@ code { text-transform: none; padding: .2em .3em; } -strong { - font-weight: bold; +pre, code { + font-size: smaller; +} + +/* box effect */ +.box, details, pre, code { + background-color: #f4f4f4; + border: 1px solid #e6e6e6; + border-radius: 4px; + box-sizing: border-box; +} +details pre { + border: none; } -em { - font-style: italic; +p.box { + font-size: 0.95em; + padding: 0.6em 0.9em; } table td { @@ -184,14 +210,11 @@ table td:first-child { table td:last-child { padding-right: 0 } -#notes { - margin-top: 0.9em; -} .post-list { width: 100%; } .post-list tr:hover { - background: #fafafa; + background: #efefe8; } .post-list td { padding: 0.25em 0; @@ -209,21 +232,16 @@ small, dd, .small, .bibtexnumber, .bibtexitem, .bibtex2html { .inbox, .bibtex2html { margin-top: 2em; } -.justify { - text-align: justify; -} li, dd { margin-bottom: 0.25em; } .feed-icon { - margin-right: 3px -} -.feed-icon-h2 { - margin-left: 5px; - position: relative; - top: 2px + background-image: url(feed-12x12.png); + background-position: center right; + background-repeat: no-repeat; + padding-right: 15px; } .smly { display: inline-block; @@ -233,3 +251,7 @@ li, dd { .warn { color: #a10029; } + +#bandali-bib > a { + display: block +}