1 |
/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */ |
2 |
|
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 |
html { |
22 |
font-size: 1em; |
23 |
line-height: 1.4; |
24 |
} |
25 |
body { |
26 |
font-size: 14px; |
27 |
overflow-y:scroll; |
28 |
} |
29 |
|
30 |
/* |
31 |
* Remove text-shadow in selection highlight: h5bp.com/i |
32 |
* These selection rule sets have to be separate. |
33 |
* Customize the background color to match your design. |
34 |
*/ |
35 |
|
36 |
::-moz-selection { |
37 |
background: #b3d4fc; |
38 |
text-shadow: none; |
39 |
} |
40 |
|
41 |
::selection { |
42 |
background: #b3d4fc; |
43 |
text-shadow: none; |
44 |
} |
45 |
|
46 |
/* |
47 |
* A better looking default horizontal rule |
48 |
*/ |
49 |
|
50 |
hr { |
51 |
display: block; |
52 |
height: 1px; |
53 |
border: 0; |
54 |
border-top: 1px solid #ccc; |
55 |
margin: 1em 0; |
56 |
padding: 0; |
57 |
} |
58 |
|
59 |
/* |
60 |
* Remove the gap between images, videos, audio and canvas and the bottom of |
61 |
* their containers: h5bp.com/i/440 |
62 |
*/ |
63 |
|
64 |
audio, |
65 |
canvas, |
66 |
img, |
67 |
video { |
68 |
vertical-align: middle; |
69 |
} |
70 |
|
71 |
/* |
72 |
* Remove default fieldset styles. |
73 |
*/ |
74 |
|
75 |
fieldset { |
76 |
border: 0; |
77 |
margin: 0; |
78 |
padding: 0; |
79 |
} |
80 |
|
81 |
/* |
82 |
* Allow only vertical resizing of textareas. |
83 |
*/ |
84 |
|
85 |
textarea { |
86 |
resize: vertical; |
87 |
} |
88 |
|
89 |
/* ========================================================================== |
90 |
Browse Happy prompt |
91 |
========================================================================== */ |
92 |
|
93 |
.browsehappy { |
94 |
margin: 0.2em 0; |
95 |
background: #ccc; |
96 |
color: #000; |
97 |
padding: 0.2em 0; |
98 |
} |
99 |
|
100 |
/* ========================================================================== |
101 |
Author's custom styles |
102 |
========================================================================== */ |
103 |
|
104 |
.news-item-wrapper { |
105 |
border: 2px solid #DDDDDD; |
106 |
box-shadow: 0 8px 6px -6px #AAAAAA; |
107 |
float: left; |
108 |
height: 120px; |
109 |
margin: 5px; |
110 |
padding: 5px; |
111 |
width: 275px; |
112 |
} |
113 |
.news-title { |
114 |
font-style: bold; |
115 |
margin: 10px; |
116 |
} |
117 |
.news-link { |
118 |
margin: 10px; |
119 |
font-size: 0.9em; |
120 |
} |
121 |
|
122 |
#feeds-loader { |
123 |
position: absolute; |
124 |
left: 45%; |
125 |
top: 45%; |
126 |
} |
127 |
|
128 |
.carousel { |
129 |
background-color: #505050; |
130 |
border: 1px solid #999; |
131 |
box-shadow: 1px 1px 3px #999; |
132 |
min-height: 405px; |
133 |
} |
134 |
|
135 |
/* Navigation and Layout related CSS */ |
136 |
.navbar-nav { |
137 |
position: relative; |
138 |
top: -35px; |
139 |
} |
140 |
.nav .nav-item { |
141 |
max-width: 160px; |
142 |
min-width: 90px; |
143 |
} |
144 |
.nav .nav-item-icon { |
145 |
height: 44px; |
146 |
width: 38px; |
147 |
background: url('/static/img/nav-item.svg') no-repeat; |
148 |
} |
149 |
.nav .nav-item-icon.active { |
150 |
height: 44px; |
151 |
width: 45px; |
152 |
position: relative; |
153 |
top: -7px; |
154 |
background: url('/static/img/nav-item-active.svg') no-repeat; |
155 |
} |
156 |
|
157 |
.nav>li>a:hover { |
158 |
text-decoration: underline; |
159 |
background: none; |
160 |
} |
161 |
.nav-icon { |
162 |
width: 100px; |
163 |
height: 130px; |
164 |
position: relative; |
165 |
top: -20px; |
166 |
} |
167 |
#header-banner { |
168 |
font-size: 30px; |
169 |
border-bottom: 1px solid black; |
170 |
} |
171 |
|
172 |
/* Global styles for site wide */ |
173 |
a { |
174 |
color: #000; |
175 |
} |
176 |
a:hover, a:active { |
177 |
color: #000; |
178 |
text-decoration: underline; |
179 |
} |
180 |
body { |
181 |
font-family: ""; |
182 |
background: url('/static/img/background.png') repeat; |
183 |
} |
184 |
.container { |
185 |
/*margin: 0;*/ |
186 |
} |
187 |
|
188 |
/* side menu css */ |
189 |
|
190 |
#page-content-wrapper { |
191 |
visibility: hidden; |
192 |
} |
193 |
|
194 |
@media (max-width:767px) { |
195 |
.wrapper { |
196 |
padding-left: 70px; |
197 |
} |
198 |
.sidebar-wrapper { |
199 |
left: 70px; |
200 |
} |
201 |
|
202 |
.wrapper.active { |
203 |
padding-left: 150px; |
204 |
} |
205 |
|
206 |
.wrapper.active .sidebar-wrapper { |
207 |
left: 150px; |
208 |
width: 150px; |
209 |
} |
210 |
|
211 |
} |
212 |
|
213 |
.link_disabled { |
214 |
pointer-events: none; |
215 |
cursor: none; |
216 |
color: gray; |
217 |
} |
218 |
|
219 |
@media (max-width:450px) { |
220 |
.thumbnail { |
221 |
height: 350px; |
222 |
} |
223 |
|
224 |
.caption_heading { |
225 |
height: 100px; |
226 |
} |
227 |
|
228 |
} |
229 |
/* -------------end ----------- */ |
230 |
|
231 |
.sidebar-wrapper { |
232 |
/*transform*/ |
233 |
|
234 |
-webkit-transform: translateZ(0); |
235 |
-moz-transform: translateZ(0); |
236 |
-o-transform: translateZ(0); |
237 |
-ms-transform: translateZ(0); |
238 |
transform: translateZ(0); |
239 |
margin-left: -150px; |
240 |
left: 20px; |
241 |
margin-top:0px; |
242 |
width: 165px; |
243 |
// background: #222; |
244 |
position: fixed; |
245 |
height: 100%; |
246 |
-ms-overflow-y: auto; |
247 |
overflow-y: auto; |
248 |
|
249 |
z-index: 10000; |
250 |
-webkit-transition: all .4s ease 0s; |
251 |
-moz-transition: all .4s ease 0s; |
252 |
-o-transition: all .4s ease 0s; |
253 |
-ms-transition: all .4s ease 0s; |
254 |
transition: all .4s ease 0s; |
255 |
} |
256 |
|
257 |
.nav-collapse.collapse { |
258 |
height: auto !important; |
259 |
overflow: visible !important; |
260 |
} |
261 |
|
262 |
.page-content { |
263 |
height: auto; |
264 |
} |
265 |
|
266 |
#page-content-wrapper { |
267 |
padding-left: 0; |
268 |
margin-left: 0; |
269 |
width: 100%; |
270 |
height: auto; |
271 |
} |
272 |
|
273 |
.sidebar-nav { |
274 |
display: block; |
275 |
float: left; |
276 |
width: 150px; |
277 |
list-style: none; |
278 |
margin: 0; |
279 |
padding: 0; |
280 |
} |
281 |
|
282 |
#sidebar_menu { |
283 |
display: block; |
284 |
float: left; |
285 |
top: 0; |
286 |
width: 150px; |
287 |
list-style: none; |
288 |
margin: 0; |
289 |
padding: 0; |
290 |
} |
291 |
|
292 |
#sidebar_menu li,.sidebar-nav li { |
293 |
line-height: 20px; |
294 |
text-indent: 5px; |
295 |
} |
296 |
|
297 |
#sidebar_menu li a,.sidebar-nav li a { |
298 |
// color: #999; |
299 |
display: block; |
300 |
float: left; |
301 |
text-decoration: none; |
302 |
width: 150px; |
303 |
// background: #00FFFF; |
304 |
// border-top: 1px solid #00FFFF; |
305 |
// border-bottom: 1px solid #00FFFF; /*transition*/ |
306 |
|
307 |
-webkit-transition: background .5s; |
308 |
-moz-transition: background .5s; |
309 |
-o-transition: background .5s; |
310 |
-ms-transition: background .5s; |
311 |
transition: background .5s; |
312 |
} |
313 |
|
314 |
#sidebar_menu li a:hover,.sidebar-nav li a:hover { |
315 |
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; |
316 |
filter: alpha(opacity=80); |
317 |
opacity: .8; |
318 |
text-decoration: none; |
319 |
} |
320 |
|
321 |
#sidebar_menu li a:active,#sidebar_menu li a:focus,.sidebar-nav li a:active,.sidebar-nav li a:focus { |
322 |
text-decoration: none; |
323 |
} |
324 |
|
325 |
#sidebar_menu>.sidebar-brand { |
326 |
height: 40px; |
327 |
line-height: 30px; |
328 |
font-size: 15px; |
329 |
} |
330 |
|
331 |
|
332 |
.active_nav a .fa { |
333 |
color: #3cc; |
334 |
|
335 |
} |
336 |
|
337 |
.sidebar_name { |
338 |
padding-top: 25px; |
339 |
color: #fff; |
340 |
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"; |
341 |
filter: alpha(opacity=70); |
342 |
opacity: .7; |
343 |
} |
344 |
|
345 |
.side_name { |
346 |
visibility: hidden; |
347 |
} |
348 |
|
349 |
.side_name p { |
350 |
font-size: 1.1em; |
351 |
} |
352 |
|
353 |
.side_name.active { |
354 |
visibility: visible; |
355 |
} |
356 |
|
357 |
#side_download { |
358 |
margin-top: 40px; |
359 |
} |
360 |
|
361 |
.content-header { |
362 |
height: 65px; |
363 |
line-height: 65px; |
364 |
} |
365 |
|
366 |
.content-header h1 { |
367 |
margin: 0; |
368 |
margin-left: 20px; |
369 |
line-height: 65px; |
370 |
display: inline-block; |
371 |
} |
372 |
|
373 |
.wrapper.active { |
374 |
padding-left: 0px; |
375 |
// border-right:2px solid #000; |
376 |
// margin-left:90px; |
377 |
} |
378 |
|
379 |
.wrapper.active .sidebar-wrapper { |
380 |
left: 200px; |
381 |
border-right:1px solid #00FFFF; |
382 |
} |
383 |
|
384 |
.row,.row-pad { |
385 |
margin-left: 0; |
386 |
margin-right: 0; |
387 |
} |
388 |
|
389 |
#message { |
390 |
padding-left: 15px; |
391 |
padding-right: -15px; |
392 |
} |
393 |
|
394 |
|
395 |
.menu-toggle { |
396 |
font-size:18px; |
397 |
color:#000; |
398 |
} |
399 |
.menu-icon { |
400 |
margin-right: 10px; |
401 |
} |
402 |
|
403 |
.personal-info,.server-stats { |
404 |
list-style: none; |
405 |
padding-left: 0; |
406 |
} |
407 |
|
408 |
.progress { |
409 |
|
410 |
height: 5px; |
411 |
} |
412 |
|
413 |
h5 { |
414 |
color: #000; |
415 |
} |
416 |
|
417 |
.radio, .checkbox { |
418 |
color:#000; |
419 |
margin-left: 10px; |
420 |
} |
421 |
.radio label, .checkbox label { |
422 |
font-size:14px; |
423 |
} |
424 |
|
425 |
/* side menu css ends here */ |
426 |
|
427 |
.pageview p { |
428 |
text-align:justify; |
429 |
} |
430 |
|
431 |
|
432 |
/* ========================================================================== |
433 |
Helper classes |
434 |
========================================================================== */ |
435 |
|
436 |
/* |
437 |
* Image replacement |
438 |
*/ |
439 |
|
440 |
.ir { |
441 |
background-color: transparent; |
442 |
border: 0; |
443 |
overflow: hidden; |
444 |
/* IE 6/7 fallback */ |
445 |
*text-indent: -9999px; |
446 |
} |
447 |
|
448 |
.ir:before { |
449 |
content: ""; |
450 |
display: block; |
451 |
width: 0; |
452 |
height: 150%; |
453 |
} |
454 |
|
455 |
/* |
456 |
* Hide from both screenreaders and browsers: h5bp.com/u |
457 |
*/ |
458 |
|
459 |
.hidden { |
460 |
display: none !important; |
461 |
visibility: hidden; |
462 |
} |
463 |
|
464 |
/* |
465 |
* Hide only visually, but have it available for screenreaders: h5bp.com/v |
466 |
*/ |
467 |
|
468 |
.visuallyhidden { |
469 |
border: 0; |
470 |
clip: rect(0 0 0 0); |
471 |
height: 1px; |
472 |
margin: -1px; |
473 |
overflow: hidden; |
474 |
padding: 0; |
475 |
position: absolute; |
476 |
width: 1px; |
477 |
} |
478 |
|
479 |
/* |
480 |
* Extends the .visuallyhidden class to allow the element to be focusable |
481 |
* when navigated to via the keyboard: h5bp.com/p |
482 |
*/ |
483 |
|
484 |
.visuallyhidden.focusable:active, |
485 |
.visuallyhidden.focusable:focus { |
486 |
clip: auto; |
487 |
height: auto; |
488 |
margin: 0; |
489 |
overflow: visible; |
490 |
position: static; |
491 |
width: auto; |
492 |
} |
493 |
|
494 |
/* |
495 |
* Hide visually and from screenreaders, but maintain layout |
496 |
*/ |
497 |
|
498 |
.invisible { |
499 |
visibility: hidden; |
500 |
} |
501 |
|
502 |
/* |
503 |
* Clearfix: contain floats |
504 |
* |
505 |
* For modern browsers |
506 |
* 1. The space content is one way to avoid an Opera bug when the |
507 |
* `contenteditable` attribute is included anywhere else in the document. |
508 |
* Otherwise it causes space to appear at the top and bottom of elements |
509 |
* that receive the `clearfix` class. |
510 |
* 2. The use of `table` rather than `block` is only necessary if using |
511 |
* `:before` to contain the top-margins of child elements. |
512 |
*/ |
513 |
|
514 |
.clearfix:before, |
515 |
.clearfix:after { |
516 |
content: " "; /* 1 */ |
517 |
display: table; /* 2 */ |
518 |
} |
519 |
|
520 |
.clearfix:after { |
521 |
clear: both; |
522 |
} |
523 |
|
524 |
/* |
525 |
* For IE 6/7 only |
526 |
* Include this rule to trigger hasLayout and contain floats. |
527 |
*/ |
528 |
|
529 |
.clearfix { |
530 |
*zoom: 1; |
531 |
} |
532 |
|
533 |
/* ========================================================================== |
534 |
EXAMPLE Media Queries for Responsive Design. |
535 |
These examples override the primary ('mobile first') styles. |
536 |
Modify as content requires. |
537 |
========================================================================== */ |
538 |
|
539 |
@media only screen and (min-width: 35em) { |
540 |
/* Style adjustments for viewports that meet the condition */ |
541 |
} |
542 |
|
543 |
@media print, |
544 |
(-o-min-device-pixel-ratio: 5/4), |
545 |
(-webkit-min-device-pixel-ratio: 1.25), |
546 |
(min-resolution: 120dpi) { |
547 |
/* Style adjustments for high resolution devices */ |
548 |
} |
549 |
|
550 |
/* ========================================================================== |
551 |
Print styles. |
552 |
Inlined to avoid required HTTP connection: h5bp.com/r |
553 |
========================================================================== */ |
554 |
|
555 |
@media print { |
556 |
* { |
557 |
background: transparent !important; |
558 |
color: #000 !important; /* Black prints faster: h5bp.com/s */ |
559 |
box-shadow: none !important; |
560 |
text-shadow: none !important; |
561 |
} |
562 |
|
563 |
a, |
564 |
a:visited { |
565 |
text-decoration: underline; |
566 |
} |
567 |
|
568 |
a[href]:after { |
569 |
content: " (" attr(href) ")"; |
570 |
} |
571 |
|
572 |
abbr[title]:after { |
573 |
content: " (" attr(title) ")"; |
574 |
} |
575 |
|
576 |
/* |
577 |
* Don't show links for images, or javascript/internal links |
578 |
*/ |
579 |
|
580 |
.ir a:after, |
581 |
a[href^="javascript:"]:after, |
582 |
a[href^="#"]:after { |
583 |
content: ""; |
584 |
} |
585 |
|
586 |
pre, |
587 |
blockquote { |
588 |
border: 1px solid #999; |
589 |
page-break-inside: avoid; |
590 |
} |
591 |
|
592 |
thead { |
593 |
display: table-header-group; /* h5bp.com/t */ |
594 |
} |
595 |
|
596 |
tr, |
597 |
img { |
598 |
page-break-inside: avoid; |
599 |
} |
600 |
|
601 |
img { |
602 |
max-width: 100% !important; |
603 |
} |
604 |
|
605 |
@page { |
606 |
margin: 0.5cm; |
607 |
} |
608 |
|
609 |
p, |
610 |
h2, |
611 |
h3 { |
612 |
orphans: 3; |
613 |
widows: 3; |
614 |
} |
615 |
|
616 |
h2, |
617 |
h3 { |
618 |
page-break-after: avoid; |
619 |
} |
620 |
} |