Skip to content

Commit ddf201b

Browse files
Created bloomberg.md sponsor file.
Fixed sponsor column layout in post for multiple sponsor (should it happen, it will look ok wehn they are stacked on top of each other at the bottom of the post). Added style to make the above happen in post.scss.
1 parent c09ba22 commit ddf201b

File tree

4 files changed

+41
-4
lines changed

4 files changed

+41
-4
lines changed

_layouts/post.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,18 @@ <h1 class="post__content-title">Event's sponsors</h1>
8585

8686
{% for sponsor in page.sponsors %}
8787
{% assign sponsor_obj = site.sponsors | where:"sponsor_id", sponsor | first %}
88-
<div class="row">
88+
<div class="row flex-nowrap">
8989
<div class="post__sponsor-col col-md-12">
9090
<div class="row">
91-
<div class="post__logo-col col-sm-12 col-lg-3">
91+
<div class="post__logo-col col-sm-3 col-12">
9292
<h3 class="post__sponsor-name">{{ sponsor_obj.sponsor_name }}</h3>
9393
<div class="post__sponsor-container">
9494
<a class="post__sponsor-link" href="{{ sponsor_obj.sponsor_link }}">
9595
<img class="post__sponsor-img" src="{{ site.baseurl }}/{{ sponsor_obj.sponsor_logo }}">
9696
</a>
9797
</div>
9898
</div >
99-
<div class="col-sm-12 col-lg-9 col-xl-8">
99+
<div class="post__sponsor-info-col col-12 col-sm-auto ">
100100
<p class="post__sponsor-content">{{ sponsor_obj.content}}</p>
101101
</div>
102102
</div>

_posts/2017-10-04-Bokeh-As-A-Backend-For-Pandas.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ link: https://www.meetup.com/Python-Sprints/events/243422372/
99
image: static/images/events/pandas_bokeh_backend_harvey_nash_960x539px.jpeg
1010
sponsors:
1111
- harvey_nash
12+
- bloomberg
1213
---
1314

1415
According to this recent blog post by [Stack Overflow](https://stackoverflow.com/), Python is declared as the fastest-growing major programming language.

_sass/post.scss

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,30 @@
102102
padding-right: 10%;
103103
}
104104

105-
.post__logo-col {
105+
@media (min-width: 576px) {
106+
.post__logo-col {
107+
min-width: 160px;
108+
max-width: 160px;
109+
}
110+
}
111+
112+
@media (min-width: 992px) {
113+
.post__logo-col {
114+
min-width: 308px;
115+
max-width: 308px;
116+
}
117+
}
118+
119+
@media (min-width: 576px) {
120+
.post__sponsor-info-col {
121+
width: calc(100% - 160px);
122+
}
123+
}
124+
125+
@media (min-width: 992px) {
126+
.post__sponsor-info-col {
127+
width: calc(100% - 308px);
128+
}
106129
}
107130

108131
.post__paragraph {
@@ -140,6 +163,12 @@
140163
padding: 10px;
141164
}
142165

166+
@media (max-width: 991px) {
167+
.post__sponsor-img {
168+
max-width: 120px;
169+
}
170+
}
171+
143172
.post__sponsor-content {
144173
margin-top: 1.6em;
145174
}

_sponsors/bloomberg.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
sponsor_id: bloomberg
3+
sponsor_name: "Bloomberg"
4+
sponsor_logo: static/images/sponsors/bloomberg.png
5+
sponsor_link: https://www.bloomberg.com/careers/
6+
---
7+
Bloomberg L.P. provides financial software tools such as an analytics and equity trading platform, data services, and news to financial companies and organizations through the Bloomberg Terminal (via its Bloomberg Professional Service), its core revenue-generating product.

0 commit comments

Comments
 (0)