Skip to content

Commit

Permalink
fix: make text appear in two rows on narrow screens
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepinho committed Apr 5, 2017
1 parent cb5d5ad commit a2c8ded
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/app/timeline/timeline.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,19 @@
>
</div>

<span>
Louder tweets = oranger face.
By <a href="https://twitter.com/jessepinho" target="_blank">@jessepinho</a>.
{{version}}
<a href="https://github.com/jessepinho/trumpymctweetface.com" target="_blank">
<img src="/assets/github.svg" alt="GitHub" class="github">
</a>
<span class="explanation">
<span>
Louder tweets = oranger face.
</span>
<span>
By <a href="https://twitter.com/jessepinho" target="_blank">@jessepinho</a>. {{version}}

<a
href="https://github.com/jessepinho/trumpymctweetface.com"
target="_blank"
>
<img src="/assets/github.svg" alt="GitHub" class="github">
</a>
</span>
</span>
</footer>
11 changes: 11 additions & 0 deletions src/app/timeline/timeline.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ footer {
font-size: 0.7rem;
}

.explanation {
text-align: right;

display: flex;
flex-direction: column;

@media only screen and (min-width: 640px) {
display: initial;
}
}

.github {
vertical-align: middle;
width: 20px;
Expand Down

0 comments on commit a2c8ded

Please sign in to comment.