Skip to content

Commit 9d5be41

Browse files
author
Joseph Damiba
committed
moving github stars to their own div and adding css styles to _home.css
1 parent af8b1a5 commit 9d5be41

File tree

2 files changed

+29
-8
lines changed

2 files changed

+29
-8
lines changed

_posts/2015-07-26-index.html

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ <h2>Plotly's Open Source Graphing Libraries:</h2>
4747
<h2>Plotly Python Open Source Graphing Library</h2>
4848
<!--<p>Anyone making charts or dashboards online.</p>-->
4949
</div>
50-
<div class="category-meta">
51-
<!-- Place this tag where you want the button to render. -->
52-
<iframe src="https://ghbtns.com/github-btn.html?user=plotly&repo=plotly.py&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe> </div>
50+
</div>
51+
<div class="github-stars">
52+
<!-- Place this tag where you want the button to render. -->
53+
<iframe src="https://ghbtns.com/github-btn.html?user=plotly&repo=plotly.py&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
5354
</div>
5455
</a>
5556
</li>
@@ -63,9 +64,12 @@ <h2>Plotly Python Open Source Graphing Library</h2>
6364
<div class="category-meta">
6465
<h2>Plotly MATLAB Open Source Graphing Library</h2>
6566
<!--<p>Engineers and data scientists using Python, R, Matlab or Javascript.</p>-->
66-
<iframe src="https://ghbtns.com/github-btn.html?user=plotly&repo=MATLAB-Online&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
6767
</div>
6868
</div>
69+
<div class="github-stars">
70+
<!-- Place this tag where you want the button to render. -->
71+
<iframe src="https://ghbtns.com/github-btn.html?user=plotly&repo=MATLAB-Online&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
72+
</div>
6973
</a>
7074
</li>
7175
<li>
@@ -82,9 +86,12 @@ <h2>Plotly R Open Source Graphing Library</h2>
8286
<!--Upload Excel sheets to plotly to build best-practice charts, reports and-->
8387
<!--dashboards.-->
8488
<!--</p>-->
85-
<iframe src="https://ghbtns.com/github-btn.html?user=ropensci&repo=plotly&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
8689
</div>
8790
</div>
91+
<div class="github-stars">
92+
<!-- Place this tag where you want the button to render. -->
93+
<iframe src="https://ghbtns.com/github-btn.html?user=ropensci&repo=plotly&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
94+
</div>
8895
</a>
8996
</li>
9097
<li>
@@ -100,9 +107,12 @@ <h2>Plotly JavaScript Open Source Graphing Library</h2>
100107
<!--Upload Excel sheets to plotly to build best-practice charts, reports and-->
101108
<!--dashboards.-->
102109
<!--</p>-->
103-
<iframe src="https://ghbtns.com/github-btn.html?user=plotly&repo=plotly.js&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
104110
</div>
105111
</div>
112+
<div class="github-stars">
113+
<!-- Place this tag where you want the button to render. -->
114+
<iframe src="https://ghbtns.com/github-btn.html?user=plotly&repo=plotly.js&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
115+
</div>
106116
</a>
107117
</li>
108118
<li>
@@ -114,9 +124,12 @@ <h2>Plotly JavaScript Open Source Graphing Library</h2>
114124
alt="Plotly DASH Open Source Graphing Library"></div>
115125
<div class="category-meta">
116126
<h2>Plotly Dash Open Source Graphing Library</h2>
117-
<iframe src="https://ghbtns.com/github-btn.html?user=plotly&repo=dash&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
118127
</div>
119128
</div>
129+
<div class="github-stars">
130+
<!-- Place this tag where you want the button to render. -->
131+
<iframe src="https://ghbtns.com/github-btn.html?user=plotly&repo=dash&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
132+
</div>
120133
</a>
121134
</li>
122135
</ul>

scss/_pages/_home.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@
118118
padding: $unit*3;
119119
max-width: 100%;
120120
//margin-top:$unit*2.5;
121+
.github-stars{
122+
padding-top: 20px;
123+
display: flex;
124+
align-items: flex-start;
125+
justify-content: center;
126+
flex-wrap: wrap;
127+
max-width: 100%;
128+
}
121129
}
122130

123131
ul {
@@ -224,4 +232,4 @@
224232
}
225233
}
226234
}
227-
}
235+
}

0 commit comments

Comments
 (0)