news_reader 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/.vscode/settings.json +3 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +97 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/news-reader +6 -0
- data/bin/setup +8 -0
- data/fixtures/.DS_Store +0 -0
- data/fixtures/blog/index.html +200 -0
- data/fixtures/blog/index_files/Box.css +29 -0
- data/fixtures/blog/index_files/Java_Box.js +89 -0
- data/fixtures/blog/index_files/ModuleStyleSheets.css +1655 -0
- data/fixtures/blog/index_files/black.css +11 -0
- data/fixtures/blog/index_files/blog-jive.jpg +0 -0
- data/fixtures/blog/index_files/blog-musolfs.jpg +0 -0
- data/fixtures/blog/index_files/blog-poolpak.jpg +0 -0
- data/fixtures/blog/index_files/blog-portalaudit.png +0 -0
- data/fixtures/blog/index_files/blog-semicolon1.jpg +0 -0
- data/fixtures/blog/index_files/blog-semicolon2.jpg +0 -0
- data/fixtures/blog/index_files/blog-spa1.jpg +0 -0
- data/fixtures/blog/index_files/blog-spa2.jpg +0 -0
- data/fixtures/blog/index_files/blog-statera.jpg +0 -0
- data/fixtures/blog/index_files/blue.css +11 -0
- data/fixtures/blog/index_files/common.js +149 -0
- data/fixtures/blog/index_files/dark.css +31 -0
- data/fixtures/blog/index_files/featherlight.min.css +8 -0
- data/fixtures/blog/index_files/featherlight.min.js +8 -0
- data/fixtures/blog/index_files/font-awesome.min.css +4 -0
- data/fixtures/blog/index_files/green.css +11 -0
- data/fixtures/blog/index_files/isotope.css +64 -0
- data/fixtures/blog/index_files/jquery-ui.min.js +5 -0
- data/fixtures/blog/index_files/jquery.carouFredSel-6.2.1-packed.js +16 -0
- data/fixtures/blog/index_files/jquery.contentcarousel.js +137 -0
- data/fixtures/blog/index_files/jquery.easing.1.3.js +205 -0
- data/fixtures/blog/index_files/jquery.form.js +1121 -0
- data/fixtures/blog/index_files/jquery.hoverdir.js +220 -0
- data/fixtures/blog/index_files/jquery.inview.js +60 -0
- data/fixtures/blog/index_files/jquery.isotope.min.js +11 -0
- data/fixtures/blog/index_files/jquery.magnific-popup.js +2046 -0
- data/fixtures/blog/index_files/jquery.mb.YTPlayer.js +1041 -0
- data/fixtures/blog/index_files/jquery.min.js +5 -0
- data/fixtures/blog/index_files/jquery.nav.js +223 -0
- data/fixtures/blog/index_files/jquery.smoothwheel.js +153 -0
- data/fixtures/blog/index_files/jquery.sticky.js +129 -0
- data/fixtures/blog/index_files/jquery.superslides.js +656 -0
- data/fixtures/blog/index_files/jquery.validate.js +1231 -0
- data/fixtures/blog/index_files/jquery.vegas.css +34 -0
- data/fixtures/blog/index_files/js +201 -0
- data/fixtures/blog/index_files/loading.gif +0 -0
- data/fixtures/blog/index_files/magnific-popup.css +365 -0
- data/fixtures/blog/index_files/main.css +301 -0
- data/fixtures/blog/index_files/main.js +26 -0
- data/fixtures/blog/index_files/modernizr-2.6.2.min.js +4 -0
- data/fixtures/blog/index_files/normalize.css +533 -0
- data/fixtures/blog/index_files/ohp3fra.js +44 -0
- data/fixtures/blog/index_files/orange.css +11 -0
- data/fixtures/blog/index_files/paralax.js +525 -0
- data/fixtures/blog/index_files/paralaxNEW4.css +2730 -0
- data/fixtures/blog/index_files/plugins.js +221 -0
- data/fixtures/blog/index_files/portfolio.js +142 -0
- data/fixtures/blog/index_files/purple.css +11 -0
- data/fixtures/blog/index_files/red.css +11 -0
- data/fixtures/blog/index_files/responsive3.css +329 -0
- data/fixtures/blog/index_files/superslides.css +65 -0
- data/fixtures/blog/index_files/turquoise.css +11 -0
- data/fixtures/blog/index_files/util.js +287 -0
- data/fixtures/blog/index_files/yellow.css +11 -0
- data/lib/news_reader/article.rb +60 -0
- data/lib/news_reader/cli.rb +41 -0
- data/lib/news_reader/scraper.rb +17 -0
- data/lib/news_reader/version.rb +3 -0
- data/lib/news_reader.rb +4 -0
- data/news_reader.gemspec +40 -0
- metadata +209 -0
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
/* Magnific Popup CSS */
|
|
2
|
+
.mfp-bg {
|
|
3
|
+
top: 0;
|
|
4
|
+
left: 0;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
z-index: 1042;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
position: fixed;
|
|
10
|
+
background: #0b0b0b;
|
|
11
|
+
opacity: 0.8;
|
|
12
|
+
filter: alpha(opacity=80); }
|
|
13
|
+
|
|
14
|
+
.mfp-wrap {
|
|
15
|
+
top: 0;
|
|
16
|
+
left: 0;
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
z-index: 1043;
|
|
20
|
+
position: fixed;
|
|
21
|
+
outline: none !important;
|
|
22
|
+
-webkit-backface-visibility: hidden; }
|
|
23
|
+
|
|
24
|
+
.mfp-container {
|
|
25
|
+
text-align: center;
|
|
26
|
+
position: absolute;
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
left: 0;
|
|
30
|
+
top: 0;
|
|
31
|
+
padding: 0 8px;
|
|
32
|
+
-webkit-box-sizing: border-box;
|
|
33
|
+
-moz-box-sizing: border-box;
|
|
34
|
+
box-sizing: border-box; }
|
|
35
|
+
|
|
36
|
+
.mfp-container:before {
|
|
37
|
+
content: '';
|
|
38
|
+
display: inline-block;
|
|
39
|
+
height: 100%;
|
|
40
|
+
vertical-align: middle; }
|
|
41
|
+
|
|
42
|
+
.mfp-align-top .mfp-container:before {
|
|
43
|
+
display: none; }
|
|
44
|
+
|
|
45
|
+
.mfp-content {
|
|
46
|
+
position: relative;
|
|
47
|
+
display: inline-block;
|
|
48
|
+
vertical-align: middle;
|
|
49
|
+
margin: 0 auto;
|
|
50
|
+
text-align: left;
|
|
51
|
+
z-index: 1045; }
|
|
52
|
+
|
|
53
|
+
.mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content {
|
|
54
|
+
width: 100%;
|
|
55
|
+
cursor: auto; }
|
|
56
|
+
|
|
57
|
+
.mfp-ajax-cur {
|
|
58
|
+
cursor: progress; }
|
|
59
|
+
|
|
60
|
+
.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
|
|
61
|
+
cursor: -moz-zoom-out;
|
|
62
|
+
cursor: -webkit-zoom-out;
|
|
63
|
+
cursor: zoom-out; }
|
|
64
|
+
|
|
65
|
+
.mfp-zoom {
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
cursor: -webkit-zoom-in;
|
|
68
|
+
cursor: -moz-zoom-in;
|
|
69
|
+
cursor: zoom-in; }
|
|
70
|
+
|
|
71
|
+
.mfp-auto-cursor .mfp-content {
|
|
72
|
+
cursor: auto; }
|
|
73
|
+
|
|
74
|
+
.mfp-close, .mfp-arrow, .mfp-preloader, .mfp-counter {
|
|
75
|
+
-webkit-user-select: none;
|
|
76
|
+
-moz-user-select: none;
|
|
77
|
+
user-select: none; }
|
|
78
|
+
|
|
79
|
+
.mfp-loading.mfp-figure {
|
|
80
|
+
display: none; }
|
|
81
|
+
|
|
82
|
+
.mfp-hide {
|
|
83
|
+
display: none !important; }
|
|
84
|
+
|
|
85
|
+
.mfp-preloader {
|
|
86
|
+
color: #cccccc;
|
|
87
|
+
position: absolute;
|
|
88
|
+
top: 50%;
|
|
89
|
+
width: auto;
|
|
90
|
+
text-align: center;
|
|
91
|
+
margin-top: -0.8em;
|
|
92
|
+
left: 8px;
|
|
93
|
+
right: 8px;
|
|
94
|
+
z-index: 1044; }
|
|
95
|
+
.mfp-preloader a {
|
|
96
|
+
color: #cccccc; }
|
|
97
|
+
.mfp-preloader a:hover {
|
|
98
|
+
color: white; }
|
|
99
|
+
|
|
100
|
+
.mfp-s-ready .mfp-preloader {
|
|
101
|
+
display: none; }
|
|
102
|
+
|
|
103
|
+
.mfp-s-error .mfp-content {
|
|
104
|
+
display: none; }
|
|
105
|
+
|
|
106
|
+
button.mfp-close, button.mfp-arrow {
|
|
107
|
+
overflow: visible;
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
background: transparent;
|
|
110
|
+
border: 0;
|
|
111
|
+
-webkit-appearance: none;
|
|
112
|
+
display: block;
|
|
113
|
+
outline: none;
|
|
114
|
+
padding: 0;
|
|
115
|
+
z-index: 1046;
|
|
116
|
+
-webkit-box-shadow: none;
|
|
117
|
+
box-shadow: none; }
|
|
118
|
+
button::-moz-focus-inner {
|
|
119
|
+
padding: 0;
|
|
120
|
+
border: 0; }
|
|
121
|
+
|
|
122
|
+
.mfp-close {
|
|
123
|
+
width: 44px;
|
|
124
|
+
height: 44px;
|
|
125
|
+
line-height: 44px;
|
|
126
|
+
position: absolute;
|
|
127
|
+
right: 0;
|
|
128
|
+
top: 0;
|
|
129
|
+
text-decoration: none;
|
|
130
|
+
text-align: center;
|
|
131
|
+
opacity: 0.65;
|
|
132
|
+
padding: 0 0 18px 10px;
|
|
133
|
+
color: white;
|
|
134
|
+
font-style: normal;
|
|
135
|
+
font-size: 28px;
|
|
136
|
+
font-family: Arial, Baskerville, monospace; }
|
|
137
|
+
.mfp-close:hover, .mfp-close:focus {
|
|
138
|
+
opacity: 1; }
|
|
139
|
+
.mfp-close:active {
|
|
140
|
+
top: 1px; }
|
|
141
|
+
|
|
142
|
+
.mfp-close-btn-in .mfp-close {
|
|
143
|
+
color: #333333; }
|
|
144
|
+
|
|
145
|
+
.mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
|
|
146
|
+
color: white;
|
|
147
|
+
right: -6px;
|
|
148
|
+
text-align: right;
|
|
149
|
+
padding-right: 6px;
|
|
150
|
+
width: 100%; }
|
|
151
|
+
|
|
152
|
+
.mfp-counter {
|
|
153
|
+
position: absolute;
|
|
154
|
+
top: 0;
|
|
155
|
+
right: 0;
|
|
156
|
+
color: #cccccc;
|
|
157
|
+
font-size: 12px;
|
|
158
|
+
line-height: 18px; }
|
|
159
|
+
|
|
160
|
+
.mfp-arrow {
|
|
161
|
+
position: absolute;
|
|
162
|
+
opacity: 0.65;
|
|
163
|
+
margin: 0;
|
|
164
|
+
top: 50%;
|
|
165
|
+
margin-top: -55px;
|
|
166
|
+
padding: 0;
|
|
167
|
+
width: 90px;
|
|
168
|
+
height: 110px;
|
|
169
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
|
|
170
|
+
.mfp-arrow:active {
|
|
171
|
+
margin-top: -54px; }
|
|
172
|
+
.mfp-arrow:hover, .mfp-arrow:focus {
|
|
173
|
+
opacity: 1; }
|
|
174
|
+
.mfp-arrow:before, .mfp-arrow:after, .mfp-arrow .mfp-b, .mfp-arrow .mfp-a {
|
|
175
|
+
content: '';
|
|
176
|
+
display: block;
|
|
177
|
+
width: 0;
|
|
178
|
+
height: 0;
|
|
179
|
+
position: absolute;
|
|
180
|
+
left: 0;
|
|
181
|
+
top: 0;
|
|
182
|
+
margin-top: 35px;
|
|
183
|
+
margin-left: 35px;
|
|
184
|
+
border: medium inset transparent; }
|
|
185
|
+
.mfp-arrow:after, .mfp-arrow .mfp-a {
|
|
186
|
+
border-top-width: 13px;
|
|
187
|
+
border-bottom-width: 13px;
|
|
188
|
+
top: 8px; }
|
|
189
|
+
.mfp-arrow:before, .mfp-arrow .mfp-b {
|
|
190
|
+
border-top-width: 21px;
|
|
191
|
+
border-bottom-width: 21px; }
|
|
192
|
+
|
|
193
|
+
.mfp-arrow-left {
|
|
194
|
+
left: 0; }
|
|
195
|
+
.mfp-arrow-left:after, .mfp-arrow-left .mfp-a {
|
|
196
|
+
border-right: 17px solid white;
|
|
197
|
+
margin-left: 31px; }
|
|
198
|
+
.mfp-arrow-left:before, .mfp-arrow-left .mfp-b {
|
|
199
|
+
margin-left: 25px;
|
|
200
|
+
border-right: 27px solid #3f3f3f; }
|
|
201
|
+
|
|
202
|
+
.mfp-arrow-right {
|
|
203
|
+
right: 0; }
|
|
204
|
+
.mfp-arrow-right:after, .mfp-arrow-right .mfp-a {
|
|
205
|
+
border-left: 17px solid white;
|
|
206
|
+
margin-left: 39px; }
|
|
207
|
+
.mfp-arrow-right:before, .mfp-arrow-right .mfp-b {
|
|
208
|
+
border-left: 27px solid #3f3f3f; }
|
|
209
|
+
|
|
210
|
+
.mfp-iframe-holder {
|
|
211
|
+
padding-top: 40px;
|
|
212
|
+
padding-bottom: 40px; }
|
|
213
|
+
.mfp-iframe-holder .mfp-content {
|
|
214
|
+
line-height: 0;
|
|
215
|
+
width: 100%;
|
|
216
|
+
max-width: 900px; }
|
|
217
|
+
.mfp-iframe-holder .mfp-close {
|
|
218
|
+
top: -40px; }
|
|
219
|
+
|
|
220
|
+
.mfp-iframe-scaler {
|
|
221
|
+
width: 100%;
|
|
222
|
+
height: 0;
|
|
223
|
+
overflow: hidden;
|
|
224
|
+
padding-top: 56.25%; }
|
|
225
|
+
.mfp-iframe-scaler iframe {
|
|
226
|
+
position: absolute;
|
|
227
|
+
display: block;
|
|
228
|
+
top: 0;
|
|
229
|
+
left: 0;
|
|
230
|
+
width: 100%;
|
|
231
|
+
height: 100%;
|
|
232
|
+
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
|
|
233
|
+
background: black; }
|
|
234
|
+
|
|
235
|
+
/* Main image in popup */
|
|
236
|
+
img.mfp-img {
|
|
237
|
+
width: auto;
|
|
238
|
+
max-width: 100%;
|
|
239
|
+
height: auto;
|
|
240
|
+
display: block;
|
|
241
|
+
line-height: 0;
|
|
242
|
+
-webkit-box-sizing: border-box;
|
|
243
|
+
-moz-box-sizing: border-box;
|
|
244
|
+
box-sizing: border-box;
|
|
245
|
+
padding: 40px 0 40px;
|
|
246
|
+
margin: 0 auto; }
|
|
247
|
+
|
|
248
|
+
/* The shadow behind the image */
|
|
249
|
+
.mfp-figure {
|
|
250
|
+
line-height: 0; }
|
|
251
|
+
.mfp-figure:after {
|
|
252
|
+
content: '';
|
|
253
|
+
position: absolute;
|
|
254
|
+
left: 0;
|
|
255
|
+
top: 40px;
|
|
256
|
+
bottom: 40px;
|
|
257
|
+
display: block;
|
|
258
|
+
right: 0;
|
|
259
|
+
width: auto;
|
|
260
|
+
height: auto;
|
|
261
|
+
z-index: -1;
|
|
262
|
+
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
|
|
263
|
+
background: #444444; }
|
|
264
|
+
.mfp-figure small {
|
|
265
|
+
color: #bdbdbd;
|
|
266
|
+
display: block;
|
|
267
|
+
font-size: 12px;
|
|
268
|
+
line-height: 14px; }
|
|
269
|
+
.mfp-figure figure {
|
|
270
|
+
margin: 0; }
|
|
271
|
+
|
|
272
|
+
.mfp-bottom-bar {
|
|
273
|
+
margin-top: -36px;
|
|
274
|
+
position: absolute;
|
|
275
|
+
top: 100%;
|
|
276
|
+
left: 0;
|
|
277
|
+
width: 100%;
|
|
278
|
+
cursor: auto; }
|
|
279
|
+
|
|
280
|
+
.mfp-title {
|
|
281
|
+
text-align: left;
|
|
282
|
+
line-height: 18px;
|
|
283
|
+
color: #f3f3f3;
|
|
284
|
+
word-wrap: break-word;
|
|
285
|
+
padding-right: 36px; }
|
|
286
|
+
|
|
287
|
+
.mfp-image-holder .mfp-content {
|
|
288
|
+
max-width: 100%; }
|
|
289
|
+
|
|
290
|
+
.mfp-gallery .mfp-image-holder .mfp-figure {
|
|
291
|
+
cursor: pointer; }
|
|
292
|
+
|
|
293
|
+
@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
|
|
294
|
+
/**
|
|
295
|
+
* Remove all paddings around the image on small screen
|
|
296
|
+
*/
|
|
297
|
+
.mfp-img-mobile .mfp-image-holder {
|
|
298
|
+
padding-left: 0;
|
|
299
|
+
padding-right: 0; }
|
|
300
|
+
.mfp-img-mobile img.mfp-img {
|
|
301
|
+
padding: 0; }
|
|
302
|
+
.mfp-img-mobile .mfp-figure {
|
|
303
|
+
/* The shadow behind the image */ }
|
|
304
|
+
.mfp-img-mobile .mfp-figure:after {
|
|
305
|
+
top: 0;
|
|
306
|
+
bottom: 0; }
|
|
307
|
+
.mfp-img-mobile .mfp-figure small {
|
|
308
|
+
display: inline;
|
|
309
|
+
margin-left: 5px; }
|
|
310
|
+
.mfp-img-mobile .mfp-bottom-bar {
|
|
311
|
+
background: rgba(0, 0, 0, 0.6);
|
|
312
|
+
bottom: 0;
|
|
313
|
+
margin: 0;
|
|
314
|
+
top: auto;
|
|
315
|
+
padding: 3px 5px;
|
|
316
|
+
position: fixed;
|
|
317
|
+
-webkit-box-sizing: border-box;
|
|
318
|
+
-moz-box-sizing: border-box;
|
|
319
|
+
box-sizing: border-box; }
|
|
320
|
+
.mfp-img-mobile .mfp-bottom-bar:empty {
|
|
321
|
+
padding: 0; }
|
|
322
|
+
.mfp-img-mobile .mfp-counter {
|
|
323
|
+
right: 5px;
|
|
324
|
+
top: 3px; }
|
|
325
|
+
.mfp-img-mobile .mfp-close {
|
|
326
|
+
top: 0;
|
|
327
|
+
right: 0;
|
|
328
|
+
width: 35px;
|
|
329
|
+
height: 35px;
|
|
330
|
+
line-height: 35px;
|
|
331
|
+
background: rgba(0, 0, 0, 0.6);
|
|
332
|
+
position: fixed;
|
|
333
|
+
text-align: center;
|
|
334
|
+
padding: 0; } }
|
|
335
|
+
|
|
336
|
+
@media all and (max-width: 900px) {
|
|
337
|
+
.mfp-arrow {
|
|
338
|
+
-webkit-transform: scale(0.75);
|
|
339
|
+
transform: scale(0.75); }
|
|
340
|
+
.mfp-arrow-left {
|
|
341
|
+
-webkit-transform-origin: 0;
|
|
342
|
+
transform-origin: 0; }
|
|
343
|
+
.mfp-arrow-right {
|
|
344
|
+
-webkit-transform-origin: 100%;
|
|
345
|
+
transform-origin: 100%; }
|
|
346
|
+
.mfp-container {
|
|
347
|
+
padding-left: 6px;
|
|
348
|
+
padding-right: 6px; } }
|
|
349
|
+
|
|
350
|
+
.mfp-ie7 .mfp-img {
|
|
351
|
+
padding: 0; }
|
|
352
|
+
.mfp-ie7 .mfp-bottom-bar {
|
|
353
|
+
width: 600px;
|
|
354
|
+
left: 50%;
|
|
355
|
+
margin-left: -300px;
|
|
356
|
+
margin-top: 5px;
|
|
357
|
+
padding-bottom: 5px; }
|
|
358
|
+
.mfp-ie7 .mfp-container {
|
|
359
|
+
padding: 0; }
|
|
360
|
+
.mfp-ie7 .mfp-content {
|
|
361
|
+
padding-top: 44px; }
|
|
362
|
+
.mfp-ie7 .mfp-close {
|
|
363
|
+
top: 0;
|
|
364
|
+
right: 0;
|
|
365
|
+
padding-top: 0; }
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* HTML5 Boilerplate
|
|
3
|
+
*
|
|
4
|
+
* What follows is the result of much research on cross-browser styling.
|
|
5
|
+
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
|
|
6
|
+
* Kroc Camen, and the H5BP dev community and team.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/* ==========================================================================
|
|
10
|
+
Base styles: opinionated defaults
|
|
11
|
+
========================================================================== */
|
|
12
|
+
|
|
13
|
+
html,
|
|
14
|
+
button,
|
|
15
|
+
input,
|
|
16
|
+
select,
|
|
17
|
+
textarea {
|
|
18
|
+
color: #222;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
body {
|
|
22
|
+
font-size: 1em;
|
|
23
|
+
line-height: 1.4;
|
|
24
|
+
}
|
|
25
|
+
a[href^=tel]{ color:#00AEEF; text-decoration:none;}
|
|
26
|
+
|
|
27
|
+
/*
|
|
28
|
+
* Remove text-shadow in selection highlight: h5bp.com/i
|
|
29
|
+
* These selection rule sets have to be separate.
|
|
30
|
+
* Customize the background color to match your design.
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
::-moz-selection {
|
|
34
|
+
background: #b3d4fc;
|
|
35
|
+
text-shadow: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
::selection {
|
|
39
|
+
background: #b3d4fc;
|
|
40
|
+
text-shadow: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/*
|
|
44
|
+
* A better looking default horizontal rule
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
hr {
|
|
48
|
+
display: block;
|
|
49
|
+
height: 1px;
|
|
50
|
+
border: 0;
|
|
51
|
+
border-top: 1px dotted #ccc;
|
|
52
|
+
margin: 1em 0;
|
|
53
|
+
padding: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/*
|
|
57
|
+
* Remove the gap between images and the bottom of their containers: h5bp.com/i/440
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
img {
|
|
61
|
+
vertical-align: middle;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/*
|
|
65
|
+
* Remove default fieldset styles.
|
|
66
|
+
*/
|
|
67
|
+
|
|
68
|
+
fieldset {
|
|
69
|
+
border: 0;
|
|
70
|
+
margin: 0;
|
|
71
|
+
padding: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/*
|
|
75
|
+
* Allow only vertical resizing of textareas.
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
textarea {
|
|
79
|
+
resize: vertical;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* ==========================================================================
|
|
83
|
+
Chrome Frame prompt
|
|
84
|
+
========================================================================== */
|
|
85
|
+
|
|
86
|
+
.chromeframe {
|
|
87
|
+
margin: 0.2em 0;
|
|
88
|
+
background: #ccc;
|
|
89
|
+
color: #000;
|
|
90
|
+
padding: 0.2em 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* ==========================================================================
|
|
94
|
+
Author's custom styles
|
|
95
|
+
========================================================================== */
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
/* ==========================================================================
|
|
114
|
+
Helper classes
|
|
115
|
+
========================================================================== */
|
|
116
|
+
|
|
117
|
+
/*
|
|
118
|
+
* Image replacement
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
.ir {
|
|
122
|
+
background-color: transparent;
|
|
123
|
+
border: 0;
|
|
124
|
+
overflow: hidden;
|
|
125
|
+
/* IE 6/7 fallback */
|
|
126
|
+
*text-indent: -9999px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.ir:before {
|
|
130
|
+
content: "";
|
|
131
|
+
display: block;
|
|
132
|
+
width: 0;
|
|
133
|
+
height: 150%;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/*
|
|
137
|
+
* Hide from both screenreaders and browsers: h5bp.com/u
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
.hidden {
|
|
141
|
+
display: none !important;
|
|
142
|
+
visibility: hidden;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/*
|
|
146
|
+
* Hide only visually, but have it available for screenreaders: h5bp.com/v
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
.visuallyhidden {
|
|
150
|
+
border: 0;
|
|
151
|
+
clip: rect(0 0 0 0);
|
|
152
|
+
height: 1px;
|
|
153
|
+
margin: -1px;
|
|
154
|
+
overflow: hidden;
|
|
155
|
+
padding: 0;
|
|
156
|
+
position: absolute;
|
|
157
|
+
width: 1px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/*
|
|
161
|
+
* Extends the .visuallyhidden class to allow the element to be focusable
|
|
162
|
+
* when navigated to via the keyboard: h5bp.com/p
|
|
163
|
+
*/
|
|
164
|
+
|
|
165
|
+
.visuallyhidden.focusable:active,
|
|
166
|
+
.visuallyhidden.focusable:focus {
|
|
167
|
+
clip: auto;
|
|
168
|
+
height: auto;
|
|
169
|
+
margin: 0;
|
|
170
|
+
overflow: visible;
|
|
171
|
+
position: static;
|
|
172
|
+
width: auto;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/*
|
|
176
|
+
* Hide visually and from screenreaders, but maintain layout
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
.invisible {
|
|
180
|
+
visibility: hidden;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/*
|
|
184
|
+
* Clearfix: contain floats
|
|
185
|
+
*
|
|
186
|
+
* For modern browsers
|
|
187
|
+
* 1. The space content is one way to avoid an Opera bug when the
|
|
188
|
+
* `contenteditable` attribute is included anywhere else in the document.
|
|
189
|
+
* Otherwise it causes space to appear at the top and bottom of elements
|
|
190
|
+
* that receive the `clearfix` class.
|
|
191
|
+
* 2. The use of `table` rather than `block` is only necessary if using
|
|
192
|
+
* `:before` to contain the top-margins of child elements.
|
|
193
|
+
*/
|
|
194
|
+
|
|
195
|
+
.clearfix:before,
|
|
196
|
+
.clearfix:after {
|
|
197
|
+
content: " "; /* 1 */
|
|
198
|
+
display: table; /* 2 */
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.clearfix:after {
|
|
202
|
+
clear: both;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/*
|
|
206
|
+
* For IE 6/7 only
|
|
207
|
+
* Include this rule to trigger hasLayout and contain floats.
|
|
208
|
+
*/
|
|
209
|
+
|
|
210
|
+
.clearfix {
|
|
211
|
+
*zoom: 1;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* ==========================================================================
|
|
215
|
+
EXAMPLE Media Queries for Responsive Design.
|
|
216
|
+
These examples override the primary ('mobile first') styles.
|
|
217
|
+
Modify as content requires.
|
|
218
|
+
========================================================================== */
|
|
219
|
+
|
|
220
|
+
@media only screen and (min-width: 35em) {
|
|
221
|
+
/* Style adjustments for viewports that meet the condition */
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
@media print,
|
|
225
|
+
(-o-min-device-pixel-ratio: 5/4),
|
|
226
|
+
(-webkit-min-device-pixel-ratio: 1.25),
|
|
227
|
+
(min-resolution: 120dpi) {
|
|
228
|
+
/* Style adjustments for high resolution devices */
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* ==========================================================================
|
|
232
|
+
Print styles.
|
|
233
|
+
Inlined to avoid required HTTP connection: h5bp.com/r
|
|
234
|
+
========================================================================== */
|
|
235
|
+
|
|
236
|
+
@media print {
|
|
237
|
+
* {
|
|
238
|
+
background: transparent !important;
|
|
239
|
+
color: #000 !important; /* Black prints faster: h5bp.com/s */
|
|
240
|
+
box-shadow: none !important;
|
|
241
|
+
text-shadow: none !important;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
a,
|
|
245
|
+
a:visited {
|
|
246
|
+
text-decoration: none !important;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
a[href]:after {
|
|
250
|
+
content: " (" attr(href) ")";
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
abbr[title]:after {
|
|
254
|
+
content: " (" attr(title) ")";
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/*
|
|
258
|
+
* Don't show links for images, or javascript/internal links
|
|
259
|
+
*/
|
|
260
|
+
|
|
261
|
+
.ir a:after,
|
|
262
|
+
a[href^="javascript:"]:after,
|
|
263
|
+
a[href^="#"]:after {
|
|
264
|
+
content: "";
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
pre,
|
|
268
|
+
blockquote {
|
|
269
|
+
border: 1px solid #999;
|
|
270
|
+
page-break-inside: avoid;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
thead {
|
|
274
|
+
display: table-header-group; /* h5bp.com/t */
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
tr,
|
|
278
|
+
img {
|
|
279
|
+
page-break-inside: avoid;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
img {
|
|
283
|
+
max-width: 100% !important;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
@page {
|
|
287
|
+
margin: 0.5cm;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
p,
|
|
291
|
+
h2,
|
|
292
|
+
h3 {
|
|
293
|
+
orphans: 3;
|
|
294
|
+
widows: 3;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
h2,
|
|
298
|
+
h3 {
|
|
299
|
+
page-break-after: avoid;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
$(window).load(function() {
|
|
4
|
+
$(".loader").delay(500).fadeOut();
|
|
5
|
+
$("#mask").delay(1000).fadeOut("slow");
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
$(document).ready(function(){
|
|
9
|
+
|
|
10
|
+
$(".header").sticky({ topSpacing: 0 });
|
|
11
|
+
|
|
12
|
+
/* Menu Anchors */
|
|
13
|
+
$('a[href*=#]').click(function() {
|
|
14
|
+
if (location.pathname.replace(/^\//,'') === this.pathname.replace(/^\//,'') && location.hostname === this.hostname) {
|
|
15
|
+
var $target = $(this.hash);
|
|
16
|
+
$target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
|
|
17
|
+
if ($target.length) {
|
|
18
|
+
var targetOffset = $target.offset().top;
|
|
19
|
+
$('html,body').animate({scrollTop: targetOffset-75}, 1000);
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
});
|