Improve admonitions style in new docs
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 12 Apr 2017 11:26:44 +0000 (13:26 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 12 Apr 2017 11:29:07 +0000 (13:29 +0200)
Make admonitions (tip, note, caution, warning) style under XSLT more
similar to previous style.  Previously, tip and note were blockquotes
and caution and warning were tables.  Now everything is just a div.

media/css/docs.css

index dc8a0686d4025506575723daae45aa8a4399e0ed..6fb05b9705b5f03f8aab5db4748c1f89515a72a7 100644 (file)
@@ -362,6 +362,18 @@ blockquote.TIP code {
   box-shadow: none;
 }
 
+.caution,
+.warning {
+  max-width: 600px;
+}
+
+.tip h3,
+.note h3,
+.caution h3,
+.warning h3 {
+  text-align: center;
+}
+
 .emphasis,
 .c2 {
   font-weight: bold;
@@ -432,11 +444,13 @@ table.WARNING {
   max-width: 600px;
 }
 
+.caution,
 table.CAUTION {
   background-color: #F5F5DC;
   border-color: #DEDFA7;
 }
 
+.warning,
 table.WARNING {
   background-color: #FFD7D7;
   border-color: #DF421E;