correct h1 line-height, centralize .cooked styles

This commit is contained in:
Jeff Atwood 2014-06-30 00:05:18 -07:00
parent e2e36a6df3
commit 0ffe77d7dc
4 changed files with 10 additions and 23 deletions

View File

@ -20,18 +20,17 @@
}
}
.cooked .highlight {
/* global styles for the cooked HTML content in posts */
.cooked {
word-wrap: break-word;
h1, h2, h3, h4, h5, h6 { margin: 30px 0 10px; }
h1 { line-height: 1em; } /* normalize.css sets h1 font size but not line height */
a { word-wrap: break-word; }
.highlight {
background-color: scale-color($highlight, $lightness: 40%);
padding: 2px;
margin: -2px;
}
.contents .cooked a {
word-wrap: break-word;
}
.contents .cooked {
word-wrap: break-word;
}
}
.post-action {

View File

@ -148,15 +148,11 @@ body {
h1, h2, h3, h4, h5, h6 {
margin: 0;
font-family: inherit;
font-weight: bold;
color: inherit;
text-rendering: optimizelegibility;
}
.page-not-found {
margin: 20px 0 40px 0;
}
.page-not-found-search {

View File

@ -602,10 +602,6 @@ iframe {
position: relative;
}
.contents .cooked {
h1, h2, h3, h4, h5, h6 { margin: 30px 0 10px; }
}
a.mention {
padding: 2px 4px;
color: $primary;

View File

@ -398,10 +398,6 @@ iframe {
position: relative;
}
.contents .cooked a {
word-wrap: break-word;
}
.wiki {
float: left;
padding: 10px;