From 1a18cb3b00b15c5658bba625fcb81cd9583b4cb7 Mon Sep 17 00:00:00 2001 From: Ella Iseulde Van Dorpe Date: Sat, 25 Jul 2015 22:59:23 +0000 Subject: [PATCH] Revert [31849] and [33351] Also set the max-width of images in themes to 100%, not in pixels. See #33022 and #31250. git-svn-id: https://develop.svn.wordpress.org/trunk@33418 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentyfifteen/css/editor-style.css | 20 ++----------------- .../twentyfourteen/css/editor-style.css | 20 ++----------------- .../twentythirteen/css/editor-style.css | 16 --------------- .../js/tinymce/skins/wordpress/wp-content.css | 1 - 4 files changed, 4 insertions(+), 53 deletions(-) diff --git a/src/wp-content/themes/twentyfifteen/css/editor-style.css b/src/wp-content/themes/twentyfifteen/css/editor-style.css index ab1b75a573..33db931ff1 100644 --- a/src/wp-content/themes/twentyfifteen/css/editor-style.css +++ b/src/wp-content/themes/twentyfifteen/css/editor-style.css @@ -15,7 +15,6 @@ Description: Used to style the TinyMCE editor. * 6.0 - Galleries * 7.0 - Audio / Video * 8.0 - RTL - * 9.0 - Media Queries */ @@ -297,7 +296,7 @@ table td, img { border: 0; height: auto; - max-width: 660px; + max-width: 100%; vertical-align: middle; } @@ -347,7 +346,7 @@ a { color: #707070; font-family: "Noto Sans", sans-serif; margin: 0 0 28px 0; - max-width: 660px; + max-width: 100%; padding: 0; text-align: inherit; } @@ -476,18 +475,3 @@ body.rtl { .rtl table caption { text-align: right; } - - -/** - * 9.0 Media Queries - */ - -@media screen and (max-width: 740px) { - body, img, .wp-caption { - max-width: 100%; - } - - img, .wp-caption { - width: auto !important; - } -} diff --git a/src/wp-content/themes/twentyfourteen/css/editor-style.css b/src/wp-content/themes/twentyfourteen/css/editor-style.css index b4dd3253f2..6bd5ac0f41 100644 --- a/src/wp-content/themes/twentyfourteen/css/editor-style.css +++ b/src/wp-content/themes/twentyfourteen/css/editor-style.css @@ -17,7 +17,6 @@ Description: Used to style the TinyMCE editor. * 8.0 - Galleries * 9.0 - Audio/Video * 10.0 - RTL - * 11.0 - Media Queries * ---------------------------------------------------------------------------- */ @@ -380,7 +379,7 @@ blockquote.alignright p { img { height: auto; - max-width: 474px; + max-width: 100%; vertical-align: middle; } @@ -389,7 +388,7 @@ img { border: none; color: #767676; margin: 0 0 24px 0; - max-width: 474px; + max-width: 100%; padding: 0; text-align: left; } @@ -720,18 +719,3 @@ html .mceContentBody.rtl { .rtl td { text-align: right; } - - -/** - * 11.0 Media Queries - */ - -@media screen and (max-width: 494px) { - body, img, .wp-caption { - max-width: 100%; - } - - img, .wp-caption { - width: auto !important; - } -} diff --git a/src/wp-content/themes/twentythirteen/css/editor-style.css b/src/wp-content/themes/twentythirteen/css/editor-style.css index 2e6218449e..568418992b 100644 --- a/src/wp-content/themes/twentythirteen/css/editor-style.css +++ b/src/wp-content/themes/twentythirteen/css/editor-style.css @@ -18,7 +18,6 @@ Description: Used to style the TinyMCE editor. * 9.0 - Audio/Video * 10.0 - Post Formats * 11.0 - RTL - * 12.0 - Media Queries * ---------------------------------------------------------------------------- */ @@ -770,18 +769,3 @@ html .mceContentBody.rtl { background: none; content: none; } - - -/** - * 12.0 Media Queries - */ - -@media screen and (max-width: 604px) { - body, img, .wp-caption { - max-width: 100%; - } - - img, .wp-caption { - width: auto !important; - } -} diff --git a/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css b/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css index df4671465e..312be22938 100644 --- a/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css +++ b/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css @@ -141,7 +141,6 @@ img[data-mce-selected]::selection { -webkit-box-shadow: none; box-shadow: none; width: 96%; - min-width: 96%; height: 16px; display: block; margin: 15px auto 0;