diff options
| author | Antony Lesuisse <al@openerp.com> | 2012-04-01 23:55:07 +0200 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2012-04-01 23:55:07 +0200 |
| commit | a5aa1bc1a7c7f5aeee290ccb5e5fdec9cd28a00c (patch) | |
| tree | ec0c38ab7251ed337493603a54c2da898c180983 /addons/web/static/src/css | |
| parent | 9a9b9e76bdb62f99fb037b23650519c1759016c9 (diff) | |
notebook styling
bzr revid: al@openerp.com-20120401215507-yxxvpphhm788fq8f
Diffstat (limited to 'addons/web/static/src/css')
| -rw-r--r-- | addons/web/static/src/css/base.css | 50 | ||||
| -rw-r--r-- | addons/web/static/src/css/base.sass | 40 | ||||
| -rw-r--r-- | addons/web/static/src/css/base_old.css | 37 |
3 files changed, 89 insertions, 38 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index adaf568ddcc..5077db3901b 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -600,6 +600,56 @@ .openerp2 .oe_layout_debug_cell { display: none; } +.openerp2 .oe_form_notebook { + margin: 8px 0; + padding: 0 8px; + list-style: none; + zoom: 1; +} +.openerp2 .oe_form_notebook:before, .openerp2 .oe_form_notebook:after { + display: table; + content: ""; + zoom: 1; +} +.openerp2 .oe_form_notebook:after { + clear: both; +} +.openerp2 .oe_form_notebook > li { + float: left; +} +.openerp2 .oe_form_notebook > li > a { + display: block; + color: #4c4c4c; +} +.openerp2 .oe_form_notebook { + border-color: #dddddd; + border-style: solid; + border-width: 0 0 1px; +} +.openerp2 .oe_form_notebook > li { + position: relative; + margin-bottom: -1px; +} +.openerp2 .oe_form_notebook > li > a { + padding: 0 12px; + margin-right: 2px; + line-height: 30px; + border: 1px solid transparent; + -moz-border-radius: 4px 4px 0 0; + -webkit-border-radius: 4px 4px 0 0; + border-radius: 4px 4px 0 0; +} +.openerp2 .oe_form_notebook > li > a:hover { + text-decoration: none; + background-color: #eeeeee; + border-color: #eeeeee #eeeeee #dddddd; +} +.openerp2 .oe_form_notebook > li.ui-state-active > a, .openerp2 .oe_form_notebook > li.ui-state-active > a:hover { + background-color: white; + border: 1px solid #dddddd; + border-bottom-color: transparent; + cursor: default; +} .openerp2 .oe_form_label_help[for], .openerp2 .oe_form_label[for] { white-space: nowrap; } diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index ca2d5ee2e29..d1d59a88f69 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -509,7 +509,44 @@ $colour4: #8a89ba .oe_layout_debug_cell display: none - + .oe_form_notebook + margin: 8px 0 + padding: 0 8px + list-style: none + zoom: 1 + .oe_form_notebook:before, .oe_form_notebook:after + display: table + content: "" + zoom: 1 + .oe_form_notebook:after + clear: both + .oe_form_notebook > li + float: left + .oe_form_notebook > li > a + display: block + color: #4c4c4c + .oe_form_notebook + border-color: #ddd + border-style: solid + border-width: 0 0 1px + .oe_form_notebook > li + position: relative + margin-bottom: -1px + .oe_form_notebook > li > a + padding: 0 12px + margin-right: 2px + line-height: 30px + border: 1px solid transparent + @include radius(4px 4px 0 0) + .oe_form_notebook > li > a:hover + text-decoration: none + background-color: #eee + border-color: #eee #eee #ddd + .oe_form_notebook > li.ui-state-active > a, .oe_form_notebook > li.ui-state-active > a:hover + background-color: #ffffff + border: 1px solid #ddd + border-bottom-color: transparent + cursor: default // }}} // FormView Widgets {{{ @@ -530,3 +567,4 @@ $colour4: #8a89ba // au BufWritePost,FileWritePost *.sass :!sass --style expanded --line-numbers <afile> > "%:p:r.css" // vim:tabstop=4:shiftwidth=4:softtabstop=4:fdm=marker: + diff --git a/addons/web/static/src/css/base_old.css b/addons/web/static/src/css/base_old.css index a4307146e9c..04733e9b660 100644 --- a/addons/web/static/src/css/base_old.css +++ b/addons/web/static/src/css/base_old.css @@ -807,39 +807,6 @@ label.error { border-bottom-right-radius: 4px; } -/* Notebook */ -.openerp .oe_form_notebook { - padding: 0; - background: none; - border-width: 0; -} -.openerp .oe_form_notebook .ui-tabs-panel { - padding: 4px; - -moz-border-radius-topright: 4px; - -webkit-border-top-right-radius: 4px; - border-top-right-radius: 4px; -} -.openerp .oe_form_notebook ul.ui-tabs-nav { - padding-left: 0; - background: transparent; - border-width: 0; - border-radius: 0; - -moz-border-radius: 0; - -webkit-border-radius: 0; - line-height: 0.8em; - font-size: 95%; - color: #555; -} -.openerp .oe_form_notebook ul.ui-tabs-nav li { - font-weight: bold; -} -.openerp .oe_form_notebook .ui-tabs-panel { - background: #f9f9f9; - border-width: 1px; -} -.openerp .oe_form_notebook .ui-tabs-selected { - background: #f9f9f9; -} /* Unedit Form */ .openerp .oe_form_group_cell > .oe_form_field_many2one, .openerp .oe_form_group_cell > .oe_form_field_many2one input, @@ -894,10 +861,6 @@ label.error { .openerp fieldset.oe_group_box legend { font-weight: bold; } -.openerp td.oe_form_group_cell { - padding: 2px; - height: 25px; -} .openerp .oe_form_field_translatable, .openerp .oe_form_field_many2one, .openerp .oe_form_field_date, |
