forked from ZulNs/ZulNs.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cuboid3d.css
140 lines (139 loc) · 3.38 KB
/
cuboid3d.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
.cuboid-wrapper {
position: absolute;
top: 50%;
left: 50%;
-webkit-perspective: 1000px;
-moz-perspective: 1000px;
-o-perspective: 1000px;
perspective: 1000px;
}
.cuboid {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: .8em;
position: absolute;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
transform-style: preserve-3d;
transform-style: preserve-3d;
/*
-webkit-transform: rotateY(-45deg);
-moz-transform: rotateY(-45deg);
-o-transform: rotateY(-45deg);
transform: rotateY(-45deg);
*/
}
.cuboid .face {
position: absolute;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-o-backface-visibility: hidden;
backface-visibility: hidden;
color: #fff;
background: #6c767c;
border: 1px solid #c6ccbc;
cursor: pointer;
}
.cuboid .face.side {
width: 240px;
height: 320px;
margin-left: -120px;
margin-top: -160px;
}
.cuboid .face.cover {
width: 240px;
height: 240px;
margin-left: -120px;
margin-top: -120px;
}
.cuboid .face.front {
-webkit-transform: translateZ(120px);
-moz-transform: translateZ(120px);
-o-transform: translateZ(120px);
transform: translateZ(120px);
}
.cuboid .face.right {
-webkit-transform: rotateY(90deg) translateZ(120px);
-moz-transform: rotateY(90deg) translateZ(120px);
-o-transform: rotateY(90deg) translateZ(120px);
transform: rotateY(90deg) translateZ(120px);
}
.cuboid .face.back {
-webkit-transform: rotateY(180deg) translateZ(120px);
-moz-transform: rotateY(180deg) translateZ(120px);
-o-transform: rotateY(180deg) translateZ(120px);
transform: rotateY(180deg) translateZ(120px);
}
.cuboid .face.left {
-webkit-transform: rotateY(-90deg) translateZ(120px);
-moz-transform: rotateY(-90deg) translateZ(120px);
-o-transform: rotateY(-90deg) translateZ(120px);
transform: rotateY(-90deg) translateZ(120px);
}
.cuboid .face.top {
-webkit-transform: rotateX(90deg) translateZ(160px);
-moz-transform: rotateX(90deg) translateZ(160px);
-o-transform: rotateX(90deg) translateZ(160px);
transform: rotateX(90deg) translateZ(160px);
}
.cuboid .face.bottom {
-webkit-transform: rotateX(-90deg) translateZ(160px);
-moz-transform: rotateX(-90deg) translateZ(160px);
-o-transform: rotateX(-90deg) translateZ(160px);
transform: rotateX(-90deg) translateZ(160px);
}
.cuboid .content {
position: absolute;
overflow: auto;
color: #6c767c;
background: #c6ccbc;
border: 1px solid #6c767c;
cursor: default;
}
.cuboid .side .content {
width: 238px;
height: 240px;
margin-top: 40px;
}
.cuboid .cover .content {
width: 238px;
height: 160px;
margin-top: 40px;
text-align: center;
line-height: 160px;
vertical-align: middle;
font-size: 1.25em;
}
.cuboid .content-title {
position: absolute;
font-size: 1.1em;
width: 240px;
margin-top: 12px;
text-align: center;
}
.cuboid ul {
list-style: none outside none;
margin: 0;
padding: 4px 0;
}
.cuboid li {
margin: 10px;
padding-left: 24px;
text-indent: -20px;
}
.cuboid li:before {
content: "•";
padding-right: 12px;
color: #00f;
}
.cuboid li.github:before {
content: url(images/icons/github.png);
}
.cuboid li.codepen:before {
content: url(images/icons/codepen.png);
}
.cuboid li.stackoverflow:before {
content: url(images/icons/stackoverflow.png);
}
.cuboid li.twitter:before {
content: url(images/icons/twitter.png);
}