<!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>[26309] trunk/src: Update the media upload interfaces to match new admin design:</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 { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { 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/26309">26309</a></dd>
<dt>Author</dt> <dd>iammattthomas</dd>
<dt>Date</dt> <dd>2013-11-22 00:02:44 +0000 (Fri, 22 Nov 2013)</dd>
</dl>
<h3>Log Message</h3>
<pre>Update the media upload interfaces to match new admin design:
* Replace separate progress bar designs on media-new.php and modal media uploader with a single consistent design
* Remove side borders from list of uploads on media-new.php
* Restyle the selected photo border and checkbox on modal media uploader
* Add a Media Uploader section to color schemes with progress bar and selected photo styles
Fixes <a href="http://core.trac.wordpress.org/ticket/26147">#26147</a>. Props melchoyce, iammattthomas.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadmincsscolorschemes_adminscss">trunk/src/wp-admin/css/color-schemes/_admin.scss</a></li>
<li><a href="#trunksrcwpadmincsscolorsfreshcss">trunk/src/wp-admin/css/colors-fresh.css</a></li>
<li><a href="#trunksrcwpadmincsswpadmincss">trunk/src/wp-admin/css/wp-admin.css</a></li>
<li><a href="#trunksrcwpincludescssmediaviewscss">trunk/src/wp-includes/css/media-views.css</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadmincsscolorschemes_adminscss"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-admin/css/color-schemes/_admin.scss (26308 => 26309)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-admin/css/color-schemes/_admin.scss 2013-11-21 20:03:42 UTC (rev 26308)
+++ trunk/src/wp-admin/css/color-schemes/_admin.scss 2013-11-22 00:02:44 UTC (rev 26309)
</span><span class="lines">@@ -364,6 +364,23 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><ins>+/* Media Uploader */
+
+.media-item .bar,
+.media-progress-bar div {
+ background-color: $highlight-color;
+}
+
+.details.attachment {
+ box-shadow: 0 0 0 1px #fff, 0 0 0 5px $highlight-color;
+}
+
+.attachment.details .check {
+ background-color: $highlight-color;
+ box-shadow: 0 0 0 1px $highlight-color;
+}
+
+
</ins><span class="cx"> /* Responsive Component */
</span><span class="cx">
</span><span class="cx"> div#moby6-toggle a:before {
</span></span></pre></div>
<a id="trunksrcwpadmincsscolorsfreshcss"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-admin/css/colors-fresh.css (26308 => 26309)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-admin/css/colors-fresh.css 2013-11-21 20:03:42 UTC (rev 26308)
+++ trunk/src/wp-admin/css/colors-fresh.css 2013-11-22 00:02:44 UTC (rev 26309)
</span><span class="lines">@@ -1913,17 +1913,17 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> .details.attachment {
</span><del>- box-shadow: 0 0 0 1px #fff, 0 0 0 5px #2ea2cc;
</del><ins>+ box-shadow: 0 0 0 1px #fff, 0 0 0 5px #1e8cbe;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> .attachment .check {
</span><span class="cx"> background: #eee;
</span><ins>+ box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba( 0, 0, 0, 0.4 );
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> .attachment.details .check {
</span><del>- box-shadow: 0 0 0 1px #2ea2cc;
- background: #0074a2;
- background-image: none;
</del><ins>+ background-color: #1e8cbe;
+ box-shadow: 0 0 0 1px #fff, 0 0 0 2px #1e8cbe;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> /* TinyMCE modal */
</span></span></pre></div>
<a id="trunksrcwpadmincsswpadmincss"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-admin/css/wp-admin.css (26308 => 26309)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-admin/css/wp-admin.css 2013-11-21 20:03:42 UTC (rev 26308)
+++ trunk/src/wp-admin/css/wp-admin.css 2013-11-22 00:02:44 UTC (rev 26309)
</span><span class="lines">@@ -5533,7 +5533,6 @@
</span><span class="cx"> display: block;
</span><span class="cx"> line-height: 36px;
</span><span class="cx"> float: right;
</span><del>- margin-right: 15px;
</del><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> .media-item .describe-toggle-off,
</span><span class="lines">@@ -5546,11 +5545,10 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #media-items .media-item {
</span><del>- border-style: solid;
- border-width: 1px;
</del><ins>+ border-bottom-style: solid;
+ border-bottom-width: 1px;
</ins><span class="cx"> min-height: 36px;
</span><span class="cx"> position: relative;
</span><del>- margin-top: -1px;
</del><span class="cx"> width: 100%;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -5569,7 +5567,6 @@
</span><span class="cx"> .media-item .filename {
</span><span class="cx"> line-height: 36px;
</span><span class="cx"> overflow: hidden;
</span><del>- padding: 0 10px;
</del><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> .media-item .error-div {
</span><span class="lines">@@ -5578,7 +5575,7 @@
</span><span class="cx">
</span><span class="cx"> .media-item .pinkynail {
</span><span class="cx"> float: left;
</span><del>- margin: 2px 2px 0;
</del><ins>+ margin: 2px 10px 0 0;
</ins><span class="cx"> max-width: 40px;
</span><span class="cx"> max-height: 32px;
</span><span class="cx"> }
</span><span class="lines">@@ -5596,38 +5593,24 @@
</span><span class="cx"> .media-item .progress {
</span><span class="cx"> float: right;
</span><span class="cx"> height: 22px;
</span><del>- margin: 6px 10px 0 0;
</del><ins>+ margin: 7px 0 0;
</ins><span class="cx"> width: 200px;
</span><span class="cx"> line-height: 2em;
</span><span class="cx"> padding: 0;
</span><span class="cx"> overflow: hidden;
</span><span class="cx"> margin-bottom: 2px;
</span><del>- border: 1px solid #d1d1d1;
- background: #f7f7f7;
- background-image: -webkit-gradient(linear, left bottom, left top, from(#fff), to(#f7f7f7));
- background-image: -webkit-linear-gradient(bottom, #fff, #f7f7f7);
- background-image: -moz-linear-gradient(bottom, #fff, #f7f7f7);
- background-image: -o-linear-gradient(bottom, #fff, #f7f7f7);
- background-image: linear-gradient(to top, #fff, #f7f7f7);
- -webkit-border-radius: 3px;
- border-radius: 3px;
- -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,0.1);
- box-shadow: inset 0 0 3px rgba(0,0,0,0.1);
</del><ins>+ border-radius: 22px;
+ background: #ddd;
+ -webkit-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
+ box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> .media-item .bar {
</span><span class="cx"> z-index: 9;
</span><span class="cx"> width: 0;
</span><span class="cx"> height: 100%;
</span><del>- margin-top: -24px;
- background-color: #8cc1e9;
- background-image: -webkit-gradient(linear, left bottom, left top, from(#72a7cf), to(#8cc1e9));
- background-image: -webkit-linear-gradient(bottom, #72a7cf, #8cc1e9);
- background-image: -moz-linear-gradient(bottom, #72a7cf, #8cc1e9);
- background-image: -o-linear-gradient(bottom, #72a7cf, #8cc1e9);
- background-image: linear-gradient(to top, #72a7cf, #8cc1e9);
- -webkit-border-radius: 3px;
- border-radius: 3px;
</del><ins>+ margin-top: -22px;
+ background-color: #1e8cbe;
</ins><span class="cx"> -webkit-box-shadow: 0 0 3px rgba(0,0,0,0.3);
</span><span class="cx"> box-shadow: 0 0 3px rgba(0,0,0,0.3);
</span><span class="cx"> }
</span><span class="lines">@@ -5636,8 +5619,12 @@
</span><span class="cx"> z-index: 10;
</span><span class="cx"> position: relative;
</span><span class="cx"> width: 200px;
</span><del>- padding: 0 8px;
- color: rgba(0,0,0,0.6);
</del><ins>+ padding: 0;
+ color: #fff;
+ text-align: center;
+ line-height: 22px;
+ font-weight: 400;
+ text-shadow: 0px 1px 2px rgba(0,0,0,0.2);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> .upload-php .fixed .column-parent {
</span></span></pre></div>
<a id="trunksrcwpincludescssmediaviewscss"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/css/media-views.css (26308 => 26309)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/css/media-views.css 2013-11-21 20:03:42 UTC (rev 26308)
+++ trunk/src/wp-includes/css/media-views.css 2013-11-22 00:02:44 UTC (rev 26309)
</span><span class="lines">@@ -768,12 +768,9 @@
</span><span class="cx"> height: 24px;
</span><span class="cx"> width: 24px;
</span><span class="cx"> position: absolute;
</span><del>- top: -7px;
- right: -7px;
</del><ins>+ top: -6px;
+ right: -6px;
</ins><span class="cx"> outline: none;
</span><del>-
- border: 1px solid #fff;
- box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.4 );
</del><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> .attachment .check div {
</span><span class="lines">@@ -791,17 +788,6 @@
</span><span class="cx"> display: block;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-.attachment.details .check {
- box-shadow: 0 0 0 1px #1e8cbe;
-
- background: #1e8cbe;
- background-image: -webkit-gradient(linear, left top, left bottom, from(#1e8cbe), to(#0074a2));
- background-image: -webkit-linear-gradient(top, #1e8cbe, #0074a2);
- background-image: -moz-linear-gradient(top, #1e8cbe, #0074a2);
- background-image: -o-linear-gradient(top, #1e8cbe, #0074a2);
- background-image: linear-gradient(to bottom, #1e8cbe, #0074a2);
-}
-
</del><span class="cx"> .attachment.details .check div {
</span><span class="cx"> background-position: -21px 0;
</span><span class="cx"> }
</span><span class="lines">@@ -877,8 +863,7 @@
</span><span class="cx"> height: 10px;
</span><span class="cx"> min-width: 20px;
</span><span class="cx"> width: 0;
</span><del>- background: #aaa;
- background: rgba( 0, 0, 0, 0.2 );
</del><ins>+ background: #1e8cbe;
</ins><span class="cx"> border-radius: 10px;
</span><span class="cx"> -webkit-transition: width 300ms;
</span><span class="cx"> -moz-transition: width 300ms;
</span></span></pre>
</div>
</div>
</body>
</html>