From 5fbf237ab7c2662dd05f2b2035eeb49215461489 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Tue, 9 Oct 2007 12:08:46 +0000 Subject: [PATCH] added style for success message boxes --- .../darkblue_orange/css/theme_right.css.php | 93 +++++++++--------- themes/darkblue_orange/img/s_success.png | Bin 0 -> 612 bytes themes/original/css/theme_right.css.php | 91 ++++++++--------- themes/original/img/s_success.png | Bin 0 -> 612 bytes 4 files changed, 94 insertions(+), 90 deletions(-) create mode 100644 themes/darkblue_orange/img/s_success.png create mode 100644 themes/original/img/s_success.png diff --git a/themes/darkblue_orange/css/theme_right.css.php b/themes/darkblue_orange/css/theme_right.css.php index ffc25d989..f21f80a3a 100644 --- a/themes/darkblue_orange/css/theme_right.css.php +++ b/themes/darkblue_orange/css/theme_right.css.php @@ -370,17 +370,24 @@ td .icon { } /* message boxes: warning, error, confirmation */ -.notice { - color: #000000; - background-color: #FFFFDD; +.success h1, +.notice h1, +.warning h1, +div.error h1 { + border-bottom: 2px solid; + font-weight: bold; + text-align: ; + margin: 0 0 0.2em 0; } -h1.notice, -div.notice { - margin: 0.5em 0 0.5em 0; - border: 0.1em solid #FFD700; + +div.success, +div.notice, +div.warning, +div.error { + margin: 0.3em 0 0.3em 0; + border: 2px solid; width: 90%; - background-image: url(getImgPath(); ?>s_notice.png); background-repeat: no-repeat; background-position: 10px 50%; @@ -393,11 +400,35 @@ div.notice { padding: 0.5em; } + +.success { + color: #000000; + background-color: #f0fff0; +} +h1.success, +div.success { + border-color: #00FF00; + + background-image: url(getImgPath(); ?>s_success.png); + +} +.success h1 { + border-color: #00FF00; +} + +.notice { + color: #000000; + background-color: #FFFFDD; +} +h1.notice, +div.notice { + border-color: #FFD700; + + background-image: url(getImgPath(); ?>s_notice.png); + +} .notice h1 { - border-bottom: 0.1em solid #FFD700; - font-weight: bold; - text-align: ; - margin: 0 0 0.2em 0; + border-color: #FFD700; } .warning { @@ -407,28 +438,13 @@ div.notice { p.warning, h1.warning, div.warning { - margin: 0.5em 0 0.5em 0; - border: 0.1em solid #CC0000; - width: 90%; + border-color: #CC0000; background-image: url(getImgPath(); ?>s_warn.png); - background-repeat: no-repeat; - - background-position: 10px 50%; - padding: 10px 10px 10px 36px; - - background-position: 99% 50%; - padding: 10px 5% 10px 10px; - - - padding: 0.5em; } .warning h1 { - border-bottom: 0.1em solid #cc0000; - font-weight: bold; - text-align: ; - margin: 0 0 0.2em 0; + border-color: #cc0000; } .error { @@ -438,28 +454,13 @@ div.warning { h1.error, div.error { - margin: 0.5em 0 0.5em 0; - border: 0.1em solid #ff0000; - width: 90%; + border-color: #ff0000; background-image: url(getImgPath(); ?>s_error.png); - background-repeat: no-repeat; - - background-position: 10px 50%; - padding: 10px 10px 10px 36px; - - background-position: 99% 50%; - padding: 10px 5% 10px 10px; - - - padding: 0.5em; } div.error h1 { - border-bottom: 0.1em solid #ff0000; - font-weight: bold; - text-align: ; - margin: 0 0 0.2em 0; + border-color: #ff0000; } .confirmation { diff --git a/themes/darkblue_orange/img/s_success.png b/themes/darkblue_orange/img/s_success.png new file mode 100644 index 0000000000000000000000000000000000000000..2f86f0ae6bb797bf29700cb1d0d93e5e30a4e72b GIT binary patch literal 612 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4mJh`2Kmqb6B!tov^`xMLo9liPKxyiPLw$Q z|NXgpkIz~DwusIWbV)Ml`6lRft)u72E^ieL?w8D$c6A=$c(tm3cHX2HPF*M3%qF#T zP1N-+E?sz-Uq^GcS&2!@mNllO+xV@kcTaFRm2*{o-t6ZOzsLOfDR@lcpZco(tSwQC z{yk@3G}+_Rij}uZ0`g|Y8y&kO^^k4J)AT3*z8wrJJFs*5%Cd)w$vi4^`C77Fj9OCe zuRYwmt!0H|iaR#{6;@A-XLBo3*Am*xomgu-(WvchY<8+S8+}gl1dSc#xt}ea0Y=zL#CF+kN3&S@D3vIP6@wgsY{AAPGpPy}c zE?pN8w)!#KNm*s;CbfAREEo#9eAbCiwcxVnc;Bfb6*ytK|L;A_PdP5GDxR8tR{yar zM?wAqAHgry%#M2A8;`v|bCBVgm&hp-|IcOXZ)NFk`TTQN?}C>0Mk&J;dk%5jOZs)1 zXWrEk_Mg6<-al3dMcRXnEwjm2)0Wj@LHz=G^uosNCbrI?MgL*7wB<{!4k0&wu>U?@X(%; + margin: 0 0 0.2em 0; } -h1.notice, -div.notice { - margin: 0.5em 0 0.5em 0; - border: 0.1em solid #FFD700; + +div.success, +div.notice, +div.warning, +div.error { + margin: 0.3em 0 0.3em 0; + border: 2px solid; - background-image: url(getImgPath(); ?>s_notice.png); background-repeat: no-repeat; background-position: 10px 50%; @@ -370,11 +377,35 @@ div.notice { padding: 0.5em; } + +.success { + color: #000000; + background-color: #f0fff0; +} +h1.success, +div.success { + border-color: #00FF00; + + background-image: url(getImgPath(); ?>s_success.png); + +} +.success h1 { + border-color: #00FF00; +} + +.notice { + color: #000000; + background-color: #FFFFDD; +} +h1.notice, +div.notice { + border-color: #FFD700; + + background-image: url(getImgPath(); ?>s_notice.png); + +} .notice h1 { - border-bottom: 0.1em solid #FFD700; - font-weight: bold; - text-align: ; - margin: 0 0 0.2em 0; + border-color: #FFD700; } .warning { @@ -384,27 +415,13 @@ div.notice { p.warning, h1.warning, div.warning { - margin: 0.5em 0 0.5em 0; - border: 0.1em solid #CC0000; + border-color: #CC0000; background-image: url(getImgPath(); ?>s_warn.png); - background-repeat: no-repeat; - - background-position: 10px 50%; - padding: 10px 10px 10px 36px; - - background-position: 99% 50%; - padding: 10px 5% 10px 10px; - - - padding: 0.5em; } .warning h1 { - border-bottom: 0.1em solid #cc0000; - font-weight: bold; - text-align: ; - margin: 0 0 0.2em 0; + border-color: #cc0000; } .error { @@ -414,27 +431,13 @@ div.warning { h1.error, div.error { - margin: 0.5em 0 0.5em 0; - border: 0.1em solid #ff0000; + border-color: #ff0000; background-image: url(getImgPath(); ?>s_error.png); - background-repeat: no-repeat; - - background-position: 10px 50%; - padding: 10px 10px 10px 36px; - - background-position: 99% 50%; - padding: 10px 5% 10px 10px; - - - padding: 0.5em; } div.error h1 { - border-bottom: 0.1em solid #ff0000; - font-weight: bold; - text-align: ; - margin: 0 0 0.2em 0; + border-color: #ff0000; } .confirmation { diff --git a/themes/original/img/s_success.png b/themes/original/img/s_success.png new file mode 100644 index 0000000000000000000000000000000000000000..2f86f0ae6bb797bf29700cb1d0d93e5e30a4e72b GIT binary patch literal 612 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4mJh`2Kmqb6B!tov^`xMLo9liPKxyiPLw$Q z|NXgpkIz~DwusIWbV)Ml`6lRft)u72E^ieL?w8D$c6A=$c(tm3cHX2HPF*M3%qF#T zP1N-+E?sz-Uq^GcS&2!@mNllO+xV@kcTaFRm2*{o-t6ZOzsLOfDR@lcpZco(tSwQC z{yk@3G}+_Rij}uZ0`g|Y8y&kO^^k4J)AT3*z8wrJJFs*5%Cd)w$vi4^`C77Fj9OCe zuRYwmt!0H|iaR#{6;@A-XLBo3*Am*xomgu-(WvchY<8+S8+}gl1dSc#xt}ea0Y=zL#CF+kN3&S@D3vIP6@wgsY{AAPGpPy}c zE?pN8w)!#KNm*s;CbfAREEo#9eAbCiwcxVnc;Bfb6*ytK|L;A_PdP5GDxR8tR{yar zM?wAqAHgry%#M2A8;`v|bCBVgm&hp-|IcOXZ)NFk`TTQN?}C>0Mk&J;dk%5jOZs)1 zXWrEk_Mg6<-al3dMcRXnEwjm2)0Wj@LHz=G^uosNCbrI?MgL*7wB<{!4k0&wu>U?@X(%