index.less 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  1. .house-wrap {
  2. position: relative;
  3. width: 600px;
  4. height: 600px;
  5. transform: scale(0.5);
  6. .house {
  7. position: absolute;
  8. position: relative;
  9. top: 50%;
  10. left: 50%;
  11. display: flex;
  12. width: 400px;
  13. height: 300px;
  14. transform: translateX(-50%) translateY(-13%);
  15. justify-content: center;
  16. perspective: 200px;
  17. }
  18. .floor {
  19. position: absolute;
  20. bottom: 0;
  21. display: flex;
  22. width: 95%;
  23. height: 30px;
  24. background-color: #e1f6fd;
  25. border: 4px solid #314b70;
  26. border-top-right-radius: 4px;
  27. border-top-left-radius: 4px;
  28. box-shadow: inset 4px 4px 0 #fffdff;
  29. justify-content: center;
  30. }
  31. .floor::before,
  32. .floor::after {
  33. position: absolute;
  34. bottom: 0;
  35. width: 32%;
  36. height: 60%;
  37. background-image: linear-gradient(to bottom, #e0f5fc 50%, #aac4d0 50%);
  38. border-top: 4px solid #314b70;
  39. border-right: 4px solid #314b70;
  40. border-left: 4px solid #314b70;
  41. border-top-right-radius: 4px;
  42. border-top-left-radius: 4px;
  43. content: '';
  44. box-shadow: 4px 0 0 #aac4d0;
  45. }
  46. .floor::after {
  47. top: 0;
  48. width: 25%;
  49. height: 40%;
  50. border-top: none;
  51. border-top-right-radius: 0;
  52. border-top-left-radius: 0;
  53. }
  54. .wall {
  55. position: absolute;
  56. bottom: 30px;
  57. display: flex;
  58. width: 91%;
  59. height: 175px;
  60. overflow: hidden;
  61. background: #c3e0e7;
  62. border-right: 4px solid #314b70;
  63. border-left: 4px solid #314b70;
  64. justify-content: space-between;
  65. align-items: flex-end;
  66. }
  67. .window {
  68. position: relative;
  69. width: 34%;
  70. height: 125px;
  71. background: #aac4d0;
  72. border-top: 4px solid #314b70;
  73. border-right: 4px solid #314b70;
  74. border-bottom: none;
  75. border-left: none;
  76. border-top-right-radius: 8px;
  77. box-shadow: inset 0 4px 2px #e0f5fc;
  78. }
  79. .window::before {
  80. position: absolute;
  81. top: 6%;
  82. left: 0;
  83. width: 94%;
  84. height: 88%;
  85. background-image: linear-gradient(to top, #f3f6fa 47%, #9ab2d3 47%, #9ab2d3 50%, #f3f6fa 50%);
  86. border-top: 4px solid #314b70;
  87. border-right: 4px solid #314b70;
  88. border-bottom: 4px solid #314b70;
  89. border-left: none;
  90. border-top-right-radius: 4px;
  91. border-bottom-right-radius: 4px;
  92. content: '';
  93. }
  94. .window::after {
  95. position: absolute;
  96. top: 19%;
  97. left: 20%;
  98. width: 30px;
  99. height: 40px;
  100. background-color: #f9aabe;
  101. border: 4px solid #9ab2d3;
  102. content: '';
  103. }
  104. .window:nth-of-type(3) {
  105. border-top: none;
  106. border-right: 4px solid #314b70;
  107. border-bottom: 4px solid #314b70;
  108. border-left: none;
  109. border-top-right-radius: 0;
  110. border-bottom-right-radius: 8px;
  111. transform: rotateZ(180deg);
  112. box-shadow: inset 0 -4px 2px #e0f5fc;
  113. }
  114. .window:nth-of-type(3)::after {
  115. content: none;
  116. }
  117. .door {
  118. display: flex;
  119. width: 20%;
  120. height: 130px;
  121. padding-left: 8px;
  122. background-color: #ffc26b;
  123. border: 4px solid #314b70;
  124. border-bottom: none;
  125. border-top-right-radius: 10px;
  126. border-top-left-radius: 10px;
  127. box-shadow: inset 3px 3px #ffe0ad, inset -10px -8px #ffad61, 4px 0 #aac4d0;
  128. flex-direction: column;
  129. justify-content: space-evenly;
  130. align-items: flex-start;
  131. }
  132. .door__square {
  133. width: 85%;
  134. height: 47px;
  135. border: 4px solid #314b70;
  136. border-radius: 4px;
  137. box-shadow: inset 3px 3px #ffe0ad;
  138. }
  139. .door__line {
  140. width: 25%;
  141. height: 4px;
  142. background: #314b70;
  143. border-radius: 4px;
  144. }
  145. .top {
  146. position: absolute;
  147. width: 82%;
  148. height: 30px;
  149. background-color: #aac4d0;
  150. border: 4px solid #314b70;
  151. border-top-right-radius: 4px;
  152. border-top-left-radius: 4px;
  153. box-shadow: inset 4px 4px 0 #e1f6fd;
  154. }
  155. .circle {
  156. position: absolute;
  157. top: -10%;
  158. display: flex;
  159. width: 115px;
  160. height: 115px;
  161. background-color: #e0f5fc;
  162. border: 4px solid #314b70;
  163. border-radius: 50%;
  164. content: '';
  165. box-shadow: inset 4px 4px 0 #fffdff, inset 4px -4px 0 #fffdff, inset -4px 4px 0 #fffdff,
  166. inset -4px -4px 0 #fffdff;
  167. justify-content: center;
  168. align-items: center;
  169. }
  170. .circle::before,
  171. .circle::after {
  172. position: absolute;
  173. top: 35%;
  174. width: 70%;
  175. height: 4px;
  176. background-color: #314b70;
  177. content: '';
  178. }
  179. .circle::after {
  180. top: 20%;
  181. width: 35%;
  182. }
  183. .plastic {
  184. position: absolute;
  185. top: 30%;
  186. z-index: 100;
  187. width: 100%;
  188. height: 30px;
  189. overflow: hidden;
  190. }
  191. .plastic__g {
  192. display: flex;
  193. justify-content: center;
  194. width: 100%;
  195. overflow: hidden;
  196. transform: translateY(-22px);
  197. }
  198. .plastic__item {
  199. width: 43px;
  200. height: 43px;
  201. margin-bottom: 4px;
  202. border: 3px solid #314b70;
  203. border-radius: 50%;
  204. box-shadow: 0 4px 0 #aac4d0;
  205. }
  206. .plastic__item:nth-child(odd) {
  207. background: #0792d9;
  208. box-shadow: 0 4px 0 #aac4d0, inset 4px 4px 0 #66c8fa;
  209. }
  210. .plastic__item:nth-child(even) {
  211. background: #fffdff;
  212. }
  213. .plastic__item:nth-of-type(1),
  214. .plastic__item:nth-last-of-type(1) {
  215. width: 45px;
  216. height: 45px;
  217. box-shadow: none;
  218. box-shadow: inset 4px 4px 0 #66c8fa;
  219. }
  220. .plastic__item:nth-of-type(5) {
  221. width: 45px;
  222. height: 45px;
  223. }
  224. .line {
  225. position: absolute;
  226. top: 15px;
  227. display: flex;
  228. width: 90%;
  229. height: 85px;
  230. background-color: #e1f6fd;
  231. border-right: 4px solid #314b70;
  232. border-bottom: 4px solid #314b70;
  233. border-left: 4px solid #314b70;
  234. border-radius: 4px;
  235. transform: rotateX(25deg);
  236. transform-style: preserve-3d;
  237. }
  238. .line__item {
  239. height: 100%;
  240. flex-grow: 1;
  241. border-right: 4px solid #314b70;
  242. }
  243. .line__item:nth-child(odd) {
  244. background: #00affa;
  245. box-shadow: inset 4px 4px 0 #66c8fa;
  246. }
  247. .line__item:nth-child(even) {
  248. background: #fffdff;
  249. }
  250. .line__item:nth-last-of-type(1) {
  251. border-right: none;
  252. }
  253. .line__item:nth-child(4),
  254. .line__item:nth-child(5),
  255. .line__item:nth-child(6) {
  256. border-top: 6px solid #314b70;
  257. }
  258. .tree {
  259. position: absolute;
  260. bottom: 19%;
  261. left: 10%;
  262. display: flex;
  263. width: 100px;
  264. height: 165px;
  265. background-color: #00d398;
  266. border: 4px solid #314b70;
  267. border-radius: 50px;
  268. box-shadow: inset 4px 0 0 #77e4c6, inset -4px 0 0 #00a073;
  269. animation: tree 1s linear alternate infinite;
  270. justify-content: center;
  271. transform-origin: 0% 100%;
  272. }
  273. .tree__item {
  274. position: absolute;
  275. bottom: -80px;
  276. width: 4px;
  277. height: 140px;
  278. background: #314b70;
  279. }
  280. .tree__item:nth-of-type(2) {
  281. bottom: 80px;
  282. height: 40px;
  283. border-radius: 20px;
  284. box-shadow: 0 0 0 8px #77e4c6;
  285. }
  286. .tree__item:nth-of-type(2)::before {
  287. position: absolute;
  288. bottom: -45px;
  289. left: -30px;
  290. width: 20px;
  291. height: 35px;
  292. background-color: #77e4c6;
  293. border-radius: 15px;
  294. content: '';
  295. }
  296. .tree__item:nth-of-type(3) {
  297. bottom: 20px;
  298. left: 36%;
  299. width: 4px;
  300. height: 30px;
  301. background-color: #314b70;
  302. transform: rotateZ(-45deg);
  303. }
  304. .dot {
  305. position: absolute;
  306. bottom: 38px;
  307. width: 100%;
  308. height: 4px;
  309. background-image: linear-gradient(
  310. to right,
  311. #314b70 10%,
  312. transparent 10%,
  313. transparent 11%,
  314. #314b70 11%,
  315. #314b70 85%,
  316. transparent 85%,
  317. transparent 86%,
  318. #314b70 86%
  319. );
  320. }
  321. .bush__item {
  322. position: absolute;
  323. bottom: 40px;
  324. left: 18%;
  325. width: 80px;
  326. height: 60px;
  327. background-color: #00d398;
  328. border: 1px solid red;
  329. border: 4px solid #314b70;
  330. border-bottom: none;
  331. border-top-right-radius: 100px;
  332. border-top-left-radius: 50px;
  333. box-shadow: inset 4px 0 0 #77e4c6, inset -4px 0 0 #00a073;
  334. animation: bush 2s alternate infinite;
  335. transform-origin: bottom center;
  336. }
  337. .bush__item:nth-of-type(2) {
  338. left: 13%;
  339. width: 50px;
  340. height: 40px;
  341. border-top-right-radius: 10px;
  342. border-top-left-radius: 50px;
  343. animation: tree 2s alternate reverse infinite 0.5s;
  344. }
  345. .bush__item::before {
  346. position: absolute;
  347. top: 10px;
  348. left: 10px;
  349. width: 20px;
  350. height: 20px;
  351. background: #77e4c6;
  352. border-radius: 50%;
  353. content: '';
  354. }
  355. .cloud {
  356. position: absolute;
  357. top: 200px;
  358. left: 60px;
  359. display: flex;
  360. justify-content: center;
  361. width: 85px;
  362. height: 20px;
  363. border-bottom: 4px solid #e1e8f2;
  364. animation: cloud 4s infinite alternate;
  365. }
  366. .cloud:nth-of-type(2) {
  367. top: 150px;
  368. left: 50%;
  369. animation: cloud 4s infinite reverse alternate 0.5s;
  370. }
  371. .cloud:nth-of-type(3) {
  372. top: 250px;
  373. left: 80%;
  374. animation: cloud 4s ease infinite alternate 0.75s;
  375. }
  376. .cloud__item {
  377. position: relative;
  378. border-top: 20px solid #e1e8f2;
  379. border-right: 20px solid transparent;
  380. border-bottom: 20px solid transparent;
  381. border-left: 20px solid #e1e8f2;
  382. border-radius: 50%;
  383. transform: rotateZ(45deg);
  384. }
  385. .cloud__item:nth-of-type(2) {
  386. margin-top: 5px;
  387. margin-left: -7px;
  388. border-top: 15px solid #e1e8f2;
  389. border-right: 15px solid transparent;
  390. border-bottom: 15px solid transparent;
  391. border-left: 15px solid #e1e8f2;
  392. }
  393. .bird {
  394. position: absolute;
  395. right: 10%;
  396. bottom: 40%;
  397. z-index: -1;
  398. width: 20px;
  399. height: 20px;
  400. border-top: 4px solid #becde2;
  401. border-left: 4px solid #becde2;
  402. transform: rotateZ(-135deg);
  403. animation: bird 1s ease alternate infinite;
  404. }
  405. .bird:nth-of-type(2) {
  406. right: 20%;
  407. bottom: 30%;
  408. width: 15px;
  409. height: 15px;
  410. }
  411. @keyframes bird {
  412. 0% {
  413. transform: scaleY(0.7) rotateZ(-135deg) translateX(0) translateY(0) skew(-10deg, -10deg);
  414. }
  415. 100% {
  416. transform: scaleY(1) rotateZ(-135deg) translateX(50%) translateY(50%) skew(-10deg, -10deg);
  417. }
  418. }
  419. @keyframes tree {
  420. 0% {
  421. transform: scaleY(1);
  422. }
  423. 100% {
  424. transform: scaleY(0.975);
  425. }
  426. }
  427. @keyframes bush {
  428. 0% {
  429. transform: skewX(-2deg);
  430. }
  431. 100% {
  432. transform: skewX(5deg);
  433. }
  434. }
  435. @keyframes cloud {
  436. 0% {
  437. transform: translateX(-10%);
  438. }
  439. 100% {
  440. transform: translateX(20%);
  441. }
  442. }
  443. }