_dialog.scss 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. .ui-dialog {
  2. position: fixed;
  3. display: flex;
  4. align-items: center;
  5. justify-content: center;
  6. left: 0;
  7. top: 0;
  8. width: 100%;
  9. height: 100%;
  10. overflow: hidden;
  11. color: #fff;
  12. background-color: rgba($color: #000000, $alpha: 0.3);
  13. backdrop-filter: blur(1px);
  14. }
  15. .ui-dialog__box {
  16. position: relative;
  17. display: inline-block;
  18. min-width: 400px;
  19. min-height: 100px;
  20. background-color: rgba($color: #1a1a1a, $alpha: 0.8);
  21. box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.7);
  22. border-radius: 4px;
  23. border: 1px solid #000000;
  24. // backdrop-filter: blur(400px);
  25. backdrop-filter: blur(4px);
  26. &::after {
  27. content: '';
  28. position: absolute;
  29. left: 1px;
  30. right: 1px;
  31. bottom: 1px;
  32. top: 1px;
  33. border: 1px solid rgba($color: #fff, $alpha: 0.1);
  34. border-radius: 4px;
  35. z-index: 0;
  36. pointer-events: none;
  37. }
  38. header {
  39. color: #999999;
  40. padding: 0 20px;
  41. height: 60px;
  42. display: flex;
  43. align-items: center;
  44. justify-content: space-between;
  45. border-bottom: solid 1px rgba($color: #ffffff, $alpha: 0.16);
  46. font-weight: bold;
  47. i {
  48. cursor: pointer;
  49. }
  50. }
  51. section {
  52. padding: 40px 20px;
  53. display: flex;
  54. align-items: center;
  55. justify-content: center;
  56. .message {
  57. text-align: center;
  58. line-height: 1.7;
  59. }
  60. }
  61. footer {
  62. padding: 20px;
  63. display: flex;
  64. align-items: center;
  65. justify-content: center;
  66. border-top: solid 1px rgba($color: #ffffff, $alpha: 0.16);
  67. button {
  68. width: 105px;
  69. margin-left: 10px;
  70. margin-right: 10px;
  71. }
  72. }
  73. }
  74. [is-mobile]{
  75. .ui-dialog__box{
  76. max-width: 90%;
  77. min-width: 80%;
  78. // width: 8.9333rem;
  79. // min-width: 5.3333rem;
  80. // min-height: 1.3333rem;
  81. // section{
  82. // padding: 1.0667rem .5333rem .8rem;
  83. // }
  84. // footer{
  85. // padding: 0 0 .8rem;
  86. // border-top: none;
  87. // }
  88. // header{
  89. // display: none;
  90. // }
  91. }
  92. section {
  93. .message {
  94. text-align: left;
  95. }
  96. }
  97. }