<!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>[1734] sites/trunk/translate.wordpress.org: Translate: Further design improvements for project portals.</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" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://meta.trac.wordpress.org/changeset/1734">1734</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/1734","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>ocean90</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2015-07-12 17:42:47 +0000 (Sun, 12 Jul 2015)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Translate: Further design improvements for project portals.

* Add a drawer for sub projects.
* Move percent calculation to `GP_WPorg_Route_Locale::get_project_status()`.
* Add a green outline to the project box if a project is 100% completed.
* Update breadcrumbs.
* Update table colors based on https://make.wordpress.org/design/handbook/foundations/colors/.

see <a href="http://meta.trac.wordpress.org/ticket/1091">#1091</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunktranslatewordpressorgincludesgppluginswporgroutesrouteslocalephp">sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-routes/routes/locale.php</a></li>
<li><a href="#sitestrunktranslatewordpressorgpublic_htmlgptemplateslocaleprojectphp">sites/trunk/translate.wordpress.org/public_html/gp-templates/locale-project.php</a></li>
<li><a href="#sitestrunktranslatewordpressorgpublic_htmlgptemplateslocaleprojectsphp">sites/trunk/translate.wordpress.org/public_html/gp-templates/locale-projects.php</a></li>
<li><a href="#sitestrunktranslatewordpressorgpublic_htmlgptemplatesstylecss">sites/trunk/translate.wordpress.org/public_html/gp-templates/style.css</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunktranslatewordpressorgincludesgppluginswporgroutesrouteslocalephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-routes/routes/locale.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-routes/routes/locale.php    2015-07-11 16:01:36 UTC (rev 1733)
+++ sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-routes/routes/locale.php      2015-07-12 17:42:47 UTC (rev 1734)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -93,10 +93,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                if ( $sub_projects ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $sub_project_statuses = array();
</span><span class="cx" style="display: block; padding: 0 10px">                        foreach ( $sub_projects as $key => $_sub_project ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                $status = $this->get_project_status( $_sub_project, $locale_slug, $set_slug );
-                               if ( ! $status->all_count ) {
-                                       unset( $sub_projects[ $key ] );
-                               }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         $status = $this->get_project_status( $_sub_project, $locale_slug, $set_slug, null, false );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                $sub_project_statuses[ $_sub_project->id ] = $status;
</span><span class="cx" style="display: block; padding: 0 10px">                        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -180,6 +177,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        $status->current_count      = 0;
</span><span class="cx" style="display: block; padding: 0 10px">                        $status->fuzzy_count        = 0;
</span><span class="cx" style="display: block; padding: 0 10px">                        $status->all_count          = 0;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                        $status->percent_complete   = 0;
</ins><span class="cx" style="display: block; padding: 0 10px">                 }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $set = GP::$translation_set->by_project_id_slug_and_locale(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -194,13 +192,17 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        $status->current_count      += (int) $set->current_count();
</span><span class="cx" style="display: block; padding: 0 10px">                        $status->fuzzy_count        += (int) $set->fuzzy_count();
</span><span class="cx" style="display: block; padding: 0 10px">                        $status->all_count          += (int) $set->all_count();
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+                       if ( $status->all_count ) {
+                               $status->percent_complete = floor( $status->current_count / $status->all_count * 100 );
+                       }
</ins><span class="cx" style="display: block; padding: 0 10px">                 }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                if ( $calc_sub_projects ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $sub_projects = $this->get_active_sub_projects( $project, true );
</span><span class="cx" style="display: block; padding: 0 10px">                        if ( $sub_projects ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                foreach ( $sub_projects as $sub_project ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        $this->get_project_status( $sub_project, $locale, $set_slug, $status );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 $this->get_project_status( $sub_project, $locale, $set_slug, $status, false );
</ins><span class="cx" style="display: block; padding: 0 10px">                                 }
</span><span class="cx" style="display: block; padding: 0 10px">                        }
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span></span></pre></div>
<a id="sitestrunktranslatewordpressorgpublic_htmlgptemplateslocaleprojectphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/translate.wordpress.org/public_html/gp-templates/locale-project.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/translate.wordpress.org/public_html/gp-templates/locale-project.php   2015-07-11 16:01:36 UTC (rev 1733)
+++ sites/trunk/translate.wordpress.org/public_html/gp-templates/locale-project.php     2015-07-12 17:42:47 UTC (rev 1734)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3,7 +3,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> $breadcrumb   = array();
</span><span class="cx" style="display: block; padding: 0 10px"> $breadcrumb[] = gp_link_get( '/', __( 'Locales' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-$breadcrumb[] = gp_link_get( gp_url_join( '/locale', $locale_slug, $set_slug), esc_html( $locale->english_name ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+$breadcrumb[] = gp_link_get( gp_url_join( '/locale', $locale_slug, $set_slug ), esc_html( $locale->english_name ) );
+$breadcrumb[] = gp_link_get( gp_url_join( '/locale', $locale_slug, $set_slug, $project->path ), esc_html( $project->name ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> $breadcrumb[] = $sub_project->name;
</span><span class="cx" style="display: block; padding: 0 10px"> gp_breadcrumb( $breadcrumb );
</span><span class="cx" style="display: block; padding: 0 10px"> gp_tmpl_header();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -12,7 +13,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="project-header">
</span><span class="cx" style="display: block; padding: 0 10px">        <p class="project-description"><?php echo $sub_project->description; ?></p>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        <div class="project-box">
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <div class="project-box percent-<?php echo $sub_project_status->percent_complete; ?>">
</ins><span class="cx" style="display: block; padding: 0 10px">                 <div class="project-box-header">
</span><span class="cx" style="display: block; padding: 0 10px">                        <div class="project-icon">
</span><span class="cx" style="display: block; padding: 0 10px">                                <?php echo $project_icon; ?>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -49,18 +50,43 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </ul>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        <div class="project-status">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                <?php
-                               $percent_complete = floor( $project_status->current_count / $project_status->all_count * 100 );
-                               echo $percent_complete . '%';
-                               ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         <?php echo $sub_project_status->percent_complete . '%'; ?>
</ins><span class="cx" style="display: block; padding: 0 10px">                         </div>
</span><span class="cx" style="display: block; padding: 0 10px">                </div>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                <div class="project-status-progress percent">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        <div class="percent-complete" style="width:<?php echo $percent_complete; ?>%;"></div>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 <div class="percent-complete" style="width:<?php echo $sub_project_status->percent_complete; ?>%;"></div>
</ins><span class="cx" style="display: block; padding: 0 10px">                 </div>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                <div class="project-box-footer">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                        <ul class="projects-dropdown">
+                               <li><span>All Sub-Projects</span>
+                                       <ul>
+                                               <?php
+                                               // Show the current project if it has strings.
+                                               if ( $sub_project_status->all_count ) {
+                                                       printf(
+                                                               '<li><a href="%s">%s <span>%s</span></a>',
+                                                               gp_url_project( $sub_project->path, gp_url_join( $locale->slug, $set_slug ) ),
+                                                               $sub_project->name,
+                                                               $sub_project_status->percent_complete . '%'
+                                                       );
+                                               }
+
+                                               foreach ( $sub_projects as $_sub_project ) {
+                                                       $status = $sub_project_statuses[ $_sub_project->id ];
+
+                                                       printf(
+                                                               '<li><a href="%s">%s <span>%s</span></a>',
+                                                               gp_url_project( $_sub_project->path, gp_url_join( $locale->slug, $set_slug ) ),
+                                                               $_sub_project->name,
+                                                               $status->percent_complete . '%'
+                                                       );
+                                               }
+                                               ?>
+                                       </ul>
+                               </li>
+                       </ul>
</ins><span class="cx" style="display: block; padding: 0 10px">                 </div>
</span><span class="cx" style="display: block; padding: 0 10px">        </div>
</span><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -84,10 +110,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                <tr>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td class="set-name">
</span><span class="cx" style="display: block; padding: 0 10px">                                                <strong><?php gp_link( gp_url_project( $sub_project->path, gp_url_join( $locale->slug, $set_slug ) ), $sub_project->name ); ?></strong>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                <?php if ( $sub_project_status->current_count && $sub_project_status->current_count >= $sub_project_status->all_count * 0.9 ):
-                                                       $percent = floor( $sub_project_status->current_count / $sub_project_status->all_count * 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         <?php if ( $sub_project_status->percent_complete > 90 ):
</ins><span class="cx" style="display: block; padding: 0 10px">                                                         ?>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                        <span class="bubble morethan90"><?php echo $percent; ?>%</span>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                                 <span class="bubble morethan90"><?php echo $sub_project_status->percent_complete; ?>%</span>
</ins><span class="cx" style="display: block; padding: 0 10px">                                                 <?php endif;?>
</span><span class="cx" style="display: block; padding: 0 10px">                                        </td>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td class="stats translated">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -115,10 +140,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                <tr>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td class="set-name">
</span><span class="cx" style="display: block; padding: 0 10px">                                                <strong><?php gp_link( gp_url_project( $sub_project->path, gp_url_join( $locale->slug, $set_slug ) ), $sub_project->name ); ?></strong>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                <?php if ( $status->current_count && $status->current_count >= $status->all_count * 0.9 ):
-                                                       $percent = floor( $status->current_count / $status->all_count * 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         <?php if ( $status->percent_complete > 90 ):
</ins><span class="cx" style="display: block; padding: 0 10px">                                                         ?>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                        <span class="bubble morethan90"><?php echo $percent; ?>%</span>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                                 <span class="bubble morethan90"><?php echo $status->percent_complete; ?>%</span>
</ins><span class="cx" style="display: block; padding: 0 10px">                                                 <?php endif;?>
</span><span class="cx" style="display: block; padding: 0 10px">                                        </td>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td class="stats translated">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -154,6 +178,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                window.location = projectUrl;
</span><span class="cx" style="display: block; padding: 0 10px">                        }
</span><span class="cx" style="display: block; padding: 0 10px">                });
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               $( '.projects-dropdown > li' ).on( 'click', function() {
+                       $( this ).parent( '.projects-dropdown' ).toggleClass( 'open' );
+               });
</ins><span class="cx" style="display: block; padding: 0 10px">         });
</span><span class="cx" style="display: block; padding: 0 10px"> </script>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="sitestrunktranslatewordpressorgpublic_htmlgptemplateslocaleprojectsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/translate.wordpress.org/public_html/gp-templates/locale-projects.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/translate.wordpress.org/public_html/gp-templates/locale-projects.php  2015-07-11 16:01:36 UTC (rev 1733)
+++ sites/trunk/translate.wordpress.org/public_html/gp-templates/locale-projects.php    2015-07-12 17:42:47 UTC (rev 1734)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3,7 +3,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> $breadcrumb   = array();
</span><span class="cx" style="display: block; padding: 0 10px"> $breadcrumb[] = gp_link_get( '/', __( 'Locales' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-$breadcrumb[] = esc_html( $locale->english_name );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+$breadcrumb[] = gp_link_get( gp_url_join( '/locale', $locale_slug, $set_slug ), esc_html( $locale->english_name ) );
+$breadcrumb[] = esc_html( $project->name );
</ins><span class="cx" style="display: block; padding: 0 10px"> gp_breadcrumb( $breadcrumb );
</span><span class="cx" style="display: block; padding: 0 10px"> gp_tmpl_header();
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -77,7 +78,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $percent_complete = $waiting = $sub_projects_count = 0;
</span><span class="cx" style="display: block; padding: 0 10px">                if ( isset( $project_status[ $sub_project->id ] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $status = $project_status[ $sub_project->id ];
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $percent_complete = floor( $status->current_count / $status->all_count * 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $percent_complete = $status->percent_complete;
</ins><span class="cx" style="display: block; padding: 0 10px">                         $waiting = $status->waiting_count;
</span><span class="cx" style="display: block; padding: 0 10px">                        $sub_projects_count = $status->sub_projects_count;
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span></span></pre></div>
<a id="sitestrunktranslatewordpressorgpublic_htmlgptemplatesstylecss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/translate.wordpress.org/public_html/gp-templates/style.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/translate.wordpress.org/public_html/gp-templates/style.css    2015-07-11 16:01:36 UTC (rev 1733)
+++ sites/trunk/translate.wordpress.org/public_html/gp-templates/style.css      2015-07-12 17:42:47 UTC (rev 1734)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -14,6 +14,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">        margin: 2px 0 .6em;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+.gp-content h3 {
+       background: none;
+       padding: 0;
+       margin: 2px 0 .6em;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> .gp-content span.breadcrumb {
</span><span class="cx" style="display: block; padding: 0 10px">        margin: .5em 0;
</span><span class="cx" style="display: block; padding: 0 10px">        display: block;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -53,6 +60,146 @@
</span><span class="cx" style="display: block; padding: 0 10px">        margin-bottom: 1em;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/* Change some colors (http://codepen.io/hugobaeta/full/RNOzoV/) */
+span.morethan90 {
+       background: none;
+       font-size: 90%;
+       color: #509040;
+}
+
+span.context {
+       font-size: 90%;
+       background-color: #a0a5aa;
+}
+
+table.translations td.translation li {
+       border-bottom: 1px dotted #eee;
+}
+
+table.translations thead th,
+table.translations tfoot th,
+table.translation-sets thead th,
+table.translations tfoot th,
+table.glossary thead th,
+table.locale-sub-projects thead th,
+table.locales thead th {
+       background-color: #72777c;
+       color: #fff;
+}
+
+table.translations,
+table.translation-sets,
+table.glossary,
+table.locale-sub-projects {
+       border-spacing: 0;
+}
+
+table.translations td,
+table.translations th,
+table.translation-sets td,
+table.translation-sets th,
+table.locales td,
+table.locales th,
+table.glossary th,
+table.glossary td,
+table.locale-sub-projects th,
+table.locale-sub-projects td {
+       border: 0;
+       border-bottom: 1px solid #eee;
+       border-right: 1px solid #eee;
+}
+
+table.translations td:first-child,
+table.translations th:first-child,
+table.translation-sets td:first-child,
+table.translation-sets th:first-child,
+table.locales td:first-child,
+table.locales th:first-child,
+table.glossary th:first-child,
+table.glossary td:first-child,
+table.locale-sub-projects th:first-child,
+table.locale-sub-projects td:first-child {
+       border-left: 1px solid #eee;
+}
+
+table.translations tr.even,
+.translation-sets tr,
+.locales tr {
+       background-color: #f9f9f9;
+}
+
+.translation-sets tr.odd:hover,
+.locales tr.odd:hover,
+.translation-sets tr:hover,
+.locales tr:hover,
+.locale-sub-projects tr:hover td {
+       background-color: #e5f5fa;
+}
+
+table.translations tr.preview.status-current,
+#legend .status-current {
+       background-color: #c1e1b9;
+}
+
+table.translations tr.preview.status-waiting,
+#legend .status-waiting {
+       background-color: #ffe399;
+}
+
+table.translations tr.preview.status-fuzzy, #legend .status-fuzzy {
+       background-color: #fbc5a9;
+}
+
+table.translations tr.preview.has-warnings td.original,
+div#legend div.has-warnings {
+       border-left: 3px solid #dc3232;
+}
+
+table.translations tr.preview.status-rejected,
+#legend .status-rejected {
+       background-color: #f1adad;
+}
+
+table.translations tr.preview.status-old,
+#legend .status-old {
+       background-color: #cdc5e1;
+}
+
+table.translations tr.editor {
+       background-color: #eff7ed;
+}
+
+.gp-content .meta {
+       color: #333;
+}
+
+.gp-content .meta a {
+       color: #0074a2;
+       border-bottom: 0;
+}
+
+.gp-content .meta a:hover {
+       color: #2ea2cc;
+       border-bottom: 0;
+}
+
+.editor .original {
+       margin-bottom: 1em;
+       word-break: break-all;
+}
+
+.editor .textareas textarea {
+       width: 100%;
+       box-sizing: border-box;
+}
+
+.editor .meta {
+       margin: 0;
+       padding-left: 2em;
+       width: 40%;
+       box-sizing: border-box;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> #gp-footer {
</span><span class="cx" style="display: block; padding: 0 10px">        clear: both;
</span><span class="cx" style="display: block; padding: 0 10px">        font-family: 'Open Sans' !important;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -296,6 +443,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> .locale .percent,
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.project-box .percent,
</ins><span class="cx" style="display: block; padding: 0 10px"> .project .percent {
</span><span class="cx" style="display: block; padding: 0 10px">        width: 100%;
</span><span class="cx" style="display: block; padding: 0 10px">        height: 4px;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -303,6 +451,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> .locale .percent-complete,
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.project-box .percent-complete,
</ins><span class="cx" style="display: block; padding: 0 10px"> .project .percent-complete {
</span><span class="cx" style="display: block; padding: 0 10px">        height: 4px;
</span><span class="cx" style="display: block; padding: 0 10px">        background-color: #509040;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -472,6 +621,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        float: left;
</span><span class="cx" style="display: block; padding: 0 10px">        width: 100%;
</span><span class="cx" style="display: block; padding: 0 10px">        max-width: 520px;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+        margin-top: 20px;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> .project-header .project-box {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -486,7 +636,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">        box-sizing: border-box;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.project-box.percent-100 {
+       border-color: #509040;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> .project-box .project-box-header {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+        position: relative;
</ins><span class="cx" style="display: block; padding: 0 10px">         padding: 15px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -554,20 +709,97 @@
</span><span class="cx" style="display: block; padding: 0 10px">        border-left: 1px solid #eee;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.project-box .project-box-footer {
+       background: #f9f9f9;
+}
+
+ul.projects-dropdown,
+ul.projects-dropdown ul {
+       padding: 0;
+}
+
+.projects-dropdown li {
+       list-style: none;
+}
+
+.projects-dropdown a,
+.projects-dropdown a:hover,
+.projects-dropdown a:focus {
+       color: #333;
+}
+
+.projects-dropdown a:hover,
+.projects-dropdown a:focus {
+       background: #ddd;
+}
+
+ul.projects-dropdown ul {
+       position: absolute;
+       left: -1px;
+       width: 100%;
+       background: #f9f9f9;
+       border: 1px solid #ccc;
+       border-top: 0;
+       -webkit-box-shadow: 1px 1px 1px 0 rgba(0,0,0,0.04);
+       box-shadow: 1px 1px 1px 0 rgba(0,0,0,0.04);
+       display: none;
+}
+
+ul.projects-dropdown.open ul {
+       display: block;
+}
+
+ul.projects-dropdown li > span,
+ul.projects-dropdown li > a  {
+       position: relative;
+       display: block;
+       padding: 10px 50px 10px 15px;
+       cursor: pointer;
+       white-space: nowrap;
+       overflow: hidden;
+       text-overflow: ellipsis;
+}
+
+/* Dropdown arrow */
+ul.projects-dropdown > li > span:after {
+       position: absolute;
+       top: 5px;
+       right: 15px;
+       content: "\f140";
+       width: 20px;
+       height: 20px;
+       font: 20px/1 "dashicons";
+       border-left: 1px solid #eee;
+       padding: 5px 0 5px 12px;
+       box-shadow: inset 1px 0 0 #fff;
+       -webkit-font-smoothing: antialiased;
+       -moz-osx-font-smoothing: grayscale;
+}
+
+ul.projects-dropdown.open > li > span:after {
+       content: "\f142";
+}
+
+/* Percentage */
+ul.projects-dropdown li > a > span {
+       position: absolute;
+       right: 15px;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /* Responsive styles */
</span><span class="cx" style="display: block; padding: 0 10px"> @media (max-width: 700px) {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+        #hello {
+               margin: 25px 10px 15px;
+       }
+
+       #hello a {
+               white-space: nowrap;
+       }
+
</ins><span class="cx" style="display: block; padding: 0 10px">         .intro {
</span><span class="cx" style="display: block; padding: 0 10px">                width: 100%;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-}
</del><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-@media only screen and (max-width: 1120px) {
-       .locales .locale {
-               width: 47.917%;
-       }
-}
-
-@media only screen and (max-width: 700px) {
</del><span class="cx" style="display: block; padding: 0 10px">         .locales,
</span><span class="cx" style="display: block; padding: 0 10px">        .projects {
</span><span class="cx" style="display: block; padding: 0 10px">                margin-left: 0;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -578,4 +810,30 @@
</span><span class="cx" style="display: block; padding: 0 10px">                width: 100%;
</span><span class="cx" style="display: block; padding: 0 10px">                margin-left: 0;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+       .locale-intro {
+               float: none;
+       }
+
+       .locale-box {
+               float: none;
+               width: 100%;
+               margin-top: 20px;
+       }
+
+       .project-header .project-description {
+               float: none;
+       }
+
+       .project-header .project-box {
+               float: none;
+               width: 100%;
+               margin-top: 20px;
+       }
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+@media only screen and (max-width: 1120px) {
+       .locales .locale {
+               width: 47.917%;
+       }
+}
</ins></span></pre>
</div>
</div>

</body>
</html>