diff options
| author | Vidhin Mehta <vme@tinyerp.com> | 2013-04-19 12:18:02 +0530 |
|---|---|---|
| committer | Vidhin Mehta <vme@tinyerp.com> | 2013-04-19 12:18:02 +0530 |
| commit | 46cdb5d3358f4cde796c566dbea581e005735cad (patch) | |
| tree | ad34d5fbb4ac628f294da3093a4f744fb8690e0c /addons/web/static/src/css | |
| parent | 7246f41f4be65eaddace08d692f65c9a74579b14 (diff) | |
| parent | 356be95d0c82438683fb25318ebb0c18ea9f9c66 (diff) | |
[MERGE]Trunk.
bzr revid: vme@tinyerp.com-20130419064802-vg9zkgdba6b6zsp4
Diffstat (limited to 'addons/web/static/src/css')
| -rw-r--r-- | addons/web/static/src/css/base.css | 120 | ||||
| -rw-r--r-- | addons/web/static/src/css/base.sass | 92 |
2 files changed, 196 insertions, 16 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 58a92cc1280..2dab643e931 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -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"); @@ -355,6 +355,12 @@ float: right; margin-left: 8px; } +.openerp .oe_text_center { + text-align: center; +} +.openerp .oe_text_left { + text-align: left; +} .openerp .oe_text_right { text-align: right; } @@ -1242,8 +1248,6 @@ .openerp .oe_secondary_submenu { padding: 2px 0 8px 0; margin: 0; - width: 220px; - display: inline-block; } .openerp .oe_secondary_submenu li { position: relative; @@ -1265,7 +1269,7 @@ color: white; padding: 2px 4px; margin: 1px 6px 0 0; - border: 1px solid lightgrey; + border: 1px solid lightGray; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -moz-border-radius: 4px; -webkit-border-radius: 4px; @@ -1297,7 +1301,7 @@ transform: scale(1.1); } .openerp .oe_secondary_submenu .oe_active { - border-top: 1px solid lightgrey; + border-top: 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 3px rgba(0, 0, 0, 0.2), inset 0 -1px 3px rgba(40, 40, 40, 0.2); @@ -1417,7 +1421,13 @@ display: inline-block; overflow: hidden; } +.openerp .oe_view_manager { + display: table; + height: inherit; + width: 100%; +} .openerp .oe_view_manager .oe_view_manager_body { + display: table-row; height: inherit; } .openerp .oe_view_manager .oe_view_manager_view_kanban { @@ -1805,7 +1815,7 @@ } .openerp .oe_searchview .oe_searchview_drawer { position: absolute; - z-index: 100; + z-index: 2; margin-top: 4px; top: 100%; right: -1px; @@ -2098,6 +2108,9 @@ .openerp .oe_form_invisible { display: none !important; } +.openerp .oe_form_editable .oe_read_only { + display: none !important; +} .openerp .oe_form_readonly .oe_edit_only, .openerp .oe_form_readonly .oe_form_field:empty { display: none !important; } @@ -2227,6 +2240,26 @@ .openerp .oe_form .oe_subtotal_footer label.oe_form_label_help { font-weight: normal; } +.openerp .oe_form .oe_form_box_info { + background: #ffee99; + border-bottom: 1px solid #ccbb66; + padding: 4px; +} +.openerp .oe_form .oe_form_box_info > p { + margin: auto; +} +.openerp .oe_form .oe_form_box_warning { + background: #bd362f; + border-bottom: 1px solid #990000; + padding: 4px; +} +.openerp .oe_form .oe_form_box_warning * { + color: white; + text-shadow: none; +} +.openerp .oe_form .oe_form_box_warning > p { + margin: auto; +} .openerp .oe_form .oe_form_button { margin: 2px; } @@ -2256,7 +2289,7 @@ } .openerp .oe_form .oe_form_label_help[for] span, .openerp .oe_form .oe_form_label[for] span { font-size: 80%; - color: darkgreen; + color: darkGreen; vertical-align: top; position: relative; top: -4px; @@ -2282,6 +2315,30 @@ display: inline-block; min-width: 70px; } +.openerp .oe_form_field_radio.oe_horizontal { + white-space: nowrap; +} +.openerp .oe_form_field_radio.oe_form_required .oe_radio_input { + border: 1px solid transparent; + display: inline-block; + height: 12px; + width: 12px; + vertical-align: bottom; + border-radius: 10px; + margin: 1px 0; +} +.openerp .oe_form_field_radio.oe_form_required.oe_form_invalid .oe_radio_input { + border-color: red; +} +.openerp .oe_form_field_radio.oe_horizontal label, +.openerp .oe_form_field_radio.oe_horizontal div { + display: inline-block; + text-align: center; + height: 16px; +} +.openerp .oe_form_field_radio.oe_vertical label { + margin-left: 4px; +} .openerp .oe_form_field_progressbar.ui-progressbar { height: 22px; font-size: 10px; @@ -2307,6 +2364,13 @@ .openerp .oe_form .oe_form_field_text { width: 100%; } +.openerp .oe_form .oe_form_field_text .oe_form_text_content { + text-overflow: ellipsis; + display: inline-block; + white-space: pre-wrap; + overflow-x: hidden; + width: 100%; +} .openerp .oe_form .oe_form_field_char input, .openerp .oe_form .oe_form_field_url input, .openerp .oe_form .oe_form_field_email input, @@ -2328,6 +2392,7 @@ width: 100%; display: inline-block; padding: 2px 2px 2px 0px; + vertical-align: top; } .openerp .oe_form .oe_form_field input { margin: 0px; @@ -2344,6 +2409,7 @@ background: white; min-width: 60px; color: #1f1f1f; + font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif; } .openerp .oe_form input[readonly], .openerp .oe_form select[readonly], .openerp .oe_form textarea[readonly], .openerp .oe_form input[disabled], .openerp .oe_form select[disabled] { background: #e5e5e5 !important; @@ -2358,6 +2424,7 @@ -moz-border-radius: 0px; -webkit-border-radius: 0px; border-radius: 0px; + color: #4c4c4c; } .openerp .oe_form textarea.oe_inline[disabled] { border-left: 8px solid #eeeeee; @@ -2371,7 +2438,6 @@ white-space: nowrap; } .openerp .oe_form .oe_form_field_boolean { - padding-top: 4px; width: auto; } .openerp .oe_form .oe_datepicker_container { @@ -3093,14 +3159,39 @@ color: #333333; } +@-moz-document url-prefix() { + .openerp .oe_view_manager .oe_view_manager_switch li { + line-height: 21px; + } + .openerp .oe_searchview .oe_searchview_search { + top: -1px; + } + .openerp .oe_form_field_many2one .oe_m2o_cm_button { + line-height: 18px; + } + .openerp .oe_secondary_submenu { + line-height: 14px; + } + .openerp .oe_webclient .oe_star_on, .openerp .oe_webclient .oe_star_off { + top: 0px; + } +} + .kitten-mode-activated { - background-image: url(http://placekitten.com/g/1365/769); background-size: cover; background-attachment: fixed; } .kitten-mode-activated > * { opacity: 0.7; } +.loading-kitten { + -moz-border-radius: 15px; + -webkit-border-radius: 15px; + border-radius: 15px; + -moz-box-shadow: 0 0 5px 5px #999999; + -webkit-box-shadow: 0 0 5px 5px #999999; + box-shadow: 0 0 5px 5px #999999; +} div.ui-widget-overlay { background: black; @@ -3147,6 +3238,14 @@ div.ui-widget-overlay { border-radius: 3px; } +.openerp .db_option_table td { + padding-bottom: 10px !important; +} + +.openerp_ie .placeholder { + color: #afafb6 !important; + font-style: italic !important; +} .openerp_ie .oe_form_field_boolean input { background: white; } @@ -3165,6 +3264,9 @@ div.ui-widget-overlay { padding-top: 0; padding-bottom: 0; } +.openerp_ie .oe_view_manager_view_kanban { + display: table-cell; +} .openerp_ie .oe_view_manager_buttons button.oe_write_full { padding-top: 0; padding-bottom: 0; diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index 9ed551772f4..056293a4559 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -370,6 +370,10 @@ $sheet-padding: 16px .oe_right float: right margin-left: 8px + .oe_text_center + text-align: center + .oe_text_left + text-align: left .oe_text_right text-align: right .oe_clear @@ -476,7 +480,28 @@ $sheet-padding: 16px .oe_tag_dark background: $tag-bg-dark color: #eee - + .oe_form_field_radio + &.oe_horizontal + white-space: nowrap + label + display: inline-block + text-align: center + height: 16px + &.oe_vertical + label + margin-left: 4px + &.oe_form_required + .oe_radio_input + border: 2px solid transparent + display: inline-block + height: 12px + width: 12px + vertical-align: bottom + border-radius: 10px + margin: 1px 0 + &.oe_form_invalid + .oe_radio_input + border-color: red .oe_tags &.oe_inline min-width: 250px @@ -1009,8 +1034,6 @@ $sheet-padding: 16px .oe_secondary_submenu padding: 2px 0 8px 0 margin: 0 - width: 220px - display: inline-block li position: relative margin: 0 @@ -1139,7 +1162,11 @@ $sheet-padding: 16px // }}} // ViewManager common {{{ .oe_view_manager + display: table + height: inherit + width: 100% .oe_view_manager_body + display: table-row height: inherit .oe_view_manager_view_kanban height: inherit @@ -1436,7 +1463,7 @@ $sheet-padding: 16px .oe_searchview_drawer position: absolute - z-index: 100 + z-index: 2 // detach drawer from field slightly margin-top: 4px top: 100% @@ -1660,6 +1687,9 @@ $sheet-padding: 16px @include box-shadow((0 1px 2px rgba(0, 0, 0, .1), 0 1px 1px rgba(255, 255, 255, .8) inset)) .oe_form_invisible display: none !important + .oe_form_editable + .oe_read_only + display: none !important .oe_form_readonly .oe_edit_only, .oe_form_field:empty display: none !important @@ -1760,7 +1790,21 @@ $sheet-padding: 16px padding: 2px 11px 2px 0px !important label.oe_form_label_help font-weight: normal - + .oe_form_box_info + background: #fe9 + border-bottom: 1px solid #cb6 + padding: 4px + > p + margin: auto + .oe_form_box_warning + background: #bd362f + border-bottom: 1px solid #900 + padding: 4px + * + color: white + text-shadow: none + > p + margin: auto // }}} // FormView.group {{{ .oe_form @@ -1832,6 +1876,12 @@ $sheet-padding: 16px .oe_form .oe_form_field_text width: 100% + .oe_form_text_content + text-overflow: ellipsis + display: inline-block + white-space: pre-wrap + overflow-x: hidden + width: 100% .oe_form_field_char input, .oe_form_field_url input, .oe_form_field_email input, @@ -1849,6 +1899,7 @@ $sheet-padding: 16px width: 100% display: inline-block padding: 2px 2px 2px 0px + vertical-align: top input margin: 0px input[type="text"], input[type="password"], input[type="file"], select @@ -1859,6 +1910,7 @@ $sheet-padding: 16px background: white min-width: 60px color: #1f1f1f + font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif input[readonly], select[readonly], textarea[readonly], input[disabled], select[disabled] background: #E5E5E5 !important color: #666 @@ -1867,6 +1919,7 @@ $sheet-padding: 16px padding-left: 8px @include box-shadow(none) @include radius(0px) + color: #4c4c4c textarea.oe_inline[disabled] border-left: 8px solid #eee .oe_form_field_url button img @@ -1876,7 +1929,6 @@ $sheet-padding: 16px .oe_form_field_datetime white-space: nowrap .oe_form_field_boolean - padding-top: 4px width: auto .oe_datepicker_container display: none @@ -2438,13 +2490,29 @@ $sheet-padding: 16px float: right color: #333 // }}} +@-moz-document url-prefix() + .openerp + .oe_view_manager .oe_view_manager_switch li + line-height: 21px + .oe_searchview .oe_searchview_search + top: -1px + .oe_form_field_many2one .oe_m2o_cm_button + line-height: 18px + .oe_secondary_submenu + line-height: 14px + .oe_webclient + .oe_star_on, .oe_star_off + top: 0px + // Kitten Mode {{{ .kitten-mode-activated - background-image: url(http://placekitten.com/g/1365/769) background-size: cover background-attachment: fixed >* opacity: 0.70 +.loading-kitten + @include radius(15px) + @include box-shadow(0 0 5px 5px #999) // }}} // jQueryUI top level {{{ @@ -2482,8 +2550,16 @@ div.ui-widget-overlay @include radius(3px) // }}} +.openerp + .db_option_table + td + padding-bottom: 10px !important + // Internet Explorer 9+ specifics {{{ .openerp_ie + .placeholder + color: $tag-border !important + font-style: italic !important .oe_form_field_boolean input background: #fff .db_option_table .oe_form_field_selection @@ -2499,6 +2575,8 @@ div.ui-widget-overlay button.oe_highlight padding-top: 0 padding-bottom: 0 + .oe_view_manager_view_kanban + display: table-cell .oe_view_manager_buttons button.oe_write_full padding-top: 0 |
