Skip to content

Commit

Permalink
Responsive jumbotron img in Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
abkruse committed Dec 30, 2016
1 parent 638ccbf commit 33de3a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
27 changes: 0 additions & 27 deletions members/static/css/members.css
Original file line number Diff line number Diff line change
Expand Up @@ -126,19 +126,6 @@ p {
background-color: RGBA(66, 98, 113, 1);
}

/*@-moz-document url-prefix() {
#jumbo-img {
width: 100%;
max-width: 100%;
}
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
#jumbo-img {
max-width: 100%;
}
}*/

.side-nav {
background-color: RGBA(80, 80, 80, 1);
padding-top: 2%;
Expand Down Expand Up @@ -178,26 +165,12 @@ p {
}

#jumbo-img {
content: url(../img/jumbo.png);
width: 100%;
margin: 0;
padding: 0;
box-sizing: border-box;
}

#jumbo-img:after {
/*for firefox*/
content: url(../img/jumbo.png);
/*width: 100%;
margin: 0;
padding: 0;
box-sizing: border-box;*/
}

@-moz-document url-prefix() {
#jumbo-img { width: 100%; max-width: -moz-max-content; }
}

#logo {
float: left;
padding-left: 1%;
Expand Down
2 changes: 1 addition & 1 deletion members/templates/members/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

{% block top_nav %}
<div id='jumbotron'>
<img id='jumbo-img'/>
<img id='jumbo-img' src="{% static 'img/jumbo.png' %}"/>
<div id='logo'>
<a href="#"><img class='logo-img' src='{% static "img/logo.png" %}'/></a>
</div>
Expand Down

0 comments on commit 33de3a5

Please sign in to comment.