Merge pull request #13725 from jlmitch5/fixDocSiteAds

Fix doc site ads
This commit is contained in:
Sandra Wills 2016-01-05 07:38:20 -05:00
commit 5cd9851422
4 changed files with 16 additions and 31 deletions

View file

@ -43,4 +43,4 @@ modules: $(FORMATTER) ../hacking/templates/rst.j2
PYTHONPATH=../lib $(FORMATTER) -t rst --template-dir=../hacking/templates --module-dir=../lib/ansible/modules -o rst/ PYTHONPATH=../lib $(FORMATTER) -t rst --template-dir=../hacking/templates --module-dir=../lib/ansible/modules -o rst/
staticmin: staticmin:
cat _themes/srtd/static/css/theme.css | sed -e 's/^[ \t]*//g; s/[ \t]*$$//g; s/\([:{;,]\) /\1/g; s/ {/{/g; s/\/\*.*\*\///g; /^$$/d' | sed -e :a -e '$$!N; s/\n\(.\)/\1/; ta' > _themes/srtd/static/css/theme.min.css cat _themes/srtd/static/css/theme.css | sed -e 's/^[ ]*//g; s/[ ]*$$//g; s/\([:{;,]\) /\1/g; s/ {/{/g; s/\/\*.*\*\///g; /^$$/d' | sed -e :a -e '$$!N; s/\n\(.\)/\1/; ta' > _themes/srtd/static/css/theme.min.css

View file

@ -13,7 +13,7 @@
<hr/> <hr/>
<p> <p>
&copy; Copyright 2015 <a href="http://ansible.com">Ansible, Inc.</a>. &copy; Copyright 2016 <a href="http://ansible.com">Ansible, Inc.</a>.
{%- if last_updated %} {%- if last_updated %}
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %} {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}

View file

@ -166,7 +166,7 @@
<!-- changeable widget --> <!-- changeable widget -->
<center> <center>
<br/> <br/>
<a href="http://www.ansible.com/tower?utm_source=docs"> <a href="http://www.ansible.com/docs-left?utm_source=docs">
<img style="border-width:0px;" src="https://cdn2.hubspot.net/hubfs/330046/docs-graphics/ASB-docs-left-rail.png" /> <img style="border-width:0px;" src="https://cdn2.hubspot.net/hubfs/330046/docs-graphics/ASB-docs-left-rail.png" />
</a> </a>
</center> </center>
@ -189,15 +189,17 @@
<div class="wy-nav-content"> <div class="wy-nav-content">
<div class="rst-content"> <div class="rst-content">
<!-- Tower ads --> <!-- Banner ads -->
<a class="DocSiteBanner" href="http://www.ansible.com/tower?utm_source=docs"> <div class="DocSiteBanner">
<div class="DocSiteBanner-imgWrapper"> <a class="DocSiteBanner-imgWrapper"
href="http://www.ansible.com/docs-top?utm_source=docs">
<img src="https://cdn2.hubspot.net/hubfs/330046/docs-graphics/ASB-docs-top-left.png"> <img src="https://cdn2.hubspot.net/hubfs/330046/docs-graphics/ASB-docs-top-left.png">
</div>
<div class="DocSiteBanner-imgWrapper">
<img src="https://cdn2.hubspot.net/hubfs/330046/docs-graphics/ASB-docs-top-right.png">
</div>
</a> </a>
<a class="DocSiteBanner-imgWrapper"
href="http://www.ansible.com/docs-top?utm_source=docs">
<img src="https://cdn2.hubspot.net/hubfs/330046/docs-graphics/ASB-docs-top-right.png">
</a>
</div>
{% include "breadcrumbs.html" %} {% include "breadcrumbs.html" %}
<div id="page-content"> <div id="page-content">

View file

@ -4723,33 +4723,16 @@ span[id*='MathJax-Span'] {
padding: 0.4045em 1.618em; padding: 0.4045em 1.618em;
} }
.DocSiteBanner { .DocSiteBanner {
width: 100%;
display: flex; display: flex;
display: -webkit-flex; display: -webkit-flex;
justify-content: center;
-webkit-justify-content: center;
flex-wrap: wrap; flex-wrap: wrap;
-webkit-flex-wrap: wrap; -webkit-flex-wrap: wrap;
justify-content: space-between;
-webkit-justify-content: space-between;
background-color: #ff5850;
margin-bottom: 25px; margin-bottom: 25px;
} }
.DocSiteBanner-imgWrapper { .DocSiteBanner-imgWrapper {
max-width: 100%; max-width: 100%;
} }
@media screen and (max-width: 1403px) {
.DocSiteBanner {
width: 100%;
display: flex;
display: -webkit-flex;
flex-wrap: wrap;
-webkit-flex-wrap: wrap;
justify-content: center;
-webkit-justify-content: center;
background-color: #fff;
margin-bottom: 25px;
}
}