-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathandroidPhone.css
78 lines (56 loc) · 3.57 KB
/
androidPhone.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
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
*
* */
/* Android phone portrait */
.androidPhone.portrait
{ position: relative; display: inline-block; transform: scale3d(0.8333,0.8333,1); transform-origin: 50% 50%; width: 100%; padding: calc(16/9*50%) 0;}
.androidPhone.portrait .content
{ position: absolute; z-index: 5; width: 100%; height: 100%; top: 0px; }
.androidPhone.portrait .reflection
{ width: 107%; height: 120%; position: absolute; top: -10%; left: -3%; z-index: 7; border-radius: 15%/5%; }
.androidPhone.portrait .caseBorder
{ width: 107%; height: 120%; position: absolute; top: -10%; left: -3.5%; z-index: 0; border-radius: 15%/5%; }
.androidPhone.portrait .case
{ width: 107%; height: 120%; position: absolute; top: -10%; left: -3.5%; z-index: 1; border-radius: 15%/5%; transform-origin: center; transform: scale3d(0.995, 0.995, 1); }
.androidPhone.portrait .screen
{ width: 100%; height: 100%; position: absolute; top: 0%; left: 0%; z-index: 6; }
.androidPhone.portrait .camera
{ width: 2%; height: calc(9/16*2%); position: absolute; top: -6%; left: 25%; z-index: 3; border-radius: 50%; }
.androidPhone.portrait .speaker
{ width: 30%; height: calc(9/16*2%); position: absolute; top: -6%; left: 35%; z-index: 3; border-radius: 999px; }
.androidPhone.portrait .homeButtonBorder
{ width: 25%; height: 5%; position: absolute; bottom: -7%; left: 37.5%; z-index: 3; border-radius: 999px; }
.androidPhone.portrait .homeButton
{ width: 25%; height: 5%; position: absolute; bottom: -7%; left: 37.5%; z-index: 4; border-radius: 999px; transform-origin: center; transform: scale3d(0.90, 0.80, 1); }
/* Android phone landscape */
.androidPhone.landscape
{ position: relative; display: inline-block; transform: scale3d(0.8333,0.8333,1); transform-origin: 50% 50%; width: 100%; padding: calc(9/16*50%) 0;}
.androidPhone.landscape .content
{ position: absolute; z-index: 5; height: 100%; width: 100%; top: 0px; }
.androidPhone.landscape .reflection
{ height: 107%; width: 120%; position: absolute; left: -10%; top: -3%; z-index: 7; border-radius: 5%/15%; }
.androidPhone.landscape .caseBorder
{ height: 107%; width: 120%; position: absolute; left: -10%; top: -3.5%; z-index: 0; border-radius: 5%/15%; }
.androidPhone.landscape .case
{ height: 107%; width: 120%; position: absolute; left: -10%; top: -3.5%; z-index: 1; border-radius: 5%/15%; transform-origin: center; transform: scale3d(0.995, 0.995, 1); }
.androidPhone.landscape .screen
{ height: 100%; width: 100%; position: absolute; left: 0%; top: 0%; z-index: 6; }
.androidPhone.landscape .camera
{ height: 2%; width: calc(9/16*2%); position: absolute; left: -6%; top: 25%; z-index: 3; border-radius: 50%; }
.androidPhone.landscape .speaker
{ height: 30%; width: calc(9/16*2%); position: absolute; left: -6%; top: 35%; z-index: 3; border-radius: 999px; }
.androidPhone.landscape .homeButtonBorder
{ height: 25%; width: 5%; position: absolute; right: -7%; top: 37.5%; z-index: 3; border-radius: 999px; }
.androidPhone.landscape .homeButton
{ height: 25%; width: 5%; position: absolute; right: -7%; top: 37.5%; z-index: 4; border-radius: 999px; transform-origin: center; transform: scale3d(0.80, 0.90, 1); }