summaryrefslogtreecommitdiff
path: root/addons/website/static/src/snippets/s_popup/000.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/website/static/src/snippets/s_popup/000.scss
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/website/static/src/snippets/s_popup/000.scss')
-rw-r--r--addons/website/static/src/snippets/s_popup/000.scss99
1 files changed, 99 insertions, 0 deletions
diff --git a/addons/website/static/src/snippets/s_popup/000.scss b/addons/website/static/src/snippets/s_popup/000.scss
new file mode 100644
index 00000000..02738156
--- /dev/null
+++ b/addons/website/static/src/snippets/s_popup/000.scss
@@ -0,0 +1,99 @@
+// s_popup
+.s_popup_main:not([data-vcss]) {
+ .s_popup_content {
+ // keep lower than <p> height (cookies bar)
+ min-height: $o-font-size-base * $o-line-height-base;
+ box-shadow: $modal-content-box-shadow-sm-up;
+ .container {
+ // keep margin when fixed bottom
+ @include make-container();
+ }
+ }
+
+ &.modal:not(.d-none) {
+ display: block !important;
+ }
+
+ $popup-close-size: 1.5rem;
+ .s_popup_close {
+ position: absolute;
+ background: white;
+ height: $popup-close-size;
+ width: $popup-close-size;
+ line-height: $popup-close-size;
+ margin-top: -1 * $popup-close-size / 2;
+ margin-right: -1 * $popup-close-size / 2;
+ border-radius: $popup-close-size / 2;
+ right: 0px;
+ top: 0px;
+ box-shadow: rgba(0,0,0,0.8) 0 0 5px;
+ cursor: pointer;
+ text-align: center;
+ z-index: 1;
+ font-size: $popup-close-size;
+ }
+
+ &.s_popup_center {
+ .s_popup_full {
+ @include o-position-absolute(0, 0, 0, 0);
+ &.modal-dialog {
+ max-width: 100%;
+ padding: 0 !important;
+ margin: 0 !important;
+
+ .modal-content {
+ height: 100%;
+ width: 100%;
+ justify-content: center;
+ }
+ }
+ .s_popup_close {
+ font-size: 60px;
+ margin: 10px;
+ background: none;
+ box-shadow: none;
+ }
+ }
+ }
+
+ &.s_popup_fixed {
+ &.s_popup_fixed_top {
+ .s_popup_content {
+ top: $o-navbar-height;
+ }
+ }
+ &:not(.s_popup_fixed_top) {
+ .s_popup_content {
+ bottom: 0;
+ }
+ }
+ .s_popup_content {
+ z-index: $zindex-modal;
+ position: fixed;
+ right: 20px;
+ }
+ .modal-sm .s_popup_content {
+ width: $modal-sm;
+ }
+ .modal-md .s_popup_content {
+ width: $o-modal-md;
+ }
+ .modal-lg .s_popup_content {
+ width: $o-modal-lg;
+ }
+ .modal-xl .s_popup_content {
+ width: $modal-xl;
+ }
+ .s_popup_full .s_popup_content {
+ right: 0;
+ left: 0;
+ .s_popup_close {
+ box-shadow: none;
+ font-size: 60px;
+ margin: 10px;
+ background: none;
+ }
+
+ }
+ }
+}