Add CSS for attention, caution, danger, error, warning, important, hint, note, tip.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 21 Dec 2015 12:37:21 +0200
changeset 1837 422610dafebe
parent 1836 4864231db031
child 1838 031c61d1a8bd
Add CSS for attention, caution, danger, error, warning, important, hint, note, tip.
rst.css
--- a/rst.css	Mon Dec 21 10:31:55 2015 +0200
+++ b/rst.css	Mon Dec 21 12:37:21 2015 +0200
@@ -65,3 +65,24 @@
 pre.code span.generic.output {
     color: gray;
 }
+
+.attention, .caution, .danger, .error, .warning, .important, .hint, .note, .tip {
+    padding: 0px;
+    margin: 5px 0px;
+}
+.hint, .note, .tip { border: green 1px solid; }
+.warning, .important { border: gold 1px solid; }
+.attention, .caution, .danger, .error { border: red 1px solid; }
+.attention p.first, .caution p.first, .danger p.first, .error p.first, .warning p.first, .important p.first, .hint p.first, .note p.first, .tip p.first {
+    margin: 0px;
+    padding: 5px 0px;
+}
+.hint p.first, .note p.first, .tip p.first { background: rgb(176, 255, 176); }
+.warning p.first, .important p.first { background: rgb(255, 233, 176); }
+.attention p.first, .caution p.first, .danger p.first, .error p.first { background: rgb(255, 196, 180); }
+.attention p, .caution p, .danger p, .error p, .warning p, .important p, .hint p, .note p, .tip p {
+    margin: 5px;
+}
+.attention pre, .caution pre, .danger pre, .error pre, .warning pre, .important pre, .hint pre, .note pre, .tip pre {
+    margin: 0 5px 5px 4em;
+}