Skip to content

Commit

Permalink
Optimized styles for better perfomance
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniketh01 committed Jan 25, 2018
1 parent b5d44b0 commit 70ef6e5
Show file tree
Hide file tree
Showing 9 changed files with 154 additions and 938 deletions.
440 changes: 72 additions & 368 deletions Home/static/home/assets/css/magnific-popup.css

Large diffs are not rendered by default.

167 changes: 19 additions & 148 deletions Home/static/home/assets/css/owl.carousel.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 2 additions & 11 deletions Home/static/home/assets/css/piechart.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
#contribution-chart {
max-height: 400px;
max-width: 400px;
margin-left:300px;
}

#gsoc-chart {
max-height: 400px;
max-width: 400px;
margin-left: 300px;
}
#contribution-chart{max-height:400px;max-width:400px;margin-left:300px;}
#gsoc-chart{max-height:400px;max-width:400px;margin-left:300px;}
131 changes: 15 additions & 116 deletions Home/static/home/assets/css/superslides.css
Original file line number Diff line number Diff line change
@@ -1,117 +1,16 @@
#slides {
position: relative;
}

#slides .slides-container {
display: none;
}

#slides .scrollable {
*zoom: 1;
position: relative;
top: 0;
left: 0;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
height: 100%;
}

#slides .scrollable:after {
content: "";
display: table;
clear: both;
}

.slides-navigation {
margin: -35px auto 0;
position: absolute;
z-index: 3;
top: 50%;
width: 100%;
}

.slides-navigation a {
position: absolute;
background: #fff;
display: block;
height: 46px;
width: 46px;
top: 50%;
margin: -23px 10px 0;
padding: 0;
opacity: 0;
text-align: center;
line-height: 46px;
font-size: 17px;
color: #111;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
-o-transition: all 0.3s;
transition: all 0.3s;
}

.slides-navigation a:focus {
color: #111;
}

.slides-navigation a.prev {
left: -20px;
}

.slides-navigation a.next {
right: -20px;
}

#slides:hover a.prev {
opacity: 0.5;
left: 0px;
}

#slides:hover a.next {
opacity: 0.5;
right: 0px;
}

#slides{position:relative;}
#slides .slides-container{display:none;}
#slides .scrollable{*zoom:1;position:relative;top:0;left:0;overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%;}
#slides .scrollable:after{content:"";display:table;clear:both;}
.slides-navigation{margin:-35px auto 0;position:absolute;z-index:3;top:50%;width:100%;}
.slides-navigation a{position:absolute;background:#fff;display:block;height:46px;width:46px;top:50%;margin:-23px 10px 0;padding:0;opacity:0;text-align:center;line-height:46px;font-size:17px;color:#111;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transition:all 0.3s;-moz-transition:all 0.3s;-o-transition:all 0.3s;transition:all 0.3s;}
.slides-navigation a:focus{color:#111;}
.slides-navigation a.prev{left:-20px;}
.slides-navigation a.next{right:-20px;}
#slides:hover a.prev{opacity:0.5;left:0px;}
#slides:hover a.next{opacity:0.5;right:0px;}
#slides:hover a.prev:hover,
#slides:hover a.next:hover {
opacity: 1;
color: #111;
}

.slides-pagination {
position: absolute;
z-index: 3;
bottom: 10px;
text-align: center;
width: 100%;
}

.slides-pagination a {
position: relative;
background: rgba(255, 255, 255, 0.5);
display: inline-block;
overflow: hidden;
height: 4px;
width: 24px;
margin: 6px 4px;
text-indent: -200%;
z-index: 1000;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 0px;
-webkit-box-shadow: none;
-moz-box-shadow: none;
-o-box-shadow: none;
box-shadow: none;
-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
-o-transition: all 0.3s;
transition: all 0.3s;
}

.slides-pagination a.current {
background: #fff;
}
#slides:hover a.next:hover{opacity:1;color:#111;}
.slides-pagination{position:absolute;z-index:3;bottom:10px;text-align:center;width:100%;}
.slides-pagination a{position:relative;background:rgba(255, 255, 255, 0.5);display:inline-block;overflow:hidden;height:4px;width:24px;margin:6px 4px;text-indent:-200%;z-index:1000;-webkit-border-radius:0px;-moz-border-radius:0px;border-radius:0px;-webkit-box-shadow:none;-moz-box-shadow:none;-o-box-shadow:none;box-shadow:none;-webkit-transition:all 0.3s;-moz-transition:all 0.3s;-o-transition:all 0.3s;transition:all 0.3s;}
.slides-pagination a.current{background:#fff;}
61 changes: 9 additions & 52 deletions achievements/static/achievements/css/table.css
Original file line number Diff line number Diff line change
@@ -1,52 +1,9 @@
*, *:before, *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}

table {
font-family: 'Nunito', sans-serif;
color: #384047;
width: 90%;
max-width: 960px;
margin: 10px auto;
}

caption {
font-size: 1.6em;
font-weight: 400;
padding: 10px 0;
}

thead th {
font-weight: 400;
background: #8a97a0;
color: #FFF;
}

tr {
background: #f4f7f8;
border-bottom: 1px solid #FFF;
margin-bottom: 5px;
}

tr:nth-child(even) {
background: #e8eeef;
}

th, td {
text-align: left;
padding: 20px;
font-weight: 300;
}

tfoot tr {
background: none;
}

tfoot td {
padding: 10px 2px;
font-size: 0.8em;
font-style: italic;
color: #8a97a0;
}
*, *:before, *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;}
table{font-family:'Nunito', sans-serif;color:#384047;width:90%;max-width:960px;margin:10px auto;}
caption{font-size:1.6em;font-weight:400;padding:10px 0;}
thead th{font-weight:400;background:#8a97a0;color:#FFF;}
tr{background:#f4f7f8;border-bottom:1px solid #FFF;margin-bottom:5px;}
tr:nth-child(even){background:#e8eeef;}
th, td{text-align:left;padding:20px;font-weight:300;}
tfoot tr{background:none;}
tfoot td{padding:10px 2px;font-size:0.8em;font-style:italic;color:#8a97a0;}
Loading

0 comments on commit 70ef6e5

Please sign in to comment.