summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss/webclient_layout.scss
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/web/static/src/scss/webclient_layout.scss
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/web/static/src/scss/webclient_layout.scss')
-rw-r--r--addons/web/static/src/scss/webclient_layout.scss84
1 files changed, 84 insertions, 0 deletions
diff --git a/addons/web/static/src/scss/webclient_layout.scss b/addons/web/static/src/scss/webclient_layout.scss
new file mode 100644
index 00000000..4d2a7b44
--- /dev/null
+++ b/addons/web/static/src/scss/webclient_layout.scss
@@ -0,0 +1,84 @@
+// ------------------------------------------------------------------
+// Base layout rules, use the 'webclient.scss' file for styling
+// ------------------------------------------------------------------
+html {
+ height: 100%;
+
+ .o_web_client {
+ height: 100%;
+ display: flex;
+ flex-flow: column nowrap;
+
+ > .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;
+ > .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%;
+ }
+ }
+ }
+
+ &.o_fullscreen {
+ .o_main_navbar {
+ display: none;
+ }
+ }
+
+ .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;
+ }
+ }
+ }
+
+ .o_loading {
+ position: fixed;
+ bottom: 0;
+ right: 0;
+ z-index: $zindex-modal + 1;
+ }
+}
+
+@media print {
+ html .o_web_client {
+ .o_main_navbar {
+ display: none;
+ }
+ .o_content {
+ position: static;
+ overflow: visible;
+ height: auto;
+ }
+ }
+}