diff options
| author | Aaron Bohy <aab@odoo.com> | 2016-04-08 14:53:34 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2016-04-21 15:21:39 +0200 |
| commit | 977db823c7c84e9edc7c8cf8384eb9cf47275b3a (patch) | |
| tree | c3312f745baf11d51f976a60d6e285480f557d4c /addons/web/static/src/less/views.less | |
| parent | e1bfd3fbda97ac7a64a585b07be161d5be606cf9 (diff) | |
[REF] web: stop duplicating web
Avoid duplicating web addon in enterprise by extracting a common basis.
Enterprise features stay in enterprise, but use that common basis.
Mainly:
- JS refactoring and linting
- Conversion of .sass into .less split into multiple files
- Templates cleaning and DOM simplification
- Re-generation of web.pot, and update of .po files
Diffstat (limited to 'addons/web/static/src/less/views.less')
| -rw-r--r-- | addons/web/static/src/less/views.less | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/addons/web/static/src/less/views.less b/addons/web/static/src/less/views.less new file mode 100644 index 00000000000..7a4deca60ff --- /dev/null +++ b/addons/web/static/src/less/views.less @@ -0,0 +1,72 @@ +// -------------------------------------------------------------------------- +// This file contains rules applying on elements shared between views +// -------------------------------------------------------------------------- + +// Many2many tags +.o_form_field_many2manytags { + .o_tag_color_0 { + background-color: #B6BBBF; + } + .o_tag_color_1 { + background-color: #61BD4F; + } + .o_tag_color_2 { + background-color: #F2D600; + } + .o_tag_color_3 { + background-color: #FFAB4A; + } + .o_tag_color_4 { + background-color: #EB5A46; + } + .o_tag_color_5 { + background-color: #A24689; + } + .o_tag_color_6 { + background-color: #0079BF; + } + .o_tag_color_7 { + background-color: #00C2E0; + } + .o_tag_color_8 { + background-color: #4CD98E; + } + .o_tag_color_9 { + background-color: #FF80CE; + } + .o_tag_color_10 { + background-color: #4D4D4D; + } +} + +// Stars +.o_priority { + display: inline-block; + padding: 0; + margin: 0; + vertical-align: middle; + > .o_priority_star { + display: inline-block; + font-size: 1.35em; + &:hover, &:focus { + text-decoration: none; + outline: none; + } + + + .o_priority_star { + padding-left: 5px; + } + + &.fa-star-o { + color: @odoo-main-color-muted; + } + &.fa-star { + color: gold; + } + } +} + +// No content helper +.oe_view.oe_cannot_create .oe_view_nocontent_create { + display: none; +} |
