definicao de layout

This commit is contained in:
2026-02-06 14:37:54 +00:00
parent 872a5bb3ea
commit a4f80c85c2
2686 changed files with 640668 additions and 294 deletions

View File

@@ -0,0 +1,143 @@
// Appearance animation
@keyframes swal2-show {
0% {
transform: scale(.7);
}
45% {
transform: scale(1.05);
}
80% {
transform: scale(.95);
}
100% {
transform: scale(1);
}
}
// Disppearance animation
@keyframes swal2-hide {
0% {
transform: scale(1);
opacity: 1;
}
100% {
transform: scale(.5);
opacity: 0;
}
}
// Success icon animations
@keyframes swal2-animate-success-line-tip {
0% {
top: 1.1875em;
left: .0625em;
width: 0;
}
54% {
top: 1.0625em;
left: .125em;
width: 0;
}
70% {
top: 2.1875em;
left: -.375em;
width: 3.125em;
}
84% {
top: 3em;
left: 1.3125em;
width: 1.0625em;
}
100% {
top: 2.8125em;
left: .875em;
width: 1.5625em;
}
}
@keyframes swal2-animate-success-line-long {
0% {
top: 3.375em;
right: 2.875em;
width: 0;
}
65% {
top: 3.375em;
right: 2.875em;
width: 0;
}
84% {
top: 2.1875em;
right: 0;
width: 3.4375em;
}
100% {
top: 2.375em;
right: .5em;
width: 2.9375em;
}
}
@keyframes swal2-rotate-success-circular-line {
0% {
transform: rotate(-45deg);
}
5% {
transform: rotate(-45deg);
}
12% {
transform: rotate(-405deg);
}
100% {
transform: rotate(-405deg);
}
}
// Error icon animations
@keyframes swal2-animate-error-x-mark {
0% {
margin-top: 1.625em;
transform: scale(.4);
opacity: 0;
}
50% {
margin-top: 1.625em;
transform: scale(.4);
opacity: 0;
}
80% {
margin-top: -.375em;
transform: scale(1.15);
}
100% {
margin-top: 0;
transform: scale(1);
opacity: 1;
}
}
@keyframes swal2-animate-error-icon {
0% {
transform: rotateX(100deg);
opacity: 0;
}
100% {
transform: rotateX(0deg);
opacity: 1;
}
}

View File

@@ -0,0 +1,21 @@
@mixin ie {
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
@content;
}
}
// https://stackoverflow.com/a/30250161
@mixin not($ignor-list...) {
@if (length($ignor-list) == 1) {
$ignor-list: nth($ignor-list, 1);
}
$not-output: '';
@each $not in $ignor-list {
$not-output: $not-output + ':not(#{$not})';
}
&#{$not-output} {
@content;
}
}

View File

@@ -0,0 +1,376 @@
body {
&.swal2-toast-shown {
.swal2-container {
position: fixed;
background-color: transparent;
&.swal2-shown {
background-color: transparent;
}
&.swal2-top {
top: 0;
right: auto;
bottom: auto;
left: 50%;
transform: translateX(-50%);
}
&.swal2-top-end,
&.swal2-top-right {
top: 0;
right: 0;
bottom: auto;
left: auto;
}
&.swal2-top-start,
&.swal2-top-left {
top: 0;
right: auto;
bottom: auto;
left: 0;
}
&.swal2-center-start,
&.swal2-center-left {
top: 50%;
right: auto;
bottom: auto;
left: 0;
transform: translateY(-50%);
}
&.swal2-center {
top: 50%;
right: auto;
bottom: auto;
left: 50%;
transform: translate(-50%, -50%);
}
&.swal2-center-end,
&.swal2-center-right {
top: 50%;
right: 0;
bottom: auto;
left: auto;
transform: translateY(-50%);
}
&.swal2-bottom-start,
&.swal2-bottom-left {
top: auto;
right: auto;
bottom: 0;
left: 0;
}
&.swal2-bottom {
top: auto;
right: auto;
bottom: 0;
left: 50%;
transform: translateX(-50%);
}
&.swal2-bottom-end,
&.swal2-bottom-right {
top: auto;
right: 0;
bottom: 0;
left: auto;
}
}
}
&.swal2-toast-column {
.swal2-toast {
flex-direction: column;
align-items: stretch;
.swal2-actions {
flex: 1;
align-self: stretch;
height: 2.2em;
margin-top: .3125em;
}
.swal2-loading {
justify-content: center;
}
.swal2-input {
height: 2em;
margin: .3125em auto;
font-size: $swal2-toast-input-font-size;
}
.swal2-validation-message {
font-size: $swal2-toast-validation-font-size;
}
}
}
}
.swal2-popup {
&.swal2-toast {
flex-direction: row;
align-items: center;
width: $swal2-toast-width;
padding: $swal2-toast-padding;
box-shadow: 0 0 .625em $swal2-box-shadow;
overflow-y: hidden;
.swal2-header {
flex-direction: row;
}
.swal2-title {
flex-grow: 1;
justify-content: flex-start;
margin: 0 .6em;
font-size: $swal2-toast-title-font-size;
}
.swal2-footer {
margin: $swal2-toast-footer-margin;
padding: $swal2-toast-footer-margin;
font-size: $swal2-toast-footer-font-size;
}
.swal2-close {
position: initial;
width: $swal2-toast-close-button-width;
height: $swal2-toast-close-button-height;
line-height: $swal2-toast-close-button-line-height;
}
.swal2-content {
justify-content: flex-start;
font-size: $swal2-toast-content-font-size;
}
.swal2-icon {
width: 2em;
min-width: 2em;
height: 2em;
margin: 0;
&-text {
font-size: 2em;
font-weight: bold;
line-height: 1em;
}
&.swal2-success {
.swal2-success-ring {
width: 2em;
height: 2em;
}
}
&.swal2-error {
[class^='swal2-x-mark-line'] {
top: .875em;
width: 1.375em;
&[class$='left'] {
left: .3125em;
}
&[class$='right'] {
right: .3125em;
}
}
}
}
.swal2-actions {
height: auto;
margin: 0 .3125em;
}
.swal2-styled {
margin: 0 .3125em;
padding: .3125em .625em;
font-size: $swal2-toast-buttons-font-size;
&:focus {
box-shadow: 0 0 0 .0625em $swal2-white, 0 0 0 .125em $swal2-button-focus-outline;
}
}
.swal2-success {
border-color: $swal2-success;
[class^='swal2-success-circular-line'] { // Emulate moving circular line
position: absolute;
width: 2em;
height: 2.8125em;
transform: rotate(45deg);
border-radius: 50%;
&[class$='left'] {
top: -.25em;
left: -.9375em;
transform: rotate(-45deg);
transform-origin: 2em 2em;
border-radius: 4em 0 0 4em;
}
&[class$='right'] {
top: -.25em;
left: .9375em;
transform-origin: 0 2em;
border-radius: 0 4em 4em 0;
}
}
.swal2-success-ring {
width: 2em;
height: 2em;
}
.swal2-success-fix {
top: 0;
left: .4375em;
width: .4375em;
height: 2.6875em;
}
[class^='swal2-success-line'] {
height: .3125em;
&[class$='tip'] {
top: 1.125em;
left: .1875em;
width: .75em;
}
&[class$='long'] {
top: .9375em;
right: .1875em;
width: 1.375em;
}
}
}
&.swal2-show {
animation: showSweetToast .5s;
}
&.swal2-hide {
animation: hideSweetToast .2s forwards;
}
.swal2-animate-success-icon {
.swal2-success-line-tip {
animation: animate-toast-success-tip .75s;
}
.swal2-success-line-long {
animation: animate-toast-success-long .75s;
}
}
}
}
// Animations
@keyframes showSweetToast {
0% {
transform: translateY(-.625em) rotateZ(2deg);
opacity: 0;
}
33% {
transform: translateY(0) rotateZ(-2deg);
opacity: .5;
}
66% {
transform: translateY(.3125em) rotateZ(2deg);
opacity: .7;
}
100% {
transform: translateY(0) rotateZ(0);
opacity: 1;
}
}
@keyframes hideSweetToast {
0% {
opacity: 1;
}
33% {
opacity: .5;
}
100% {
transform: rotateZ(1deg);
opacity: 0;
}
}
@keyframes animate-toast-success-tip {
0% {
top: .5625em;
left: .0625em;
width: 0;
}
54% {
top: .125em;
left: .125em;
width: 0;
}
70% {
top: .625em;
left: -.25em;
width: 1.625em;
}
84% {
top: 1.0625em;
left: .75em;
width: .5em;
}
100% {
top: 1.125em;
left: .1875em;
width: .75em;
}
}
@keyframes animate-toast-success-long {
0% {
top: 1.625em;
right: 1.375em;
width: 0;
}
65% {
top: 1.25em;
right: .9375em;
width: 0;
}
84% {
top: .9375em;
right: 0;
width: 1.125em;
}
100% {
top: .9375em;
right: .1875em;
width: 1.375em;
}
}

View File

@@ -0,0 +1,142 @@
$swal2-white: #fff !default;
$swal2-black: #000 !default;
// BOX MODEL
$swal2-width: 32em !default;
$swal2-padding: 1.25em !default;
$swal2-border-radius: .3125em !default;
$swal2-box-shadow: #d9d9d9 !default;
// BACKGROUND
$swal2-background: $swal2-white !default;
// TYPOGRAPHY
$swal2-font: inherit !default;
$swal2-font-size: 1rem !default;
// BACKDROP
$swal2-backdrop: rgba($swal2-black, .4) !default;
// ICONS
$swal2-icon-size: 5em !default;
$swal2-icon-margin: 1.25em auto 1.875em !default;
$swal2-icon-zoom: normal !default;
$swal2-success: #a5dc86 !default;
$swal2-success-border: rgba($swal2-success, .3) !default;
$swal2-error: #f27474 !default;
$swal2-warning: #f8bb86 !default;
$swal2-info: #3fc3ee !default;
$swal2-question: #87adbd !default;
// IMAGE
$swal2-image-margin: 1.25em auto !default;
// TITLE
$swal2-title-margin: 0 0 .4em !default;
$swal2-title-color: lighten($swal2-black, 35) !default;
$swal2-title-font-size: 1.875em !default;
// CONTENT
$swal2-content-color: lighten($swal2-black, 33) !default;
$swal2-content-font-size: 1.125em !default;
// INPUT
$swal2-input-margin: 1em auto !default;
$swal2-input-height: 2.625em !default;
$swal2-input-padding: 0 .75em !default;
$swal2-input-border: lighten($swal2-black, 85) !default;
$swal2-input-border-radius: .1875em !default;
$swal2-input-border-focus: #b4dbed !default;
$swal2-input-box-shadow: rgba($swal2-black, .06) !default;
$swal2-input-box-shadow-focus: #c4e6f5 !default;
$swal2-input-font-size: 1.125em !default;
// TEXTAREA SPECIFIC VARIABLES
$swal2-textarea-height: 6.75em !default;
$swal2-textarea-padding: .75em !default;
// VALIDATION MESSAGE
$swal2-validationerror-justify-content: center !default;
$swal2-validationerror-padding: .625em !default;
$swal2-validationerror-background: lighten($swal2-black, 94) !default;
$swal2-validationerror-color: lighten($swal2-black, 40) !default;
$swal2-validationerror-font-size: 1em !default;
$swal2-validationerror-font-weight: 300 !default;
$swal2-validationerror-icon-background: $swal2-error !default;
$swal2-validationerror-icon-color: $swal2-white !default;
$swal2-validationerror-icon-zoom: normal !default;
// PROGRESS STEPS
$swal2-progress-steps-margin: 0 0 1.25em !default;
$swal2-progress-steps-distance: 2.5em !default;
// FOOTER
$swal2-footer-margin: 1.25em 0 0 !default;
$swal2-footer-padding: 1em 0 0 !default;
$swal2-footer-border-color: #eee !default;
$swal2-footer-color: lighten($swal2-black, 33) !default;
$swal2-footer-font-size: 1em !default;
// ANIMATIONS
$swal2-show-animation: swal2-show .3s !default;
$swal2-hide-animation: swal2-hide .15s forwards !default;
$swal2-success-line-tip-animation: swal2-animate-success-line-tip .75s !default;
$swal2-success-line-long-animation: swal2-animate-success-line-long .75s !default;
$swal2-success-circular-line-animation: swal2-rotate-success-circular-line 4.25s ease-in !default;
$swal2-error-icon-animation: swal2-animate-error-icon .5s !default;
$swal2-error-x-mark-animation: swal2-animate-error-x-mark .5s !default;
// CLOSE BUTTON
$swal2-close-button-width: 1.2em !default;
$swal2-close-button-height: 1.2em !default;
$swal2-close-button-line-height: 1.2 !default;
$swal2-close-button-position: absolute !default;
$swal2-close-button-gap: 0 !default;
$swal2-close-button-transition: color .1s ease-out !default;
$swal2-close-button-border: none !default;
$swal2-close-button-border-radius: 0 !default;
$swal2-close-button-outline: initial !default;
$swal2-close-button-background: transparent !default;
$swal2-close-button-color: lighten($swal2-black, 80) !default;
$swal2-close-button-font-size: 2.5em !default;
// CLOSE BUTTON:HOVER
$swal2-close-button-hover-transform: none !default;
$swal2-close-button-hover-color: $swal2-error !default;
// ACTIONS
$swal2-actions-margin: 1.25em auto 0 !default;
// CONFIRM BUTTON
$swal2-confirm-button-border: 0 !default;
$swal2-confirm-button-border-radius: .25em !default;
$swal2-confirm-button-background-color: #3085d6 !default;
$swal2-confirm-button-color: $swal2-white !default;
$swal2-confirm-button-font-size: 1.0625em !default;
// CANCEL BUTTON
$swal2-cancel-button-border: 0 !default;
$swal2-cancel-button-border-radius: .25em !default;
$swal2-cancel-button-background-color: #aaa !default;
$swal2-cancel-button-color: $swal2-white !default;
$swal2-cancel-button-font-size: 1.0625em !default;
// COMMON VARIABLES FOR CONFIRM AND CANCEL BUTTONS
$swal2-button-darken-hover: rgba($swal2-black, .1) !default;
$swal2-button-darken-active: rgba($swal2-black, .2) !default;
$swal2-button-focus-outline: rgba(50, 100, 150, .4) !default;
// TOASTS
$swal2-toast-close-button-width: .8em !default;
$swal2-toast-close-button-height: .8em !default;
$swal2-toast-close-button-line-height: .8 !default;
$swal2-toast-width: auto !default;
$swal2-toast-padding: .625em !default;
$swal2-toast-title-font-size: 1em !default;
$swal2-toast-content-font-size: 1em !default;
$swal2-toast-input-font-size: 1em !default;
$swal2-toast-validation-font-size: 1em !default;
$swal2-toast-buttons-font-size: 1em !default;
$swal2-toast-footer-margin: .5em 0 0 !default;
$swal2-toast-footer-padding: .5em 0 0 !default;
$swal2-toast-footer-font-size: .8em !default;