Files
odoo_source/addons/web/static/src/webclient/webclient_layout.scss
T
Michael (mcm) 305fbc0e10 [IMP] web, mail: change layout of form view
This commit changes the layout of the form view to move the
control panel next to the chatter instead of being on top.
The chatter now takes all the place on the right side of the view.

task id: 2822553

X-original-commit: 7f36dd05b3238c3d27aab6e5af12233df27067e4
Part-of: odoo/odoo#101118
2022-09-27 12:43:50 +02:00

101 lines
2.4 KiB
SCSS

// ------------------------------------------------------------------
// Base layout rules, use the 'webclient.scss' file for styling
// ------------------------------------------------------------------
html {
height: 100%;
.o_web_client {
height: 100%;
display: flex;
flex-flow: column nowrap;
overflow: hidden;
> .o_action_manager {
direction: ltr; //Define direction attribute here so when rtlcss preprocessor run, it converts it to rtl
flex: 1 1 auto;
height: 100%;
overflow: hidden;
> .o_action {
height: 100%;
display: flex;
flex-flow: column nowrap;
overflow: hidden;
@include media-breakpoint-up(lg) {
-ms-overflow-style: none; // IE and Edge
scrollbar-width: none; // Firefox
&::-webkit-scrollbar { // Chrome, Safari and Opera
display: none;
}
}
> .o_control_panel {
flex: 0 0 auto;
}
.o_content {
flex: 1 1 auto;
position: relative; // Allow to redistribute the 100% height to its child
overflow: auto;
height: 100%;
}
@include media-breakpoint-down(md) {
// Made the o_action scroll instead of its o_content.
// Except when the view wants to handle the scroll itself.
&:not(.o_action_delegate_scroll) {
overflow: auto;
.o_content {
overflow: initial;
}
}
}
}
}
.o_main_navbar {
flex: 0 0 auto;
}
.o_control_panel {
flex: 0 0 auto;
}
.o_content {
direction: ltr; //Define direction attribute here so when rtlcss preprocessor run, it converts it to rtl
flex: 1 1 auto;
position: relative; // Allow to redistribute the 100% height to its child
> .o_view_controller {
position: absolute; // Get the 100% height of its flex parent
top: 0;
right: 0;
bottom: 0;
left: 0;
height: 100%;
direction: ltr;
}
}
}
// FIXME: Fix scrolling in modal on focus input due to a bug between Chrome (Android) and Bootstrap
body.modal-open {
position: fixed;
}
}
@media print {
html .o_web_client {
.o_main_navbar {
display: none;
}
.o_content {
position: static;
overflow: visible;
height: auto;
}
}
}