-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
172 lines (149 loc) · 4.9 KB
/
style.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
162
163
164
165
166
167
168
169
170
171
172
* {
margin: 0;
padding: 0;
position: relative;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
body {
color: black;
font-family: Arial, Helvetica, sans-serif;
background: #222;
}
a {
color: #C0392B;
}
a:hover {
color: #222;
}
span {
font-size: .8em;
}
.container {
width: 30em;
height: auto;
padding: 1.5em;
margin: 0 auto;
background: #f1f1f1;
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}
nav ul {
display: block;
}
nav ul li {
display: inline;
padding: .5em;
}
article {
margin: 1.5em 0;
}
/*
* GitHub Ribbon (by Tim Pietrusky)
* http://codepen.io/TimPietrusky/pen/ysqrg
*/
.ribbon.ribbon__alpha, .ribbon.ribbon__beta, .ribbon.ribbon__gamma, .ribbon.ribbon__delta {
color: #fff;
box-shadow: 0 0 0 0.75em rgba(255, 255, 255, 0);
-webkit-transition: color 0.35s ease-in, box-shadow 0.215s ease-out;
-moz-transition: color 0.35s ease-in, box-shadow 0.215s ease-out;
-o-transition: color 0.35s ease-in, box-shadow 0.215s ease-out;
transition: color 0.35s ease-in, box-shadow 0.215s ease-out;
}
.ribbon.ribbon__alpha:hover, .ribbon.ribbon__beta:hover, .ribbon.ribbon__gamma:hover, .ribbon.ribbon__delta:hover {
background: #fff;
box-shadow: 0 0 0 0.25em rgba(255, 255, 255, 0.4);
}
.ribbon {
position: absolute;
padding: 0.5em;
font-size: 1.35em;
text-decoration: none;
}
@media (max-width: 44em) {
.ribbon {
font-size: 1em;
}
}
.ribbon.ribbon--top-left {
top: 0;
left: 0.5em;
}
.ribbon.ribbon--top-right {
top: 0;
right: 0.5em;
}
.ribbon.ribbon--bottom-left {
bottom: 0;
left: 0.5em;
}
.ribbon.ribbon--bottom-right {
bottom: 0;
right: 0.5em;
}
.ribbon.ribbon__alpha {
background: #3498db;
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #3498db), color-stop(100%, #2980b9));
background: -webkit-linear-gradient(top, #3498db, #2980b9);
background: -moz-linear-gradient(top, #3498db, #2980b9);
background: -o-linear-gradient(top, #3498db, #2980b9);
background: linear-gradient(top, #3498db, #2980b9);
background: -webkit-gradient(linear, to bottom, to top, color-stop(0%, #3498db), color-stop(100%, #2980b9));
background: -webkit-linear-gradient(to bottom, #3498db, #2980b9);
background: -moz-linear-gradient(to bottom, #3498db, #2980b9);
background: -o-linear-gradient(to bottom, #3498db, #2980b9);
background: linear-gradient(to bottom, #3498db, #2980b9);
}
.ribbon.ribbon__alpha:hover {
color: #3498db;
}
.ribbon.ribbon__beta {
background: #e74c3c;
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e74c3c), color-stop(100%, #c0392b));
background: -webkit-linear-gradient(top, #e74c3c, #c0392b);
background: -moz-linear-gradient(top, #e74c3c, #c0392b);
background: -o-linear-gradient(top, #e74c3c, #c0392b);
background: linear-gradient(top, #e74c3c, #c0392b);
background: -webkit-gradient(linear, to bottom, to top, color-stop(0%, #e74c3c), color-stop(100%, #c0392b));
background: -webkit-linear-gradient(to bottom, #e74c3c, #c0392b);
background: -moz-linear-gradient(to bottom, #e74c3c, #c0392b);
background: -o-linear-gradient(to bottom, #e74c3c, #c0392b);
background: linear-gradient(to bottom, #e74c3c, #c0392b);
}
.ribbon.ribbon__beta:hover {
color: #e74c3c;
}
.ribbon.ribbon__gamma {
background: #2ecc71;
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #2ecc71), color-stop(100%, #27ae60));
background: -webkit-linear-gradient(top, #2ecc71, #27ae60);
background: -moz-linear-gradient(top, #2ecc71, #27ae60);
background: -o-linear-gradient(top, #2ecc71, #27ae60);
background: linear-gradient(top, #2ecc71, #27ae60);
background: -webkit-gradient(linear, to bottom, to top, color-stop(0%, #2ecc71), color-stop(100%, #27ae60));
background: -webkit-linear-gradient(to bottom, #2ecc71, #27ae60);
background: -moz-linear-gradient(to bottom, #2ecc71, #27ae60);
background: -o-linear-gradient(to bottom, #2ecc71, #27ae60);
background: linear-gradient(to bottom, #2ecc71, #27ae60);
}
.ribbon.ribbon__gamma:hover {
color: #2ecc71;
}
.ribbon.ribbon__delta {
background: #e67e22;
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e67e22), color-stop(100%, #d35400));
background: -webkit-linear-gradient(top, #e67e22, #d35400);
background: -moz-linear-gradient(top, #e67e22, #d35400);
background: -o-linear-gradient(top, #e67e22, #d35400);
background: linear-gradient(top, #e67e22, #d35400);
background: -webkit-gradient(linear, to bottom, to top, color-stop(0%, #e67e22), color-stop(100%, #d35400));
background: -webkit-linear-gradient(to bottom, #e67e22, #d35400);
background: -moz-linear-gradient(to bottom, #e67e22, #d35400);
background: -o-linear-gradient(to bottom, #e67e22, #d35400);
background: linear-gradient(to bottom, #e67e22, #d35400);
}
.ribbon.ribbon__delta:hover {
color: #e67e22;
}