aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-11-27 16:12:14 +0100
committerMichał Górny <mgorny@gentoo.org>2017-11-27 16:12:14 +0100
commit285489814f6b72076a1757b766718e8f200a86d8 (patch)
treeb8467feb4f271f4f9a6041b324a2b9dedd589794 /assets
parentglep: Account for different list classes in CSS (diff)
downloadwww-285489814f6b72076a1757b766718e8f200a86d8.tar.gz
www-285489814f6b72076a1757b766718e8f200a86d8.tar.bz2
www-285489814f6b72076a1757b766718e8f200a86d8.zip
glep.css: Format admonitions
Closes: https://bugs.gentoo.org/638930
Diffstat (limited to 'assets')
-rw-r--r--assets/css/glep.css65
1 files changed, 65 insertions, 0 deletions
diff --git a/assets/css/glep.css b/assets/css/glep.css
index 3547270..84b3238 100644
--- a/assets/css/glep.css
+++ b/assets/css/glep.css
@@ -15,6 +15,71 @@
font-size: 14px;
}
+/* based on .alert* from Bootstrap (MIT-license)
+Copyright (c) 2011-2016 Twitter, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+*/
+
+.admonition {
+ padding: 15px;
+ margin-bottom: 1em;
+ border: 1px solid black;
+ border-radius: 4px;
+}
+
+.admonition-title {
+ font-weight: bold;
+}
+
+.admonition > p {
+ margin-bottom: 0;
+}
+
+.admonition > p+p {
+ margin-top: 5px;
+}
+
+.tip, .hint {
+ color: #3c763d;
+ background-color: #dff0d8;
+ border-color: #d6e9c6;
+}
+
+.note {
+ color: #31708f;
+ background-color: #d9edf7;
+ border-color: #bce8f1;
+}
+
+.attention, .caution, .warning, .important {
+ color: #8a6d3b;
+ background-color: #fcf8e3;
+ border-color: #faebcc;
+}
+
+.danger, .error {
+ color: #a94442;
+ background-color: #f2dede;
+ border-color: #ebccd1;
+}
+
/*
the following bits are copied from: