X-Git-Url: https://git.shemshak.org/~bandali/bndl.org/blobdiff_plain/cb742bb69034bdc97f1b762fc4bf7fde4f027fea..ff620ce6ac85cf10600b3da9a640f6ebc3568444:/style.css diff --git a/style.css b/style.css index 91c6253..c460723 100644 --- a/style.css +++ b/style.css @@ -1,46 +1,155 @@ +/* for old browsers */ +article, aside, footer, header, nav, section { + display: block; +} + body { - padding: 1rem 5%; - line-height: 1.45; + font-family: sans-serif; + line-height: 1.6; + padding: 1em; } -header {text-align: center} -header, section {margin-bottom: 1.7rem} -#sub { - color: #444; - font-size: 0.9rem; - position: relative; - top: -0.75rem; + +nav, main, footer { + margin: auto; + max-width: 38rem; +} + +nav { + font-size: 0.84em; } main { - max-width: 50rem; - padding-bottom: 1rem; -} -td {padding: 0 0.25rem} -dl {margin-left: 2.5rem} -#contact {margin-bottom: 0} -code {font-size: 14px} -a:link { - color: #004caa; + /* margin-top: 1em; */ + margin-bottom: 3em; + /* margin-top: 2%; */ +} +footer { + border-top: 1px solid #bbb; + padding-top: 1em; +} +footer p { + margin: 0; + font-size: 0.84em; +} + +#hiddentitle { + font-size: 0; +} +h1 { + font-size: 1.5em; +} +#subtitle { + display: inline; + font-weight: normal; + font-size: 1.2em; + color: #444; +} + +a { + color: #295bad; text-decoration: none; - border-bottom: 1px solid #ddd; } -a:hover { - background-color: #004caa; - color: #ffffff; +a:hover, a:focus { + transition-property: background; + transition-duration: 0.1s; + background: #f2f8fa; + padding: 0.25em 0; + color: #0745ad; +} +a:active { + color: #a10029; +} +/* +a:active { + color: #06d; + box-shadow: 0 1px 1px #ddd; +} +*/ + +h4 { + margin: 0.75em auto; } -.btable th { + +article h3 { + font-weight: normal; color: #777; +} + +.notice { + background-color: #efefef; text-align: center; + position: relative; +} +.notice::before { + content: "↪"; + position: absolute; + left: 0.5em; + bottom: 0.05em; +} +.notice::after { + content: "↩"; + position: absolute; + right: 0.5em; + bottom: 0.05em; +} + +code { + font-size: 1.15em; + text-transform: none; +} + +table td { + padding: 0 0.3em; +} +table td:first-child { + padding-left: 0; +} +table td:last-child { + padding-right: 0 +} + +dl { + margin: 0 0 0.5em 0; +} +dl:last-child { + margin: 0; +} +dt { + margin-bottom: 0.15em; +} +dd { font-size: 0.9em; - font-weight: normal; + margin-left: 1.5em; + margin-bottom: 0.75em; +} +.plinks { + font-size: 0.9em; +} + +ul, ol { + list-style: none; + padding-left: 1.5em; + position: relative; } -.btable td:first-child {text-align: right} -#theses {padding-left: 1rem} -h1, h2, h3, h4, h5 {line-height: 1.15} -#gnu-inside { + +li { + margin-bottom: 0.25em; +} + +ul > li::before { + content: '•'; position: absolute; - top: 0px; - right: 0px; + left: 0.5em; +} + +/* +ol { + margin: 0; + padding: 0; +} +ol li { + margin-top: 0.5em; +} +ol li:first-child { + margin-top: 0; } -#gnu-inside a {border: none !important} -#gnu-inside:hover a {background-color: transparent} -#gnu-inside:hover img {background-color: aliceblue} +*/