popup.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. .popup-wrap{
  2. position: fixed;
  3. top: 0;
  4. bottom: 0;
  5. left: 0;
  6. right: 0;
  7. text-align: center;
  8. overflow-y: auto;
  9. z-index: 1015;
  10. &:after{
  11. content: "";
  12. display: inline-block;
  13. height: 100%;
  14. width: 0;
  15. vertical-align: middle;
  16. }
  17. .popup-modal{
  18. z-index: 1014;
  19. position: fixed;
  20. left: 0;
  21. top: 0;
  22. width: 100%;
  23. height: 100%;
  24. opacity: .35;
  25. background: #000;
  26. }
  27. .popup-close{
  28. background: url("./assets/newwork-close-icon.png") center no-repeat;
  29. background-color: rgba(0, 0, 0, 0.2);
  30. background-size: px2rem(13);
  31. width: px2rem(25);
  32. height: px2rem(25);
  33. position: absolute;
  34. top: px2rem(15);
  35. right: px2rem(15);
  36. cursor: pointer;
  37. @media #{$phone} {
  38. background-size: px2rem(18);
  39. }
  40. &:hover{
  41. opacity: 0.7;
  42. }
  43. }
  44. .popup-box{
  45. display: inline-block;
  46. vertical-align: middle;
  47. min-width: px2rem(563);
  48. position: relative;
  49. z-index: 1015;
  50. background-color: #395497;
  51. box-shadow: 0 2px 12px 0px rgba(0, 0, 0, 0.55);
  52. }
  53. .popup-hd{
  54. height: px2rem(56);
  55. position: relative;
  56. }
  57. .popup-bd{
  58. min-height: px2rem(200);
  59. margin: px2rem(15);
  60. color: rgba(255, 255, 255, 0.6);
  61. }
  62. .popup-hd-title{
  63. text-align: center;
  64. height: px2rem(56);
  65. line-height: px2rem(56);
  66. font-size: 0;
  67. border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  68. em{
  69. font-size: px2rem(24);
  70. color: #ffffff;
  71. vertical-align: middle;
  72. display: inline-block;
  73. position: relative;
  74. font-weight: bold;
  75. font-style: normal;
  76. }
  77. }
  78. }
  79. .msgbox-fade-enter-active {
  80. animation: msgbox-fade-in .3s;
  81. }
  82. .msgbox-fade-leave-active {
  83. animation: msgbox-fade-out .3s;
  84. }
  85. @keyframes msgbox-fade-in {
  86. 0% {
  87. transform: translate3d(0, -20px, 0);
  88. opacity: 0;
  89. }
  90. 100% {
  91. transform: translate3d(0, 0, 0);
  92. opacity: 1;
  93. }
  94. }
  95. @keyframes msgbox-fade-out {
  96. 0% {
  97. transform: translate3d(0, 0, 0);
  98. opacity: 1;
  99. }
  100. 100% {
  101. transform: translate3d(0, -20px, 0);
  102. opacity: 0;
  103. }
  104. }