discover.wxss 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* pages/discover/discover.wxss */
  2. .discover_container {
  3. padding-top: 88rpx;
  4. padding-bottom: 6rpx;
  5. }
  6. .discover_tab {
  7. position: fixed;
  8. top: 0;
  9. width: 100%;
  10. z-index: 999;
  11. display: -webkit-box;
  12. display: -webkit-flex;
  13. display: flex;
  14. background-color: #fff;
  15. height: 88rpx;
  16. }
  17. .discover_tab_item {
  18. display: block;
  19. -webkit-box-flex: 1;
  20. -webkit-flex: 1;
  21. flex: 1;
  22. width: 100%;
  23. height: 100%;
  24. box-sizing: border-box;
  25. background: -webkit-linear-gradient(top, #e5e5e5, #e5e5e5, rgba(229, 229, 229, 0)) bottom left no-repeat;
  26. background: linear-gradient(180deg, #e5e5e5, #e5e5e5, rgba(229, 229, 229, 0)) bottom left no-repeat;
  27. background-size: 100% 1rpx;
  28. font-size: 28rpx;
  29. text-align: center;
  30. line-height: 88rpx;
  31. color: #666;
  32. }
  33. .discover_tab_selected {
  34. color: #eb4e4f;
  35. border-bottom: 3rpx solid #eb4e4f;
  36. }
  37. .discover_tab_ink-bar {
  38. position: absolute;
  39. height: 4rpx;
  40. bottom: 0;
  41. background-color: #eb4e4f;
  42. text-align: center;
  43. }
  44. .ink-bar-transition-backward {
  45. left: 0;
  46. right: 50%;
  47. -webkit-transition: right 0.3s cubic-bezier(0.35, 0, 0.25, 1) 0.09s,
  48. left 0.3s cubic-bezier(0.35, 0, 0.25, 1);
  49. transition: right 0.3s cubic-bezier(0.35, 0, 0.25, 1) 0.09s,
  50. left 0.3s cubic-bezier(0.35, 0, 0.25, 1);
  51. }
  52. .ink-bar-transition-forward {
  53. left: 50%;
  54. right: 0%;
  55. -webkit-transition: right 0.3s cubic-bezier(0.35, 0, 0.25, 1),
  56. left 0.3s cubic-bezier(0.35, 0, 0.25, 1) 0.09s;
  57. transition: right 0.3s cubic-bezier(0.35, 0, 0.25, 1),
  58. left 0.3s cubic-bezier(0.35, 0, 0.25, 1) 0.09s;
  59. }
  60. .hide {
  61. display: none;
  62. }