From ea2f6e75cf6ae2bca5083bb7d8e1e3be4d199089 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Wed, 1 May 2013 17:50:55 +0000 Subject: [PATCH] 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 --- .../themes/twentythirteen/css/editor-style.css | 12 ------------ wp-content/themes/twentythirteen/style.css | 18 +++++++++++++----- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/wp-content/themes/twentythirteen/css/editor-style.css b/wp-content/themes/twentythirteen/css/editor-style.css index 4b49df613b..d4c7e067bf 100644 --- a/wp-content/themes/twentythirteen/css/editor-style.css +++ b/wp-content/themes/twentythirteen/css/editor-style.css @@ -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; } diff --git a/wp-content/themes/twentythirteen/style.css b/wp-content/themes/twentythirteen/style.css index d349766751..254774a27d 100644 --- a/wp-content/themes/twentythirteen/style.css +++ b/wp-content/themes/twentythirteen/style.css @@ -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 {