-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo-styles.css
161 lines (161 loc) · 3.73 KB
/
demo-styles.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
html {
background-color: #FAF0D9;
padding-bottom: 50px;
}
body {
width: 800px;
padding-bottom: 50px;
margin: 0px auto;
}
.drop-shadow {
width: 250px;
text-align: center;
padding: 30px 0;
font: bold 18px Helvetica;
background-color: #fff;
margin: 2em 10px 4em;
float: left;
}
.lifted {
position: relative;
-moz-border-radius: 4px;
border-radius: 4px;
}
.lifted:before, .lifted:after {
content: "";
position: absolute;
z-index: -2;
}
.lifted:before, .lifted:after {
bottom: 10px;
left: 15px;
width: 50%;
height: 20%;
max-width: 300px;
-webkit-box-shadow: 0 10px 15px rgba(0, 0, 0, 0.7);
-moz-box-shadow: 0 10px 15px rgba(0, 0, 0, 0.7);
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.7);
-webkit-transform: rotate(-3deg);
-moz-transform: rotate(-3deg);
-ms-transform: rotate(-3deg);
-o-transform: rotate(-3deg);
transform: rotate(-3deg);
}
.lifted:after {
right: 15px;
left: auto;
-webkit-transform: rotate(3deg);
-moz-transform: rotate(3deg);
-ms-transform: rotate(3deg);
-o-transform: rotate(3deg);
transform: rotate(3deg);
}
.curled {
position: relative;
border: 1px solid #efefef;
-moz-border-radius: 0 0 120px 120px / 0 0 6px 6px;
border-radius: 0 0 120px 120px / 0 0 6px 6px;
}
.curled:before, .curled:after {
content: "";
position: absolute;
z-index: -2;
}
.curled:before, .curled:after {
bottom: 12px;
left: 10px;
width: 50%;
height: 55%;
max-width: 200px;
-webkit-box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
-webkit-transform: skew(-8deg) rotate(-3deg);
-moz-transform: skew(-8deg) rotate(-3deg);
-ms-transform: skew(-8deg) rotate(-3deg);
-o-transform: skew(-8deg) rotate(-3deg);
transform: skew(-8deg) rotate(-3deg);
}
.curled:after {
right: 10px;
left: auto;
-webkit-transform: skew(8deg) rotate(3deg);
-moz-transform: skew(8deg) rotate(3deg);
-ms-transform: skew(8deg) rotate(3deg);
-o-transform: skew(8deg) rotate(3deg);
transform: skew(8deg) rotate(3deg);
}
.perspective {
position: relative;
}
.perspective:before, .perspective:after {
content: "";
position: absolute;
z-index: -2;
}
.perspective:before {
left: 80px;
bottom: 5px;
width: 50%;
height: 35%;
max-width: 200px;
-webkit-box-shadow: -80px 0 8px rgba(0, 0, 0, 0.4);
-moz-box-shadow: -80px 0 8px rgba(0, 0, 0, 0.4);
box-shadow: -80px 0 8px rgba(0, 0, 0, 0.4);
-webkit-transform: skew(50deg);
-moz-transform: skew(50deg);
-ms-transform: skew(50deg);
-o-transform: skew(50deg);
transform: skew(50deg);
-webkit-transform-origin: 0 100%;
-moz-transform-origin: 0 100%;
-ms-transform-origin: 0 100%;
-o-transform-origin: 0 100%;
transform-origin: 0 100%;
}
.perspective:after {
display: none;
}
.raised {
-webkit-box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
-moz-box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
}
.curved {
position: relative;
}
.curved:before, .curved:after {
content: "";
position: absolute;
z-index: -2;
}
.curved:before {
top: 10px;
bottom: 10px;
left: 0;
right: 50%;
-webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
-moz-box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
-moz-border-radius: 0px / 100px;
border-radius: 0px / 100px;
}
.curved-vt-2:before {
right: 0;
}
.curved-hz-1:before {
top: 50%;
bottom: 0;
left: 10px;
right: 10px;
-moz-border-radius: 100px / 10px;
border-radius: 100px / 10px;
}
.curved-hz-2:before {
top: 0;
bottom: 0;
left: 10px;
right: 10px;
-moz-border-radius: 100px / 10px;
border-radius: 100px / 10px;
}