X-Git-Url: https://git.shemshak.org/~bandali/bndl.org/blobdiff_plain/cd68557ac93aa5080eb5c4fa4fb44dcb22dab048..29f0d7b9e10f827c29213a40279b8a767c99d80b:/static/style.css?ds=inline diff --git a/static/style.css b/static/style.css index ded0287..d54ddfe 100644 --- a/static/style.css +++ b/static/style.css @@ -1,49 +1,63 @@ body { - /* background: #fffffa; */ - font-family: sans-serif; - line-height: 1.6; - padding: 2em; + background: #d9d8d1; + font: 18px/1.6 sans-serif; + margin: 0; } -nav, main, footer { - margin: auto; - max-width: 38rem; +body > header, body > nav, main, body > footer { + padding: 0 2em; } +body > header { + padding-top: 1em; +} +body > header h1 { + margin: 0; + font-size: 1em; +} +header a { + color: inherit; +} nav { - font-size: 0.84em; + margin-bottom: 1em; } -main { - margin-bottom: 2em; +nav ul { + margin: 0; + padding: 0; } -p { - margin: 1em 0; +nav li { + display: inline; + text-transform: lowercase; +} +nav li + li { + margin-left: 0.5em; +} +nav a { + color: #333; } -header { - 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 { font-size: 1.5em; } -h1 + address { - margin-top: 0.75em; -} -address + p { - margin: 0; -} - h2 { font-size: 1.25em; } @@ -52,28 +66,26 @@ h3 { } a { - color: #006cdc; - padding: 0.3em 0; - text-decoration: none; + color: #036; } +/* a:hover, a:focus { - transition-property: background; - transition-duration: 0.1s; - background: #f2f8fa; - color: #0054c0; /* #003ea4 */ + color: #005a6a; } +*/ a:active { - color: #a10029; + outline-offset: 2px; } -/* -a:active { - color: #06d; - box-shadow: 0 1px 1px #ddd; +a.permalink { + color: #ddd; + font: 1.2em/1 "TeX Gyre Termes", serif; + text-decoration: none; + transition: color 150ms linear; + user-select: none; } -*/ - -h4 { - margin: 0.75em auto; +a.permalink:hover, :hover > a.permalink, :target a.permalink { + color: #999; + transition: color 150ms linear; } article h3 { @@ -99,19 +111,98 @@ article h3 { bottom: 0.05em; } +.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 { + display: inline-block; + margin: 0.5em 0; + min-width: 100%; + padding: 1em; +} +pre > code { + padding: 0; + background: initial; +} code { - font: 1.15em monospace; text-transform: none; + padding: .2em .3em; +} +pre, code { + font-size: smaller; } -strong { - font-weight: bold; + +/* 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.2em 0.3em; + padding: 0.125em 0.3em; +} +#publications td { + padding-top: 0.4em; + padding-bottom: 0.4em; } table td:first-child { padding-left: 0; @@ -123,62 +214,44 @@ table td:last-child { width: 100%; } .post-list tr:hover { - background: #f2f8fa; /* #f6f6f6; */ + background: #efefe8; } .post-list td { - padding: 0.3em; + padding: 0.25em 0; } .post-list td:nth-child(2) { text-align: right; } -dt { - margin-bottom: 0.15em; -} -dd { - font-size: 0.875em; - margin-left: 1.5em; - margin-bottom: 0.75em; -} -dd:last-child { - margin-bottom: 1em; -} -small { +small, dd, .small, .bibtexnumber, .bibtexitem, .bibtex2html { font-size: 0.875em; } .muted { color: #666; } -.inbox { +.inbox, .bibtex2html { margin-top: 2em; } -ul, ol { - list-style: none; - padding-left: 1.5em; - position: relative; -} - -li { +li, dd { margin-bottom: 0.25em; } -ul > li::before { - content: '•'; - position: absolute; - left: 0.5em; +.feed-icon { + background-image: url(feed-12x12.png); + background-position: center right; + background-repeat: no-repeat; + padding-right: 15px; +} +.smly { + display: inline-block; + transform: rotate(90deg); + margin-left: 0.2em; +} +.warn { + color: #a10029; } -h2 + ul, h2 + dl, h2 + table, h1 + table { - margin-top: 1em; -} -h2 + .post-list, table + h2, h2 + h3, ul + h3 { - margin-top: 0.7em; +#bandali-bib > a { + display: block } -p + table { - margin-top: -0.3em; -} - -sup, sub { font-size: 0.85em; } -sup { vertical-align: super; } -sub { vertical-align: sub; }