Skip to content

Commit ed969f8

Browse files
Fixed untargetable sponsor
1 parent ddf201b commit ed969f8

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

_layouts/post.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,11 @@ <h1 class="post__content-title">Event's sponsors</h1>
9090
<div class="row">
9191
<div class="post__logo-col col-sm-3 col-12">
9292
<h3 class="post__sponsor-name">{{ sponsor_obj.sponsor_name }}</h3>
93-
<div class="post__sponsor-container">
94-
<a class="post__sponsor-link" href="{{ sponsor_obj.sponsor_link }}">
93+
<a class="post__sponsor-container post__sponsor-link" href="{{ sponsor_obj.sponsor_link }}">
9594
<img class="post__sponsor-img" src="{{ site.baseurl }}/{{ sponsor_obj.sponsor_logo }}">
9695
</a>
97-
</div>
9896
</div >
99-
<div class="post__sponsor-info-col col-12 col-sm-auto ">
97+
<div class="post__sponsor-info-col col-12 col-sm-auto col-xl-7 ">
10098
<p class="post__sponsor-content">{{ sponsor_obj.content}}</p>
10199
</div>
102100
</div>

_sass/post.scss

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,37 +138,42 @@
138138
}
139139

140140
.post__sponsor-name {
141-
margin-top: 0.25em;
141+
margin-top: 0.5em;
142142
line-height: 1em;
143143
text-align: center;
144144
font-family: 'Encode Sans Expanded', sans-serif;
145145
font-size: 1.25em;
146146
color: #072948;
147147
}
148148

149-
.post__sponsor-container {
149+
.post__sponsor-link {
150+
display: inline-block;
151+
width: 100%;
150152
background: #041729;
151153
border-radius: 5px;
152154
border: #7fa0c2 1px solid;
153155
text-align: center;
154-
}
155-
156-
.post__sponsor-link {
157-
text-align: center;
158156
line-height: 102px;
159157
}
160158

161159
.post__sponsor-img {
162160
vertical-align: middle;
163161
padding: 10px;
162+
max-width: 220px;
164163
}
165164

166-
@media (max-width: 991px) {
165+
@media (min-width: 577px) {
167166
.post__sponsor-img {
168167
max-width: 120px;
169168
}
170169
}
171170

171+
@media (min-width: 992px) {
172+
.post__sponsor-img {
173+
max-width: 100%;
174+
}
175+
}
176+
172177
.post__sponsor-content {
173178
margin-top: 1.6em;
174179
}

0 commit comments

Comments
 (0)