devices.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593
  1. .marvel-device {
  2. display: inline-block;
  3. position: relative;
  4. -webkit-box-sizing: content-box !important;
  5. box-sizing: content-box !important
  6. }
  7. .marvel-device .screen {
  8. width: 100%;
  9. position: relative;
  10. height: 100%;
  11. z-index: 3;
  12. background: white;
  13. overflow: hidden;
  14. display: block;
  15. border-radius: 1px;
  16. -webkit-box-shadow: 0 0 0 3px #111;
  17. box-shadow: 0 0 0 3px #111
  18. }
  19. .marvel-device .top-bar,
  20. .marvel-device .bottom-bar {
  21. height: 3px;
  22. background: black;
  23. width: 100%;
  24. display: block
  25. }
  26. .marvel-device .middle-bar {
  27. width: 3px;
  28. height: 4px;
  29. top: 0px;
  30. left: 90px;
  31. background: black;
  32. position: absolute
  33. }
  34. .marvel-device.iphone-x {
  35. width: 375px;
  36. height: 812px;
  37. padding: 26px;
  38. background: #fdfdfd;
  39. -webkit-box-shadow: inset 0 0 11px 0 black;
  40. box-shadow: inset 0 0 11px 0 black;
  41. border-radius: 66px
  42. }
  43. .marvel-device.iphone-x .overflow {
  44. width: 100%;
  45. height: 100%;
  46. position: absolute;
  47. top: 0;
  48. left: 0;
  49. border-radius: 66px;
  50. overflow: hidden
  51. }
  52. .marvel-device.iphone-x .shadow {
  53. border-radius: 100%;
  54. width: 90px;
  55. height: 90px;
  56. position: absolute;
  57. background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, rgba(255, 255, 255, 0) 60%)
  58. }
  59. .marvel-device.iphone-x .shadow--tl {
  60. top: -20px;
  61. left: -20px
  62. }
  63. .marvel-device.iphone-x .shadow--tr {
  64. top: -20px;
  65. right: -20px
  66. }
  67. .marvel-device.iphone-x .shadow--bl {
  68. bottom: -20px;
  69. left: -20px
  70. }
  71. .marvel-device.iphone-x .shadow--br {
  72. bottom: -20px;
  73. right: -20px
  74. }
  75. .marvel-device.iphone-x:before {
  76. width: calc(100% - 10px);
  77. height: calc(100% - 10px);
  78. position: absolute;
  79. top: 5px;
  80. content: '';
  81. left: 5px;
  82. border-radius: 61px;
  83. background: black;
  84. z-index: 1
  85. }
  86. .marvel-device.iphone-x .inner-shadow {
  87. width: calc(100% - 20px);
  88. height: calc(100% - 20px);
  89. position: absolute;
  90. top: 10px;
  91. overflow: hidden;
  92. left: 10px;
  93. border-radius: 56px;
  94. -webkit-box-shadow: inset 0 0 15px 0 rgba(255, 255, 255, 0.66);
  95. box-shadow: inset 0 0 15px 0 rgba(255, 255, 255, 0.66);
  96. z-index: 1
  97. }
  98. .marvel-device.iphone-x .inner-shadow:before {
  99. -webkit-box-shadow: inset 0 0 20px 0 #FFFFFF;
  100. box-shadow: inset 0 0 20px 0 #FFFFFF;
  101. width: 100%;
  102. height: 116%;
  103. position: absolute;
  104. top: -8%;
  105. content: '';
  106. left: 0;
  107. border-radius: 200px / 112px;
  108. z-index: 2
  109. }
  110. .marvel-device.iphone-x .screen {
  111. border-radius: 40px;
  112. -webkit-box-shadow: none;
  113. box-shadow: none
  114. }
  115. .marvel-device.iphone-x .top-bar,
  116. .marvel-device.iphone-x .bottom-bar {
  117. width: 100%;
  118. position: absolute;
  119. height: 8px;
  120. background: rgba(0, 0, 0, 0.1);
  121. left: 0
  122. }
  123. .marvel-device.iphone-x .top-bar {
  124. top: 80px
  125. }
  126. .marvel-device.iphone-x .bottom-bar {
  127. bottom: 80px
  128. }
  129. .marvel-device.iphone-x .volume,
  130. .marvel-device.iphone-x .volume:before,
  131. .marvel-device.iphone-x .volume:after,
  132. .marvel-device.iphone-x .sleep {
  133. width: 3px;
  134. background: #b5b5b5;
  135. position: absolute
  136. }
  137. .marvel-device.iphone-x .volume {
  138. left: -3px;
  139. top: 116px;
  140. height: 32px
  141. }
  142. .marvel-device.iphone-x .volume:before {
  143. height: 62px;
  144. top: 62px;
  145. content: '';
  146. left: 0
  147. }
  148. .marvel-device.iphone-x .volume:after {
  149. height: 62px;
  150. top: 140px;
  151. content: '';
  152. left: 0
  153. }
  154. .marvel-device.iphone-x .sleep {
  155. height: 96px;
  156. top: 200px;
  157. right: -3px
  158. }
  159. .marvel-device.iphone-x .camera {
  160. width: 6px;
  161. height: 6px;
  162. top: 9px;
  163. border-radius: 100%;
  164. position: absolute;
  165. left: 154px;
  166. background: #0d4d71
  167. }
  168. .marvel-device.iphone-x .speaker {
  169. height: 6px;
  170. width: 60px;
  171. left: 50%;
  172. position: absolute;
  173. top: 9px;
  174. margin-left: -30px;
  175. background: #171818;
  176. border-radius: 6px
  177. }
  178. .marvel-device.iphone-x .notch {
  179. position: absolute;
  180. width: 210px;
  181. height: 30px;
  182. top: 26px;
  183. left: 108px;
  184. z-index: 4;
  185. background: black;
  186. border-bottom-left-radius: 24px;
  187. border-bottom-right-radius: 24px
  188. }
  189. .marvel-device.iphone-x .notch:before,
  190. .marvel-device.iphone-x .notch:after {
  191. content: '';
  192. height: 8px;
  193. position: absolute;
  194. top: 0;
  195. width: 8px
  196. }
  197. .marvel-device.iphone-x .notch:after {
  198. background: radial-gradient(circle at bottom left, transparent 0, transparent 70%, black 70%, black 100%);
  199. left: -8px
  200. }
  201. .marvel-device.iphone-x .notch:before {
  202. background: radial-gradient(circle at bottom right, transparent 0, transparent 70%, black 70%, black 100%);
  203. right: -8px
  204. }
  205. .marvel-device.iphone-x.landscape {
  206. height: 375px;
  207. width: 812px
  208. }
  209. .marvel-device.iphone-x.landscape .top-bar,
  210. .marvel-device.iphone-x.landscape .bottom-bar {
  211. width: 8px;
  212. height: 100%;
  213. top: 0
  214. }
  215. .marvel-device.iphone-x.landscape .top-bar {
  216. left: 80px
  217. }
  218. .marvel-device.iphone-x.landscape .bottom-bar {
  219. right: 80px;
  220. bottom: auto;
  221. left: auto
  222. }
  223. .marvel-device.iphone-x.landscape .volume,
  224. .marvel-device.iphone-x.landscape .volume:before,
  225. .marvel-device.iphone-x.landscape .volume:after,
  226. .marvel-device.iphone-x.landscape .sleep {
  227. height: 3px
  228. }
  229. .marvel-device.iphone-x.landscape .inner-shadow:before {
  230. height: 100%;
  231. width: 116%;
  232. left: -8%;
  233. top: 0;
  234. border-radius: 112px / 200px
  235. }
  236. .marvel-device.iphone-x.landscape .volume {
  237. bottom: -3px;
  238. top: auto;
  239. left: 116px;
  240. width: 32px
  241. }
  242. .marvel-device.iphone-x.landscape .volume:before {
  243. width: 62px;
  244. left: 62px;
  245. top: 0
  246. }
  247. .marvel-device.iphone-x.landscape .volume:after {
  248. width: 62px;
  249. left: 140px;
  250. top: 0
  251. }
  252. .marvel-device.iphone-x.landscape .sleep {
  253. width: 96px;
  254. left: 200px;
  255. top: -3px;
  256. right: auto
  257. }
  258. .marvel-device.iphone-x.landscape .camera {
  259. left: 9px;
  260. bottom: 154px;
  261. top: auto
  262. }
  263. .marvel-device.iphone-x.landscape .speaker {
  264. width: 6px;
  265. height: 60px;
  266. left: 9px;
  267. top: 50%;
  268. margin-top: -30px;
  269. margin-left: 0
  270. }
  271. .marvel-device.iphone-x.landscape .notch {
  272. height: 210px;
  273. width: 30px;
  274. left: 26px;
  275. bottom: 108px;
  276. top: auto;
  277. border-top-right-radius: 24px;
  278. border-bottom-right-radius: 24px;
  279. border-bottom-left-radius: 0
  280. }
  281. .marvel-device.iphone-x.landscape .notch:before,
  282. .marvel-device.iphone-x.landscape .notch:after {
  283. left: 0
  284. }
  285. .marvel-device.iphone-x.landscape .notch:after {
  286. background: radial-gradient(circle at bottom right, transparent 0, transparent 70%, black 70%, black 100%);
  287. bottom: -8px;
  288. top: auto
  289. }
  290. .marvel-device.iphone-x.landscape .notch:before {
  291. background: radial-gradient(circle at top right, transparent 0, transparent 70%, black 70%, black 100%);
  292. top: -8px
  293. }
  294. .marvel-device.note8 {
  295. width: 400px;
  296. height: 822px;
  297. background: black;
  298. border-radius: 34px;
  299. padding: 45px 10px
  300. }
  301. .marvel-device.note8 .overflow {
  302. width: 100%;
  303. height: 100%;
  304. position: absolute;
  305. top: 0;
  306. left: 0;
  307. border-radius: 34px;
  308. overflow: hidden
  309. }
  310. .marvel-device.note8 .speaker {
  311. height: 8px;
  312. width: 56px;
  313. left: 50%;
  314. position: absolute;
  315. top: 25px;
  316. margin-left: -28px;
  317. background: #171818;
  318. z-index: 1;
  319. border-radius: 8px
  320. }
  321. .marvel-device.note8 .camera {
  322. height: 18px;
  323. width: 18px;
  324. left: 86px;
  325. position: absolute;
  326. top: 18px;
  327. background: #212b36;
  328. z-index: 1;
  329. border-radius: 100%
  330. }
  331. .marvel-device.note8 .camera:before {
  332. content: '';
  333. height: 8px;
  334. width: 8px;
  335. left: -22px;
  336. position: absolute;
  337. top: 5px;
  338. background: #212b36;
  339. z-index: 1;
  340. border-radius: 100%
  341. }
  342. .marvel-device.note8 .sensors {
  343. height: 10px;
  344. width: 10px;
  345. left: 120px;
  346. position: absolute;
  347. top: 22px;
  348. background: #1d233b;
  349. z-index: 1;
  350. border-radius: 100%
  351. }
  352. .marvel-device.note8 .sensors:before {
  353. content: '';
  354. height: 10px;
  355. width: 10px;
  356. left: 18px;
  357. position: absolute;
  358. top: 0;
  359. background: #1d233b;
  360. z-index: 1;
  361. border-radius: 100%
  362. }
  363. .marvel-device.note8 .more-sensors {
  364. height: 16px;
  365. width: 16px;
  366. left: 285px;
  367. position: absolute;
  368. top: 18px;
  369. background: #33244a;
  370. -webkit-box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
  371. box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
  372. z-index: 1;
  373. border-radius: 100%
  374. }
  375. .marvel-device.note8 .more-sensors:before {
  376. content: '';
  377. height: 11px;
  378. width: 11px;
  379. left: 40px;
  380. position: absolute;
  381. top: 4px;
  382. background: #214a61;
  383. z-index: 1;
  384. border-radius: 100%
  385. }
  386. .marvel-device.note8 .sleep {
  387. width: 2px;
  388. height: 56px;
  389. background: black;
  390. position: absolute;
  391. top: 288px;
  392. right: -2px
  393. }
  394. .marvel-device.note8 .volume {
  395. width: 2px;
  396. height: 120px;
  397. background: black;
  398. position: absolute;
  399. top: 168px;
  400. left: -2px
  401. }
  402. .marvel-device.note8 .volume:before {
  403. content: '';
  404. top: 168px;
  405. width: 2px;
  406. position: absolute;
  407. left: 0;
  408. background: black;
  409. height: 56px
  410. }
  411. .marvel-device.note8 .inner {
  412. width: 100%;
  413. height: calc(100% - 8px);
  414. position: absolute;
  415. top: 2px;
  416. content: '';
  417. left: 0px;
  418. border-radius: 34px;
  419. border-top: 2px solid #9fa0a2;
  420. border-bottom: 2px solid #9fa0a2;
  421. background: black;
  422. z-index: 1;
  423. -webkit-box-shadow: inset 0 0 6px 0 rgba(255, 255, 255, 0.5);
  424. box-shadow: inset 0 0 6px 0 rgba(255, 255, 255, 0.5)
  425. }
  426. .marvel-device.note8 .shadow {
  427. -webkit-box-shadow: inset 0 0 60px 0 white, inset 0 0 30px 0 rgba(255, 255, 255, 0.5), 0 0 20px 0 white, 0 0 20px 0 rgba(255, 255, 255, 0.5);
  428. box-shadow: inset 0 0 60px 0 white, inset 0 0 30px 0 rgba(255, 255, 255, 0.5), 0 0 20px 0 white, 0 0 20px 0 rgba(255, 255, 255, 0.5);
  429. height: 101%;
  430. position: absolute;
  431. top: -0.5%;
  432. content: '';
  433. width: calc(100% - 20px);
  434. left: 10px;
  435. border-radius: 38px;
  436. z-index: 5;
  437. pointer-events: none
  438. }
  439. .marvel-device.note8 .screen {
  440. border-radius: 14px;
  441. -webkit-box-shadow: none;
  442. box-shadow: none
  443. }
  444. .marvel-device.note8.landscape {
  445. height: 400px;
  446. width: 822px;
  447. padding: 10px 45px
  448. }
  449. .marvel-device.note8.landscape .speaker {
  450. height: 56px;
  451. width: 8px;
  452. top: 50%;
  453. margin-top: -28px;
  454. margin-left: 0;
  455. right: 25px;
  456. left: auto
  457. }
  458. .marvel-device.note8.landscape .camera {
  459. top: 86px;
  460. right: 18px;
  461. left: auto
  462. }
  463. .marvel-device.note8.landscape .camera:before {
  464. top: -22px;
  465. left: 5px
  466. }
  467. .marvel-device.note8.landscape .sensors {
  468. top: 120px;
  469. right: 22px;
  470. left: auto
  471. }
  472. .marvel-device.note8.landscape .sensors:before {
  473. top: 18px;
  474. left: 0
  475. }
  476. .marvel-device.note8.landscape .more-sensors {
  477. top: 285px;
  478. right: 18px;
  479. left: auto
  480. }
  481. .marvel-device.note8.landscape .more-sensors:before {
  482. top: 40px;
  483. left: 4px
  484. }
  485. .marvel-device.note8.landscape .sleep {
  486. bottom: -2px;
  487. top: auto;
  488. right: 288px;
  489. width: 56px;
  490. height: 2px
  491. }
  492. .marvel-device.note8.landscape .volume {
  493. width: 120px;
  494. height: 2px;
  495. top: -2px;
  496. right: 168px;
  497. left: auto
  498. }
  499. .marvel-device.note8.landscape .volume:before {
  500. right: 168px;
  501. left: auto;
  502. top: 0;
  503. width: 56px;
  504. height: 2px
  505. }
  506. .marvel-device.note8.landscape .inner {
  507. height: 100%;
  508. width: calc(100% - 8px);
  509. left: 2px;
  510. top: 0;
  511. border-top: 0;
  512. border-bottom: 0;
  513. border-left: 2px solid #9fa0a2;
  514. border-right: 2px solid #9fa0a2
  515. }
  516. .marvel-device.note8.landscape .shadow {
  517. width: 101%;
  518. height: calc(100% - 20px);
  519. left: -0.5%;
  520. top: 10px
  521. }