Twenty Thirteen: avoid hyphenating post and page titles (and other unintended consequences) by moving word-breaking and hyphenation rules to only apply specifically to post/page content and widgets. Fixes #24231.

git-svn-id: http://core.svn.wordpress.org/trunk@24153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-05-01 17:50:55 +00:00
parent f0b0996673
commit ea2f6e75cf
2 changed files with 13 additions and 17 deletions

View File

@ -10,10 +10,6 @@ html .mceContentBody {
body {
font-family: "Source Sans Pro", Helvetica, sans-serif;
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
color: #141412;
line-height: 1.5;
text-rendering: optimizeLegibility;
@ -126,10 +122,6 @@ pre,
samp {
font-family: monospace, serif;
font-size: 14px;
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: none;
}
pre {
@ -147,10 +139,6 @@ pre {
blockquote,
q {
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: none;
quotes: none;
}

View File

@ -107,10 +107,6 @@ textarea {
}
body {
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
color: #141412;
line-height: 1.5;
margin: 0;
@ -1022,7 +1018,6 @@ ul.nav-menu li:hover > ul,
.hentry {
padding: 40px 0;
word-wrap: break-word;
}
.entry-header,
@ -1154,6 +1149,14 @@ ul.nav-menu li:hover > ul,
* ----------------------------------------------------------------------------
*/
.entry-content {
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
word-wrap: break-word;
}
.entry-content a,
.comment-content a {
color: #bc360a;
@ -2546,9 +2549,14 @@ footer.entry-meta {
.widget {
background-color: rgba(247, 245, 231, 0.7);
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
font-size: 14px;
margin: 0 0 24px;
padding: 20px;
word-wrap: break-word;
}
.widget .widget-title {