style(AdPage): 调整分享按钮位置并优化样式
将分享按钮从左上角移至右上角,避免与系统胶囊按钮重叠 同时调整按钮内边距,移除多余外边距,提升视觉一致性
Showing
1 changed file
with
49 additions
and
52 deletions
| ... | @@ -19,13 +19,14 @@ | ... | @@ -19,13 +19,14 @@ |
| 19 | 19 | ||
| 20 | .share-button-container { | 20 | .share-button-container { |
| 21 | position: absolute; | 21 | position: absolute; |
| 22 | - top: 30rpx; | 22 | + top: 30rpx; /* 避开胶囊按钮 */ |
| 23 | - left: 30rpx; | 23 | + right: 30rpx; |
| 24 | z-index: 10; | 24 | z-index: 10; |
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | .share-button { | 27 | .share-button { |
| 28 | - padding: 1rpx 24rpx; | 28 | + margin: 0; |
| 29 | + padding: 10rpx 24rpx; | ||
| 29 | background: rgba(0, 0, 0, 0.6); | 30 | background: rgba(0, 0, 0, 0.6); |
| 30 | color: white; | 31 | color: white; |
| 31 | border: none; | 32 | border: none; |
| ... | @@ -160,19 +161,19 @@ | ... | @@ -160,19 +161,19 @@ |
| 160 | font-size: 32rpx; | 161 | font-size: 32rpx; |
| 161 | color: #666; | 162 | color: #666; |
| 162 | font-weight: 500; | 163 | font-weight: 500; |
| 163 | - } | 164 | +} |
| 164 | 165 | ||
| 165 | - // 骨架屏样式 | 166 | +// 骨架屏样式 |
| 166 | - .skeleton-container { | 167 | +.skeleton-container { |
| 167 | position: absolute; | 168 | position: absolute; |
| 168 | top: 0; | 169 | top: 0; |
| 169 | left: 0; | 170 | left: 0; |
| 170 | width: 100%; | 171 | width: 100%; |
| 171 | height: 100vh; | 172 | height: 100vh; |
| 172 | z-index: 1; | 173 | z-index: 1; |
| 173 | - } | 174 | +} |
| 174 | 175 | ||
| 175 | - .skeleton-image { | 176 | +.skeleton-image { |
| 176 | width: 100%; | 177 | width: 100%; |
| 177 | height: 100%; | 178 | height: 100%; |
| 178 | background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); | 179 | background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); |
| ... | @@ -184,72 +185,68 @@ | ... | @@ -184,72 +185,68 @@ |
| 184 | flex-direction: column; | 185 | flex-direction: column; |
| 185 | justify-content: center; | 186 | justify-content: center; |
| 186 | align-items: center; | 187 | align-items: center; |
| 187 | - } | 188 | +} |
| 188 | 189 | ||
| 189 | - .skeleton-shimmer { | 190 | +.skeleton-shimmer { |
| 190 | position: absolute; | 191 | position: absolute; |
| 191 | top: 0; | 192 | top: 0; |
| 192 | left: -100%; | 193 | left: -100%; |
| 193 | width: 100%; | 194 | width: 100%; |
| 194 | height: 100%; | 195 | height: 100%; |
| 195 | - background: linear-gradient( | 196 | + background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); |
| 196 | - 90deg, | ||
| 197 | - transparent, | ||
| 198 | - rgba(255, 255, 255, 0.4), | ||
| 199 | - transparent | ||
| 200 | - ); | ||
| 201 | animation: shimmer 1.5s infinite; | 197 | animation: shimmer 1.5s infinite; |
| 202 | - } | 198 | +} |
| 203 | 199 | ||
| 204 | - .skeleton-text { | 200 | +.skeleton-text { |
| 205 | position: relative; | 201 | position: relative; |
| 206 | z-index: 2; | 202 | z-index: 2; |
| 207 | text-align: center; | 203 | text-align: center; |
| 208 | color: #666; | 204 | color: #666; |
| 209 | - } | 205 | +} |
| 210 | 206 | ||
| 211 | - .loading-title { | 207 | +.loading-title { |
| 212 | font-size: 36rpx; | 208 | font-size: 36rpx; |
| 213 | font-weight: 600; | 209 | font-weight: 600; |
| 214 | margin-bottom: 16rpx; | 210 | margin-bottom: 16rpx; |
| 215 | opacity: 0.8; | 211 | opacity: 0.8; |
| 216 | - } | 212 | +} |
| 217 | 213 | ||
| 218 | - .loading-subtitle { | 214 | +.loading-subtitle { |
| 219 | font-size: 28rpx; | 215 | font-size: 28rpx; |
| 220 | opacity: 0.6; | 216 | opacity: 0.6; |
| 221 | animation: pulse 2s infinite; | 217 | animation: pulse 2s infinite; |
| 222 | - } | 218 | +} |
| 223 | 219 | ||
| 224 | - @keyframes skeleton-loading { | 220 | +@keyframes skeleton-loading { |
| 225 | 0% { | 221 | 0% { |
| 226 | background-position: 200% 0; | 222 | background-position: 200% 0; |
| 227 | } | 223 | } |
| 228 | 100% { | 224 | 100% { |
| 229 | background-position: -200% 0; | 225 | background-position: -200% 0; |
| 230 | } | 226 | } |
| 231 | - } | 227 | +} |
| 232 | 228 | ||
| 233 | - @keyframes shimmer { | 229 | +@keyframes shimmer { |
| 234 | 0% { | 230 | 0% { |
| 235 | left: -100%; | 231 | left: -100%; |
| 236 | } | 232 | } |
| 237 | 100% { | 233 | 100% { |
| 238 | left: 100%; | 234 | left: 100%; |
| 239 | } | 235 | } |
| 240 | - } | 236 | +} |
| 241 | 237 | ||
| 242 | - @keyframes pulse { | 238 | +@keyframes pulse { |
| 243 | - 0%, 100% { | 239 | + 0%, |
| 240 | + 100% { | ||
| 244 | opacity: 0.6; | 241 | opacity: 0.6; |
| 245 | } | 242 | } |
| 246 | 50% { | 243 | 50% { |
| 247 | opacity: 0.3; | 244 | opacity: 0.3; |
| 248 | } | 245 | } |
| 249 | - } | 246 | +} |
| 250 | 247 | ||
| 251 | - // 手动刷新样式 | 248 | +// 手动刷新样式 |
| 252 | - .manual-refresh-container { | 249 | +.manual-refresh-container { |
| 253 | position: absolute; | 250 | position: absolute; |
| 254 | top: 0; | 251 | top: 0; |
| 255 | left: 0; | 252 | left: 0; |
| ... | @@ -260,9 +257,9 @@ | ... | @@ -260,9 +257,9 @@ |
| 260 | align-items: center; | 257 | align-items: center; |
| 261 | background-color: #f8f9fa; | 258 | background-color: #f8f9fa; |
| 262 | z-index: 2; | 259 | z-index: 2; |
| 263 | - } | 260 | +} |
| 264 | 261 | ||
| 265 | - .refresh-content { | 262 | +.refresh-content { |
| 266 | text-align: center; | 263 | text-align: center; |
| 267 | padding: 60rpx 40rpx; | 264 | padding: 60rpx 40rpx; |
| 268 | background: white; | 265 | background: white; |
| ... | @@ -270,36 +267,36 @@ | ... | @@ -270,36 +267,36 @@ |
| 270 | box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1); | 267 | box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1); |
| 271 | margin: 0 40rpx; | 268 | margin: 0 40rpx; |
| 272 | max-width: 600rpx; | 269 | max-width: 600rpx; |
| 273 | - } | 270 | +} |
| 274 | 271 | ||
| 275 | - .refresh-icon { | 272 | +.refresh-icon { |
| 276 | font-size: 80rpx; | 273 | font-size: 80rpx; |
| 277 | margin-bottom: 24rpx; | 274 | margin-bottom: 24rpx; |
| 278 | - } | 275 | +} |
| 279 | 276 | ||
| 280 | - .refresh-title { | 277 | +.refresh-title { |
| 281 | font-size: 36rpx; | 278 | font-size: 36rpx; |
| 282 | font-weight: 600; | 279 | font-weight: 600; |
| 283 | color: #333; | 280 | color: #333; |
| 284 | margin-bottom: 16rpx; | 281 | margin-bottom: 16rpx; |
| 285 | - } | 282 | +} |
| 286 | 283 | ||
| 287 | - .refresh-subtitle { | 284 | +.refresh-subtitle { |
| 288 | font-size: 28rpx; | 285 | font-size: 28rpx; |
| 289 | color: #666; | 286 | color: #666; |
| 290 | margin-bottom: 40rpx; | 287 | margin-bottom: 40rpx; |
| 291 | line-height: 1.5; | 288 | line-height: 1.5; |
| 292 | - } | 289 | +} |
| 293 | 290 | ||
| 294 | - .refresh-steps { | 291 | +.refresh-steps { |
| 295 | text-align: left; | 292 | text-align: left; |
| 296 | background: #f8f9fa; | 293 | background: #f8f9fa; |
| 297 | border-radius: 12rpx; | 294 | border-radius: 12rpx; |
| 298 | padding: 32rpx; | 295 | padding: 32rpx; |
| 299 | margin-top: 20rpx; | 296 | margin-top: 20rpx; |
| 300 | - } | 297 | +} |
| 301 | 298 | ||
| 302 | - .step-item { | 299 | +.step-item { |
| 303 | font-size: 30rpx; | 300 | font-size: 30rpx; |
| 304 | color: #333; | 301 | color: #333; |
| 305 | line-height: 1.6; | 302 | line-height: 1.6; |
| ... | @@ -308,10 +305,10 @@ | ... | @@ -308,10 +305,10 @@ |
| 308 | &:last-child { | 305 | &:last-child { |
| 309 | margin-bottom: 0; | 306 | margin-bottom: 0; |
| 310 | } | 307 | } |
| 311 | - } | 308 | +} |
| 312 | 309 | ||
| 313 | - // 错误提示样式 | 310 | +// 错误提示样式 |
| 314 | - .error-container { | 311 | +.error-container { |
| 315 | position: absolute; | 312 | position: absolute; |
| 316 | top: 0; | 313 | top: 0; |
| 317 | left: 0; | 314 | left: 0; |
| ... | @@ -323,15 +320,15 @@ | ... | @@ -323,15 +320,15 @@ |
| 323 | align-items: center; | 320 | align-items: center; |
| 324 | background-color: #f5f5f5; | 321 | background-color: #f5f5f5; |
| 325 | z-index: 1; | 322 | z-index: 1; |
| 326 | - } | 323 | +} |
| 327 | 324 | ||
| 328 | - .error-text { | 325 | +.error-text { |
| 329 | font-size: 32rpx; | 326 | font-size: 32rpx; |
| 330 | color: #999; | 327 | color: #999; |
| 331 | margin-bottom: 40rpx; | 328 | margin-bottom: 40rpx; |
| 332 | - } | 329 | +} |
| 333 | 330 | ||
| 334 | - .retry-button { | 331 | +.retry-button { |
| 335 | padding: 20rpx 40rpx; | 332 | padding: 20rpx 40rpx; |
| 336 | background-color: #007aff; | 333 | background-color: #007aff; |
| 337 | color: white; | 334 | color: white; |
| ... | @@ -342,4 +339,4 @@ | ... | @@ -342,4 +339,4 @@ |
| 342 | &:active { | 339 | &:active { |
| 343 | background-color: #0056cc; | 340 | background-color: #0056cc; |
| 344 | } | 341 | } |
| 345 | - } | 342 | +} | ... | ... |
-
Please register or login to post a comment