This question has been flagged
2 Replies
11719 Views

I want to change the highlight color to green - where is the base class located so I can change it to green from red?

Avatar
Discard
Best Answer

add this code in the css file of your module

.openerp button.oe_highlight {    
  background-color: #0080FF;    
  background-image: -webkit-gradient(linear, left top, left bottom, from(#7A36D9), to(#7A36D9));    
  background-image: -webkit-linear-gradient(top, #7A36D9, #7A36D9);   
  background-image: -moz-linear-gradient(top, #7A36D9, #7A36D9);    
  background-image: -ms-linear-gradient(top, #7A36D9, #7A36D9);    
  background-image: -o-linear-gradient(top, #7A36D9, #7A36D9);    
  background-image: linear-gradient(to bottom, #7A36D9, #7A36D9);    
  -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(155, 155, 155, 0.4) inset;   
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(155, 155, 155, 0.4) inset;    
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(155, 155, 155, 0.4) inset;    
}

.openerp button.oe_highlight:hover {    
  background-color: #c63939;   
  background-image: -webkit-gradient(linear, left top, left bottom, from(#4436D9), to(#4436D9));  
  background-image: -webkit-linear-gradient(top, #4436D9, #4436D9);    
  background-image: -moz-linear-gradient(top, #4436D9, #4436D9);    
  background-image: -ms-linear-gradient(top, #4436D9, #4436D9);
  background-image: -o-linear-gradient(top, #4436D9, #4436D9);
  background-image: linear-gradient(to bottom, #4436D9, #4436D9);

}
Avatar
Discard
Author

thank you this is what I needed

Best Answer

You can create a css file, and edit like this .openerp button.oe_highlight, { background-image: linear-gradient(to bottom, rgb(1, 131, 1), rgb(1, 151, 1)); }

Avatar
Discard