-
Notifications
You must be signed in to change notification settings - Fork 6
/
ipad.css
74 lines (52 loc) · 3.13 KB
/
ipad.css
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
/*
* 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
*
* */
/* iPad portrait */
.ipad.portrait
{ position: relative; display: inline-block; transform: scale3d(0.83,0.83,1); transform-origin: 50% 50%; width: 100%; padding: calc(4/3*50%) 0; }
.ipad.portrait .content
{ position: absolute; z-index: 5; width: 100%; height: 100%; top: 0px;}
.ipad.portrait .reflection
{ width: 109%; height: 110%; position: absolute; top: -9.5%; left: -4.5%; z-index: 7; border-radius: 5%/4%; }
.ipad.portrait .caseBorder
{ width: 110%; height: 120%; position: absolute; top: -10%; left: -5%; z-index: 0; border-radius: 5%/4%; }
.ipad.portrait .case
{ width: 110%; height: 120%; position: absolute; top: -10%; left: -5%; z-index: 1; border-radius: 5%/4%; transform-origin: center; transform: scale3d(0.995, 0.995, 1); }
.ipad.portrait .screen
{ width: 100%; height: 100%; position: absolute; top: 0%; left: 0%; z-index: 6; }
.ipad.portrait .camera
{ width: 2%; height: calc(3/4*2%); position: absolute; top: -6%; left: 49%; z-index: 3; border-radius: 50%; }
.ipad.portrait .homeButtonBorder
{ width: 8%; height: calc(3/4*8%); position: absolute; bottom: -7.5%; left: 46%; z-index: 3; border-radius: 50%; }
.ipad.portrait .homeButton
{ width: 8%; height: calc(3/4*8%); position: absolute; bottom: -7.5%; left: 46%; z-index: 4; border-radius: 50%; transform-origin: center; transform: scale3d(0.85, 0.85, 1); }
/* iPad landscape */
.ipad.landscape
{ position: relative; display: inline-block; transform: scale3d(0.83,0.83,1); transform-origin: 50% 50%; width: 100%; padding: calc(3/4*50%) 0; }
.ipad.landscape .content
{ position: absolute; z-index: 5; width: 100%; height: 100%; top: 0px; }
.ipad.landscape .reflection
{ height: 109%; width: 110%; position: absolute; left: -9.5%; top: -4.5%; z-index: 7; border-radius: 4%/5%; }
.ipad.landscape .caseBorder
{ height: 110%; width: 120%; position: absolute; left: -10%; top: -5%; z-index: 0; border-radius: 4%/5%; }
.ipad.landscape .case
{ height: 110%; width: 120%; position: absolute; left: -10%; top: -5%; z-index: 1; border-radius: 4%/5%; transform-origin: center; transform: scale3d(0.995, 0.995, 1); }
.ipad.landscape .screen
{ height: 100%; width: 100%; position: absolute; left: 0%; top: 0%; z-index: 6; }
.ipad.landscape .camera
{ height: 2%; width: calc(3/4*2%); position: absolute; left: -6%; top: 49%; z-index: 3; border-radius: 50%; }
.ipad.landscape .homeButtonBorder
{ height: 8%; width: calc(3/4*8%); position: absolute; right: -7.5%; top: 46%; z-index: 3; border-radius: 50%; }
.ipad.landscape .homeButton
{ height: 8%; width: calc(3/4*8%); position: absolute; right: -7.5%; top: 46%; z-index: 4; border-radius: 50%; transform-origin: center; transform: scale3d(0.85, 0.85, 1); }