Skip to content

Commit c28e491

Browse files
authored
Merge pull request #850 from open-data-rescue/fix-background-image
Put the ECCC background image in
2 parents b7bc426 + 2f86c6e commit c28e491

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed
52.9 KB
Loading

app/javascript/stylesheets/draw-style.scss

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ a {
3434
}
3535
}
3636
}
37+
// TTT
3738
.body-bg-img {
3839
display: block;
3940
position: fixed;
@@ -57,6 +58,31 @@ a {
5758
filter: grayscale(50%);
5859
}
5960
}
61+
62+
.eccc-body-bg-img {
63+
display: block;
64+
position: fixed;
65+
left: 0;
66+
top: 0;
67+
width: 100%;
68+
height: 100%;
69+
z-index: -1;
70+
background-repeat: no-repeat;
71+
-ms-background-size: cover;
72+
-o-background-size: cover;
73+
-moz-background-size: cover;
74+
-webkit-background-size: cover;
75+
background-size: cover;
76+
background-image: url("/images/red_river_fort_garry.jpg");
77+
background-position: left center;
78+
79+
&.holiday-special {
80+
background-image: url("/images/holiday-bg.jpg");
81+
-webkit-filter: grayscale(50%); /* Safari 6.0 - 9.0 */
82+
filter: grayscale(50%);
83+
}
84+
}
85+
6086
.main-wrapper {
6187
padding: 0;
6288
min-height: 100%;

app/views/layouts/application.html.slim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ html lang="en"
4242
<script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
4343

4444
body
45-
.body-bg-img
45+
<% end %>
46+
- if ENV["DRAW_ENV"] == "DRAW"
47+
.body-bg-img
48+
- else
49+
.eccc-body-bg-img
4650
/ .holiday-special
4751
/ canvas#snow-canvas
4852

0 commit comments

Comments
 (0)