| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- @import '../style/var';
- .van-dialog {
- position: fixed;
- top: 50%;
- left: 50%;
- overflow: hidden;
- width: @dialog-width;
- font-size: @dialog-font-size;
- transition: @dialog-transition;
- border-radius: @dialog-border-radius;
- background-color: @dialog-background-color;
- transform: translate3d(-50%, -50%, 0);
- backface-visibility: hidden; // avoid blurry text after scale animation
- &__header {
- text-align: center;
- font-weight: @dialog-header-font-weight;
- padding-top: @dialog-header-padding-top;
- &--isolated {
- padding: @dialog-header-isolated-padding;
- }
- }
- &__message {
- padding: @dialog-message-padding;
- font-size: @dialog-message-font-size;
- line-height: @dialog-message-line-height;
- max-height: @dialog-message-max-height;
- overflow-y: auto;
- text-align: center;
- -webkit-overflow-scrolling: touch;
- // allow newline charactor
- white-space: pre-wrap;
- &--has-title {
- color: @dialog-has-title-message-text-color;
- padding-top: @dialog-has-title-message-padding-top;
- }
- &--left {
- text-align: left;
- }
- &--right {
- text-align: right;
- }
- }
- &__footer {
- overflow: hidden;
- user-select: none;
- &--buttons {
- display: flex;
- .van-button {
- flex: 1;
- }
- }
- }
- .van-button {
- border: 0;
- }
- &__confirm {
- &,
- &:active {
- color: @dialog-confirm-button-text-color;
- }
- }
- &-bounce-enter {
- opacity: 0;
- transform: translate3d(-50%, -50%, 0) scale(0.7);
- }
- &-bounce-leave-active {
- opacity: 0;
- transform: translate3d(-50%, -50%, 0) scale(0.9);
- }
- }
|