feat(product_detail): sync action-sheet to common component
Showing
1 changed file
with
27 additions
and
6 deletions
@@ -72,14 +72,29 @@ export default { | @@ -72,14 +72,29 @@ export default { | ||
72 | opacity: 0; | 72 | opacity: 0; |
73 | } | 73 | } |
74 | 74 | ||
75 | - .cube-action-sheet-fade-enter-active, .cube-action-sheet-fade-leave-active { | ||
76 | - transition: all 0.3s ease-in-out; | 75 | + .cube-action-sheet-fade-enter-active { |
76 | + transition: all 0.4s cubic-bezier(0, 0.96, 0.14, 1.06); | ||
77 | + } | ||
78 | + | ||
79 | + .cube-action-sheet-fade-leave-active { | ||
80 | + transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1); | ||
77 | } | 81 | } |
78 | 82 | ||
79 | .cube-action-sheet-panel { | 83 | .cube-action-sheet-panel { |
80 | background: #fff; | 84 | background: #fff; |
81 | border-top-left-radius: 20px 24px; | 85 | border-top-left-radius: 20px 24px; |
82 | border-top-right-radius: 20px 24px; | 86 | border-top-right-radius: 20px 24px; |
87 | + | ||
88 | + &:after { | ||
89 | + content: ""; | ||
90 | + width: 100%; | ||
91 | + height: 200px; | ||
92 | + position: absolute; | ||
93 | + left: 0; | ||
94 | + bottom: -200px; | ||
95 | + z-index: -1; | ||
96 | + background: #fff; | ||
97 | + } | ||
83 | } | 98 | } |
84 | 99 | ||
85 | .cube-action-sheet-bottom-enter, .cube-action-sheet-bottom-leave-active { | 100 | .cube-action-sheet-bottom-enter, .cube-action-sheet-bottom-leave-active { |
@@ -90,12 +105,18 @@ export default { | @@ -90,12 +105,18 @@ export default { | ||
90 | transform: translate3d(100%, 0, 0); | 105 | transform: translate3d(100%, 0, 0); |
91 | } | 106 | } |
92 | 107 | ||
93 | - .cube-action-sheet-bottom-enter-active, .cube-action-sheet-bottom-leave-active, | ||
94 | - .cube-action-sheet-right-enter-active, .cube-action-sheet-right-leave-active { | ||
95 | - transition: all 0.3s ease-in-out; | 108 | + .cube-action-sheet-bottom-enter-active, |
109 | + .cube-action-sheet-right-enter-active { | ||
110 | + transition: all 0.4s cubic-bezier(0, 0.96, 0.14, 1.06); | ||
111 | + } | ||
112 | + | ||
113 | + .cube-action-sheet-bottom-leave-active, | ||
114 | + .cube-action-sheet-right-leave-active { | ||
115 | + transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1); | ||
96 | } | 116 | } |
97 | 117 | ||
98 | /deep/ .cube-popup-mask { | 118 | /deep/ .cube-popup-mask { |
99 | - opacity: 0.2; | 119 | + background-color: rgba(0, 0, 0, 0.5); |
120 | + opacity: 1; | ||
100 | } | 121 | } |
101 | </style> | 122 | </style> |
-
Please register or login to post a comment