Skip to content

Commit

Permalink
Merge pull request #1511 from /issues/1491
Browse files Browse the repository at this point in the history
Fixes #1491 - Fixed  overflow SVG, causing a scroll on all the page
  • Loading branch information
zoepage authored Apr 26, 2017
2 parents add3d7d + a572e80 commit de711fc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
60 changes: 30 additions & 30 deletions webcompat/static/css/development/components/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
--Footer-backgroundColor: #fff;
--Footer-border: var(--base-colorDark);
--Footer-colorHover: var(--base-colorDark);
--Footer-withIcon : 1.5em;
}

.wc-Footer {
font-size:var(--Footer-fontSize);
font-size: var(--Footer-fontSize);
background-color: var(--Footer-backgroundColor);
border-top: 5px solid var(--Footer-border);
padding: 1em 0;
}

@media all and (min-width: 28.12em) {

.wc-Footer {
margin-top: 3em;
}
Expand All @@ -33,15 +33,23 @@
}

@media all and (min-width: 37.52em) {

.wc-Footer-list {
display: flex;
}
}

/* modifier */
@media all and (max-width: 37.51em) {
.wc-Footer-list--right {
display: flex;
align-content: space-between;
flex-flow: row wrap;
width: var(--Footer-withIcon);
}
}

/* item */
@media all and (min-width: 37.52em) {

.wc-Footer-item + .wc-Footer-item {
padding-left: .75em;
}
Expand All @@ -54,8 +62,9 @@

/* link */
.wc-Footer-link {
display: block;
color: inherit;
text-decoration:none;
text-decoration: none;
}

/* event */
Expand All @@ -66,34 +75,25 @@

/* modifier */
@media all and (min-width: 37.51em) {

.wc-Footer-link--separator:after {
content:"//";
margin-left:1em;
content: "//";
margin-left: 1em;
}
}
.wc-Twitter {

width:1.5em;
display:inline-block;
background-image:url(/img/twitter.svg);
color:transparent;
background-repeat: no-repeat;
}
.wc-Github {

width:1.5em;
display:inline-block;
background-image:url(/img/github-logo.svg);
color:transparent;
background-repeat: no-repeat;
}

@media all and (max-width: 28em) {
.wc-Twitter {
margin:0;
.wc-Footer-icon {
display: block;
width: var(--Footer-withIcon);
height: var(--Footer-withIcon);
overflow: hidden;
background-repeat: no-repeat;
color: transparent;
}
.wc-Github {
margin:0;

.wc-Footer-icon--twitter {
background-image: url("../../../img/twitter.svg");
}

.wc-Footer-icon--github {
background-image: url("../../../img/github-logo.svg");
}
}
6 changes: 3 additions & 3 deletions webcompat/templates/shared/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
</a>
</li>
</ul>
<ul class="wc-Footer-list r-ResetList">
<ul class="wc-Footer-list wc-Footer-list--right r-ResetList">
<li class="wc-Footer-item wc-Footer-item--follow">
<a class="wc-Footer-link" href="https://twitter.com/webcompat/with_replies" target="_blank">
<span class="wc-Twitter">Follow on Twitter</span>
<span class="wc-Footer-icon wc-Footer-icon--twitter">Follow on Twitter</span>
</a>
</li>
<li class="wc-Footer-item wc-Footer-item--follow">
<a class="wc-Footer-link" href=" https://github.com/webcompat/webcompat.com/" target="_blank">
<span class="wc-Github">See on Github</span>
<span class="wc-Footer-icon wc-Footer-icon--github">See on Github</span>
</a>
</li>
</ul>
Expand Down

0 comments on commit de711fc

Please sign in to comment.