Skip to content

Commit

Permalink
Improves responsive handling of tables and code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
tantalic committed May 12, 2016
1 parent ba26e0d commit b76bb08
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 10 deletions.
14 changes: 11 additions & 3 deletions assets/themes/clean.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ body {
margin: 0 auto;
}

@media (max-width: 1000px) {
@media (max-width: 1000px) {
body {
width: auto;
margin: 0 16px;
}
}
}

h1, h2, h3, h4, h5, h6 {
line-height: 1.2;
Expand Down Expand Up @@ -64,14 +64,20 @@ p + ul, p + ol {
}

table {
overflow: auto;
margin-top: 0;
margin-bottom: 1em;
border-spacing: 0;
border-collapse: collapse;
border: 2px solid #f2f2f2;
}

@media (max-width: 1000px) {
table {
display: block;
overflow-x: auto;
}
}

h2 + table, h3 + table, h4 + table, h5 + table, h6 + table {
margin-top: 1em;
}
Expand Down Expand Up @@ -103,6 +109,8 @@ code {
pre code {
border-radius: 2px;
font-size: 13px;
display: block;
overflow-x: auto;
}

blockquote {
Expand Down
11 changes: 10 additions & 1 deletion assets/themes/developer.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ body {
margin: 0 auto;
}

@media (max-width: 1000px) {
@media (max-width: 1000px) {
body {
width: auto;
margin: 0 16px;
Expand Down Expand Up @@ -134,6 +134,13 @@ table {
border: 2px solid rgb(64,64,64);
}

@media (max-width: 1000px) {
table {
display: block;
overflow-x: auto;
}
}

h2 + table, h3 + table, h4 + table, h5 + table, h6 + table {
margin-top: 1em;
}
Expand Down Expand Up @@ -172,6 +179,8 @@ code {
pre code {
border-radius: 2px;
font-size: 13px;
display: block;
overflow-x: auto;
}

img {
Expand Down
9 changes: 9 additions & 0 deletions assets/themes/github.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ table {
border: 1px solid #ddd;
}

@media (max-width: 1000px) {
table {
display: block;
overflow-x: auto;
}
}

th, td {
border: 1px solid #ddd;
padding: 6px 14px;
Expand All @@ -108,6 +115,8 @@ code {
pre code {
border-radius: 2px;
font-size: 13px;
display: block;
overflow-x: auto;
}

img {
Expand Down
Loading

0 comments on commit b76bb08

Please sign in to comment.