summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSarah White <graphitefriction@gmail.com>2018-02-09 13:12:36 -0700
committerDan Allen <dan@opendevise.com>2018-02-09 19:39:16 -0700
commit559ccf368d3aa9c6e41944cf363f26777ddd05b4 (patch)
treea551fbcee0b91364586e210e42dfcfbd44eb50a8 /src
parent2df6c74a025bb4f21bcaee803bf0a9ff86868010 (diff)
downloadalpine-antora-theme-559ccf368d3aa9c6e41944cf363f26777ddd05b4.tar.bz2
alpine-antora-theme-559ccf368d3aa9c6e41944cf363f26777ddd05b4.tar.xz
improve listing, admonition, example block titles
- set margin to 0 on pre - add example block content styles
Diffstat (limited to 'src')
-rw-r--r--src/css/doc.css19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/css/doc.css b/src/css/doc.css
index 10a28cd..60736a4 100644
--- a/src/css/doc.css
+++ b/src/css/doc.css
@@ -83,6 +83,7 @@
font-size: 0.9rem;
/* color: #000; */
line-height: 1.5;
+ margin: 0;
}
.doc pre:not(.highlight),
@@ -283,7 +284,7 @@
padding: 0.75em 1em;
}
-.doc .admonitionblock td.content > div[class] {
+.doc .admonitionblock td.content > :first-child {
margin: 0;
}
@@ -375,8 +376,20 @@
.doc .literalblock .title,
.doc .listingblock .title {
color: #4a4a4a;
- padding-bottom: 0.15rem;
- font-size: 0.85rem;
+ padding-bottom: 0.08rem;
+ font-size: 0.92rem;
+ font-style: italic;
+}
+
+.doc .admonitionblock .title + .paragraph {
+ margin-top: 0;
+}
+
+/* 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;
+ padding: 0.75rem;
}
/* NEEDS REVIEW prevent pre in table from causing article to exceed bounds */