X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/bndl.org/blobdiff_plain/8c1ba2f235553b96215e157a4b686d0dd626d100..06611295e7000b1f22c4af109cb6ddb476cc97ad:/static/style.css?ds=sidebyside diff --git a/static/style.css b/static/style.css index 4031953..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,18 +111,63 @@ 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; + top: -0.4em; + vertical-align: baseline; +} +sub { + top: 0.4em; +} + +/* TeX logos */ +.t-logo { + font-family: "Tex Gyre Termes", serif; + /* letter-spacing: 1px; */ + white-space: nowrap; +} +.t-logo sup { + font-size: 0.85em; + letter-spacing: 1px; + margin-left: -0.36em; + margin-right: -0.15em; + text-transform: uppercase; + vertical-align: 0.15em; + top: 0; +} +.t-logo sub { + font-size: 1em; + margin-left: -0.1667em; + margin-right: -0.125em; + text-transform: uppercase; + vertical-align: -0.5ex; + top: 0; +} blockquote#abstract { font-size: 0.95em; 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 > code { @@ -123,17 +178,29 @@ 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 { padding: 0.125em 0.3em; } -#pubs td { +#publications td { padding-top: 0.4em; padding-bottom: 0.4em; } @@ -143,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; @@ -174,12 +238,10 @@ li, dd { } .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; @@ -189,3 +251,7 @@ li, dd { .warn { color: #a10029; } + +#bandali-bib > a { + display: block +}