Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move index page style block into stylus files #286

Merged
merged 2 commits into from
Oct 29, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions layouts/css/base.styl
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ pre
@import 'page-modules/_foundation-members'
@import 'page-modules/_in-the-news'
@import 'page-modules/_download'
@import 'page-modules/_interactiveBanner'
@import 'page-modules/_scrollToTop'
@import 'page-modules/_anchorLinks'

Expand Down
3 changes: 3 additions & 0 deletions layouts/css/page-modules/_footer.styl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ footer
background-color transparent
text-decoration underline

&.no-margin-top
margin-top 0px


.footer-nav
display flex
Expand Down
23 changes: 23 additions & 0 deletions layouts/css/page-modules/_interactiveBanner.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.interactive-banner
background #333 url("/static/images/nodejs-interactive-portland2015.jpg") 50% 0px no-repeat
background-size cover
height 300px
text-align center
width 100%
line-height 300px
margin-top 20px

.interactive-banner img
display block
margin-left auto
margin-right auto
padding-top 80px
height 140px
-webkit-filter drop-shadow(5px 5px 5px #222)
filter drop-shadow(5px 5px 5px #222)

@media screen and (max-width 550px)
.interactive-banner img
padding-top 100px
height auto
width 300px
33 changes: 1 addition & 32 deletions layouts/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -31,37 +31,6 @@

</div>

<style>
div.interactive-banner {
background: #333 url("/static/images/nodejs-interactive-portland2015.jpg") 50% 0px no-repeat;
background-size: cover;
height:300px;
text-align:center;
width:100%;
line-height:300px;
margin-top:20px;
}
div.interactive-banner img {
display: block;
margin-left: auto;
margin-right: auto;
padding-top:80px;
height:140px;
-webkit-filter: drop-shadow(5px 5px 5px #222);
filter: drop-shadow(5px 5px 5px #222);
}
@media screen and (max-width: 550px) {
div.interactive-banner img {
padding-top:100px;
height: auto;
width: 300px;
}
}
footer {
margin-top:0px;
}
</style>

</div>
</div>

Expand All @@ -71,7 +40,7 @@
</div>
</a>

{{> footer }}
{{> footer className="no-margin-top" }}
<script src="/static/js/download.js" async defer></script>
</body>
</html>
2 changes: 1 addition & 1 deletion layouts/partials/footer.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<a href="#" id="scrollToTop">&uarr; <span>{{i18n.scrollToTop}}</span></a>

<footer role="contentinfo">
<footer {{#if className}}class="{{className}}"{{/if}} role="contentinfo">

<div class="linuxfoundation-footer">
<div class="container">
Expand Down