Commit c3871f62 authored by Dan Allen's avatar Dan Allen

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
parent 0bd44094
.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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment