_searchPage.scss 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  1. .search {
  2. opacity: 0;
  3. visibility: hidden;
  4. position: relative;
  5. background: url(../images/searchPage/search-bg.jpg) repeat center top/50% auto;
  6. padding-bottom: 104px;
  7. img {
  8. width: 100%;
  9. height: auto;
  10. image-rendering: pixelated;
  11. image-rendering: -webkit-optimize-contrast;
  12. }
  13. &__kv {
  14. position: absolute;
  15. top: 0;
  16. width: 100%;
  17. height: 667px;
  18. height: calc(var(--vh, 1vh) * 100);
  19. overflow-x: auto;
  20. overflow-y: hidden;
  21. &__container {
  22. height: 667px;
  23. position: relative;
  24. overflow: hidden;
  25. }
  26. &__bg {
  27. position: sticky;
  28. top: 0;
  29. left: 0;
  30. width: 100%;
  31. height: 100%;
  32. overflow: hidden;
  33. z-index: 0;
  34. &__img {
  35. position: absolute;
  36. top: 0;
  37. left: 0;
  38. width: 100%;
  39. height: 100%;
  40. background: url(https://d1xzlli46wohoc.cloudfront.net/images/indexPage/bg.jpg) no-repeat;
  41. background-position: 49.1% -60px;
  42. background-size: 827%;
  43. }
  44. }
  45. &__bottom{
  46. background: url(../images/searchPage/search-bg.jpg) repeat-x center top/contain;
  47. position: absolute;
  48. top: 480px;
  49. left: 0;
  50. width: 100%;
  51. height: 100%;
  52. }
  53. &__title {
  54. position: absolute;
  55. left: 51%;
  56. transform: translateX(-50%);
  57. top: 75px;
  58. display: inline-block;
  59. width: auto;
  60. height: 113px;
  61. z-index: 3;
  62. img {
  63. width: auto;
  64. height: 100%;
  65. }
  66. }
  67. &__table {
  68. position: absolute;
  69. top: 438px;
  70. left: 0;
  71. width: 100%;
  72. height: 187px;
  73. background: url(../images/searchPage/kv-table.png) repeat-x left top;
  74. background-size: auto 100%;
  75. z-index: 1;
  76. }
  77. &__slides {
  78. position: absolute;
  79. top: 0;
  80. left: 0;
  81. width: auto;
  82. height: 100%;
  83. overflow: hidden;
  84. display: flex;
  85. align-items: flex-start;
  86. justify-content: flex-start;
  87. padding: 202px 75px 0;
  88. transform-origin: 0 50%;
  89. }
  90. &__slide {
  91. position: relative;
  92. font-size: 0;
  93. height: 260px;
  94. width: 250px;
  95. z-index: 2;
  96. }
  97. &__ordinary {
  98. position: relative;
  99. display: flex;
  100. justify-content: center;
  101. align-items: center;
  102. width: 100%;
  103. height: 100%;
  104. img {
  105. height: 100%;
  106. width: auto;
  107. }
  108. }
  109. &__light {
  110. opacity: 0;
  111. visibility: hidden;
  112. position: absolute;
  113. bottom: -9vh;
  114. left: 50%;
  115. transform: translateX(-50%);
  116. width: 65vh;
  117. height: 64vh;
  118. background: url(https://d1xzlli46wohoc.cloudfront.net/images/indexPage/index-light.png) no-repeat center center/100% auto;
  119. }
  120. &__basket {
  121. display: block;
  122. position: absolute;
  123. bottom: -36px;
  124. left: 50%;
  125. transform: translateX(-50%);
  126. height: 110px;
  127. img {
  128. width: auto;
  129. height: 100%;
  130. }
  131. }
  132. &__dishes {
  133. position: sticky;
  134. top: 506px;
  135. left: 0;
  136. width: 100%;
  137. height: 82px;
  138. z-index: 2;
  139. // background: url(../images/searchPage/kv-dish.png) no-repeat 50% center/contain;
  140. }
  141. &__dish {
  142. display: block;
  143. opacity: 0;
  144. visibility: hidden;
  145. position: absolute;
  146. top: 0;
  147. left: 50%;
  148. transform: translateX(-50%);
  149. width: 100%;
  150. height: 100%;
  151. color: $blue;
  152. display: flex;
  153. justify-content: center;
  154. align-items: center;
  155. flex-wrap: wrap;
  156. @include em(20);
  157. font-weight: 900;
  158. text-align: center;
  159. padding: 15px 35px;
  160. line-height: 1.3;
  161. span {
  162. display: block;
  163. width: 100%;
  164. text-align: center;
  165. font-size: 0.8em;
  166. font-weight: 700;
  167. }
  168. &:hover {
  169. color: $blue;
  170. text-decoration: none;
  171. }
  172. }
  173. }
  174. &__form {
  175. padding: 20px 0;
  176. display: flex;
  177. flex-direction: column;
  178. align-items: center;
  179. justify-content: flex-start;
  180. &__title {
  181. width: 288px;
  182. margin-bottom: 30px;
  183. }
  184. &__box {
  185. width: 100%;
  186. display: flex;
  187. flex-direction: column;
  188. align-items: center;
  189. justify-content: flex-start;
  190. }
  191. &__name {
  192. width: 110px;
  193. margin-bottom: 15px;
  194. }
  195. &__list {
  196. width: 100%;
  197. display: flex;
  198. flex-wrap: nowrap;
  199. padding-left: 30px;
  200. padding-bottom: 15px;
  201. margin-bottom: 10px;
  202. overflow-x: auto;
  203. &::after {
  204. content: "";
  205. display: block;
  206. flex: 0 0 20px;
  207. width: 20px;
  208. height: 30px;
  209. }
  210. }
  211. &__item {
  212. margin-right: 10px;
  213. padding-bottom: 15px;
  214. display: inline-block;
  215. padding: 5px 18px 6px;
  216. border-radius: 30px;
  217. border: 1px solid $blue;
  218. color: $blue;
  219. margin-bottom: 0;
  220. line-height: 1;
  221. white-space: nowrap;
  222. &:last-child {
  223. margin-right: 0;
  224. }
  225. &.active {
  226. background-color: rgba(#fff,0.8);
  227. }
  228. }
  229. &__btn {
  230. text-align: center;
  231. width: 100%;
  232. padding: 0 24px;
  233. }
  234. &__cta {
  235. display: block;
  236. text-align: center;
  237. width: 100%;
  238. padding: 12px;
  239. margin-bottom: 25px;
  240. background-color: $blue;
  241. border-radius: 100px;
  242. color: #FFEFBE;
  243. @include em(18);
  244. &:not([href]) {
  245. color: #FFEFBE;
  246. &:hover {
  247. color: #FFEFBE;
  248. }
  249. }
  250. &:hover {
  251. color: #FFEFBE;
  252. }
  253. }
  254. &__clear {
  255. color: #6F6F6F;
  256. text-decoration: underline;
  257. &:not([href]) {
  258. color: #6F6F6F;
  259. text-decoration: underline;
  260. }
  261. }
  262. }
  263. &__result {
  264. padding: 0 20px;
  265. &__box {
  266. background: url(../images/searchPage/result-bg.png) no-repeat center top/100% auto;
  267. display: flex;
  268. flex-direction: column;
  269. align-items: center;
  270. justify-content: flex-start;
  271. width: 335px;
  272. height: 469px;
  273. margin: 0 auto;
  274. padding: 35px 50px 27px;
  275. }
  276. &__title {
  277. width: 165px;
  278. margin-bottom: 20px;
  279. }
  280. &__list {
  281. width: 100%;
  282. padding-left: 0;
  283. list-style: none;
  284. text-align: center;
  285. }
  286. &__item {
  287. width: 100%;
  288. padding-left: 0;
  289. list-style: none;
  290. a {
  291. width: 100%;
  292. text-align: center;
  293. @include em(18);
  294. display: block;
  295. padding: 15px 0;
  296. color: $blue;
  297. font-weight: 700;
  298. border-bottom: 0.5px dashed rgba($blue,0.6);
  299. overflow: hidden;
  300. text-overflow: ellipsis;
  301. white-space: nowrap;
  302. &:hover {
  303. text-decoration: none;
  304. }
  305. }
  306. &:last-child {
  307. a {
  308. border-bottom: none;
  309. }
  310. }
  311. }
  312. &__pagination {
  313. display: flex;
  314. flex-wrap: nowrap;
  315. justify-content: center;
  316. align-items: center;
  317. padding-left: 0;
  318. list-style: none;
  319. margin-bottom: 37px;
  320. }
  321. &__pageitem {
  322. display: flex;
  323. justify-content: center;
  324. align-items: center;
  325. padding-left: 0;
  326. list-style: none;
  327. width: 32px;
  328. height: 32px;
  329. margin: 4px;
  330. background-color: #fff;
  331. border-radius: 4px;
  332. border: 1px #DFE3E8 solid;
  333. color: #212B36;
  334. font-weight: 700;
  335. img {
  336. width: 8px;
  337. height: 10px;
  338. }
  339. &.active {
  340. border: 1px $blue solid;
  341. }
  342. &.disabled {
  343. pointer-events: none;
  344. background-color: rgba($blue,0.5);
  345. }
  346. }
  347. }
  348. .backCelebrity {
  349. display: block;
  350. text-align: center;
  351. img {
  352. display: inline-block;
  353. width: 200px;
  354. height: auto;
  355. }
  356. }
  357. .goTop {
  358. position: absolute;
  359. right: 25px;
  360. bottom: 25px;
  361. background-color: transparent;
  362. border: none;
  363. box-shadow: none;
  364. width: 50px;
  365. padding: 0;
  366. &:focus,&focus-visible {
  367. outline: none;
  368. }
  369. }
  370. }
  371. @media screen and (max-height:570px) {
  372. .search {
  373. &__kv {
  374. height: 550px;
  375. &__container {
  376. height: 550px;
  377. }
  378. &__title {
  379. height: 95px;
  380. }
  381. &__dishes {
  382. top: 400px;
  383. }
  384. &__dish {
  385. @include em(17);
  386. }
  387. &__table {
  388. top: 357px;
  389. height: 127px;
  390. }
  391. &__slides {
  392. padding: 170px 75px 0;
  393. }
  394. &__slide {
  395. height: 210px;
  396. width: 220px;
  397. }
  398. &__basket {
  399. height: 85px;
  400. }
  401. }
  402. }
  403. }