# HG changeset patch # User Marcin Kuzminski # Date 2020-04-20 13:56:25 # Node ID 2cac6d75f5d55c4a1dac57459db4704547d32ef3 # Parent 9d74b996ed90ae7e1cd4e6c88fe2842bc1e63071 sweetalert: updated theme. diff --git a/rhodecode/public/css/sweetalert2.less b/rhodecode/public/css/sweetalert2.less --- a/rhodecode/public/css/sweetalert2.less +++ b/rhodecode/public/css/sweetalert2.less @@ -5,80 +5,97 @@ padding: 0.625em; overflow-y: hidden; background: #fff; - box-shadow: 0 0 0.625em #d9d9d9; + box-shadow: none; } + .swal2-popup.swal2-toast .swal2-header { flex-direction: row; } + .swal2-popup.swal2-toast .swal2-title { flex-grow: 1; justify-content: flex-start; margin: 0 0.6em; font-size: 1em; } + .swal2-popup.swal2-toast .swal2-footer { margin: 0.5em 0 0; padding: 0.5em 0 0; font-size: 0.8em; } + .swal2-popup.swal2-toast .swal2-close { position: static; width: 0.8em; height: 0.8em; line-height: 0.8; } + .swal2-popup.swal2-toast .swal2-content { justify-content: flex-start; font-size: 1em; } + .swal2-popup.swal2-toast .swal2-icon { width: 2em; min-width: 2em; height: 2em; margin: 0; } + .swal2-popup.swal2-toast .swal2-icon .swal2-icon-content { display: flex; align-items: center; font-size: 1.8em; font-weight: bold; } + @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { .swal2-popup.swal2-toast .swal2-icon .swal2-icon-content { font-size: 0.25em; } } + .swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring { width: 2em; height: 2em; } + .swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line] { top: 0.875em; width: 1.375em; } + .swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left] { left: 0.3125em; } + .swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right] { right: 0.3125em; } + .swal2-popup.swal2-toast .swal2-actions { flex-basis: auto !important; width: auto; height: auto; margin: 0 0.3125em; } + .swal2-popup.swal2-toast .swal2-styled { margin: 0 0.3125em; padding: 0.3125em 0.625em; font-size: 1em; } + .swal2-popup.swal2-toast .swal2-styled:focus { box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgba(50, 100, 150, 0.4); } + .swal2-popup.swal2-toast .swal2-success { border-color: @alert1; } + .swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line] { position: absolute; width: 1.6em; @@ -86,6 +103,7 @@ transform: rotate(45deg); border-radius: 50%; } + .swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left] { top: -0.8em; left: -0.5em; @@ -93,50 +111,60 @@ transform-origin: 2em 2em; border-radius: 4em 0 0 4em; } + .swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right] { top: -0.25em; left: 0.9375em; transform-origin: 0 1.5em; border-radius: 0 4em 4em 0; } + .swal2-popup.swal2-toast .swal2-success .swal2-success-ring { width: 2em; height: 2em; } + .swal2-popup.swal2-toast .swal2-success .swal2-success-fix { top: 0; left: 0.4375em; width: 0.4375em; height: 2.6875em; } + .swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line] { height: 0.3125em; } + .swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip] { top: 1.125em; left: 0.1875em; width: 0.75em; } + .swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long] { top: 0.9375em; right: 0.1875em; width: 1.375em; } + .swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip { -webkit-animation: swal2-toast-animate-success-line-tip 0.75s; - animation: swal2-toast-animate-success-line-tip 0.75s; + animation: swal2-toast-animate-success-line-tip 0.75s; } + .swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long { -webkit-animation: swal2-toast-animate-success-line-long 0.75s; - animation: swal2-toast-animate-success-line-long 0.75s; + animation: swal2-toast-animate-success-line-long 0.75s; } + .swal2-popup.swal2-toast.swal2-show { -webkit-animation: swal2-toast-show 0.5s; - animation: swal2-toast-show 0.5s; + animation: swal2-toast-show 0.5s; } + .swal2-popup.swal2-toast.swal2-hide { -webkit-animation: swal2-toast-hide 0.1s forwards; - animation: swal2-toast-hide 0.1s forwards; + animation: swal2-toast-hide 0.1s forwards; } .swal2-container { @@ -155,85 +183,111 @@ transition: background-color 0.1s; -webkit-overflow-scrolling: touch; } + .swal2-container.swal2-backdrop-show, .swal2-container.swal2-noanimation { background: rgba(0, 0, 0, 0.4); } + .swal2-container.swal2-backdrop-hide { background: transparent !important; } + .swal2-container.swal2-top { align-items: flex-start; } + .swal2-container.swal2-top-start, .swal2-container.swal2-top-left { align-items: flex-start; justify-content: flex-start; } + .swal2-container.swal2-top-end, .swal2-container.swal2-top-right { align-items: flex-start; justify-content: flex-end; } + .swal2-container.swal2-center { align-items: center; } + .swal2-container.swal2-center-start, .swal2-container.swal2-center-left { align-items: center; justify-content: flex-start; } + .swal2-container.swal2-center-end, .swal2-container.swal2-center-right { align-items: center; justify-content: flex-end; } + .swal2-container.swal2-bottom { align-items: flex-end; } + .swal2-container.swal2-bottom-start, .swal2-container.swal2-bottom-left { align-items: flex-end; justify-content: flex-start; } + .swal2-container.swal2-bottom-end, .swal2-container.swal2-bottom-right { align-items: flex-end; justify-content: flex-end; } -.swal2-container.swal2-bottom > :first-child, .swal2-container.swal2-bottom-start > :first-child, .swal2-container.swal2-bottom-left > :first-child, .swal2-container.swal2-bottom-end > :first-child, .swal2-container.swal2-bottom-right > :first-child { + +.swal2-container.swal2-bottom > :first-child, +.swal2-container.swal2-bottom-start > :first-child, +.swal2-container.swal2-bottom-left > :first-child, +.swal2-container.swal2-bottom-end > :first-child, +.swal2-container.swal2-bottom-right > :first-child { margin-top: auto; } + .swal2-container.swal2-grow-fullscreen > .swal2-modal { display: flex !important; flex: 1; align-self: stretch; justify-content: center; } + .swal2-container.swal2-grow-row > .swal2-modal { display: flex !important; flex: 1; align-content: center; justify-content: center; } + .swal2-container.swal2-grow-column { flex: 1; flex-direction: column; } + .swal2-container.swal2-grow-column.swal2-top, .swal2-container.swal2-grow-column.swal2-center, .swal2-container.swal2-grow-column.swal2-bottom { align-items: center; } + .swal2-container.swal2-grow-column.swal2-top-start, .swal2-container.swal2-grow-column.swal2-center-start, .swal2-container.swal2-grow-column.swal2-bottom-start, .swal2-container.swal2-grow-column.swal2-top-left, .swal2-container.swal2-grow-column.swal2-center-left, .swal2-container.swal2-grow-column.swal2-bottom-left { align-items: flex-start; } + .swal2-container.swal2-grow-column.swal2-top-end, .swal2-container.swal2-grow-column.swal2-center-end, .swal2-container.swal2-grow-column.swal2-bottom-end, .swal2-container.swal2-grow-column.swal2-top-right, .swal2-container.swal2-grow-column.swal2-center-right, .swal2-container.swal2-grow-column.swal2-bottom-right { align-items: flex-end; } + .swal2-container.swal2-grow-column > .swal2-modal { display: flex !important; flex: 1; align-content: center; justify-content: center; } + .swal2-container.swal2-no-transition { transition: none !important; } + .swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen) > .swal2-modal { margin: auto; } + @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { .swal2-container .swal2-modal { margin: 0 !important; @@ -250,14 +304,16 @@ max-width: 100%; padding: 1.25em; border: none; - border-radius: 0.3125em; + border-radius: 0; background: #fff; font-family: inherit; font-size: 1rem; } + .swal2-popup:focus { outline: none; } + .swal2-popup.swal2-loading { overflow-y: hidden; } @@ -290,15 +346,19 @@ width: 100%; margin: 1.25em auto 0; } + .swal2-actions:not(.swal2-loading) .swal2-styled[disabled] { opacity: 0.4; } + .swal2-actions:not(.swal2-loading) .swal2-styled:hover { background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)); } + .swal2-actions:not(.swal2-loading) .swal2-styled:active { background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)); } + .swal2-actions.swal2-loading .swal2-styled.swal2-confirm { box-sizing: border-box; width: 2.5em; @@ -306,7 +366,7 @@ margin: 0.46875em; padding: 0; -webkit-animation: swal2-rotate-loading 1.5s linear 0s infinite normal; - animation: swal2-rotate-loading 1.5s linear 0s infinite normal; + animation: swal2-rotate-loading 1.5s linear 0s infinite normal; border: 0.25em solid transparent; border-radius: 100%; border-color: transparent; @@ -314,14 +374,16 @@ color: transparent !important; cursor: default; -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } + .swal2-actions.swal2-loading .swal2-styled.swal2-cancel { margin-right: 30px; margin-left: 30px; } + .swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after { content: ""; display: inline-block; @@ -329,7 +391,7 @@ height: 15px; margin-left: 5px; -webkit-animation: swal2-rotate-loading 1.5s linear 0s infinite normal; - animation: swal2-rotate-loading 1.5s linear 0s infinite normal; + animation: swal2-rotate-loading 1.5s linear 0s infinite normal; border: 3px solid #999999; border-radius: 50%; border-right-color: transparent; @@ -342,29 +404,34 @@ box-shadow: none; font-weight: 500; } + .swal2-styled:not([disabled]) { cursor: pointer; } + .swal2-styled.swal2-confirm { border: 0; - border-radius: 0.25em; + border-radius: 0; background: initial; background-color: @alert4; color: #fff; font-size: 1.0625em; } + .swal2-styled.swal2-cancel { border: 0; - border-radius: 0.25em; + border-radius: 0; background: initial; background-color: #aaa; color: #fff; font-size: 1.0625em; } + .swal2-styled:focus { outline: none; box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgba(50, 100, 150, 0.4); } + .swal2-styled::-moz-focus-inner { border: 0; } @@ -385,8 +452,8 @@ left: 0; height: 0.25em; overflow: hidden; - border-bottom-right-radius: 0.3125em; - border-bottom-left-radius: 0.3125em; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; } .swal2-timer-progress-bar { @@ -403,6 +470,7 @@ .swal2-close { position: absolute; z-index: 2; + /* 1617 */ top: 0; right: 0; align-items: center; @@ -421,11 +489,13 @@ line-height: 1.2; cursor: pointer; } + .swal2-close:hover { transform: none; background: transparent; color: #f27474; } + .swal2-close::-moz-focus-inner { border: 0; } @@ -457,20 +527,22 @@ .swal2-textarea { box-sizing: border-box; width: 100%; - transition: border-color 0.3s, box-shadow 0.3s; + transition: initial; border: 1px solid #d9d9d9; - border-radius: 0.1875em; + border-radius: 0; background: inherit; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06); + box-shadow: none; color: inherit; font-size: 1.125em; } + .swal2-input.swal2-inputerror, .swal2-file.swal2-inputerror, .swal2-textarea.swal2-inputerror { border-color: #f27474 !important; box-shadow: 0 0 2px #f27474 !important; } + .swal2-input:focus, .swal2-file:focus, .swal2-textarea:focus { @@ -478,18 +550,23 @@ outline: none; box-shadow: 0 0 3px #c4e6f5; } + .swal2-input::-webkit-input-placeholder, .swal2-file::-webkit-input-placeholder, .swal2-textarea::-webkit-input-placeholder { color: #cccccc; } + .swal2-input::-moz-placeholder, .swal2-file::-moz-placeholder, .swal2-textarea::-moz-placeholder { color: #cccccc; } + .swal2-input:-ms-input-placeholder, .swal2-file:-ms-input-placeholder, .swal2-textarea:-ms-input-placeholder { color: #cccccc; } + .swal2-input::-ms-input-placeholder, .swal2-file::-ms-input-placeholder, .swal2-textarea::-ms-input-placeholder { color: #cccccc; } + .swal2-input::placeholder, .swal2-file::placeholder, .swal2-textarea::placeholder { @@ -500,15 +577,18 @@ margin: 1em auto; background: #fff; } + .swal2-range input { width: 80%; } + .swal2-range output { width: 20%; color: inherit; font-weight: 600; text-align: center; } + .swal2-range input, .swal2-range output { height: 2.625em; @@ -521,6 +601,7 @@ height: 2.625em; padding: 0 0.75em; } + .swal2-input[type=number] { max-width: 10em; } @@ -551,11 +632,13 @@ background: #fff; color: inherit; } + .swal2-radio label, .swal2-checkbox label { margin: 0 0.6em; font-size: 1.125em; } + .swal2-radio input, .swal2-checkbox input { margin: 0 0.4em; @@ -572,6 +655,7 @@ font-size: 1em; font-weight: 300; } + .swal2-validation-message::before { content: "!"; display: inline-block; @@ -600,23 +684,27 @@ line-height: 5em; cursor: default; -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } + .swal2-icon .swal2-icon-content { display: flex; align-items: center; font-size: 3.75em; } + .swal2-icon.swal2-error { border-color: @alert2; color: @alert2; } + .swal2-icon.swal2-error .swal2-x-mark { position: relative; flex-grow: 1; } + .swal2-icon.swal2-error [class^=swal2-x-mark-line] { display: block; position: absolute; @@ -626,38 +714,47 @@ border-radius: 0.125em; background-color: @alert2; } + .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left] { left: 1.0625em; transform: rotate(45deg); } + .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right] { right: 1em; transform: rotate(-45deg); } + .swal2-icon.swal2-error.swal2-icon-show { //-webkit-animation: swal2-animate-error-icon 0.5s; // animation: swal2-animate-error-icon 0.5s; } + .swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark { //-webkit-animation: swal2-animate-error-x-mark 0.5s; // animation: swal2-animate-error-x-mark 0.5s; } + .swal2-icon.swal2-warning { border-color: @alert3; color: @alert3; } + .swal2-icon.swal2-info { border-color: #9de0f6; color: #3fc3ee; } + .swal2-icon.swal2-question { border-color: #c9dae1; color: #87adbd; } + .swal2-icon.swal2-success { border-color: @alert1; color: @alert1; } + .swal2-icon.swal2-success [class^=swal2-success-circular-line] { position: absolute; width: 3.75em; @@ -665,6 +762,7 @@ transform: rotate(45deg); border-radius: 50%; } + .swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left] { top: -0.4375em; left: -2.0635em; @@ -672,6 +770,7 @@ transform-origin: 3.75em 3.75em; border-radius: 7.5em 0 0 7.5em; } + .swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right] { top: -0.6875em; left: 1.875em; @@ -679,6 +778,7 @@ transform-origin: 0 3.75em; border-radius: 0 7.5em 7.5em 0; } + .swal2-icon.swal2-success .swal2-success-ring { position: absolute; z-index: 2; @@ -690,6 +790,7 @@ border: 0.25em solid rgba(165, 220, 134, 0.3); border-radius: 50%; } + .swal2-icon.swal2-success .swal2-success-fix { position: absolute; z-index: 1; @@ -699,6 +800,7 @@ height: 5.625em; transform: rotate(-45deg); } + .swal2-icon.swal2-success [class^=swal2-success-line] { display: block; position: absolute; @@ -707,29 +809,34 @@ border-radius: 0.125em; background-color: @alert1; } + .swal2-icon.swal2-success [class^=swal2-success-line][class$=tip] { top: 2.875em; left: 0.8125em; width: 1.5625em; transform: rotate(45deg); } + .swal2-icon.swal2-success [class^=swal2-success-line][class$=long] { top: 2.375em; right: 0.5em; width: 2.9375em; transform: rotate(-45deg); } + .swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip { -webkit-animation: swal2-animate-success-line-tip 0.75s; - animation: swal2-animate-success-line-tip 0.75s; + animation: swal2-animate-success-line-tip 0.75s; } + .swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long { -webkit-animation: swal2-animate-success-line-long 0.75s; - animation: swal2-animate-success-line-long 0.75s; + animation: swal2-animate-success-line-long 0.75s; } + .swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right { -webkit-animation: swal2-rotate-success-circular-line 4.25s ease-in; - animation: swal2-rotate-success-circular-line 4.25s ease-in; + animation: swal2-rotate-success-circular-line 4.25s ease-in; } .swal2-progress-steps { @@ -739,10 +846,12 @@ background: inherit; font-weight: 600; } + .swal2-progress-steps li { display: inline-block; position: relative; } + .swal2-progress-steps .swal2-progress-step { z-index: 20; width: 2em; @@ -753,16 +862,20 @@ line-height: 2em; text-align: center; } + .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step { background: #3085d6; } + .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step ~ .swal2-progress-step { background: #add8e6; color: #fff; } + .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step ~ .swal2-progress-step-line { background: #add8e6; } + .swal2-progress-steps .swal2-progress-step-line { z-index: 10; width: 2.5em; @@ -777,12 +890,12 @@ .swal2-show { -webkit-animation: swal2-show 0.3s; - animation: swal2-show 0.3s; + animation: swal2-show 0.3s; } .swal2-hide { -webkit-animation: swal2-hide 0.15s forwards; - animation: swal2-hide 0.15s forwards; + animation: swal2-hide 0.15s forwards; } .swal2-noanimation { @@ -801,6 +914,7 @@ right: auto; left: 0; } + .swal2-rtl .swal2-timer-progress-bar { right: 0; left: auto; @@ -810,23 +924,28 @@ .swal2-range input { width: 100% !important; } + .swal2-range output { display: none; } } + @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { .swal2-range input { width: 100% !important; } + .swal2-range output { display: none; } } + @-moz-document url-prefix() { .swal2-close:focus { outline: 2px solid rgba(50, 100, 150, 0.4); } } + @-webkit-keyframes swal2-toast-show { 0% { transform: translateY(-0.625em) rotateZ(2deg); @@ -841,6 +960,7 @@ transform: translateY(0) rotateZ(0deg); } } + @keyframes swal2-toast-show { 0% { transform: translateY(-0.625em) rotateZ(2deg); @@ -855,18 +975,21 @@ transform: translateY(0) rotateZ(0deg); } } + @-webkit-keyframes swal2-toast-hide { 100% { transform: rotateZ(1deg); opacity: 0; } } + @keyframes swal2-toast-hide { 100% { transform: rotateZ(1deg); opacity: 0; } } + @-webkit-keyframes swal2-toast-animate-success-line-tip { 0% { top: 0.5625em; @@ -894,6 +1017,7 @@ width: 0.75em; } } + @keyframes swal2-toast-animate-success-line-tip { 0% { top: 0.5625em; @@ -921,6 +1045,7 @@ width: 0.75em; } } + @-webkit-keyframes swal2-toast-animate-success-line-long { 0% { top: 1.625em; @@ -943,6 +1068,7 @@ width: 1.375em; } } + @keyframes swal2-toast-animate-success-line-long { 0% { top: 1.625em; @@ -965,6 +1091,7 @@ width: 1.375em; } } + @-webkit-keyframes swal2-show { 0% { transform: scale(0.7); @@ -979,6 +1106,7 @@ transform: scale(1); } } + @keyframes swal2-show { 0% { transform: scale(0.7); @@ -993,6 +1121,7 @@ transform: scale(1); } } + @-webkit-keyframes swal2-hide { 0% { transform: scale(1); @@ -1003,6 +1132,7 @@ opacity: 0; } } + @keyframes swal2-hide { 0% { transform: scale(1); @@ -1013,6 +1143,7 @@ opacity: 0; } } + @-webkit-keyframes swal2-animate-success-line-tip { 0% { top: 1.1875em; @@ -1040,6 +1171,7 @@ width: 1.5625em; } } + @keyframes swal2-animate-success-line-tip { 0% { top: 1.1875em; @@ -1067,6 +1199,7 @@ width: 1.5625em; } } + @-webkit-keyframes swal2-animate-success-line-long { 0% { top: 3.375em; @@ -1089,6 +1222,7 @@ width: 2.9375em; } } + @keyframes swal2-animate-success-line-long { 0% { top: 3.375em; @@ -1111,6 +1245,7 @@ width: 2.9375em; } } + @-webkit-keyframes swal2-rotate-success-circular-line { 0% { transform: rotate(-45deg); @@ -1125,6 +1260,7 @@ transform: rotate(-405deg); } } + @keyframes swal2-rotate-success-circular-line { 0% { transform: rotate(-45deg); @@ -1139,6 +1275,7 @@ transform: rotate(-405deg); } } + @-webkit-keyframes swal2-animate-error-x-mark { 0% { margin-top: 1.625em; @@ -1160,6 +1297,7 @@ opacity: 1; } } + @keyframes swal2-animate-error-x-mark { 0% { margin-top: 1.625em; @@ -1181,6 +1319,7 @@ opacity: 1; } } + @-webkit-keyframes swal2-animate-error-icon { 0% { transform: rotateX(100deg); @@ -1191,6 +1330,7 @@ opacity: 1; } } + @keyframes swal2-animate-error-icon { 0% { transform: rotateX(100deg); @@ -1201,6 +1341,7 @@ opacity: 1; } } + @-webkit-keyframes swal2-rotate-loading { 0% { transform: rotate(0deg); @@ -1209,6 +1350,7 @@ transform: rotate(360deg); } } + @keyframes swal2-rotate-loading { 0% { transform: rotate(0deg); @@ -1217,12 +1359,15 @@ transform: rotate(360deg); } } + body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) { overflow: hidden; } + body.swal2-height-auto { height: auto !important; } + body.swal2-no-backdrop .swal2-container { top: auto; right: auto; @@ -1231,64 +1376,79 @@ body.swal2-no-backdrop .swal2-container max-width: calc(100% - 0.625em * 2); background-color: transparent !important; } + body.swal2-no-backdrop .swal2-container > .swal2-modal { box-shadow: 0 0 10px rgba(0, 0, 0, 0.4); } + body.swal2-no-backdrop .swal2-container.swal2-top { top: 0; left: 50%; transform: translateX(-50%); } + body.swal2-no-backdrop .swal2-container.swal2-top-start, body.swal2-no-backdrop .swal2-container.swal2-top-left { top: 0; left: 0; } + body.swal2-no-backdrop .swal2-container.swal2-top-end, body.swal2-no-backdrop .swal2-container.swal2-top-right { top: 0; right: 0; } + body.swal2-no-backdrop .swal2-container.swal2-center { top: 50%; left: 50%; transform: translate(-50%, -50%); } + body.swal2-no-backdrop .swal2-container.swal2-center-start, body.swal2-no-backdrop .swal2-container.swal2-center-left { top: 50%; left: 0; transform: translateY(-50%); } + body.swal2-no-backdrop .swal2-container.swal2-center-end, body.swal2-no-backdrop .swal2-container.swal2-center-right { top: 50%; right: 0; transform: translateY(-50%); } + body.swal2-no-backdrop .swal2-container.swal2-bottom { bottom: 0; left: 50%; transform: translateX(-50%); } + body.swal2-no-backdrop .swal2-container.swal2-bottom-start, body.swal2-no-backdrop .swal2-container.swal2-bottom-left { bottom: 0; left: 0; } + body.swal2-no-backdrop .swal2-container.swal2-bottom-end, body.swal2-no-backdrop .swal2-container.swal2-bottom-right { right: 0; bottom: 0; } + @media print { body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) { overflow-y: scroll !important; } + body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) > [aria-hidden=true] { display: none; } + body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container { position: static !important; } } + body.swal2-toast-shown .swal2-container { background-color: transparent; } + body.swal2-toast-shown .swal2-container.swal2-top { top: 0; right: auto; @@ -1296,18 +1456,21 @@ body.swal2-toast-shown .swal2-container. left: 50%; transform: translateX(-50%); } + body.swal2-toast-shown .swal2-container.swal2-top-end, body.swal2-toast-shown .swal2-container.swal2-top-right { top: 0; right: 0; bottom: auto; left: auto; } + body.swal2-toast-shown .swal2-container.swal2-top-start, body.swal2-toast-shown .swal2-container.swal2-top-left { top: 0; right: auto; bottom: auto; left: 0; } + body.swal2-toast-shown .swal2-container.swal2-center-start, body.swal2-toast-shown .swal2-container.swal2-center-left { top: 50%; right: auto; @@ -1315,6 +1478,7 @@ body.swal2-toast-shown .swal2-container. left: 0; transform: translateY(-50%); } + body.swal2-toast-shown .swal2-container.swal2-center { top: 50%; right: auto; @@ -1322,6 +1486,7 @@ body.swal2-toast-shown .swal2-container. left: 50%; transform: translate(-50%, -50%); } + body.swal2-toast-shown .swal2-container.swal2-center-end, body.swal2-toast-shown .swal2-container.swal2-center-right { top: 50%; right: 0; @@ -1329,12 +1494,14 @@ body.swal2-toast-shown .swal2-container. left: auto; transform: translateY(-50%); } + body.swal2-toast-shown .swal2-container.swal2-bottom-start, body.swal2-toast-shown .swal2-container.swal2-bottom-left { top: auto; right: auto; bottom: 0; left: 0; } + body.swal2-toast-shown .swal2-container.swal2-bottom { top: auto; right: auto; @@ -1342,30 +1509,36 @@ body.swal2-toast-shown .swal2-container. left: 50%; transform: translateX(-50%); } + body.swal2-toast-shown .swal2-container.swal2-bottom-end, body.swal2-toast-shown .swal2-container.swal2-bottom-right { top: auto; right: 0; bottom: 0; left: auto; } + body.swal2-toast-column .swal2-toast { flex-direction: column; align-items: stretch; } + body.swal2-toast-column .swal2-toast .swal2-actions { flex: 1; align-self: stretch; height: 2.2em; margin-top: 0.3125em; } + body.swal2-toast-column .swal2-toast .swal2-loading { justify-content: center; } + body.swal2-toast-column .swal2-toast .swal2-input { height: 2em; margin: 0.3125em auto; font-size: 1em; } + body.swal2-toast-column .swal2-toast .swal2-validation-message { font-size: 1em; } \ No newline at end of file