Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
fix(layout): Fix adaptive font-sizes for large screens
Browse files Browse the repository at this point in the history
The adaptive font-sizes were not always fitting in the limited elements
of the player, since the player is growing horizontally only.

Fixes https://trello.com/c/SCyV1QxF
  • Loading branch information
plutonik-a committed Jan 29, 2016
1 parent 5ec57d3 commit 01f27e3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@ textarea {

// Scale text font up on very wide screens (1200px)
@media screen and (min-width: $screen-lg-desktop) {
span,
legend,
input,
select,
button,
.time {
h2,
h3,
.badge,
.share-select-option,
.chapter span {
font-size: $font-size-wide-screen;
}
}
Expand Down
7 changes: 6 additions & 1 deletion src/sass/_progressbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,16 @@ progress[aria-valuenow]:before {
}
.chapter-title {
display: block;
padding: 11px 20px 0 15px;
padding: 11px $padding-base-horizontal 0 15px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-weight: $font-weight-bold;
font-size: $font-size-base;
@media screen and (min-width: $screen-lg-min) {
font-size: $font-size-wide-screen;
padding: $padding-small-vertical $padding-base-horizontal 0 15px;
}
}
}
.time {
Expand Down

0 comments on commit 01f27e3

Please sign in to comment.