123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225 |
- /* @@TITLE@@ version @@VERSION@@
- *
- * This is docbook-screen.css.
- *
- * See https://xsltng.docbook.org/
- *
- */
- @media screen {
- @import url("https://fonts.googleapis.com/css?family=B612+Mono&display=swap");
- @import url("https://fonts.googleapis.com/css?family=Noto+Sans&display=swap");
- @import url("https://fonts.googleapis.com/css?family=Noto+Serif&display=swap");
- }
- :root {
- background-color: #fffff8;
- }
- html {
- height: 100%;
- width: 100%;
- line-height: 1.75rem;
- font-size: 13.5pt;
- scroll-padding-top: 40px;
- }
- /* https://www.smashingmagazine.com/2020/07/css-techniques-legibility/ */
- @supports (font-size-adjust: 1;) {
- html {
- font-size-adjust: 0.5;
- }
- }
- body {
- min-height: 100%;
- padding-left: 0;
- padding-right: 0;
- margin-left: 0;
- margin-right: 0;
- display: grid;
- grid-template-rows: 1fr auto;
- grid-template-columns: 100%;
- }
- main,
- footer {
- width: 100%;
- max-width: 50rem;
- margin-left: auto;
- margin-right: auto;
- padding-left: 1rem;
- padding-right: 1rem;
- }
- main {
- padding-top: 3rem;
- }
- .book + .book {
- border-top: 4px solid #abcdef;
- margin-top: 6em;
- padding-top: 6em;
- }
- .refentry + .refentry {
- border-top: 4px solid #abcdef;
- margin-top: 6em;
- padding-top: 6em;
- }
- .book > .dedication > header,
- .article > .dedication > header,
- .book .chapter > header,
- .book .preface > header,
- .book .appendix > header,
- .book .part > header {
- margin-top: 4rem;
- padding-top: 2rem;
- border-top: 0.25rem solid var(--border-grey);
- }
- .dedication + .dedication > header {
- border-top: inherit;
- }
- .colophon {
- margin-top: 6rem;
- margin-bottom: 6rem;
- margin-left: 6rem;
- margin-right: 6rem;
- border: 1px solid var(--border-grey);
- border-radius: 1em;
- padding-left: 2em;
- padding-right: 2em;
- padding-bottom: 2em;
- }
- .set header h1,
- .book header h1 {
- text-align: center;
- }
- .footnotes {
- margin-top: 2em;
- }
- .footnotes div.footnote-number {
- display: inline-block;
- width: 0.75rem;
- height: 0;
- margin-left: -0.75rem;
- margin-top: 0.5rem;
- vertical-align: top;
- }
- .footnotes div.footnote-body {
- display: inline-block;
- }
- .footnotes .footnote {
- margin-left: 0.75rem;
- }
- .footnote p {
- margin-bottom: 0;
- }
- .footnotes hr {
- max-width: 1in;
- margin: 0;
- }
- .calloutlist dl {
- display: grid;
- grid-template-columns: max-content auto;
- }
- .calloutlist dl dt {
- float: none;
- width: inherit;
- grid-column-start: 1;
- }
- .calloutlist dl dd {
- margin-left: 1em;
- grid-column-start: 2;
- }
- /* ============================================================ */
- nav table td.previous {
- text-align: left;
- }
- nav table td.up {
- text-align: center;
- }
- nav table td.next {
- text-align: right;
- }
- nav.bottom {
- background-color: var(--nav-background-color);
- }
- nav.bottom table {
- border-top: 2px solid var(--border-grey);
- margin-bottom: 1rem;
- }
- nav.bottom table .previous {
- padding-left: 4rem;
- }
- nav.bottom table .next {
- padding-right: 4rem;
- }
- nav.top {
- position: fixed;
- width: 100%;
- background-color: var(--nav-background-color);
- opacity: 1;
- }
- body.home nav.top {
- display: none;
- }
- nav.top div {
- border-bottom: 1px solid var(--border-grey);
- padding-left: 4rem;
- padding-right: 4rem;
- }
- @media screen and (max-width: 1199px) {
- nav.top div {
- padding-left: 2rem;
- padding-right: 2rem;
- }
- nav.bottom table .previous {
- padding-left: 2rem;
- }
- nav.bottom table .next {
- padding-right: 2rem;
- }
- }
- @media screen and (max-width: 767px) {
- nav.top div {
- padding-left: 1rem;
- padding-right: 1rem;
- }
- nav.bottom table .previous {
- padding-left: 1rem;
- }
- nav.bottom table .next {
- padding-right: 1rem;
- }
- }
|