_recipePage.scss 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724
  1. @charset "UTF-8";
  2. .recipeWrapper {
  3. position: relative;
  4. width: 100%;
  5. overflow-x: hidden;
  6. h4 {
  7. text-align: center;
  8. margin-bottom:15px;
  9. img {
  10. display: inline-block;
  11. width: auto;
  12. height: auto;
  13. image-rendering: pixelated;
  14. image-rendering: -webkit-optimize-contrast;
  15. }
  16. }
  17. main {
  18. width: 100%;
  19. height: auto;
  20. position: relative;
  21. padding-bottom: 120px;
  22. }
  23. --plyr-audio-progress-buffered-background: rgba(#fff,0.15);
  24. --plyr-range-fill-background: $blue;
  25. --plyr-range-thumb-background: $blue;
  26. --plyr-range-track-height: 5px;
  27. --plyr-range-thumb-height: 5px;
  28. --plyr-range-thumb-shadow: transparent;
  29. --plyr-range-thumb-active-shadow-width: 0;
  30. --plyr-audio-controls-background: $blue;
  31. --plyr-audio-range-track-background: #fff;
  32. --plyr-audio-range-thumb-active-shadow-color: transparent;
  33. --plyr-tooltip-radius: 0;
  34. --plyr-tooltip-shadow: none;
  35. --plyr-badge-border-radius: 0;
  36. --plyr-control-radius: 0;
  37. --plyr-menu-radius: 0;
  38. .plyr {
  39. margin: 0 20px 15px;
  40. }
  41. .recipe {
  42. &__bg {
  43. position: absolute;
  44. top: 0;
  45. left: 0;
  46. width: 100%;
  47. height: 100%;
  48. background: url(https://d1xzlli46wohoc.cloudfront.net/images/recipePage/bg.jpg) repeat left top/cover;
  49. }
  50. &__kv {
  51. position: relative;
  52. width: 100%;
  53. height: 368px;
  54. img {
  55. width: 100%;
  56. height: auto;
  57. image-rendering: pixelated;
  58. image-rendering: -webkit-optimize-contrast;
  59. }
  60. &__bg {
  61. position: absolute;
  62. top: 0;
  63. left: 0;
  64. width: 100%;
  65. }
  66. &__table {
  67. display: none;
  68. position: absolute;
  69. bottom: 0;
  70. left: 0;
  71. width: 100%;
  72. height: 186px;
  73. background: url(https://d1xzlli46wohoc.cloudfront.net/images/recipePage/kv-table.png) repeat-x left top / cover;
  74. }
  75. &__kol {
  76. position: absolute;
  77. bottom: 164px;
  78. left: 50%;
  79. transform: translateX(-50%);
  80. width: 375px;
  81. height: 146px;
  82. img {
  83. position: absolute;
  84. bottom: 0;
  85. width: 100%;
  86. right: 0;
  87. }
  88. }
  89. &__dish {
  90. position: absolute;
  91. width: 100%;
  92. height: auto;
  93. bottom: 0;
  94. left: 0;
  95. }
  96. }
  97. &__teaching {
  98. position: relative;
  99. padding: 20px 0 0;
  100. margin-bottom: 20px;
  101. color: #fff;
  102. audio {
  103. opacity: 0;
  104. }
  105. h2 {
  106. text-align: center;
  107. @include em(24);
  108. font-weight: 700;
  109. }
  110. h3 {
  111. text-align: center;
  112. @include em(16);
  113. font-weight: 400;
  114. }
  115. .plyr--audio .plyr__controls {
  116. background-color: transparent;
  117. padding: 0;
  118. color: $blue;
  119. }
  120. .plyr__time+.plyr__time {
  121. display: block;
  122. }
  123. .plyr__controls__item.plyr__control {
  124. background-color: #fff;
  125. border-radius: 50%;
  126. }
  127. .plyr--audio .plyr__control.plyr__tab-focus, .plyr--audio .plyr__control:hover, .plyr--audio .plyr__control[aria-expanded=true] {
  128. background-color: #fff;
  129. border-radius: 50%;
  130. }
  131. .plyr button {
  132. width: 35px;
  133. height: 35px;
  134. display: flex;
  135. justify-content: center;
  136. align-items: center;
  137. box-shadow: 3px 3px 5px rgba(#000,0.1);
  138. }
  139. .plyr__control svg {
  140. fill: $blue;
  141. height: var(--plyr-control-icon-size,12px);
  142. width: var(--plyr-control-icon-size,12px);
  143. }
  144. .recipeWrapper .recipe__teaching .plyr--audio .plyr__control.plyr__tab-focus, .recipeWrapper .recipe__teaching .plyr--audio .plyr__control:hover, .recipeWrapper .recipe__teaching .plyr--audio .plyr__control[aria-expanded=true] {
  145. background-color: #202020;
  146. }
  147. .plyr--audio .plyr__progress__buffer {
  148. &::-webkit-progress-bar {
  149. background-color: rgba(#fff,0.15);
  150. }
  151. }
  152. .plyr--full-ui input[type=range] {
  153. color: $blue;
  154. border-radius: 5px;
  155. box-shadow: 3px 3px 3px rgba(#000,0.1);
  156. &::-webkit-slider-thumb {
  157. display: none;
  158. appearance: none;
  159. }
  160. }
  161. }
  162. &__step {
  163. margin-bottom: 35px;
  164. h4 {
  165. img {
  166. width: 193px;
  167. }
  168. }
  169. }
  170. &__capture {
  171. position: relative;
  172. height: 140px;
  173. background-color: #FCF6DD;
  174. border: 1px solid $blue;
  175. border-radius: 10px;
  176. padding: 10px;
  177. margin: 0 20px 15px;
  178. overflow: hidden;
  179. &::before {
  180. content: "";
  181. display: none;
  182. width: 100%;
  183. height: 80%;
  184. background: linear-gradient(to bottom, rgba(136,136,136,0) 0%,#FCF6DD 80%,#FCF6DD 100%);
  185. position: absolute;
  186. left: 0;
  187. bottom: 0;
  188. border-radius: 0 0 10px 10px;
  189. z-index: 1;
  190. pointer-events: none;
  191. }
  192. }
  193. &__box {
  194. width: 100%;
  195. height: 100%;
  196. }
  197. &__list {
  198. width: 100%;
  199. height: 100%;
  200. color: $blue;
  201. overflow: hidden;
  202. overflow-y: auto;
  203. position: relative;
  204. ul {
  205. width: 100%;
  206. position: absolute;
  207. top: 0;
  208. left: 0;
  209. list-style: none;
  210. padding-left: 0;
  211. }
  212. li {
  213. width: 100%;
  214. height: auto;
  215. padding-bottom: 15px;
  216. line-height: 1.4;
  217. letter-spacing: 1px;
  218. @include em(14);
  219. }
  220. .active {
  221. color: $blue;
  222. font-weight: bold;
  223. }
  224. }
  225. &__ingredients {
  226. h4 {
  227. margin-bottom: 5px;
  228. img {
  229. width: 117px;
  230. }
  231. }
  232. p {
  233. color: $blue;
  234. text-align: center;
  235. @include em(12);
  236. margin-bottom: 15px;
  237. padding: 0 5px;
  238. }
  239. }
  240. &__outer {
  241. width: 100%;
  242. overflow-x: auto;
  243. &-ingredients {
  244. padding: 0 0 20px 20px;
  245. }
  246. }
  247. &__basket {
  248. position: relative;
  249. display: flex;
  250. justify-content: flex-start;
  251. align-items: flex-start;
  252. height: auto;
  253. }
  254. &__ingredient {
  255. display: inline-block;
  256. flex: 0 0 95px;
  257. width: 95px;
  258. height: 95px;
  259. margin-right: 15px;
  260. box-shadow: 2px 2px 3px rgba(#000,0.1);
  261. border-radius: 10px;
  262. overflow: hidden;
  263. filter: brightness(0.5);
  264. img {
  265. width: 100%;
  266. height: auto;
  267. max-width: 100%;
  268. max-height: 100%;
  269. }
  270. &:last-child {
  271. margin-right: 0;
  272. }
  273. &.active {
  274. filter: brightness(1);
  275. }
  276. }
  277. &__more {
  278. position: relative;
  279. margin-bottom: 25px;
  280. h4 {
  281. margin-bottom: 5px;
  282. img {
  283. width: 176px;
  284. }
  285. }
  286. &__box {
  287. position: relative;
  288. }
  289. &__table {
  290. position: absolute;
  291. bottom: -3px;
  292. left: 0;
  293. display: block;
  294. width: 100%;
  295. height: 160px;
  296. background: url(https://d1xzlli46wohoc.cloudfront.net/images/recipePage/more-table.png) repeat-x left top;
  297. background-size: auto 100%;
  298. }
  299. }
  300. &__container {
  301. display: flex;
  302. justify-content: start;
  303. align-items: flex-end;
  304. position: relative;
  305. white-space: nowrap;
  306. width: 100%;
  307. height: 217px;
  308. overflow-x: auto;
  309. overflow-y: hidden;
  310. }
  311. &__else {
  312. position: relative;
  313. flex: 0 0 155px;
  314. width: 155px;
  315. height: 100%;
  316. display: block;
  317. overflow: hidden;
  318. &:last-child {
  319. margin-right: 0;
  320. }
  321. &__dish {
  322. position: absolute;
  323. top: 0;
  324. left: 0;
  325. width: 100%;
  326. height: auto;
  327. image-rendering: pixelated;
  328. }
  329. &__name {
  330. bottom: 24px;
  331. left: 50%;
  332. transform: translateX(-50%);
  333. position: absolute;
  334. width: auto;
  335. height: 26px;
  336. image-rendering: pixelated;
  337. image-rendering: -webkit-optimize-contrast;
  338. }
  339. }
  340. &__share {
  341. position: relative;
  342. padding: 0 20px;
  343. margin-bottom: 25px;
  344. h4 {
  345. img {
  346. width: 236px;
  347. }
  348. }
  349. }
  350. &__swiper {
  351. position: relative;
  352. padding-bottom: 25px;
  353. margin-bottom: 10px;
  354. .swiper {
  355. border-radius: 20px;
  356. border: 1px solid #ccc;
  357. overflow: hidden;
  358. &-slide {
  359. width: 100%;
  360. img {
  361. width: 100%;
  362. height: auto;
  363. image-rendering: pixelated;
  364. image-rendering: -webkit-optimize-contrast;
  365. }
  366. }
  367. }
  368. .swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction {
  369. bottom: 5px;
  370. }
  371. .swiper-pagination-bullet {
  372. width: 5px;
  373. height: 5px;
  374. background-color: #fff;
  375. opacity: 1;
  376. }
  377. .swiper-pagination-bullet-active {
  378. background-color: $blue;
  379. }
  380. }
  381. &__action {
  382. display: flex;
  383. justify-content: space-between;
  384. }
  385. &__btn {
  386. width: 48%;
  387. img {
  388. width: 100%;
  389. height: auto;
  390. image-rendering: pixelated;
  391. image-rendering: -webkit-optimize-contrast;
  392. }
  393. }
  394. &__tag {
  395. position: relative;
  396. padding: 0 20px;
  397. margin-bottom: 20px;
  398. h4 {
  399. margin-bottom: 15px;
  400. img {
  401. height: 17px;
  402. }
  403. }
  404. &__list {
  405. display: flex;
  406. flex-wrap: wrap;
  407. justify-content: flex-start;
  408. align-items: flex-start;
  409. }
  410. &__item {
  411. display: inline-block;
  412. padding: 6px 20px 7px;
  413. border-radius: 30px;
  414. border: 1px solid $blue;
  415. color: $blue;
  416. margin-right: 10px;
  417. margin-bottom: 10px;
  418. line-height: 1;
  419. &:not([href]):hover {
  420. color: $blue;
  421. }
  422. }
  423. }
  424. &__goback {
  425. position: relative;
  426. text-align: center;
  427. a {
  428. width: 200px;
  429. display: inline-block;
  430. img {
  431. width: 100%;
  432. height: auto;
  433. image-rendering: pixelated;
  434. image-rendering: -webkit-optimize-contrast;
  435. }
  436. }
  437. }
  438. &__buy {
  439. // opacity: 0;
  440. // visibility: hidden;
  441. position: fixed;
  442. bottom: -49px;
  443. left: 0;
  444. display: block;
  445. width: 100%;
  446. z-index: 10;
  447. // transition: 0.3s;
  448. img {
  449. width: 100%;
  450. height: auto;
  451. image-rendering: pixelated;
  452. image-rendering: -webkit-optimize-contrast;
  453. }
  454. &::after {
  455. content: "";
  456. position: relative;
  457. top: -1px;
  458. display: block;
  459. background-color: $blue;
  460. width: 100%;
  461. height: 50px;
  462. }
  463. }
  464. }
  465. }
  466. .ordinary {
  467. .recipe {
  468. &__kv {
  469. padding-top: 60px;
  470. padding-bottom: 10px;
  471. height: auto;
  472. &__table {
  473. display: block;
  474. height: 0;
  475. padding-bottom: 38%;
  476. }
  477. &__ordinary {
  478. position: relative;
  479. top: auto;
  480. left: 50%;
  481. transform: translateX(-50%);
  482. width: 100%;
  483. height: auto;
  484. margin-bottom: 10px;
  485. }
  486. &__dish {
  487. position: relative;
  488. left: 50%;
  489. bottom: auto;
  490. transform: translateX(-50%);
  491. width: 90%;
  492. height: auto;
  493. color: $blue;
  494. font-size: 22px;
  495. font-weight: 900;
  496. text-align: center;
  497. display: flex;
  498. justify-content: center;
  499. align-items: center;
  500. flex-wrap: wrap;
  501. span {
  502. display: block;
  503. width: 100%;
  504. text-align: center;
  505. font-size: 0.8em;
  506. font-weight: 700;
  507. }
  508. }
  509. }
  510. &__step {
  511. h4 {
  512. img {
  513. width: 145px;
  514. }
  515. }
  516. }
  517. &__contentbox {
  518. position: relative;
  519. height: auto;
  520. background-color: #FCF6DD;
  521. border: 1px solid #4B5283;
  522. border-radius: 10px;
  523. padding: 35px 0 20px;
  524. margin: 0 20px 15px;
  525. overflow: hidden;
  526. }
  527. &__open {
  528. position: absolute;
  529. right: 12px;
  530. top: 12px;
  531. width: 15px;
  532. height: 15px;
  533. display: flex;
  534. justify-content: center;
  535. align-items: center;
  536. img {
  537. width: 100%;
  538. height: auto;
  539. image-rendering: pixelated;
  540. image-rendering: -webkit-optimize-contrast;
  541. }
  542. }
  543. &__box {
  544. height: 120px;
  545. @include em(14);
  546. padding: 0 10px 15px;
  547. overflow-x: hidden;
  548. overflow-y: auto;
  549. color: $blue;
  550. letter-spacing: 1px;
  551. line-height: 1.8;
  552. .ingredients {
  553. &__box {
  554. display: flex;
  555. justify-content: space-between;
  556. align-items: center;
  557. }
  558. &__space {
  559. position: relative;
  560. flex: 1;
  561. height: 100%;
  562. &::after {
  563. content: "";
  564. position: absolute;
  565. top: 50%;
  566. left: 50%;
  567. transform: translate(-50%,-50%);
  568. width: 90%;
  569. height: 1px;
  570. background-color: #ccc;
  571. }
  572. }
  573. }
  574. }
  575. &__ingredients {
  576. .recipe__contentbox {
  577. padding: 20px 0;
  578. }
  579. }
  580. &__action {
  581. justify-content: center;
  582. }
  583. &__modal {
  584. opacity: 0;
  585. visibility: hidden;
  586. position: fixed;
  587. top: 0;
  588. bottom: 0;
  589. left: -1px;
  590. right: 0;
  591. width: calc(100% + 2px);
  592. height: 100%;
  593. z-index: -1;
  594. .modal {
  595. &-dialog {
  596. width: 100%;
  597. height: 100%;
  598. margin: 0;
  599. }
  600. &-content {
  601. border-radius: 0;
  602. height: 100%;
  603. background-color: transparent;
  604. }
  605. &__bg {
  606. position: absolute;
  607. width: 100%;
  608. height: 100%;
  609. background-color: rgba(#000,0.9);
  610. }
  611. &-header {
  612. position: relative;
  613. flex-direction: column;
  614. justify-content: flex-end;
  615. align-items: center;
  616. padding-top: 80px;
  617. padding-bottom: 0;
  618. border-bottom: none;
  619. .close {
  620. position: absolute;
  621. margin: 0;
  622. padding: 0;
  623. width: 25px;
  624. height: auto;
  625. display: flex;
  626. justify-content: center;align-items: center;
  627. top: 20px;
  628. right: 20px;
  629. z-index: 1;
  630. img {
  631. width: 100%;
  632. height: auto;
  633. image-rendering: pixelated;
  634. image-rendering: -webkit-optimize-contrast;
  635. }
  636. &:focus,&:focus-visible {
  637. outline: none;
  638. }
  639. }
  640. }
  641. &-title {
  642. display: inline-block;
  643. width: 206px;
  644. margin-bottom: 30px;
  645. img {
  646. width: 100%;
  647. height: auto;
  648. image-rendering: pixelated;
  649. image-rendering: -webkit-optimize-contrast;
  650. }
  651. }
  652. &__name {
  653. position: relative;
  654. width: 100%;
  655. color: #fff;
  656. @include em(24);
  657. font-weight: 700;
  658. text-align: center;
  659. padding: 12px 0;
  660. border-top: 0.5px solid rgba(#FFEFBE,0.5);
  661. border-bottom: 0.5px solid rgba(#FFEFBE,0.5);
  662. .eocjs-newsticker {
  663. padding: 0;
  664. background-color: transparent;
  665. .eocjs-newsticker-container {
  666. height: 23px;
  667. }
  668. }
  669. }
  670. &-body {
  671. color: #fff;
  672. position: relative;
  673. line-height: 1.7;
  674. font-weight: 400;
  675. letter-spacing: 1px;
  676. padding-top: 15px;
  677. padding-bottom: 0;
  678. overflow: hidden;
  679. &:after {
  680. content: "";
  681. display: block;
  682. position: absolute;
  683. pointer-events: none;
  684. bottom: 0;
  685. left: 0;
  686. width: 100%;
  687. height: 85px;
  688. background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%);
  689. }
  690. }
  691. &__content {
  692. width: 100%;
  693. height: 100%;
  694. padding-bottom: 80px;
  695. overflow-x: hidden;
  696. overflow-y: auto;
  697. font-size: 15px;
  698. letter-spacing: 2px;
  699. line-height: 2;
  700. }
  701. &-footer {
  702. position: relative;
  703. justify-content: center;
  704. padding: 3px;
  705. @include em(12);
  706. text-align: center;
  707. font-weight: 400;
  708. color: #fff;
  709. background-color: $blue;
  710. border-radius: 0;
  711. border-top: none;
  712. }
  713. }
  714. }
  715. }
  716. }
  717. @media (min-width: 768px) {
  718. }