-
Notifications
You must be signed in to change notification settings - Fork 0
/
ribbon.css
95 lines (78 loc) · 1.6 KB
/
ribbon.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
@import url(http://fonts.googleapis.com/css?family=Cabin+Condensed:500&text=Fork%20me%20on%20GitHub);
body{
overflow-x: hidden;
}
.ribbon{
position: absolute;
top: 42px;
width: 200px;
padding: 1px 0;
background: #000;
color: #eee;
-moz-box-shadow: 0 0 10px rgba(0,0,0,0.5);
-webkit-box-shadow: 0 0 10px rgba(0,0,0,0.5);
box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.ribbon.left{
left: -42px;
-moz-transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
transform: rotate(-45deg);
}
.ribbon.right{
right: -42px;
-moz-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
-o-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
.ribbon a,
.ribbon a:visited,
.ribbon a:active,
.ribbon a:hover{
display: block;
padding: 1px 0;
height: 24px;
line-height: 24px;
color: inherit;
text-align: center;
text-decoration: none;
font-family: 'Cabin Condensed', sans-serif;
font-size: 16px;
font-weight: 500;
border: 1px solid rgba(255,255,255,0.3);
-moz-text-shadow: 0 0 10px rgba(0,0,0,0.31);
-webkit-text-shadow: 0 0 10px rgba(0,0,0,0.31);
text-shadow: 0 0 10px rgba(0,0,0,0.31);
}
.ribbon.black{
background: #000;
}
.ribbon.red{
background: #c00;
}
.ribbon.blue{
background: #09e;
}
.ribbon.green{
background: #0a0;
}
.ribbon.orange{
background: #d80;
}
.ribbon.purple{
background: #c0c;
}
.ribbon.grey{
background: #888;
}
.ribbon.white{
background: #eee;
color: black;
}
.ribbon.white a{
border: 2px dotted rgba(100,100,100,0.2);
}