reorganize doc styles
authorDan Allen <dan@opendevise.com>
Wed, 17 Jul 2019 07:50:51 +0000 (01:50 -0600)
committerDan Allen <dan@opendevise.com>
Wed, 17 Jul 2019 07:50:51 +0000 (01:50 -0600)
- 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

index bc092bf..59d0ce2 100644 (file)
@@ -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) {
   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;
   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);
 }
 
   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;
 }
   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);
   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%;
   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;
 }