summaryrefslogtreecommitdiff
path: root/addons/web/static/src/less/views.less
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2016-04-21 13:58:22 +0200
committerGéry Debongnie <ged@odoo.com>2016-04-21 15:21:42 +0200
commit6768bbfcc02e0f498110cda2ba9adbc2fd23d24c (patch)
tree7dccb1019434582874b285276189b1b3dcbb96a9 /addons/web/static/src/less/views.less
parente1bfd3fbda97ac7a64a585b07be161d5be606cf9 (diff)
parent8e440b173e3b273b3aac541f2ec12527f67dfa60 (diff)
[MERGE] *: stop duplicating web
Avoid duplicating web addon in enterprise by extracting a common basis. Enterprise features stay in enterprise, but use that common basis. In web, 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 Minor tweaks in some other addons to make them work with this new structure.
Diffstat (limited to 'addons/web/static/src/less/views.less')
-rw-r--r--addons/web/static/src/less/views.less72
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;
+}