-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathiphone.css
More file actions
78 lines (56 loc) · 3.48 KB
/
Copy pathiphone.css
File metadata and controls
78 lines (56 loc) · 3.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*
* Copyright (c) OSREC Technologies (https://osrec.co.uk)
* ------------------------------------------------------
* This CSS library was funded by the Bx team at OSREC
* Technologies and is free for non-commercial use.
*
* Commercial use requires a license. You can purchase an
* unlimited license from https://osrec.co.uk/ for a small fee.
* This helps fund further development and keeps the library
* up to date with new devices.
*
* Check out the Bx team's work @ https://usebx.com
*
* */
/* iPhone portrait */
.iphone.portrait
{ position: relative; display: inline-block; transform: scale3d(0.8,0.8,1); transform-origin: 50% 50%; width: 100%; padding: calc(16/9*50%) 0; }
.iphone.portrait .content
{ position: absolute; z-index: 5; width: 100%; height: 100%; top: 0px; }
.iphone.portrait .reflection
{ width: 107%; height: 110%; position: absolute; top: -12.5%; left: -3%; z-index: 7; border-radius: 10%/5%; }
.iphone.portrait .caseBorder
{ width: 107%; height: 125%; position: absolute; top: -12.5%; left: -3.5%; z-index: 0; border-radius: 10%/5%; }
.iphone.portrait .case
{ width: 107%; height: 125%; position: absolute; top: -12.5%; left: -3.5%; z-index: 1; border-radius: 10%/5%; transform-origin: center; transform: scale3d(0.995, 0.995, 1); }
.iphone.portrait .screen
{ width: 100%; height: 100%; position: absolute; top: 0%; left: 0%; z-index: 6; }
.iphone.portrait .camera
{ width: 2%; height: calc(9/16*2%); position: absolute; top: -6%; left: 25%; z-index: 3; border-radius: 50%; }
.iphone.portrait .speaker
{ width: 30%; height: calc(9/16*2%); position: absolute; top: -6%; left: 35%; z-index: 3; border-radius: 999px; }
.iphone.portrait .homeButtonBorder
{ width: 12%; height: calc(9/16*12%); position: absolute; bottom: -8.5%; left: 44%; z-index: 3; border-radius: 50%; }
.iphone.portrait .homeButton
{ width: 12%; height: calc(9/16*12%); position: absolute; bottom: -8.5%; left: 44%; z-index: 4; border-radius: 50%; transform-origin: center; transform: scale3d(0.85, 0.85, 1); }
/* iPhone landscape */
.iphone.landscape
{ position: relative; display: inline-block; transform: scale3d(0.8,0.8,1); transform-origin: 50% 50%; width: 100%; padding: calc(9/16*50%) 0;}
.iphone.landscape .content
{ position: absolute; z-index: 5; height: 100%; width: 100%; top: 0px; }
.iphone.landscape .reflection
{ height: 107%; width: 110%; position: absolute; left: -12.5%; top: -3%; z-index: 7; border-radius: 5%/10%; }
.iphone.landscape .caseBorder
{ height: 107%; width: 125%; position: absolute; left: -12.5%; top: -3.5%; z-index: 0; border-radius: 5%/10%; }
.iphone.landscape .case
{ height: 107%; width: 125%; position: absolute; left: -12.5%; top: -3.5%; z-index: 1; border-radius: 5%/10%; transform-origin: center; transform: scale3d(0.995, 0.995, 1); }
.iphone.landscape .screen
{ height: 100%; width: 100%; position: absolute; left: 0%; top: 0%; z-index: 6; }
.iphone.landscape .camera
{ height: 2%; width: calc(9/16*2%); position: absolute; left: -6%; bottom: 25%; z-index: 3; border-radius: 50%; }
.iphone.landscape .speaker
{ height: 30%; width: calc(9/16*2%); position: absolute; left: -6%; top: 35%; z-index: 3; border-radius: 999px; }
.iphone.landscape .homeButtonBorder
{ height: 12%; width: calc(9/16*12%); position: absolute; right: -8.5%; top: 44%; z-index: 3; border-radius: 50%; }
.iphone.landscape .homeButton
{ height: 12%; width: calc(9/16*12%); position: absolute; right: -8.5%; top: 44%; z-index: 4; border-radius: 50%; transform-origin: center; transform: scale3d(0.85, 0.85, 1); }