diff options
author | Olivier DOSSMANN <git@dossmann.net> | 2017-06-25 21:08:58 +0300 |
---|---|---|
committer | Olivier DOSSMANN <git@dossmann.net> | 2017-06-25 21:08:58 +0300 |
commit | f3b4fd10eafc7ee68c4b27ec7d7e437044876f00 (patch) | |
tree | 705e3a251c5c5eeb41bc3b640be94661d6651296 /static | |
parent | 445c3088093fc498cdb1b07b82d376de1e8d97b3 (diff) |
New 'note' shortcode with 4 specific display:
* warning (red)
* important (yellow)
* tip (green)
* normal (blue)
Diffstat (limited to 'static')
-rw-r--r-- | static/css/main.css | 36 | ||||
-rw-r--r-- | static/img/important.png | bin | 0 -> 2250 bytes | |||
-rw-r--r-- | static/img/note.png | bin | 0 -> 2520 bytes | |||
-rw-r--r-- | static/img/tip.png | bin | 0 -> 2909 bytes | |||
-rw-r--r-- | static/img/warning.png | bin | 0 -> 3249 bytes |
5 files changed, 36 insertions, 0 deletions
diff --git a/static/css/main.css b/static/css/main.css index 70b1cd3..dbe2d78 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -25,3 +25,39 @@ a.internal { color: #080; text-decoration: none; } + +div.note { + margin: 2em; + border-radius: 20px; + text-align: justify; + vertical-align: middle; + border-collapse: collapse; + margin-left: auto; + margin-right: auto; + width: 70% !important; + min-height: 40px; + clear: both; + padding: 15px 20px 15px 80px; + background-position: 20px 50%; + background-repeat: no-repeat; +} + +div.warning { + background-color: #fdd; + background-image: url("/img/warning.png"); +} + +div.important { + background-color: #ffc; + background-image: url("/img/important.png"); +} + +div.tip { + background-color: #dfd; + background-image: url("/img/tip.png"); +} + +div.normal { + background-color: #eef; + background-image: url("/img/note.png"); +} diff --git a/static/img/important.png b/static/img/important.png Binary files differnew file mode 100644 index 0000000..dc8c8a4 --- /dev/null +++ b/static/img/important.png diff --git a/static/img/note.png b/static/img/note.png Binary files differnew file mode 100644 index 0000000..df1e0a9 --- /dev/null +++ b/static/img/note.png diff --git a/static/img/tip.png b/static/img/tip.png Binary files differnew file mode 100644 index 0000000..2000f20 --- /dev/null +++ b/static/img/tip.png diff --git a/static/img/warning.png b/static/img/warning.png Binary files differnew file mode 100644 index 0000000..3c8a37d --- /dev/null +++ b/static/img/warning.png |