[Fusionforge-commits] r10312 - in trunk/src/www/themes/gforge: . css
Franck VILLAUME
nerville at libremir.placard.fr.eu.org
Tue Aug 10 10:32:01 CEST 2010
Author: nerville
Date: 2010-08-10 10:32:01 +0200 (Tue, 10 Aug 2010)
New Revision: 10312
Modified:
trunk/src/www/themes/gforge/Theme.class.php
trunk/src/www/themes/gforge/css/theme.css
Log:
fix warning_msg, error_msg & feedback css class
Modified: trunk/src/www/themes/gforge/Theme.class.php
===================================================================
--- trunk/src/www/themes/gforge/Theme.class.php 2010-08-09 12:50:11 UTC (rev 10311)
+++ trunk/src/www/themes/gforge/Theme.class.php 2010-08-10 08:32:01 UTC (rev 10312)
@@ -381,21 +381,6 @@
}
/**
- * feedback() - returns the htmlized feedback string when an action is performed.
- *
- * @param string feedback string
- * @return string htmlized feedback
- */
- function feedback($feedback) {
- if (!$feedback) {
- return '';
- } else {
- return '
- <h3 style="color:red">'.strip_tags($feedback, '<br>').'</h3>';
- }
- }
-
- /**
* getThemeIdFromName()
*
* @param string the dirname of the theme
Modified: trunk/src/www/themes/gforge/css/theme.css
===================================================================
--- trunk/src/www/themes/gforge/css/theme.css 2010-08-09 12:50:11 UTC (rev 10311)
+++ trunk/src/www/themes/gforge/css/theme.css 2010-08-10 08:32:01 UTC (rev 10312)
@@ -285,3 +285,41 @@
#ft {
text-align:center;
}
+
+/* error_msg, warning_msg or feedback function
+----------------------------------------------- */
+.error {
+ font-weight: bold;
+ border-width: 2px;
+ border-style: solid;
+ background-color: #ff4940; /* red */
+ border-color: red; /* red */
+ padding: 0.5em;
+ border-radius: 3px;
+ -webkit-border-radius: 3px;
+ -moz-border-radius: 3px;
+}
+
+.warning {
+ font-weight: bold;
+ border-width: 2px;
+ border-style: solid;
+ background-color: #ffd297; /* orange */
+ border-color: #ffa500; /* orange */
+ padding: 0.5em;
+ border-radius: 3px;
+ -webkit-border-radius: 3px;
+ -moz-border-radius: 3px;
+}
+
+.feedback {
+ font-weight: bold;
+ border-width: 2px;
+ border-style: solid;
+ background-color: #aef26d; /* green */
+ border-color: green; /* green */
+ padding: 0.5em;
+ border-radius: 3px;
+ -webkit-border-radius: 3px;
+ -moz-border-radius: 3px;
+}
More information about the Fusionforge-commits
mailing list