From c3871f62b8ea605f9dfb0b6845f65d0ccb774c9f Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 17 Jul 2019 01:50:51 -0600 Subject: [PATCH] reorganize doc styles - remove tag name from .anchor selector inside section title - don't style visited link explicitly - move up p and colist styles - remove unused styles --- src/css/doc.css | 99 ++++++++++++++++++++++++++------------------------------- 1 file changed, 45 insertions(+), 54 deletions(-) diff --git a/src/css/doc.css b/src/css/doc.css index bc092bf..59d0ce2 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -1,8 +1,8 @@ .doc { + color: var(--doc-font-color); margin: 0 auto; max-width: var(--doc-max-width-mobile); padding: 0 1rem 4rem; - color: var(--doc-font-color); } @media screen and (min-width: 1024px) { @@ -45,12 +45,12 @@ font-weight: 500; } -.doc h1 > a.anchor, -.doc h2 > a.anchor, -.doc h3 > a.anchor, -.doc h4 > a.anchor, -.doc h5 > a.anchor, -.doc h6 > a.anchor { +.doc h1 .anchor, +.doc h2 .anchor, +.doc h3 .anchor, +.doc h4 .anchor, +.doc h5 .anchor, +.doc h6 .anchor { position: absolute; text-decoration: none; width: 1.75ex; @@ -61,26 +61,40 @@ padding-top: 0.05em; } -.doc h1 > a.anchor::before, -.doc h2 > a.anchor::before, -.doc h3 > a.anchor::before, -.doc h4 > a.anchor::before, -.doc h5 > a.anchor::before, -.doc h6 > a.anchor::before { +.doc h1 .anchor::before, +.doc h2 .anchor::before, +.doc h3 .anchor::before, +.doc h4 .anchor::before, +.doc h5 .anchor::before, +.doc h6 .anchor::before { content: "\00a7"; } -.doc h1:hover > a.anchor, -.doc h2:hover > a.anchor, -.doc h3:hover > a.anchor, -.doc h4:hover > a.anchor, -.doc h5:hover > a.anchor, -.doc h6:hover > a.anchor { +.doc h1:hover .anchor, +.doc h2:hover .anchor, +.doc h3:hover .anchor, +.doc h4:hover .anchor, +.doc h5:hover .anchor, +.doc h6:hover .anchor { visibility: visible; } -.doc a, -.doc a:visited { +.doc p { + font-size: 0.95rem; + margin: 0; +} + +.doc .tableblock p { + font-size: inherit; +} + +.doc p, +.doc :not(td) > .content, +.doc .tableblock thead { + hyphens: auto; +} + +.doc a { color: var(--link-font-color); } @@ -106,21 +120,6 @@ margin: 0; } -.doc p { - font-size: 0.95rem; - margin: 0; -} - -.doc .tableblock p { - font-size: inherit; -} - -.doc p, -.doc :not(td) > .content, -.doc .tableblock thead { - hyphens: auto; -} - .doc blockquote { margin: 0; } @@ -301,14 +300,6 @@ max-width: 100%; } -/* -.doc .ulist .paragraph, -.doc .olist .paragraph { - margin: 0; - padding: 0; -} -*/ - #preamble .abstract blockquote { background: var(--abstract-background); border-left: 5px solid var(--abstract-border-color); @@ -523,6 +514,16 @@ margin: 0 0 0.3rem 1.5rem; } +.doc .colist { + font-size: 0.95rem; + margin-top: 0.5rem; +} + +.doc .colist > table tr > td:first-of-type { + padding: 0 0.75em; + line-height: 1; +} + .doc .conum[data-value] { border: 1px solid currentColor; border-radius: 100%; @@ -546,16 +547,6 @@ display: none; } -.doc .colist { - font-size: 0.95rem; - margin-top: 0.5rem; -} - -.doc .colist > table tr > td:first-of-type { - padding: 0 0.75em; - line-height: 1; -} - b.button { white-space: nowrap; } -- 2.11.0