X-Git-Url: https://git.shemshak.org/~bandali/bndl.org/blobdiff_plain/6d80ac585ce878a70570a9fa869c4ccb4ac3156b..737aed007b35c70cd3d1b6c3271f99ce91555b48:/style.css diff --git a/style.css b/style.css index 17999c7..86cf7ea 100644 --- a/style.css +++ b/style.css @@ -1,42 +1,99 @@ +/* for old browsers */ +article, aside, footer, header, nav, section { + display: block; +} + body { - padding: 1rem 5%; - line-height: 1.45; + font-family: FreeSans, sans-serif; + line-height: 1.4; + padding: 1em; +} + +main { + margin: auto; + max-width: 38em; +} + +main > header { + margin-bottom: 1em; +} + +#title { + font-size: 2.1em; + font-weight: normal; + margin-bottom: 0; +} +#title:after { + content: ".org"; + color: #dadada; } -header {text-align: center} -header, section {margin-bottom: 1.7rem} -#sub { +#subtitle { + display: inline; + font-weight: normal; + font-size: 1.2em; color: #444; - font-size: 0.9rem; - position: relative; - top: -0.75rem; } -main { - min-width: 30rem; - 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; + +a { text-decoration: none; - border-bottom: 1px solid #ddd; -} -a:hover { - background-color: #004caa; - color: #ffffff; + outline: 0; } -.btable th { + +article h3 { + font-weight: normal; color: #777; - text-align: center; - font-size: 0.9em; +} + +code { + font-size: 1.15em; +} + +table td { + padding: 0 0.3em; +} +table td:first-child { + padding-left: 0; +} +table td:last-child { + padding-right: 0 +} + +nav ul { + list-style-type: none; + padding: 0; +} +nav li { + display: inline; +} +nav li:after { + content: "\00a0\00b7"; +} +nav li:last-child:after { + content: ""; +} + +main { + display: grid; + grid-template-columns: auto 38em auto; + grid-column-gap: 1.5em; + grid-row-gap: 1em; +} + +main > h3 { + grid-column: 1; + text-align: right; + font-size: 1em; font-weight: normal; } -.btable td {padding: 0.1rem 0.3rem} -.btable td:first-child, .btable td:nth-child(3) {text-align: right} -.btable td:first-child {padding-left: 0} -.btable td:last-child {padding-right: 0} -#theses {padding-left: 1rem} -h1, h2, h3, h4, h5 {line-height: 1.15} + +main > header, main > section { + grid-column: 2; +} + +main > h3, ul:first-child { + margin-top: 0; + margin-bottom: 0; +} +p:first-child { + margin-top: 0; +}