Permalink
Browse files

add warn image

  • Loading branch information...
1 parent 86aa8a4 commit 640c84cb3ac00703270a5e1d14e4c428a3c6fce3 @MJIO MJIO committed May 6, 2011
Showing with 11 additions and 4 deletions.
  1. +9 −2 public/css/style.css
  2. BIN public/images/warn.png
  3. +2 −2 public/js/pimp.js
View
11 public/css/style.css
@@ -54,7 +54,7 @@ h1 {
#widgets li .header {
margin-top: 5px;
- padding: 5px 15px 7px 15px;
+ padding: 5px 15px 3px 15px;
background: -moz-linear-gradient(top, #fff, #e6e6e6);
background: -webkit-linear-gradient(#fff, #e6e6e6);
border-bottom: 1px solid #ccc;
@@ -65,8 +65,15 @@ h1 {
font-size: 20px;
color: #363636;
float: left;
- padding-top: 1px;
text-transform: capitalize;
+ height: 32px;
+ cursor: move;
+ padding-right: 35px;
+}
+
+#widgets li h2.warn {
+ color: #de1F00;
+ background: transparent url('../images/warn.png') 100% 20% no-repeat;
}
#widgets li .header .values {
View
BIN public/images/warn.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
4 public/js/pimp.js
@@ -28,9 +28,9 @@ $(function(){
};
if(warn){
- $('#' + json.name + ' h2').css('color', 'red');
+ $('#' + json.name + ' h2').addClass('warn');
} else {
- $('#' + json.name + ' h2').css('color', '');
+ $('#' + json.name + ' h2').removeClass('warn');
}
});

0 comments on commit 640c84c

Please sign in to comment.