summaryrefslogtreecommitdiff
path: root/addons/web/static/src/less/modal.less
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2015-06-16 11:38:20 +0200
committerqsm-odoo <qsm@odoo.com>2015-06-17 09:49:46 +0200
commit46bf047e86c2a5dd93aae3b6ac77873aa6180a1e (patch)
tree9fa2fd229f0c577c7342b91f39b957bea09277e6 /addons/web/static/src/less/modal.less
parentd6d3d0983fa936be90f05a6ebacb83d632414c75 (diff)
[IMP] web, web_*, mail, board : New modals and dialogs
Diffstat (limited to 'addons/web/static/src/less/modal.less')
-rw-r--r--addons/web/static/src/less/modal.less51
1 files changed, 51 insertions, 0 deletions
diff --git a/addons/web/static/src/less/modal.less b/addons/web/static/src/less/modal.less
new file mode 100644
index 00000000000..784fb47aaf8
--- /dev/null
+++ b/addons/web/static/src/less/modal.less
@@ -0,0 +1,51 @@
+.modal {
+
+ .modal-content {
+ border-radius: 0;
+
+ .modal-body {
+ &.o_act_window {
+ padding: 0;
+ }
+
+ .o_modal_header {
+ .o-webclient-padding(@top: 10px, @bottom: 10px);
+
+ .o_popup_list_pager { // FIXME : should check where it is used (o_modal_header ~= control panel)
+ float: right;
+ }
+ }
+
+ .oe-view-manager-content {
+ position: static; // Reset position for view managers in modals (default value: absolute)
+ }
+ }
+
+ .modal-footer {
+ text-align: left;
+ }
+ }
+
+
+ @media (min-width: @screen-sm-min) {
+ .modal-dialog {
+ height: 100%;
+ padding: 30px 0;
+ margin: 0 auto;
+
+ .modal-content {
+ max-height: 100%;
+ .o-flex-display();
+ .o-flex-flow(column, nowrap);
+
+ .modal-header, .modal-footer {
+ .o-flex(0, 0, auto);
+ }
+
+ .modal-body {
+ overflow: auto;
+ }
+ }
+ }
+ }
+}