| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- @import "../../styles/animation/fade";
- @import "../../styles/animation/ease";
- body.dialog-open {
- position: fixed; //width: 100%;
- //overflow:hidden;
- }
- .nut-dialog-wrapper {
- position: relative;
- z-index: $zindex-mask;
- }
- .nut-dialog-box {
- position: fixed;
- display: flex;
- align-items: center;
- justify-content: center;
- color: $normal-color;
- }
- .nut-dialog-mask,
- .nut-dialog-box {
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- }
- .nut-dialog-mask {
- position: fixed;
- background: $mask-bg;
- }
- .nut-dialog {
- position: relative;
- width: 86%;
- max-height: 70vh;
- background: #fff;
- border-radius: $border-radius-base;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- }
- .nut-dialog-title {
- display: block;
- line-height: 1.5;
- color: $title-color;
- font-size: $font-size-large;
- text-align: center;
- flex-shrink: 0;
- @include text-ellipsis;
- padding-bottom: 8px; // &:only-child {
- // padding-bottom: 0;
- // }
- }
- .nut-dialog-close {
- position: absolute;
- right: 0;
- top: 0;
- width: 30px;
- height: 30px;
- font-size: 20px;
- text-align: center;
- text-decoration: none;
- background: url("data:image/svg+xml, %3Csvg width='30' height='30' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23848484' fill-rule='evenodd'%3E%3Cpath d='M.44 2.56A1.5 1.5 0 1 1 2.56.44l27 27a1.5 1.5 0 1 1-2.12 2.12L15 17.123 2.56 29.56A1.5 1.5 0 1 1 .44 27.44L12.878 15 .44 2.56zM27.44.44a1.5 1.5 0 1 1 2.12 2.12l-9 9a1.5 1.5 0 1 1-2.12-2.12l9-9z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center;
- background-size: 13px 13px;
- img {
- height: 13px;
- }
- }
- .nut-dialog-image-wrapper {
- .nut-dialog {
- width: auto;
- max-width: 80%;
- max-height: 75%;
- background: transparent;
- border-radius: none;
- display: inline-block;
- overflow: visible;
- }
- .nut-dialog-close {
- position: absolute;
- right: 0;
- top: -40px;
- width: 25px;
- height: 25px;
- font-size: 20px;
- text-align: center;
- text-decoration: none;
- border: 2px solid #FFF;
- border-radius: 50%;
- background: url("data:image/svg+xml, %3Csvg width='30' height='30' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-rule='evenodd'%3E%3Cpath d='M.44 2.56A1.5 1.5 0 1 1 2.56.44l27 27a1.5 1.5 0 1 1-2.12 2.12L15 17.123 2.56 29.56A1.5 1.5 0 1 1 .44 27.44L12.878 15 .44 2.56zM27.44.44a1.5 1.5 0 1 1 2.12 2.12l-9 9a1.5 1.5 0 1 1-2.12-2.12l9-9z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center;
- background-size: 13px 13px;
- img {
- height: 13px;
- }
- }
- }
- .nut-dialog-link {
- display: inline-block;
- }
- .nut-dialog-image {
- max-width: 100%;
- max-height: 100%;
- vertical-align: bottom;
- }
- .nut-dialog-body {
- box-sizing: border-box;
- padding: 30px 20px 20px;
- display: flex;
- flex-direction: column;
- flex: 1;
- }
- .nut-dialog-content {
- flex: 1;
- justify-content: center;
- overflow: auto;
- font-size: $font-size-base;
- word-break: break-all;
- padding-bottom: 10px;
- -webkit-overflow-scrolling: touch;
- }
- .nut-dialog-footer {
- height: 50px;
- width: 100%;
- line-height: 50px;
- display: flex;
- flex-shrink: 0;
- border-radius: 0 0 5px 5px;
- overflow: hidden;
- flex-direction: row;
- }
- .nut-dialog-btn {
- display: block;
- width: 100%;
- height:100%;
- flex: 1;
- font-size: $font-size-base;
- border: none;
- background: transparent;
- appearance: none;
- outline: none;
- &.disabled {
- background: $btn-disable-bg;
- color: $btn-disable-color;
- }
- &:only-child {
- border-radius: 0 0 5px 5px;
- background: transparent;
- color: $primary-color;
- border-top: 1px solid $light-color;
- }
- &:active{
- opacity: .7;
- }
- }
- .nut-dialog-ok {
- border-radius: 0 0 5px 0;
- background: $btn-gradient-bg;
- color: $btn-gradient-color;
- }
- .nut-dialog-cancel {
- border-radius: 0 0 0 5px;
- border-top: 1px solid $light-color;
- }
- // .fade-enter-active {
- // animation: zoomIn 0.3s forwards;
- // }
- // @keyframes zoomIn {
- // 0% {
- // opacity: 0;
- // transform: scale3d(1.3, 1.3, 1.3);
- // }
- // 50% {
- // opacity: 1;
- // }
- // }
- // @keyframes zoomOut {
- // 0% {
- // opacity: 1;
- // }
- // 50% {
- // opacity: 0;
- // transform: scale3d(1.3, 1.3, 1.3);
- // }
- // 100% {
- // opacity: 0;
- // }
- // }
- // .fade-leave-active {
- // animation: zoomOut 0.3s forwards;
- // }
|