Browse Source
Merge pull request #529 from Tecnativa/9.0-web_responsive-backport
Merge pull request #529 from Tecnativa/9.0-web_responsive-backport
[9.0][web_responsive] Backport new features from 10.0pull/388/merge
Pedro M. Baeza
8 years ago
committed by
GitHub
13 changed files with 372 additions and 60 deletions
-
2web_responsive/__openerp__.py
-
4web_responsive/i18n/es.po
-
9web_responsive/static/lib/css/drawer.3.2.0.css
-
10web_responsive/static/lib/js/drawer.3.2.0.js
-
9web_responsive/static/src/js/web_responsive.js
-
13web_responsive/static/src/less/app_drawer.less
-
90web_responsive/static/src/less/form_view.less
-
46web_responsive/static/src/less/main.less
-
187web_responsive/static/src/less/navbar.less
-
11web_responsive/static/src/less/variables.less
-
2web_responsive/tests/test_ui.py
-
5web_responsive/views/assets.xml
-
44web_responsive/views/web.xml
@ -0,0 +1,90 @@ |
|||||
|
/* Copyright 2016 Ponto Suprimentos Ltda. |
||||
|
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */ |
||||
|
|
||||
|
.openerp .oe_formview .oe_form { |
||||
|
// Form must fill 100% width in any size |
||||
|
.oe_form_sheetbg { |
||||
|
padding: 16px; |
||||
|
|
||||
|
.oe_form_sheet_width { |
||||
|
min-width: auto; |
||||
|
max-width: 100%; |
||||
|
} |
||||
|
|
||||
|
@media (max-width: @screen-sm-max) { |
||||
|
padding: 0; |
||||
|
|
||||
|
.oe_form_sheet_width { |
||||
|
border: none; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// No overflowing buttons or titles |
||||
|
.oe_button_box, .oe_title { |
||||
|
max-width: 100%; |
||||
|
} |
||||
|
|
||||
|
@media (max-width: @screen-sm-max) { |
||||
|
.oe_form_field > .ui-autocomplete-input { |
||||
|
width: 80%; |
||||
|
} |
||||
|
|
||||
|
.oe_form_group_row .oe_form_group_row { |
||||
|
margin: 0; |
||||
|
} |
||||
|
|
||||
|
.oe_form_group, .oe_form_group_row, .oe_form_group_cell { |
||||
|
&, & tbody { |
||||
|
display: block; |
||||
|
margin-top: 8px; |
||||
|
width: 100%; |
||||
|
} |
||||
|
|
||||
|
&.oe_group_right { |
||||
|
padding: 0; |
||||
|
} |
||||
|
|
||||
|
.oe_form_group_row { |
||||
|
display: table; |
||||
|
} |
||||
|
|
||||
|
.oe_form_group_cell { |
||||
|
margin: 0; |
||||
|
width: 100%; |
||||
|
} |
||||
|
|
||||
|
.oe_form_group_cell_label { |
||||
|
@media (min-width: @screen-sm-min) { |
||||
|
display: table-cell; |
||||
|
min-width: 30%; |
||||
|
width: 30%; |
||||
|
} |
||||
|
|
||||
|
@media (max-width: @screen-xs-max) { |
||||
|
border: none; |
||||
|
} |
||||
|
|
||||
|
+ .oe_form_group_cell { |
||||
|
@media (min-width: @screen-sm-min) { |
||||
|
display: table-cell; |
||||
|
max-width: 70%; |
||||
|
width: 70%; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// Make image editing controls always available, instead of depending on |
||||
|
// resolution or hover |
||||
|
.oe_form_field_image > .oe_form_field_image_controls { |
||||
|
display: block; |
||||
|
opacity: 0.7; |
||||
|
} |
||||
|
|
||||
|
// Adapt chatter widget to small viewports |
||||
|
.oe_chatter { |
||||
|
min-width: inherit; |
||||
|
} |
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue