tweak styles for block titles and example blocks
authorDan Allen <dan@opendevise.com>
Fri, 9 Feb 2018 22:51:43 +0000 (15:51 -0700)
committerDan Allen <dan@opendevise.com>
Sat, 10 Feb 2018 02:39:17 +0000 (19:39 -0700)
- use darker color for block titles
- align sizing of block titles to grid
- tighten spacing between letters in block title
- change box shadow around blocks to 1.75px
- tighten letter spacing in language hover
- reorder styles

src/css/doc.css

index 60736a4..96dae78 100644 (file)
 }
 
 .doc pre {
-  font-size: 0.9rem;
   /* color: #000; */
+  font-size: 0.9rem;
   line-height: 1.5;
   margin: 0;
 }
 
 .doc pre:not(.highlight),
 .doc pre.highlight code {
-  display: block;
   background-color: #fafafa;
-  padding: 0.75rem;
+  box-shadow: inset 0 0 1.75px #ddd;
+  display: block;
   overflow-x: auto;
-  box-shadow: inset 0 0 2px #ddd;
+  padding: 0.75rem;
 }
 
 .doc .paragraph,
   font-size: 0.9rem;
 }
 
+.doc .admonitionblock td.content > :first-child {
+  margin: 0;
+}
+
 .doc .admonitionblock pre {
   font-size: 0.85rem;
 }
 }
 
 .doc .imageblock .title {
-  color: #4a4a4a;
+  /* color: #4a4a4a; */
+  color: #191919;
   font-style: italic;
   margin-top: 0.5rem;
 }
   padding: 0.75em 1em;
 }
 
-.doc .admonitionblock td.content > :first-child {
-  margin: 0;
-}
-
 .doc table.tableblock .paragraph {
   margin: 0;
   padding: 0;
 .doc .exampleblock .title,
 .doc .literalblock .title,
 .doc .listingblock .title {
-  color: #4a4a4a;
-  padding-bottom: 0.08rem;
-  font-size: 0.92rem;
+  /* color: #4a4a4a; */
+  color: #191919;
+  font-size: 0.925rem;
   font-style: italic;
+  letter-spacing: -0.005em;
+  padding-bottom: 0.075rem;
 }
 
 .doc .admonitionblock .title + .paragraph {
 /* Other possible colors #248232 (dark green) #2ba84a (brighter green), #f7ef99 (soft yellow), #f78e69 (orangey-grayish) */
 .doc .exampleblock > .content {
   background-color: #fff;
-  box-shadow: inset 0 0 2px #2ba84a;
+  box-shadow: inset 0 0 1.75px #248232;
   padding: 0.75rem;
 }
 
   color: #8e8e8e;
   font-size: 0.75em;
   font-weight: 500;
-  letter-spacing: 0.1em;
+  letter-spacing: 0.075em;
   line-height: 1;
   text-transform: uppercase;
   position: absolute;