From 285489814f6b72076a1757b766718e8f200a86d8 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Mon, 27 Nov 2017 16:12:14 +0100 Subject: glep.css: Format admonitions Closes: https://bugs.gentoo.org/638930 --- assets/css/glep.css | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) (limited to 'assets') 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: -- cgit v1.2.3-65-gdbad