Skip to content

Commit

Permalink
Fixed background image on mobile.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaburke91 committed Sep 6, 2017
1 parent 017ba28 commit 8f9681e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<a id="nts-logo" href="http://www.nts.live" target="_blank"> </a>
</div>

<div class="header__radio-player ">
<div class="header__radio-player" >
<div class="header__radio-player__text primary-font">
<span id="before-text" class="hidden header-fuzzy-text header-fuzzy-text--dark">Live Radio Broadcast 7th October 18:00 BST</span>
<span id="during-text" class="hidden header-fuzzy-text header-fuzzy-text--dark">
Expand Down
2 changes: 1 addition & 1 deletion public/css/style.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/css/style.min.css.map

Large diffs are not rendered by default.

24 changes: 6 additions & 18 deletions style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ $text-color: black;
word-spacing: 0.5em;
}

body {
}

#bg {
display: block;
position: fixed;
top: 0; bottom: 0;
left: 0; right: 0;

z-index: -1;

background: url('../img/bg.jpg') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
Expand Down Expand Up @@ -98,16 +99,8 @@ $header-padding: 5px;
}
.header__radio-player {
cursor: pointer;

//background-image: url("../img/tapevlarge.png");
//background-size: contain;
//background-repeat: no-repeat;

}
.header__radio-player, .header__mixcloud-container {
//margin: 0 auto;
//max-width: 600px;
//text-align: center;
font-size: 1.2em;
}
.header__radio-player__text {
Expand Down Expand Up @@ -353,12 +346,8 @@ img {

@media #{$mq-phone} {
#bg {
z-index: -1;
background: url('../img/bg_mobile.jpg') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
position: fixed;
background: url('../img/bg_mobile.jpg') no-repeat top left local;
}
#collage-canvas {
display: none;
Expand All @@ -382,7 +371,6 @@ img {
}
}


/** Misc **/

.header-fuzzy-text {
Expand Down

0 comments on commit 8f9681e

Please sign in to comment.