<!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>[358] sites/trunk/wordpress.org/public_html/style/trac: Trac: Improve padding for download icons, remove icon from new ticket buttons, use Dashicon for keyword dismiss.</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://meta.trac.wordpress.org/changeset/358">358</a></dd>
<dt>Author</dt> <dd>ocean90</dd>
<dt>Date</dt> <dd>2014-01-31 21:03:10 +0000 (Fri, 31 Jan 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>Trac: Improve padding for download icons, remove icon from new ticket buttons, use Dashicon for keyword dismiss. see <a href="http://meta.trac.wordpress.org/ticket/272">#272</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlstyletracwptraccss">sites/trunk/wordpress.org/public_html/style/trac/wp-trac.css</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlstyletracwptracjs">sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlstyletracwptraccss"></a>
<div class="modfile"><h4>Modified: sites/trunk/wordpress.org/public_html/style/trac/wp-trac.css (357 => 358)</h4>
<pre class="diff"><span>
<span class="info">--- sites/trunk/wordpress.org/public_html/style/trac/wp-trac.css 2014-01-31 20:19:15 UTC (rev 357)
+++ sites/trunk/wordpress.org/public_html/style/trac/wp-trac.css 2014-01-31 21:03:10 UTC (rev 358)
</span><span class="lines">@@ -541,7 +541,7 @@
</span><span class="cx"> margin-left: 10px
</span><span class="cx"> }
</span><span class="cx"> table.listing tr {
</span><del>- line-height: 1.3; /* less information, more compact */
</del><ins>+ line-height: 1.4; /* less information, more compact */
</ins><span class="cx"> }
</span><span class="cx"> table.listing thead {
</span><span class="cx"> background: #f9f9f9;
</span><span class="lines">@@ -1080,25 +1080,29 @@
</span><span class="cx"> cursor: help;
</span><span class="cx"> }
</span><span class="cx"> #keyword-bin span a {
</span><del>- margin: 3px 0 0 -13px;
</del><ins>+ margin: 1px 0 0 -15px;
</ins><span class="cx"> cursor: pointer;
</span><del>- width: 10px;
- height: 10px;
</del><ins>+ width: 15px;
+ height: 15px;
+ font-size: 15px;
</ins><span class="cx"> display: block;
</span><span class="cx"> float: left;
</span><ins>+ text-indent: 0;
+ overflow: hidden;
</ins><span class="cx"> position: absolute;
</span><del>- background: url(//s.w.org/wp-admin/images/xit.gif) no-repeat;
- border-bottom: 0;
</del><ins>+ border: 0;
+ background: none;
+ color: #999;
</ins><span class="cx"> }
</span><ins>+#keyword-bin span a:hover {
+ color: #c00;
+}
</ins><span class="cx"> #edit-keywords {
</span><span class="cx"> cursor: pointer;
</span><span class="cx"> font-size: 8px;
</span><span class="cx"> color: #999;
</span><span class="cx"> margin: 6px 6px 0 6px;
</span><span class="cx"> }
</span><del>-#keyword-bin span a:hover {
- background-position: -10px 0;
-}
</del><span class="cx"> .has-js #field-keywords {
</span><span class="cx"> width: 92%;
</span><span class="cx"> display: none;
</span><span class="lines">@@ -1372,7 +1376,7 @@
</span><span class="cx"> }
</span><span class="cx"> a.trac-rawlink, a.trac-ziplink {
</span><span class="cx"> padding-right: 0;
</span><del>- margin-left: 2px;
</del><ins>+ margin-left: 4px
</ins><span class="cx"> }
</span><span class="cx"> a.trac-rawlink:before, a.trac-ziplink:before,
</span><span class="cx"> a.ext-link:before,
</span><span class="lines">@@ -1384,7 +1388,7 @@
</span><span class="cx"> }
</span><span class="cx"> a.trac-rawlink:before, a.trac-ziplink:before {
</span><span class="cx"> content: "\f316"; /* dashicons-download */
</span><del>- padding-left: 3px;
</del><ins>+ padding: 0 1px
</ins><span class="cx"> }
</span><span class="cx"> a.ext-link:before {
</span><span class="cx"> content: "\f316"; /* dashicons-download */
</span><span class="lines">@@ -1394,6 +1398,9 @@
</span><span class="cx"> margin-top: -5px;
</span><span class="cx"> padding-right: 3px;
</span><span class="cx"> }
</span><ins>+.create-new-ticket a.ext-link:before {
+ display: none;
+}
</ins><span class="cx"> a.mail-link {
</span><span class="cx"> white-space: nowrap;
</span><span class="cx"> }
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlstyletracwptracjs"></a>
<div class="modfile"><h4>Modified: sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js (357 => 358)</h4>
<pre class="diff"><span>
<span class="info">--- sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js 2014-01-31 20:19:15 UTC (rev 357)
+++ sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js 2014-01-31 21:03:10 UTC (rev 358)
</span><span class="lines">@@ -161,7 +161,7 @@
</span><span class="cx"> }
</span><span class="cx"> } else if ( ! $( '#comment' ).val() ) {
</span><span class="cx"> return;
</span><del>-
</del><ins>+
</ins><span class="cx"> }
</span><span class="cx"> return 'The changes you made will be lost if you navigate away from this page.';
</span><span class="cx"> };
</span><span class="lines">@@ -220,7 +220,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // Add a 'Show only commits/attachments' view option to tickets
</span><del>- $('label[for="trac-comments-only-toggle"]').text('Show only comment text');
</del><ins>+ $('label[for="trac-comments-only-toggle"]').text('Show only comment text');
</ins><span class="cx"> $('form#prefs')
</span><span class="cx"> .has('#trac-comments-order')
</span><span class="cx"> .append('<div><input type="checkbox" id="wp-trac-commits-only" /> <label for="wp-trac-commits-only">Show only commits/attachments</label></div>');
</span><span class="lines">@@ -360,7 +360,7 @@
</span><span class="cx"> '<a href="//meta.trac.wordpress.org/">meta.trac.wordpress.org</a>.</p><p>Would you mind opening this ticket over there instead? ' +
</span><span class="cx"> '<a href="//meta.trac.wordpress.org/newticket" id="new-meta-ticket">Click here</a> to copy your summary and description over.</p></div>' );
</span><span class="cx"> });
</span><del>-
</del><ins>+
</ins><span class="cx"> $('#propertyform').on( 'click', '#new-meta-ticket', function() {
</span><span class="cx"> var url, href = $(this).attr( 'href' );
</span><span class="cx"> url = href + '?' + $.param({ summary: $('#field-summary').val(), description: $('#field-description').val() });
</span><span class="lines">@@ -479,7 +479,7 @@
</span><span class="cx"> // If we have a non-empty keyword, let's go through the process of adding the spans.
</span><span class="cx"> if ( 1 !== keywords.length || keywords[0] !== '' ) {
</span><span class="cx"> $.each( keywords, function( k, v ) {
</span><del>- var html = $('<span />').text(v).attr('data-keyword', v).prepend('<a href="#" />');
</del><ins>+ var html = $('<span />').text(v).attr('data-keyword', v).prepend('<a class="dashicons dashicons-dismiss" href="#" />');
</ins><span class="cx"> if ( v in coreKeywordList )
</span><span class="cx"> html.attr('title', coreKeywordList[v]);
</span><span class="cx"> html.appendTo( elements.bin );
</span><span class="lines">@@ -656,7 +656,7 @@
</span><span class="cx"> if ( -1 !== $.inArray( focus, focuses ) ) {
</span><span class="cx"> orderedFocuses.push( focus );
</span><span class="cx"> }
</span><del>- });
</del><ins>+ });
</ins><span class="cx"> field.val( orderedFocuses.join( ', ' ) );
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -828,7 +828,7 @@
</span><span class="cx"> stars.each( function() {
</span><span class="cx"> var ticket,
</span><span class="cx"> star = $(this);
</span><del>-
</del><ins>+
</ins><span class="cx"> ticket = parseInt( star.parent().siblings('td.ticket').find('a').text().replace('#', ''), 10 );
</span><span class="cx"> tickets.push( ticket );
</span><span class="cx"> star.data( 'ticket', ticket );
</span></span></pre>
</div>
</div>
</body>
</html>