/* License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree. */ /* * makronix-guide.css -- the Makronix Guide. * * The colours are the Camouflage palette of the release (the same palette * as www/style.css): background #acbeb4, panels #8e8e77 and #6e7d76, * dark #4e6b65, accent #907b7b. The bevels are drawn the way Motif draws * them: light on the top and the left, dark on the bottom and the right. */ :root { --mak-bg: #acbeb4; --mak-panel: #8e8e77; --mak-dark: #4e6b65; --mak-accent: #907b7b; --mak-light: #dfe7e2; --mak-mid: #c5d2cb; --mak-ink: #1a1a1a; --mak-line: #6e7d76; } html { font-size: 16px; } body { margin: 0; padding: 0; background: var(--mak-bg); color: var(--mak-ink); font-family: "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", sans-serif; font-size: 0.95rem; line-height: 1.55; } /* ------------------------------------------------------------------ cover */ .cover { box-sizing: border-box; max-width: 50rem; margin: 2cm auto 1cm auto; padding: 3.2cm 2.4cm 2.2cm 2.4cm; text-align: center; background: var(--mak-light); border-top: 3px solid #f4f8f6; border-left: 3px solid #f4f8f6; border-bottom: 3px solid var(--mak-line); border-right: 3px solid var(--mak-line); } .cover .logo { display: block; width: 22rem; max-width: 90%; margin: 0 auto 1.4rem auto; } .cover-rule { height: 3px; margin: 0 auto 1.6rem auto; background: var(--mak-dark); } .covertitle { margin: 0; padding: 0; border: 0; color: var(--mak-dark); font-size: 2.5rem; line-height: 1.1; letter-spacing: 0.04em; page-break-before: avoid; } .subtitle { margin: 1rem 0 0 0; color: var(--mak-ink); font-size: 1.15rem; } .edition { margin: 0.5rem 0 1.4rem 0; color: var(--mak-accent); font-family: "DejaVu Sans Mono", monospace; font-size: 0.92rem; } .palette { display: flex; justify-content: center; gap: 0; margin: 0 auto 1.5rem auto; width: 18rem; max-width: 80%; border-top: 2px solid #f4f8f6; border-left: 2px solid #f4f8f6; border-bottom: 2px solid var(--mak-line); border-right: 2px solid var(--mak-line); } .palette span { display: block; height: 1.1rem; flex: 1 1 0; } .palette .p1 { background: var(--mak-bg); } .palette .p2 { background: var(--mak-panel); } .palette .p3 { background: var(--mak-dark); } .palette .p4 { background: var(--mak-accent); } .palette .p5 { background: var(--mak-mid); } .based { margin: 0; color: var(--mak-dark); font-family: "DejaVu Sans Mono", monospace; font-size: 0.8rem; letter-spacing: 0.22em; } /* -------------------------------------------------------------------- toc */ .tocpage { box-sizing: border-box; max-width: 50rem; margin: 1rem auto 2rem auto; padding: 1.4rem 2rem 1.8rem 2rem; background: var(--mak-light); border-top: 2px solid #f4f8f6; border-left: 2px solid #f4f8f6; border-bottom: 2px solid var(--mak-line); border-right: 2px solid var(--mak-line); } .tochead { margin: 0 0 0.8rem 0; padding: 0.3rem 0.7rem; background: var(--mak-dark); color: #ffffff; font-size: 1.1rem; letter-spacing: 0.04em; } #TOC { margin: 0; } #TOC ul { margin: 0.2rem 0 0.2rem 1.1rem; padding: 0; } #TOC > ul { margin-left: 0; } #TOC li { margin: 0.12rem 0; } #TOC a { color: var(--mak-ink); text-decoration: none; } #TOC a:hover { color: #000000; background: #d6e0da; } #TOC > ul > li > a { font-weight: bold; color: var(--mak-dark); } /* ------------------------------------------------------------------ body */ .content { box-sizing: border-box; max-width: 50rem; margin: 0 auto 2rem auto; padding: 1.6rem 2.4rem 2.4rem 2.4rem; background: var(--mak-light); border-top: 2px solid #f4f8f6; border-left: 2px solid #f4f8f6; border-bottom: 2px solid var(--mak-line); border-right: 2px solid var(--mak-line); } h1, h2, h3, h4 { color: var(--mak-dark); font-family: "DejaVu Sans", sans-serif; line-height: 1.2; page-break-after: avoid; } h1 { margin: 2.2rem 0 0.8rem 0; padding: 0.35rem 0.8rem; background: var(--mak-mid); border-top: 2px solid #f4f8f6; border-left: 2px solid #f4f8f6; border-bottom: 2px solid var(--mak-line); border-right: 2px solid var(--mak-line); font-size: 1.7rem; } h1:first-of-type { margin-top: 0; } h2 { margin: 1.6rem 0 0.5rem 0; padding-bottom: 0.2rem; border-bottom: 2px solid var(--mak-panel); font-size: 1.28rem; } h3 { margin: 1.2rem 0 0.4rem 0; font-size: 1.08rem; } p { margin: 0.55rem 0; } a { color: #2e4a44; } a:hover { color: #000000; background: #d6e0da; } code, pre, kbd, samp { font-family: "DejaVu Sans Mono", "Bitstream Vera Sans Mono", monospace; font-size: 0.86em; } pre { margin: 0.8rem 0; padding: 0.7rem 0.9rem; overflow-x: auto; background: var(--mak-mid); border-top: 2px solid var(--mak-line); border-left: 2px solid var(--mak-line); border-bottom: 2px solid #f4f8f6; border-right: 2px solid #f4f8f6; page-break-inside: avoid; } code { background: #d6e0da; padding: 0.05rem 0.2rem; } pre code { background: transparent; padding: 0; } blockquote { margin: 0.8rem 0; padding: 0.4rem 1rem; border-left: 4px solid var(--mak-panel); background: #e8eeeb; } ul, ol { margin: 0.5rem 0 0.7rem 1.4rem; padding: 0; } li { margin: 0.2rem 0; } dl { margin: 0.6rem 0; } dt { font-weight: bold; color: var(--mak-dark); } dd { margin: 0 0 0.5rem 1.4rem; } table { margin: 0.9rem 0; border-collapse: collapse; width: 100%; font-size: 0.9rem; } th, td { padding: 0.35rem 0.55rem; border: 1px solid var(--mak-line); vertical-align: top; } th { background: var(--mak-panel); color: #ffffff; text-align: left; } tr:nth-child(even) td { background: #e8eeeb; } .note, .tip, .warning, .caution, .important { margin: 0.9rem 0; padding: 0.6rem 0.9rem; background: #e8eeeb; border-top: 2px solid #f4f8f6; border-left: 2px solid #f4f8f6; border-bottom: 2px solid var(--mak-line); border-right: 2px solid var(--mak-line); page-break-inside: avoid; } .note::before, .tip::before, .warning::before, .caution::before, .important::before { display: block; margin-bottom: 0.2rem; color: var(--mak-dark); font-weight: bold; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; } .note::before { content: "Note"; } .tip::before { content: "Tip"; } .warning::before { content: "Warning"; } .caution::before { content: "Caution"; } .important::before { content: "Important"; } hr { margin: 1.4rem 0; border: 0; border-top: 2px solid var(--mak-panel); } .printfooter { margin: 1.2rem auto 2rem auto; max-width: 50rem; color: #2e4a44; text-align: center; font-family: "DejaVu Sans Mono", monospace; font-size: 0.75rem; } /* ----------------------------------------------------------------- print */ @page { size: A4; margin: 18mm 16mm 20mm 16mm; } @media print { html { font-size: 11pt; } body { background: #ffffff; -webkit-print-color-adjust: exact; print-color-adjust: exact; } .cover { width: 100%; max-width: none; height: 247mm; margin: 0; padding: 42mm 22mm 20mm 22mm; page-break-after: always; } .cover .logo { width: 26rem; } .covertitle { font-size: 3rem; } .tocpage { width: 100%; max-width: none; margin: 0; padding: 0; border: 0; background: #ffffff; page-break-after: always; } .tochead { color: var(--mak-dark); background: transparent; border-bottom: 2px solid var(--mak-panel); } .content { width: 100%; max-width: none; margin: 0; padding: 0; border: 0; background: #ffffff; } h1 { page-break-before: always; background: var(--mak-mid); } h1:first-of-type { page-break-before: avoid; } pre, table, blockquote, .note, .tip, .warning, .caution, .important { page-break-inside: avoid; } a { color: #2e4a44; text-decoration: none; } .printfooter { display: none; } } /* figures: the screenshots of the desktop chapters */ figure { margin: 1.2rem 0; text-align: center; page-break-inside: avoid; } figure img { max-width: 100%; height: auto; border-top: 2px solid #f4f8f6; border-left: 2px solid #f4f8f6; border-bottom: 2px solid var(--mak-line); border-right: 2px solid var(--mak-line); } figcaption { margin-top: 0.4rem; color: var(--mak-dark); font-family: "DejaVu Sans Mono", monospace; font-size: 0.78rem; } @media print { /* Long commands must wrap, not be clipped at the right edge. */ pre { white-space: pre-wrap; word-wrap: break-word; } }