index.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /* css reset 重置样式 */
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. }
  6. li {
  7. list-style: none;
  8. }
  9. h1 {
  10. font-weight: normal;
  11. }
  12. /* 头部区域 */
  13. header {
  14. height: 1rem;
  15. background-color: #e54847;
  16. position: relative;
  17. }
  18. header h1 {
  19. text-align: center;
  20. font-size: 0.35rem;
  21. line-height: 1rem;
  22. color: #fff;
  23. }
  24. header .menu {
  25. position: absolute;
  26. height: 1rem;
  27. line-height: 1rem;
  28. right: 20px;
  29. top: 0;
  30. color: #fff;
  31. font-size: 0.35rem;
  32. }
  33. /* 导航栏区域 */
  34. nav {
  35. height: .9rem;
  36. border-bottom: 1px solid #e6e6e6;
  37. display: flex;
  38. justify-content: space-between;
  39. font-size: 0.3rem;
  40. line-height: .9rem;
  41. padding: 0 20px;
  42. }
  43. nav .address {
  44. position: relative;
  45. }
  46. nav .address .city {
  47. font-size: 0.25rem;
  48. color: #666;
  49. }
  50. nav .address::after {
  51. content: "";
  52. display: block;
  53. width: 0;
  54. height: 0;
  55. border-top: .1rem solid #ddd;
  56. border-right: .1rem solid transparent;
  57. border-left: .1rem solid transparent;
  58. /* border-bottom:.1rem solid transparent; */
  59. position: absolute;
  60. top: 50%;
  61. right: -15px;
  62. transform: translateY(-50%);
  63. }
  64. nav .nav ul {
  65. display: flex;
  66. }
  67. nav .nav {
  68. position: relative;
  69. }
  70. nav .nav .under-line {
  71. width: 6vw;
  72. height: 4px;
  73. background-color: #e54847;
  74. position: absolute;
  75. bottom: 4px;
  76. border-radius: 2px;
  77. transition: all 0.1s linear;
  78. }
  79. nav .nav li {
  80. font-size: 0.3rem;
  81. width: 10vw;
  82. text-align: center;
  83. color: #666;
  84. font-weight: 700;
  85. margin: 0 1.3vw;
  86. }
  87. nav .nav.wait .under-line{
  88. left: 28.5vw;
  89. }
  90. nav .nav.cinema .under-line{
  91. left:15.5vw;
  92. }
  93. nav .nav.hot .under-line{
  94. left: 3vw;
  95. }
  96. nav .wait [data-nav="wait"]{
  97. color: #111;
  98. }
  99. nav .cinema [data-nav="cinema"]{
  100. color: #111;
  101. }
  102. nav .hot [data-nav="hot"]{
  103. color: #111;
  104. }
  105. nav .search i.iconfont {
  106. color: #e54847;
  107. font-weight: 700;
  108. font-size: 0.3rem;
  109. }
  110. /* 底部导航栏 */
  111. footer{
  112. background-color: #fff;
  113. height: 1rem;
  114. position: fixed;
  115. bottom: 0;
  116. left: 0;
  117. width: 100%;
  118. border-top: 1px solid #e6e6e6;
  119. }
  120. footer ul{
  121. display: flex;
  122. justify-content: space-around;
  123. }
  124. footer li{
  125. display: flex;
  126. flex-direction: column;
  127. width:0;
  128. flex-grow: 1;
  129. align-items: center;
  130. height: 1rem;
  131. justify-content: center;
  132. }
  133. footer li span{
  134. font-size: 0.2rem;
  135. }
  136. footer li.active{
  137. color: #e54847;
  138. }