<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[22947] trunk: RTL fixes for media and color picker.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/22947">22947</a></dd>
<dt>Author</dt> <dd>ryan</dd>
<dt>Date</dt> <dd>2012-11-30 13:34:16 +0000 (Fri, 30 Nov 2012)</dd>
</dl>

<h3>Log Message</h3>
<pre>RTL fixes for media and color picker.

Props ocean90
see <a href="http://core.trac.wordpress.org/ticket/22453">#22453</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmincsscolorpickercss">trunk/wp-admin/css/color-picker.css</a></li>
<li><a href="#trunkwpincludescssmediaviewsrtlcss">trunk/wp-includes/css/media-views-rtl.css</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkwpadmincsscolorpickerrtlcss">trunk/wp-admin/css/color-picker-rtl.css</a></li>
<li><a href="#trunkwpadmincsscolorpickerrtlmincss">trunk/wp-admin/css/color-picker-rtl.min.css</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmincsscolorpickerrtlcss"></a>
<div class="addfile"><h4>Added: trunk/wp-admin/css/color-picker-rtl.css (0 => 22947)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/color-picker-rtl.css                                (rev 0)
+++ trunk/wp-admin/css/color-picker-rtl.css        2012-11-30 13:34:16 UTC (rev 22947)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+.wp-color-result {
+        margin: 0 0 6px 6px;
+        padding-left: 0;
+        padding-right: 30px;
+}
+
+.wp-color-result:after {
+        border-radius: 0 0 1px 1px;
+        border-left: 0;
+        border-right: 1px solid #bbb;
+        left: auto;
+        right: 0;
+}
+
+.wp-color-result:hover {
+        border-color: #aaa;
+}
+
+.wp-color-result:hover:after {
+        border-left: 0;
+        border-right: 1px solid #999;
+}
+
+.wp-picker-container .button {
+        margin-left: 0;
+        margin-right: 6px;
+}
</ins><span class="cx">Property changes on: trunk/wp-admin/css/color-picker-rtl.css
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkwpadmincsscolorpickerrtlmincss"></a>
<div class="addfile"><h4>Added: trunk/wp-admin/css/color-picker-rtl.min.css (0 => 22947)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/color-picker-rtl.min.css                                (rev 0)
+++ trunk/wp-admin/css/color-picker-rtl.min.css        2012-11-30 13:34:16 UTC (rev 22947)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+.wp-color-result {
+        margin: 0 0 6px 6px;
+        padding-left: 0;
+        padding-right: 30px;
+}
+
+.wp-color-result:after {
+        border-radius: 0 0 1px 1px;
+        border-left: 0;
+        border-right: 1px solid #bbb;
+        left: auto;
+        right: 0;
+}
+
+.wp-color-result:hover {
+        border-color: #aaa;
+}
+
+.wp-color-result:hover:after {
+        border-left: 0;
+        border-right: 1px solid #999;
+}
+
+.wp-picker-container .button {
+        margin-left: 0;
+        margin-right: 6px;
+}
</ins><span class="cx">Property changes on: trunk/wp-admin/css/color-picker-rtl.min.css
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkwpadmincsscolorpickercss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/color-picker.css (22946 => 22947)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/color-picker.css        2012-11-30 08:37:17 UTC (rev 22946)
+++ trunk/wp-admin/css/color-picker.css        2012-11-30 13:34:16 UTC (rev 22947)
</span><span class="lines">@@ -1,9 +1,11 @@
</span><span class="cx"> .wp-color-picker {
</span><span class="cx">         width: 80px;
</span><span class="cx"> }
</span><ins>+
</ins><span class="cx"> .wp-picker-container .hidden {
</span><span class="cx">         display: none;
</span><span class="cx"> }
</span><ins>+
</ins><span class="cx"> .wp-color-result {
</span><span class="cx">         background-color: #f9f9f9;
</span><span class="cx">         border: 1px solid #bbb;
</span><span class="lines">@@ -22,6 +24,7 @@
</span><span class="cx">         display: inline-block;
</span><span class="cx">         padding-left: 30px;
</span><span class="cx"> }
</span><ins>+
</ins><span class="cx"> .wp-color-result:after {
</span><span class="cx">         background: #f3f3f3;
</span><span class="cx">         background-image: -webkit-gradient(linear, left top, left bottom, from(#fefefe), to(#f4f4f4));
</span><span class="lines">@@ -39,60 +42,66 @@
</span><span class="cx">         line-height: 22px;
</span><span class="cx">         padding: 0 6px;
</span><span class="cx">         position: relative;
</span><del>-        right: 0px;
</del><ins>+        right: 0;
</ins><span class="cx">         text-align: center;
</span><del>-        top: 0px;
</del><ins>+        top: 0;
</ins><span class="cx"> }
</span><ins>+
</ins><span class="cx"> .wp-color-result:hover {
</span><span class="cx">         border-color: #aaa;
</span><del>-        box-shadow: 0 1px 1px rgba(0,0,0,0.1);
-        -moz-box-shadow: 0 1px 1px rgba(0,0,0,0.1);
-        -ms-box-shadow: 0 1px 1px rgba(0,0,0,0.1);
-        -o-box-shadow: 0 1px 1px rgba(0,0,0,0.1);
-        -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.1);
</del><ins>+        -webkit-box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.2 );
+        box-shadow: 0 1px 1px rgba( 0, 0, 0, 0.1 );
</ins><span class="cx"> }
</span><ins>+
</ins><span class="cx"> .wp-color-result:hover:after {
</span><span class="cx">         color: #222;
</span><span class="cx">         border-color: #aaa;
</span><span class="cx">         border-left: 1px solid #999;
</span><span class="cx"> }
</span><ins>+
</ins><span class="cx"> .wp-color-result.wp-picker-open {
</span><span class="cx">         top: 0;
</span><span class="cx"> }
</span><ins>+
</ins><span class="cx"> .wp-color-result.wp-picker-open:after {
</span><span class="cx">         content: attr( data-current );
</span><span class="cx"> }
</span><ins>+
</ins><span class="cx"> .wp-picker-container, .wp-picker-container:active {
</span><span class="cx">         display: inline-block;
</span><span class="cx">         outline: 0;
</span><span class="cx"> }
</span><ins>+
</ins><span class="cx"> .wp-color-result:focus {
</span><span class="cx">         border-color: #888;
</span><del>-        -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
-        -ms-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
-        -o-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
-        -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
-        box-shadow: 0 1px 2px rgba(0,0,0,0.2);
</del><ins>+        -webkit-box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.2 );
+        box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.2 );
</ins><span class="cx"> }
</span><ins>+
</ins><span class="cx"> .wp-color-result:focus:after {
</span><span class="cx">         border-color: #888;
</span><span class="cx"> }
</span><ins>+
</ins><span class="cx"> .wp-picker-open + .wp-picker-input-wrap {
</span><span class="cx">         display: inline-block;
</span><span class="cx">         vertical-align: top;
</span><span class="cx"> }
</span><ins>+
</ins><span class="cx"> .wp-picker-container .button {
</span><span class="cx">         margin-left: 6px;
</span><span class="cx"> }
</span><ins>+
</ins><span class="cx"> .wp-picker-container .iris-square-slider .ui-slider-handle:focus {
</span><span class="cx">         background-color: #555
</span><span class="cx"> }
</span><ins>+
</ins><span class="cx"> .wp-picker-container .iris-picker {
</span><span class="cx">         border-color: #dfdfdf;
</span><span class="cx">         margin-top: 6px;
</span><span class="cx"> }
</span><ins>+
</ins><span class="cx"> input[type=&quot;text&quot;].iris-error {
</span><span class="cx">         background-color: #ffebe8;
</span><span class="cx">         border-color: #c00;
</span><span class="cx">         color: #000;
</span><del>-}
</del><span class="cx">\ No newline at end of file
</span><ins>+}
</ins></span></pre></div>
<a id="trunkwpincludescssmediaviewsrtlcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/css/media-views-rtl.css (22946 => 22947)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/css/media-views-rtl.css        2012-11-30 08:37:17 UTC (rev 22946)
+++ trunk/wp-includes/css/media-views-rtl.css        2012-11-30 13:34:16 UTC (rev 22947)
</span><span class="lines">@@ -17,7 +17,6 @@
</span><span class="cx"> .media-frame-toolbar &gt; .media-toolbar {
</span><span class="cx">         left: 0;
</span><span class="cx">         right: 200px;
</span><del>-        border-width: 1px 0 0 0;
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -49,13 +48,10 @@
</span><span class="cx"> .media-sidebar {
</span><span class="cx">         right: auto;
</span><span class="cx">         left: 0;
</span><ins>+        border-left: 0;
+        border-right: 1px solid #dfdfdf;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-.hide-sidebar .media-sidebar {
-        right: auto;
-        left: -300px;
-}
-
</del><span class="cx"> .media-sidebar .setting {
</span><span class="cx">         float: right;
</span><span class="cx"> }
</span><span class="lines">@@ -105,24 +101,19 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><del>- * Attachment Browser Filters
- */
-.media-frame select.attachment-filters {
-        margin-right: 0;
-        margin-left: 10px;
-}
-
-/**
</del><span class="cx">  * Frame
</span><span class="cx">  */
</span><span class="cx"> .media-frame .region-content {
</span><del>-        left: 300px;
</del><ins>+        left: 0;
</ins><span class="cx">         right: 200px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.media-frame.hide-sidebar .region-content {
-        right: 200px;
-        left: 0;
</del><ins>+/**
+ * Attachment Browser Filters
+ */
+.media-frame select.attachment-filters {
+        margin-right: 0;
+        margin-left: 10px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="lines">@@ -137,7 +128,6 @@
</span><span class="cx">  * Attachments
</span><span class="cx">  */
</span><span class="cx"> .attachments {
</span><del>-        margin: 0;
</del><span class="cx">         padding-right: 0;
</span><span class="cx">         padding-left: 16px;
</span><span class="cx"> }
</span><span class="lines">@@ -149,7 +139,6 @@
</span><span class="cx">         float: right;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.attachment .icon,
</del><span class="cx"> .attachment .thumbnail {
</span><span class="cx">         left: auto;
</span><span class="cx">         right: 0;
</span><span class="lines">@@ -166,14 +155,40 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><ins>+ * Attachments Browser
+ */
+.attachments-browser .media-toolbar {
+        right: 0;
+        left: 300px;
+}
+
+.attachments-browser .attachments,
+.attachments-browser .uploader-inline {
+        right: 0;
+        left: 300px;
+}
+
+
+/**
</ins><span class="cx">  * Progress Bar
</span><span class="cx">  */
</span><span class="cx"> .attachment-preview .media-progress-bar {
</span><span class="cx">         left: auto;
</span><span class="cx">         right: 15%;
</span><del>-        margin: -8px -4px 0 0;
</del><span class="cx"> }
</span><span class="cx"> 
</span><ins>+.media-sidebar .media-uploader-status .upload-dismiss-errors {
+        right: auto;
+        left: 0;
+}
+
+.upload-errors .upload-error-label {
+        margin-right: 0;
+        margin-left: 8px;
+        float: right;
+        margin-top: -3px;
+}
+
</ins><span class="cx"> /**
</span><span class="cx">  * Selection
</span><span class="cx">  */
</span><span class="lines">@@ -190,6 +205,8 @@
</span><span class="cx"> 
</span><span class="cx"> .media-selection .selection-info a {
</span><span class="cx">         float: right;
</span><ins>+        border-right: 0;
+        border-left: 1px solid #dfdfdf;
</ins><span class="cx">         margin: 1px -8px 1px 8px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -201,7 +218,7 @@
</span><span class="cx"> .media-selection:after {
</span><span class="cx">         right: auto;
</span><span class="cx">         left: 0;
</span><del>-        background-image: -webkit-gradient(linear, left top, left top, from( rgba( 255, 255, 255, 1 ) ), to( rgba( 255, 255, 255, 0 ) ));
</del><ins>+        background-image: -webkit-gradient(linear, left top, right top, from( rgba( 255, 255, 255, 1 ) ), to( rgba( 255, 255, 255, 0 ) ));
</ins><span class="cx">         background-image: -webkit-linear-gradient(left, rgba( 255, 255, 255, 1 ) ,  rgba( 255, 255, 255, 0 ) );
</span><span class="cx">         background-image:    -moz-linear-gradient(left, rgba( 255, 255, 255, 1 ) ,  rgba( 255, 255, 255, 0 ) );
</span><span class="cx">         background-image:      -o-linear-gradient(left, rgba( 255, 255, 255, 1 ) ,  rgba( 255, 255, 255, 0 ) );
</span><span class="lines">@@ -241,10 +258,7 @@
</span><span class="cx">         margin-left: 10px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.attachment-info .details {
-        float: right;
-}
-
</del><ins>+.attachment-info .details,
</ins><span class="cx"> .attachment-info .compat-meta {
</span><span class="cx">         float: right;
</span><span class="cx"> }
</span><span class="lines">@@ -271,3 +285,21 @@
</span><span class="cx"> .media-embed .setting {
</span><span class="cx">         float: right;
</span><span class="cx"> }
</span><ins>+
+/**
+ * Responsive layout
+ */
+@media only screen and (max-width: 900px) {
+        .media-frame .region-content,
+        .media-frame-toolbar &gt; .media-toolbar {
+                left: 0;
+                right: 120px;
+        }
+
+        .attachments-browser .attachments,
+        .attachments-browser .uploader-inline,
+        .attachments-browser .media-toolbar {
+                right: 0;
+                left: 180px;
+        }
+}
</ins></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (22946 => 22947)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2012-11-30 08:37:17 UTC (rev 22946)
+++ trunk/wp-includes/script-loader.php        2012-11-30 13:34:16 UTC (rev 22947)
</span><span class="lines">@@ -494,7 +494,7 @@
</span><span class="cx"> 
</span><span class="cx">         $suffix = defined('SCRIPT_DEBUG') &amp;&amp; SCRIPT_DEBUG ? '' : '.min';
</span><span class="cx"> 
</span><del>-        $rtl_styles = array( 'wp-admin', 'ie', 'media', 'admin-bar', 'customize-controls', 'media-views' );
</del><ins>+        $rtl_styles = array( 'wp-admin', 'ie', 'media', 'admin-bar', 'customize-controls', 'media-views', 'wp-color-picker' );
</ins><span class="cx">         // Any rtl stylesheets that don't have a .min version
</span><span class="cx">         $no_suffix = array( 'farbtastic' );
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>