From 629a485ce2e05d885e01963e9c04766e33551735 Mon Sep 17 00:00:00 2001 From: Thomas JUND Date: Fri, 15 Jan 2021 13:30:05 +0100 Subject: [PATCH] scss: add .oneline-dialog modificator for jqueryUI dialog widget (#49585) --- gadjo/static/css/_jqueryui.scss | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gadjo/static/css/_jqueryui.scss b/gadjo/static/css/_jqueryui.scss index cb4671b..b835e79 100644 --- a/gadjo/static/css/_jqueryui.scss +++ b/gadjo/static/css/_jqueryui.scss @@ -214,6 +214,26 @@ div.ui-dialog { width: auto; } } + + // one line dialog + // add this class on widget to remove titlebar, position the close button to the left of content + &.oneline-dialog { + .ui-dialog-titlebar { + float: right; + padding-top: 5px; + } + .ui-dialog-title { + display: none; + } + .ui-dialog-titlebar-close { + display: block; + } + // visual feedback when open dialog + transition: box-shadow 800ms ease 200ms; + &.feedback-on-open { + box-shadow: $primary-color 0px 0px 20px 2px; + } + } } .ui-tooltip {