Skip to content

Commit

Permalink
Solve issue #44
Browse files Browse the repository at this point in the history
The 'box' class overflow the window width for some screen size.
This patch fix it using CSS media query.
  • Loading branch information
Raniere Silva committed Oct 1, 2013
1 parent e83e2c9 commit 1ad953e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion swc.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ div.banner a img {

/* Explanatory call-out boxes. */
div.box {
width: 54em;
background-color: mistyrose;
display: block;
margin-left: auto;
Expand All @@ -115,6 +114,16 @@ div.box {
outline-width: 1px;
outline-style: solid;
}
@media (max-width: 700px) {
div.box {
width: 80%;
}
}
@media (min-width: 700px) {
div.box {
width: 54em;
}
}

/* Level 2 headings inside pages. */
div.content div h3 {
Expand Down

0 comments on commit 1ad953e

Please sign in to comment.