summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss/modal.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/modal.scss
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/web/static/src/scss/modal.scss')
-rw-r--r--addons/web/static/src/scss/modal.scss131
1 files changed, 131 insertions, 0 deletions
diff --git a/addons/web/static/src/scss/modal.scss b/addons/web/static/src/scss/modal.scss
new file mode 100644
index 00000000..d5faa771
--- /dev/null
+++ b/addons/web/static/src/scss/modal.scss
@@ -0,0 +1,131 @@
+.modal.o_technical_modal {
+
+ .modal-content {
+ border-radius: 0;
+
+ .modal-header .o_subtitle {
+ margin-left: 10px;
+ }
+
+ .modal-header .modal-title {
+ word-break: break-word;
+ }
+
+ .modal-body {
+ &.o_act_window {
+ padding: 0;
+ }
+
+ .o_modal_header {
+ @include o-webclient-padding($top: 10px, $bottom: 10px);
+ @include clearfix;
+
+ .o_search_options {
+ display: inline-block;
+ }
+ .o_pager {
+ float: right;
+ }
+ }
+
+ > :not(.o_view_sample_data) .o_view_nocontent {
+ position: unset;
+ }
+
+ .o_modal_changes td {
+ &:first-child {
+ padding-right: 10px;
+ vertical-align: top;
+ white-space: nowrap;
+ }
+ &:not(:first-child) {
+ width: 100%;
+ }
+ }
+ }
+
+ .modal-footer {
+ flex-wrap: wrap;
+ text-align: left;
+ justify-content: flex-start;
+
+ // TODO These rules should not be necessary if we used buttons
+ // as direct children of the modal-footer as normally required
+ > div, > footer {
+ flex: 1 1 auto;
+ }
+
+ footer {
+ > :not(:first-child) { margin-left: .25rem; }
+ > :not(:last-child) { margin-right: .25rem; }
+ button {
+ margin-bottom: .5rem;
+ }
+ }
+ }
+ }
+
+ @include media-breakpoint-up(sm) {
+ .modal-dialog .modal-content .modal-body.o_dialog_error {
+ overflow: visible;
+ display: flex;
+ flex-flow: column nowrap;
+
+ > .alert, > button {
+ flex: 0 0 auto;
+ }
+
+ > .o_error_detail {
+ flex: 1 1 auto;
+ min-height: 0;
+ overflow: auto;
+ }
+ }
+ }
+
+ @include media-breakpoint-down(xs) {
+ &.o_modal_full {
+ .modal-dialog {
+ margin: 0px;
+ height: 100%;
+
+ .modal-content {
+ height: 100%;
+ border: none;
+
+ .modal-header {
+ background: $o-brand-odoo;
+ .modal-title, .o_subtitle, button.close {
+ color: white;
+ }
+ }
+
+ .modal-body {
+ height: 100%;
+ overflow-y: auto;
+ }
+ }
+ }
+ }
+ }
+}
+
+.modal.o_inactive_modal {
+ z-index: $zindex-modal-backdrop - 1;
+}
+
+.o_dialog {
+
+ > .modal {
+ display: block;
+ }
+}
+
+// Temporary fix for modals which are not instantiated thanks to the Dialog
+// JS classes (deprecated case) (see bootstrap_overridden.scss) + Frontend.
+//
+// TODO the following code was disabled because it is saas-incompatible
+//
+// :not(body) > .modal {
+// z-index: $zindex-modal-background + 1;
+// }