-
Notifications
You must be signed in to change notification settings - Fork 4
/
sample-ex.css
97 lines (82 loc) · 2.15 KB
/
sample-ex.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
/* this is the top-right ribbon configuration */
.ribbon{
/* positioning */
position: fixed;
top: 50px;
right: -50px;
padding: 5px 45px;
width: 128px; /* don't ask */
/* looks */
background-color: #F6C304;
color: #fff;
font-size: 13px;
font-family: sans-serif;
text-decoration: none;
font-weight: bold;
/* rotation */
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
transform: rotate(45deg);
/* ribbon effects */
border: 2px dotted #fff;
box-shadow: 0 0 0 3px #F6C304, 0 0px 20px -3px rgba(0,0,0,.5);
text-shadow: 0 0 white /* antialias color fix */ , 0 0 5px rgba(0,0,0,.5);
/* webkit antialias fix */
-webkit-backface-visibility: hidden;
letter-spacing: .5px;
}
/* other configurations */
.top-right{
/* standard positioning */
top: 50px;
right: -50px;
/* IE8 positioning */
top: -25px\9;
right: -75px\9;
/* IE7 positioning */
*top: -25px;
*right: -30px;
/* IE6 positioning */
_top: -25px;
_right: -30px;
/* .rotate45 */
}
.bottom-left{
top: auto !important; /* reset */
bottom: 50px !important;
left: -50px !important;
/* .rotate45 */
}
.top-left{
top: 50px !important;
left: -50px !important;
/* .rotate315 */
}
.bottom-right{
top: auto !important; /* reset */
bottom: 50px !important;
right: -50px !important;
/* .rotate315 */
}
.rotate45{
/* standard rotation */
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
transform: rotate(45deg);
/* IE8+ rotation */
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865474, M12=-0.7071067811865477, M21=0.7071067811865477, M22=0.7071067811865474, SizingMethod='auto expand')";
/* IE6 and 7 rotation */
*filter: progid:DXImageTransform.Microsoft.Matrix(
M11=0.7071067811865474,
M12=-0.7071067811865477,
M21=0.7071067811865477,
M22=0.7071067811865474,
SizingMethod='auto expand');
}
.rotate315{
/* standard rotation */
-webkit-transform: rotate(315deg);
-moz-transform: rotate(315deg);
-ms-transform: rotate(315deg);
transform: rotate(315deg);
}