forked from chrisbateman/spherical
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspherical.css
More file actions
89 lines (85 loc) · 2.46 KB
/
spherical.css
File metadata and controls
89 lines (85 loc) · 2.46 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
79
80
81
82
83
84
85
86
87
88
89
.spherical-container {
position: relative;
overflow: hidden;
-webkit-user-select: none;
-moz-user-select: -moz-none;
-ms-user-select: none;
user-select: none;
cursor: move;
}
.spherical-cube {
width: 800px;
height: 800px;
position: absolute;
left: 50%;
top: 50%;
margin: -400px 0 0 -400px;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.spherical-cube > div {
background-color: #000;
width: inherit;
height: inherit;
position: absolute;
background-repeat: no-repeat;
background-size: cover;
transform-style: preserve-3d;
}
.spherical-cube .spherical-front {
-webkit-transform: translateZ(-398px);
transform: translateZ(-398px);
}
.spherical-cube .spherical-back {
-webkit-transform: rotateY(180deg) translateZ(-398px);
transform: rotateY(180deg) translateZ(-398px);
}
.spherical-cube .spherical-left {
-webkit-transform: rotateY(90deg) translateZ(-398px);
transform: rotateY(90deg) translateZ(-398px);
}
.spherical-cube .spherical-right {
-webkit-transform: rotateY(-90deg) translateZ(-398px);
transform: rotateY(-90deg) translateZ(-398px);
}
.spherical-cube .spherical-top {
-webkit-transform: rotateX(-90deg) translateZ(-398px);
transform: rotateX(-90deg) translateZ(-398px);
}
.spherical-cube .spherical-bottom {
-webkit-transform: rotateX(90deg) translateZ(-398px);
transform: rotateX(90deg) translateZ(-398px);
}
.spherical-container:-webkit-full-screen {
width: 100% !important;
height: 100% !important;
}
.spherical-container:full-screen {
width: 100% !important;
height: 100% !important;
}
.spherical-container.spherical-pseudo-fs {
position: fixed !important;
left: 0;
right: 0;
top: 0;
bottom: 0;
width: auto !important;
height: auto !important;
z-index: 1;
}
.spherical-fullbutton {
width: 16px;
height: 16px;
padding: 12px;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACmWAJHAAAAC3RSTlMAFYTc93m7xIwoJdcuXkAAAABcSURBVAjXY9i9exMDg/bu3UBGAAMDK4ixRYCBgdEbyPA2ZGAQ3rKbYZPwNgaGbENtBgXGLAaGZQJMDMSAAMZMBoZpAqwMW4W3MzBUG0YjDERYsbuBgYEDaCnMGQAADCA2TyNOPQAAAABJRU5ErkJggg==) transparent no-repeat center;
opacity: 0.4;
cursor: pointer;
border: 0 none;
z-index: 1;
position: absolute;
bottom: 0;
right: 0;
-webkit-transform: translateZ(0);
transform: translateZ(0);
}