-
Notifications
You must be signed in to change notification settings - Fork 4
/
sample.css
72 lines (63 loc) · 1.58 KB
/
sample.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
/* 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);
-ms-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-left{
top: 50px;
left: -50px;
-webkit-transform: rotate(315deg);
-moz-transform: rotate(315deg);
-ms-transform: rotate(315deg);
transform: rotate(315deg);
}
.top-right{
top: 50px;
right: -50px;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
.bottom-left{
top: auto !important; /* reset */
bottom: 50px;
left: -50px;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
.bottom-right{
top: auto !important; /* reset */
bottom: 50px;
right: -50px;
-webkit-transform: rotate(315deg);
-moz-transform: rotate(315deg);
-ms-transform: rotate(315deg);
transform: rotate(315deg);
}