various css improvements

bzr revid: mit@openerp.com-20120906145434-ysv62z8j0juyrthe
This commit is contained in:
Minh Tran
2012-09-06 16:54:34 +02:00
5 changed files with 105 additions and 89 deletions
+68 -54
View File
@@ -1,4 +1,4 @@
@charset "utf-8";
@charset "UTF-8";
@font-face {
font-family: "mnmliconsRegular";
src: url("/web/static/src/font/mnmliconsv21-webfont.eot") format("eot");
@@ -393,40 +393,38 @@
background: #dc5f59;
}
.openerp button.oe_highlight {
background-color: #dc5f59;
background-image: -webkit-gradient(linear, left top, left bottom, from(#dc5f59), to(#b33630));
background-image: -webkit-linear-gradient(top, #dc5f59, #b33630);
background-image: -moz-linear-gradient(top, #dc5f59, #b33630);
background-image: -ms-linear-gradient(top, #dc5f59, #b33630);
background-image: -o-linear-gradient(top, #dc5f59, #b33630);
background-image: linear-gradient(to bottom, #dc5f59, #b33630);
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}
.openerp button.oe_highlight:active {
background-color: #b33630;
background-image: -webkit-gradient(linear, left top, left bottom, from(#b33630), to(#dc5f59));
background-image: -webkit-linear-gradient(top, #b33630, #dc5f59);
background-image: -moz-linear-gradient(top, #b33630, #dc5f59);
background-image: -ms-linear-gradient(top, #b33630, #dc5f59);
background-image: -o-linear-gradient(top, #b33630, #dc5f59);
background-image: linear-gradient(to bottom, #b33630, #dc5f59);
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
border: 1px solid #795151;
background-color: #df3f3f;
background-image: -webkit-gradient(linear, left top, left bottom, from(#df3f3f), to(#a21a1a));
background-image: -webkit-linear-gradient(top, #df3f3f, #a21a1a);
background-image: -moz-linear-gradient(top, #df3f3f, #a21a1a);
background-image: -ms-linear-gradient(top, #df3f3f, #a21a1a);
background-image: -o-linear-gradient(top, #df3f3f, #a21a1a);
background-image: linear-gradient(to bottom, #df3f3f, #a21a1a);
-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: #df6b66;
background-image: -webkit-gradient(linear, left top, left bottom, from(#df6b66), to(#bf3a33));
background-image: -webkit-linear-gradient(top, #df6b66, #bf3a33);
background-image: -moz-linear-gradient(top, #df6b66, #bf3a33);
background-image: -ms-linear-gradient(top, #df6b66, #bf3a33);
background-image: -o-linear-gradient(top, #df6b66, #bf3a33);
background-image: linear-gradient(to bottom, #df6b66, #bf3a33);
-moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
background-color: #e25858;
background-image: -webkit-gradient(linear, left top, left bottom, from(#e25858), to(#ab1b1b));
background-image: -webkit-linear-gradient(top, #e25858, #ab1b1b);
background-image: -moz-linear-gradient(top, #e25858, #ab1b1b);
background-image: -ms-linear-gradient(top, #e25858, #ab1b1b);
background-image: -o-linear-gradient(top, #e25858, #ab1b1b);
background-image: linear-gradient(to bottom, #e25858, #ab1b1b);
}
.openerp button.oe_highlight:active {
background-color: #c52020;
background-image: -webkit-gradient(linear, left top, left bottom, from(#c52020), to(#d22323));
background-image: -webkit-linear-gradient(top, #c52020, #d22323);
background-image: -moz-linear-gradient(top, #c52020, #d22323);
background-image: -ms-linear-gradient(top, #c52020, #d22323);
background-image: -o-linear-gradient(top, #c52020, #d22323);
background-image: linear-gradient(to bottom, #c52020, #d22323);
}
.openerp .oe_background_grey {
background: #eeeeee !important;
}
.openerp .oe_form_dirty .oe_highlight_on_dirty {
color: white;
@@ -472,9 +470,9 @@
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
border: none;
margin-bottom: 10px;
}
@@ -864,9 +862,9 @@
font-family: "Lucida Grande", Helvetica, Verdana, Arial;
border: 1px solid #999999;
background: whitesmoke;
-moz-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
-webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
-moz-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4);
-webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4);
box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4);
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
@@ -1234,24 +1232,25 @@
.openerp .oe_secondary_submenu .oe_menu_counter {
float: right;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
margin: 0px;
margin: 1px;
padding: 1px 4px;
border: none;
}
.openerp .oe_secondary_submenu .oe_menu_counter:hover {
cursor: pointer;
border: 1px solid #c81010;
-moz-box-shadow: 0 0 2px #c81010;
-webkit-box-shadow: 0 0 2px #c81010;
box-shadow: 0 0 2px #c81010;
-moz-transform: scale(1.1);
-webkit-transform: scale(1.1);
-o-transform: scale(1.1);
-ms-transform: scale(1.1);
}
.openerp .oe_secondary_submenu .oe_active {
background: #7c7bad;
border-top: 1px solid lightGray;
border-bottom: 1px solid lightGray;
border-bottom: 1px solid #dedede;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2);
-moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 -1px 3px rgba(40, 40, 40, 0.2);
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 -1px 3px rgba(40, 40, 40, 0.2);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 -1px 3px rgba(40, 40, 40, 0.2);
background: #7c7bad;
}
.openerp .oe_secondary_submenu .oe_active a {
color: white;
@@ -1267,6 +1266,9 @@
.openerp .oe_secondary_submenu .oe_active .oe_menu_counter {
background: #eeeeee;
color: #7c7bad;
-moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
.openerp .oe_secondary_submenu .oe_menu_toggler:before {
width: 0;
@@ -2005,6 +2007,7 @@
.openerp .oe_form header {
position: relative;
border-bottom: 1px solid #cacaca;
padding-left: 2px;
background-color: #fcfcfc;
background-image: -webkit-gradient(linear, left top, left bottom, from(#fcfcfc), to(#dedede));
background-image: -webkit-linear-gradient(top, #fcfcfc, #dedede);
@@ -2017,6 +2020,9 @@
display: inline-block;
float: right;
}
.openerp .oe_form header .oe_form_button {
margin: 3px 2px 1px;
}
.openerp .oe_form div.oe_chatter {
min-width: 650px;
max-width: 860px;
@@ -2036,7 +2042,7 @@
min-width: 150px;
}
.openerp .oe_form div.oe_form_configuration .oe_form_group_cell_label {
padding: 2px 0;
padding: 1px 0;
}
.openerp .oe_form div.oe_form_configuration .oe_form_group_cell div div {
padding: 1px 0;
@@ -2201,7 +2207,7 @@
}
.openerp .oe_form td.oe_form_group_cell_label {
border-right: 1px solid #dddddd;
padding: 4px 0px 4px 0px;
padding: 2px 0px;
}
.openerp .oe_form td.oe_form_group_cell_label label {
line-height: 18px;
@@ -2209,7 +2215,7 @@
min-width: 140px;
}
.openerp .oe_form td.oe_form_group_cell + .oe_form_group_cell {
padding-left: 6px;
padding: 2px 0 2px 8px;
}
.openerp .oe_form .oe_form_group {
width: 100%;
@@ -2221,7 +2227,7 @@
.openerp .oe_form .oe_form_label_help[for], .openerp .oe_form .oe_form_label[for] {
font-weight: bold;
white-space: nowrap;
padding-right: 6px;
padding-right: 8px;
}
.openerp .oe_form .oe_form_label_help[for] span, .openerp .oe_form .oe_form_label[for] span {
font-size: 80%;
@@ -2297,7 +2303,6 @@
width: 100%;
display: inline-block;
padding: 2px 2px 2px 0px;
line-height: 1em;
}
.openerp .oe_form .oe_form_field input {
margin: 0px;
@@ -2595,6 +2600,15 @@
margin: 0 !important;
padding: 0;
}
.openerp .oe_list .oe_list_content .oe_group_header {
background-color: #fcfcfc;
background-image: -webkit-gradient(linear, left top, left bottom, from(#fcfcfc), to(#dedede));
background-image: -webkit-linear-gradient(top, #fcfcfc, #dedede);
background-image: -moz-linear-gradient(top, #fcfcfc, #dedede);
background-image: -ms-linear-gradient(top, #fcfcfc, #dedede);
background-image: -o-linear-gradient(top, #fcfcfc, #dedede);
background-image: linear-gradient(to bottom, #fcfcfc, #dedede);
}
.openerp .oe_list_content {
width: 100%;
}
+27 -21
View File
@@ -379,15 +379,15 @@ $sheet-max-width: 860px
color: white
background: #DC5F59
button.oe_highlight
@include vertical-gradient(#dc5f59, #b33630)
@include box-shadow(none)
button.oe_highlight:active
@include vertical-gradient(#b33630, #dc5f59)
@include box-shadow(none)
border: 1px solid #795151
@include vertical-gradient(#df3f3f, #a21a1a)
@include box-shadow((0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(155, 155, 155, 0.4) inset))
button.oe_highlight:hover
@include vertical-gradient(#DF6B66, #BF3A33)
//@include vertical-gradient(lighten(#dc5f59, 3%), lighten(#b33630, 3%))
@include box-shadow(0 0 1px rgba(0, 0, 0, 0.2))
@include vertical-gradient(lighten(#e04f4f, 2%), lighten(#a21a1a, 2%))
button.oe_highlight:active
@include vertical-gradient(lighten(#a21a1a, 8%), darken(#df3f3f, 8%))
.oe_background_grey
background: #eee !important
.oe_form_dirty
.oe_highlight_on_dirty
@@ -418,7 +418,7 @@ $sheet-max-width: 860px
max-height: 90px
max-width: 90px
@include radius(3px)
@include box-shadow(0 1px 3px rgba(0, 0, 0, 0.3))
@include box-shadow(0 1px 4px rgba(0, 0, 0, 0.4))
border: none
margin-bottom: 10px
.oe_avatar + div
@@ -689,7 +689,7 @@ $sheet-max-width: 860px
font-family: "Lucida Grande", Helvetica, Verdana, Arial
border: 1px solid #999999
background: whitesmoke
@include box-shadow(inset 0 1px 4px rgba(0, 0, 0, 0.3))
@include box-shadow(inset 0 1px 4px rgba(0, 0, 0, 0.4))
@include radius(3px)
input
margin-bottom: 9px
@@ -948,18 +948,18 @@ $sheet-max-width: 860px
.oe_menu_counter
float: right
text-shadow: 0 1px 1px rgba(0,0,0,0.2)
margin: 0px
margin: 1px
padding: 1px 4px
border: none
&:hover
cursor: pointer
border: 1px solid #C81010
@include box-shadow(0 0 2px #C81010)
@include transform(scale(1.1))
.oe_active
background: $link-color
border-top: 1px solid lightGray
border-bottom: 1px solid lightGray
border-bottom: 1px solid #dedede
text-shadow: 0 1px 1px rgba(0,0,0,0.2)
@include box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.2))
@include box-shadow((inset 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 -1px 3px rgba(40, 40, 40, 0.2)))
background: $link-color
a
color: white
.oe_menu_label
@@ -970,6 +970,7 @@ $sheet-max-width: 860px
.oe_menu_counter
background: #eee
color: $link-color
@include box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.2))
.oe_menu_toggler:before
width: 0
height: 0
@@ -1545,10 +1546,13 @@ $sheet-max-width: 860px
header
position: relative
border-bottom: 1px solid #cacaca
padding-left: 2px
@include vertical-gradient(#fcfcfc, #dedede)
ul
display: inline-block
float: right
.oe_form_button
margin: 3px 2px 1px
div.oe_chatter
min-width: 650px
max-width: $sheet-max-width
@@ -1565,7 +1569,7 @@ $sheet-max-width: 860px
label
min-width: 150px
.oe_form_group_cell_label
padding: 2px 0
padding: 1px 0
.oe_form_group_cell div div
padding: 1px 0
ul.oe_form_steps, ul.oe_form_steps_clickable
@@ -1661,13 +1665,13 @@ $sheet-max-width: 860px
margin: 2px
td.oe_form_group_cell_label
border-right: 1px solid #ddd
padding: 4px 0px 4px 0px
padding: 2px 0px
label
line-height: 18px
display: block
min-width: 140px
td.oe_form_group_cell + .oe_form_group_cell
padding-left: 6px
padding: 2px 0 2px 8px
.oe_form_group
width: 100%
margin: 9px 0 9px 0
@@ -1679,7 +1683,7 @@ $sheet-max-width: 860px
.oe_form_label_help[for], .oe_form_label[for]
font-weight: bold
white-space: nowrap
padding-right: 6px
padding-right: 8px
span
font-size: 80%
color: darkGreen
@@ -1742,7 +1746,6 @@ $sheet-max-width: 860px
width: 100%
display: inline-block
padding: 2px 2px 2px 0px
line-height: 1em
input
margin: 0px
input[type="text"], input[type="password"], input[type="file"], select
@@ -1991,6 +1994,8 @@ $sheet-max-width: 860px
position: absolute
margin: 0 !important // dammit
padding: 0
.oe_list_content .oe_group_header
@include vertical-gradient(#fcfcfc, #dedede)
.oe_list_content
width: 100%
@@ -2050,6 +2055,7 @@ $sheet-max-width: 860px
> tr:nth-child(odd)
background-color: #f0f0fa
@include vertical-gradient(#f0f0fa, #eeeef6)
> tfoot
border-top: 2px solid #cacaca
border-bottom: 1px solid #cacaca
+1 -1
View File
@@ -1265,7 +1265,7 @@ instance.web.ListView.Groups = instance.web.Class.extend( /** @lends instance.we
self.bind_child_events(child);
child.datagroup = group;
var $row = child.$row = $('<tr>');
var $row = child.$row = $('<tr class="oe_group_header">');
if (group.openable && group.length) {
$row.click(function (e) {
if (!$row.data('open')) {
+5 -8
View File
@@ -1,4 +1,5 @@
.openerp .oe_kanban_view {
background: white;
height: inherit;
}
.openerp .oe_kanban_view.oe_kanban_grouped .oe_kanban_dummy_cell {
@@ -229,7 +230,6 @@
margin-bottom: 5px;
}
.openerp .oe_kanban_view .oe_kanban_box_header {
background: #eeeeee;
border-bottom: 1px solid #cccccc;
}
.openerp .oe_kanban_view .oe_kanban_title {
@@ -248,9 +248,6 @@
.openerp .oe_kanban_view.oe_kanban_grouped .oe_kanban_show_more .oe_button {
width: 100%;
}
.openerp .oe_kanban_view.oe_kanban_ungrouped .oe_kanban_column {
background: white;
}
.openerp .oe_kanban_view.oe_kanban_ungrouped .oe_kanban_column .oe_kanban_record {
float: left;
padding: 2px;
@@ -265,6 +262,9 @@
.openerp .oe_kanban_view .oe_kanban_action_a {
text-decoration: none;
}
.openerp .oe_kanban_view .oe_kanban_action_a:hover {
text-decoration: none;
}
.openerp .oe_kanban_view .oe_kanban_table {
width: 100%;
border: none;
@@ -340,15 +340,12 @@
background: white;
border: 1px solid #d8d8d8;
border-bottom-color: #b9b9b9;
padding: 6px;
padding: 8px;
display: block;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
}
.openerp .oe_kanban_view .oe_kanban_card:last-child {
margin-bottom: 0;
}
.openerp .oe_kanban_view .oe_kanban_card:hover {
border: 1px solid #7c7bad;
-moz-box-shadow: 0 0 4px #7c7bad;
+4 -5
View File
@@ -37,6 +37,7 @@
.openerp .oe_kanban_view
// KanbanView {{{
//background: url(data:image/pngbase64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAKElEQVQIHWP8DwTv379nAAFBQUEGhnfv3oHEwADEZgJLIRGMIClkLQCr3x2Htp/lLwAAAABJRU5ErkJggg==)
background: white
height: inherit
&.oe_kanban_grouped .oe_kanban_dummy_cell
background: url(/web/static/src/img/form_sheetbg.png)
@@ -219,7 +220,6 @@
-webkit-border-radius: 4px
margin-bottom: 5px
.oe_kanban_box_header
background: #EEE
border-bottom: 1px solid #CCC
.oe_kanban_title
font-size: 95%
@@ -234,7 +234,6 @@
&.oe_kanban_grouped .oe_kanban_show_more .oe_button
width: 100%
&.oe_kanban_ungrouped .oe_kanban_column
background: white
.oe_kanban_record
float: left
padding: 2px
@@ -246,6 +245,8 @@
margin: 0
.oe_kanban_action_a
text-decoration: none
&:hover
text-decoration: none
.oe_kanban_table
width: 100%
border: none
@@ -307,11 +308,9 @@
background: white
border: 1px solid #d8d8d8
border-bottom-color: #b9b9b9
padding: 6px
padding: 8px
display: block
@include radius(4px)
&:last-child
margin-bottom: 0
&:hover
border: 1px solid #7C7BAD
@include box-shadow(0 0 4px #7C7BAD)