Skip to content

Commit

Permalink
fixed some column-width issues in SCSS with code and pre tags
Browse files Browse the repository at this point in the history
  • Loading branch information
clayh53 committed Feb 28, 2015
1 parent f79ead3 commit bc477d0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 7 additions & 2 deletions _scss/tufte.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
html, body { height: 100%; }
a {
text-decoration: none;

}

/* clearfix hack after Cederholm (group class name) */
Expand All @@ -33,6 +34,8 @@ a {
html{
text-align: baseline;
font-size: 11px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

}
@media screen{
Expand Down Expand Up @@ -210,11 +213,11 @@ p, li{
padding-right: 0px;
vertical-align: baseline;
}
// Since there is no grid here, lists break if they are too long.
// Since there is no grid here, lists and pre-formatted code break if they are too long.
// Necessary to specify that any list within an article is the same width as
// the paragraphs

p, article ul li{
p, article ul li, pre code, pre code p, code{
width: 55%;
}

Expand Down Expand Up @@ -412,7 +415,9 @@ span.newthought {
}
@page {
margin: 0.75in 0.5in 0.75in 0.5in;
orphans:4; widows:2;
}

body {
font-size: 12pt;

Expand Down
10 changes: 7 additions & 3 deletions css/tufte.css
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ a {

html {
text-align: baseline;
font-size: 11px; }
font-size: 11px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; }

@media screen {
.print-footer {
Expand Down Expand Up @@ -319,7 +321,7 @@ p, li {
padding-right: 0px;
vertical-align: baseline; }

p, article ul li {
p, article ul li, pre code, pre code p, code {
width: 55%; }

@media screen and (max-width: 600px) {
Expand Down Expand Up @@ -508,7 +510,9 @@ span.newthought {
text-shadow: none !important; }

@page {
margin: 0.75in 0.5in 0.75in 0.5in; }
margin: 0.75in 0.5in 0.75in 0.5in;
orphans: 4;
widows: 2; }
body {
font-size: 12pt; }

Expand Down

0 comments on commit bc477d0

Please sign in to comment.