style_Andrii.css 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. /* Constructor */
  2. /* .constructor-page-title h1 {
  3. text-align: center;
  4. margin: 45px 0;
  5. font-family: "AvenirNextLTPro-Demi";
  6. color: #1D1D1F;
  7. font-weight: 200;
  8. } */
  9. .constructor-page-title {
  10. background: #1D1D1F;
  11. text-align: center;
  12. margin-bottom: 45px;
  13. padding: 11px 0;
  14. }
  15. .constructor-page-title h1 {
  16. display: inline-block;
  17. font-family: "AvenirNextLTPro-Demi";
  18. font-weight: lighter;
  19. font-size: 25px;
  20. color: #fff;
  21. }
  22. .constructor-wrapper {
  23. margin-bottom: 30px;
  24. display: flex;
  25. justify-content: center;
  26. padding: 0;
  27. }
  28. .constructor {
  29. margin-right: 6vw;
  30. width: 20vw;
  31. }
  32. .constructor-cart {
  33. display: flex;
  34. align-items: stretch;
  35. align-content: stretch;
  36. }
  37. .constructor-day {
  38. cursor: pointer;
  39. user-select: none;
  40. margin-right: 15px;
  41. }
  42. .constructor-day__type {
  43. background-color: #fefffa;
  44. }
  45. .constructor-day__type-title {
  46. font-size: 16px;
  47. color: #f4f4f4;
  48. background: #1d1d1f;
  49. display: block;
  50. margin: 0;
  51. text-align: center;
  52. padding: 3px;
  53. font-weight: normal;
  54. }
  55. /*Accordion*/
  56. .accordion {
  57. user-select: none;
  58. width: 100%;
  59. max-width: 400px;
  60. min-height: 0;
  61. display: block;
  62. position: relative;
  63. margin: 0 auto;
  64. padding: 0;
  65. background: rgba(29,29,31,0.1);
  66. border-right: 1px inset #1d1d1f;
  67. border-left: 1px inset #1d1d1f;
  68. }
  69. .accordion__title, .constructor-day__title {
  70. font-size: 19px;
  71. font-weight: 600;
  72. letter-spacing: 1px;
  73. display: block;
  74. margin: 0;
  75. padding: 10px 25px;
  76. cursor: pointer;
  77. color: #f4f4f4;
  78. background: #1d1d1f;
  79. border-bottom: 2px solid #000;
  80. font-weight: normal;
  81. }
  82. .constructor-day__title {
  83. margin-bottom: 10px;
  84. border-bottom: none;
  85. text-align: center;
  86. }
  87. .accordion__content {
  88. position: relative;
  89. max-height: 800px;
  90. transform: translate(0, 0);
  91. z-index: 2;
  92. }
  93. .accordion ul {
  94. list-style: none;
  95. perspective: 900;
  96. padding: 0;
  97. margin: 0;
  98. }
  99. .accordion ul li {
  100. position: relative;
  101. padding: 0;
  102. margin: 0;
  103. z-index: 3;
  104. }
  105. .accordion ul li:nth-of-type(1) {
  106. animation-delay: 0.5s;
  107. }
  108. .accordion ul li:nth-of-type(2) {
  109. animation-delay: 0.75s;
  110. }
  111. .accordion ul li:nth-of-type(3) {
  112. animation-delay: 1s;
  113. }
  114. .accordion ul li:last-of-type {
  115. padding-bottom: 0;
  116. }
  117. .accordion ul li i {
  118. position: absolute;
  119. transform: translate(-6px, 0);
  120. margin-top: 16px;
  121. right: 25px;
  122. }
  123. .accordion ul li i:before, .accordion ul li i:after {
  124. content: "";
  125. position: absolute;
  126. background-color: #fff;
  127. width: 3px;
  128. height: 9px;
  129. }
  130. .accordion ul li i:before {
  131. transform: translate(-2px, 0) rotate(45deg);
  132. }
  133. .accordion ul li i:after {
  134. transform: translate(2px, 0) rotate(-45deg);
  135. }
  136. .accordion ul li input[type=checkbox] {
  137. position: absolute;
  138. cursor: pointer;
  139. width: 100%;
  140. height: 100%;
  141. margin: 0;
  142. padding: 0;
  143. opacity: 0;
  144. }
  145. .accordion ul li input[type=checkbox]:checked ~ div.accordion__content {
  146. margin-top: 0;
  147. max-height: 0;
  148. opacity: 0;
  149. transform: translate(0, 50%);
  150. }
  151. .accordion ul li input[type=checkbox]:checked ~ i:before {
  152. transform: translate(2px, 0) rotate(45deg);
  153. }
  154. .accordion ul li input[type=checkbox]:checked ~ i:after {
  155. transform: translate(-2px, 0) rotate(-45deg);
  156. }
  157. div.accordion__content, ul li i:before, ul li i:after {
  158. transition: all 0.5s ease-in-out;
  159. }
  160. /* CAROUSEL */
  161. .slick-slider {
  162. margin-bottom: 0;
  163. }
  164. .slick-container {
  165. position: relative;
  166. width: 60vw;
  167. }
  168. /* Selected - items */
  169. .constructor-meals__item img{
  170. width: 100%;
  171. position: relative;
  172. bottom: 150%;
  173. }
  174. .constructor-meals__img {
  175. width: 100%;
  176. overflow: hidden;
  177. height: 35px;
  178. border-radius: 3px;
  179. }
  180. .constructor-meals__title {
  181. position: absolute;
  182. z-index: 1;
  183. top: 0;
  184. background: rgba(29, 29, 31, 0.25);
  185. width: 100%;
  186. height: 100%;
  187. }
  188. .constructor-meals__item {
  189. transition: all 0s ease 0s;
  190. width: 85%;
  191. position: relative;
  192. border-radius: 10px;
  193. overflow: hidden;
  194. margin: 0 auto;
  195. margin-bottom: 10px;
  196. /* border: 6px outset blue; */
  197. box-shadow: -3px 0 3px 0 rgba(0,0,0,0.5),
  198. 3px 0 3px 0 rgba(255,255,255,0.5);
  199. }
  200. .constructor-meals__item:nth-last-of-type {
  201. margin-bottom: 0;
  202. }
  203. .constructor-meals__title h3 {
  204. text-align: center;
  205. text-transform: capitalize;
  206. color: #fff;
  207. letter-spacing: 0.7px;
  208. font-weight: bold;
  209. margin-top: 7px;
  210. }
  211. .constructor-meals {
  212. display: flex;
  213. flex-direction: column;
  214. padding-top: 10px;
  215. background: rgba(29,29,31,0.1);
  216. overflow: hidden;
  217. }
  218. .accordion__content .constructor-meals {
  219. background-color: transparent;
  220. cursor: -webkit-grab;
  221. }
  222. .constructor-meals__btn-add {
  223. display: flex;
  224. justify-content: center;
  225. align-items: center;
  226. width: 85%;
  227. height: 35px;
  228. margin: 0 auto;
  229. border-radius: 10px;
  230. margin-bottom: 10px;
  231. background: #fcfcfe;
  232. font-weight: bold;
  233. box-shadow: 0px 3px 3px #313131, 0px 3px 3px #393939;
  234. border: 1px solid rgba(255,255,255,1);
  235. text-shadow: 0px -1px 0px rgba(0,0,0,0.2);
  236. font-weight: normal;
  237. }
  238. .constructor-day__type .constructor-meals {
  239. border-left: 2px inset #1d1d1f;
  240. border-right: 2px inset #1d1d1f;
  241. }
  242. .constructor-meals--border {
  243. border-bottom: 2px inset #1d1d1f;
  244. }
  245. /*Arrows carousel*/
  246. .slick-prev {
  247. left: -45px;
  248. }
  249. [dir='rtl'] .slick-prev {
  250. right: -45px;
  251. left: auto;
  252. }
  253. .slick-next {
  254. right: -20px;
  255. }
  256. [dir='rtl'] .slick-next {
  257. right: auto;
  258. left: -20px;
  259. }
  260. .slick-prev:before,
  261. .slick-next:before {
  262. font-family: 'slick';
  263. font-size: 30px;
  264. line-height: 1;
  265. opacity: .75;
  266. color: #2a2a2d;
  267. -webkit-font-smoothing: antialiased;
  268. -moz-osx-font-smoothing: grayscale;
  269. }
  270. /*Scroll-To-Top*/
  271. .scrollTop{
  272. display: block;
  273. position: fixed;
  274. z-index: 10;
  275. object-fit: fill;
  276. background: url('../images/scroll-top2.png');
  277. border: 0px solid black;
  278. outline: none;
  279. width: 48px;
  280. height: 48px;
  281. bottom: 30px;
  282. left: 1%;
  283. cursor: pointer;
  284. }
  285. .scrollTop:hover {
  286. animation-name: pulse;
  287. animation-duration: 1s;
  288. animation-iteration-count: infinite;
  289. }
  290. @keyframes pulse {
  291. 0% {
  292. transform: scale(0.9);
  293. }
  294. 50% {
  295. transform: scale(1);
  296. }
  297. 100% {
  298. transform: scale(0.9);
  299. }
  300. }
  301. /* button to basket */
  302. .btn-basket {
  303. margin: 0 auto;
  304. z-index: 5;
  305. position: relative;
  306. display: block;
  307. border: 2px solid #2e2e2e;
  308. text-transform: uppercase;
  309. letter-spacing: .3rem;
  310. padding: 15px 10px;
  311. text-align: center;
  312. width: 19vw;
  313. cursor: pointer;
  314. overflow: hidden;
  315. background: #1d1d1f;
  316. transition: border 1s cubic-bezier(0.19,1,.22,1), color .6s cubic-bezier(0.19,1,.22,1), background 5s cubic-bezier(0.19,1,.22,1);
  317. }
  318. .btn-basket .btn-basket__link {
  319. color: #f1f1f5;
  320. text-decoration: none;
  321. }
  322. .btn-basket .btn-basket__mask {
  323. background: #fff;
  324. background: rgba(255,255,255,0.5);
  325. }
  326. .btn-basket .btn-basket__mask {
  327. position: absolute;
  328. display: block;
  329. width: 200px;
  330. height: 100px;
  331. transform: translate3d(-120%,-50px,0) rotate3d(0,0,1,45deg);
  332. transition: all 1.1s cubic-bezier(0.19,1,.22,1);
  333. }
  334. .btn-basket:hover {
  335. background: black;
  336. border-color: #fff;
  337. box-shadow: 0 0 5px rgba(255,245,245,0.8);
  338. /* background-image: url('http://cuinine.com/img/codepen/savvy.jpg'); */
  339. }
  340. .btn-basket:hover .btn-basket__link {
  341. color: #fff;
  342. }
  343. .btn-basket:hover .btn-basket__mask {
  344. background: white;
  345. -webkit-transform: translate3d(120%,-100px,0) rotate3d(0,0,1,90deg);
  346. transform: translate3d(120%,-100px,0) rotate3d(0,0,1,90deg);
  347. }
  348. /* constructor-meals__btn-delete */
  349. .constructor-meals__btn-delete {
  350. position: absolute;
  351. right: 9px;
  352. top: 9px;
  353. height: 20px;
  354. width: 20px;
  355. background: rgba(29, 29, 31,1);
  356. border-radius: 50%;
  357. text-align: center;
  358. z-index: 1;
  359. cursor: pointer;
  360. opacity: 0;
  361. }
  362. .constructor-meals__btn-delete span {
  363. color: #F1F1F5;
  364. position: relative;
  365. top: 1px;
  366. }
  367. .constructor-meals__item:hover .constructor-meals__btn-delete {
  368. opacity: 1;
  369. }
  370. .constructor-total-price {
  371. margin-bottom: 50px;
  372. text-align: center;
  373. }