style.css 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. .layout{
  2. transition: all ease 0.8s;
  3. box-sizing: border-box;
  4. width: 100%;
  5. overflow: hidden;
  6. -webkit-overflow-scrolling: touch;
  7. }
  8. .txt-bold{
  9. font-weight: bold;
  10. width: 60px;
  11. }
  12. .clear{
  13. clear: both;
  14. }
  15. .nav-top{
  16. margin: 0 50px 20px;
  17. padding-top: 60px;
  18. }
  19. .nav-top .nav-name .go-map{
  20. background: #fa3800;
  21. color: #fff;
  22. padding: 10px;
  23. border-radius: 4px;
  24. display: inline-block;
  25. cursor: pointer;
  26. text-decoration: none;
  27. margin:0 15px 30px 0;
  28. font-size: 14px;
  29. }
  30. .nav-top .nav-name .nav-tag{
  31. display: inline-block;
  32. font-size: 0;
  33. }
  34. .nav-top .nav-name .fs{
  35. padding: 10px 10px 7px 10px;
  36. box-shadow:0 3px 8px rgba(0,0,0,0.1);
  37. font-size: 14px;
  38. cursor: default;
  39. border-radius: 3px 0 0 3px;
  40. }
  41. .nav-top .nav-name .hpsj{
  42. cursor: pointer;
  43. font-size: 14px;
  44. background: #fa3800;
  45. color: #fff;
  46. padding: 10px;
  47. border-radius: 0 3px 3px 0;
  48. margin-bottom: 30px;
  49. box-shadow:0 3px 8px rgba(0,0,0,0.1);
  50. display: inline-block;
  51. }
  52. .nav-top .go-map .iconfont{
  53. font-size: 14px;
  54. }
  55. .nav-top .area,.nav-top .types{
  56. margin-bottom: 20px ;
  57. display: flex;
  58. align-items: baseline;
  59. }
  60. .nav-top .area ul,.nav-top .types ul{
  61. display: inline-block;
  62. }
  63. .nav-top .area ul li,.nav-top .types ul li{
  64. display: inline-block;
  65. padding: 5px 10px;
  66. margin:0 2px;
  67. cursor: pointer;
  68. border-radius: 4px;
  69. }
  70. .nav-top .area ul li:hover,.nav-top .types ul li:hover{
  71. background: #fa3800;
  72. color: #fff;
  73. }
  74. .nav-top .active{
  75. background: #fa3800;
  76. color: #fff;
  77. }
  78. .list-con{
  79. width: 100%;
  80. padding: 0 30px 40px;
  81. box-sizing: border-box;
  82. overflow-y: scroll;
  83. }
  84. .list-con .card{
  85. display: inline-block;
  86. width: 23%;
  87. box-sizing: border-box;
  88. margin: 30px 1% 0;
  89. background: #fff;
  90. border-radius: 4px;
  91. overflow: hidden;
  92. box-shadow: 1px 1px 10px #ccc;
  93. cursor: pointer;
  94. }
  95. .card-animation{
  96. animation: scaleFrames 0.5s 1;
  97. }
  98. .list-con .card:hover{
  99. animation: scaleFrames 0.5s 1;
  100. animation-fill-mode: forwards;
  101. }
  102. .list-con .card .card-img{
  103. position: relative;
  104. font-size: 0;
  105. max-height: 11vw;
  106. overflow: hidden;
  107. }
  108. .list-con .card .card-img .card-mask{
  109. position: absolute;
  110. top: 0;
  111. left: 0;
  112. width: 100%;
  113. height: 100%;
  114. background: rgba(0, 0, 0, 0.5);
  115. color: #fff;
  116. font-size: 16px;
  117. }
  118. .list-con .card .card-img .clear-mask{
  119. background: none;
  120. }
  121. .list-con .card .card-img .card-mask p {
  122. position: absolute;
  123. left: 50%;
  124. top: 50%;
  125. transform: translateX(-50%) translateY(-50%);
  126. line-height: 1.5;
  127. }
  128. .list-con .card .card-img .card-mask .show-type {
  129. position: absolute;
  130. bottom: 10px;
  131. left: 20px;
  132. }
  133. .list-con .card .card-img .card-mask .show-type i{
  134. font-size: 24px;
  135. margin-right: 10px;
  136. }
  137. .list-con .card .card-img img{
  138. width: 100%;
  139. height: 100%;
  140. }
  141. .list-con .card .card-txt{
  142. padding: 0 10px;
  143. }
  144. .list-con .card .card-txt div{
  145. margin: 10px 0;
  146. }
  147. .list-con .card .card-txt .title .iconfont{
  148. color: #fa3800;
  149. font-size: 28px;
  150. }
  151. .list-con .card .card-txt .title{
  152. font-weight: bold;
  153. display: table;
  154. }
  155. .list-con .card .card-txt .title span{
  156. display: table-cell;
  157. vertical-align: middle;
  158. padding-left: 10px;
  159. }
  160. .list-con .card .card-txt .tag .tag-span{
  161. display: inline-block;
  162. color: #f13800;
  163. border: 1px solid #ff9d7f;
  164. padding: 2px 4px;
  165. border-radius: 3px;
  166. margin-right: 10px;
  167. font-size: 12px;
  168. }
  169. .list-con .card .card-txt .address{
  170. font-size: 14px;
  171. color: #2b2521;
  172. }
  173. .mobile-top{
  174. overflow: hidden;
  175. margin: 70px 10px 0;
  176. }
  177. .mobile-types,.mobile-area{
  178. position: relative;
  179. display: flex;
  180. align-items: center;
  181. margin: 10px 0;
  182. }
  183. .mobile-types .li-type,.mobile-area .li-type{
  184. position: absolute;
  185. left: 0;
  186. padding: 5px 0;
  187. width: 50px;
  188. display: inline-block;
  189. }
  190. .mobile-types .li-ul,.mobile-area .li-ul{
  191. position: relative;
  192. left: 50px;
  193. white-space: nowrap;
  194. overflow-x: scroll;
  195. overflow-y: hidden;
  196. }
  197. .mobile-types .li-ul li,.mobile-area .li-ul li{
  198. padding: 5px 10px;
  199. border-radius: 4px;
  200. display: inline-block;
  201. -webkit-tap-highlight-color:transparent;
  202. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  203. overflow-x: auto;
  204. overflow-y: hidden;
  205. white-space: nowrap;
  206. }
  207. .mobile-types .li-ul::-webkit-scrollbar, .mobile-area .li-ul::-webkit-scrollbar{
  208. display: none;
  209. }
  210. .mobile-top .active{
  211. background: #fa3800;
  212. color: #fff;
  213. }
  214. .mobile-top .tiancong{
  215. display: inline-block;
  216. width: 40px;
  217. }
  218. .mobile-icon{
  219. position: fixed;
  220. bottom: 10px;
  221. left: 10px;
  222. z-index: 99999;
  223. }
  224. .mobile-icon .list-icon{
  225. padding: 5px 12px;
  226. border-radius: 5px;
  227. box-shadow: 0 0 10px rgba(0,0,0,0.2);
  228. text-align: center;
  229. color: #2b2521;
  230. font-size: 12px;
  231. background-color: #fff;
  232. width: 48px;
  233. box-sizing: border-box;
  234. margin-top: 10px;
  235. text-decoration: none;
  236. display: block;
  237. }
  238. .mobile-icon .list-icon i {
  239. display: block;
  240. color: #2b2521;
  241. font-size: 24px;
  242. }
  243. /* 动画帧 */
  244. @keyframes scaleFrames
  245. {
  246. 0% {
  247. transform: scale(1)
  248. }
  249. 100% {
  250. transform: scale(1.05)
  251. }
  252. }
  253. @media screen and (max-width: 1085px){
  254. .list-body{
  255. width: 100%;
  256. }
  257. .list-con{
  258. padding: 10px 0;
  259. box-sizing:inherit;
  260. }
  261. .list-con .card{
  262. width: calc(100% - 20px);
  263. margin: 10px;
  264. }
  265. .nav-top{
  266. margin: 0 10px 20px;
  267. }
  268. .nav-name{
  269. display: none;
  270. }
  271. .nav-top{
  272. padding-top: 80px;
  273. }
  274. .list-con .card{
  275. -webkit-tap-highlight-color:transparent;
  276. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  277. }
  278. .list-con .card:hover{
  279. animation: none;
  280. animation-fill-mode: none;
  281. }
  282. }