Making WordPress.org

Changeset 169


Ignore:
Timestamp:
12/24/2013 08:39:56 AM (13 years ago)
Author:
coffee2code
Message:

jobs.wordpress.net: improve responsiveness for the job listings. see #84

Location:
sites/trunk/jobs.wordpress.net/public_html/wp-content
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/jobs.wordpress.net/public_html/wp-content/plugins/jobswp/jobswp-template.php

    r88 r169  
    8181                        $link .= apply_filters( 'list_cats', $category->name, $category ).'</a>';
    8282        }
    83         $link .= ' '.$after;       
    84         $output .= $link;
    85     $output .= '<div class="grid_2 omega jobs-count">';
    86 
     83
     84        $orig_jobscnt = $jobscnt;
    8785        if ( is_search() ) {
    8886                $feed_link = get_search_feed_link();
     
    9391        }
    9492
    95         $output .= '<a href="' . $feed_link . '"><div class="dashicons dashicons-rss"></div></a>' . $jobscnt . '</div>
     93        $link .= " <span>($orig_jobscnt)</span> $after";
     94        $output .= $link;
     95    $output .= '<div class="grid_2 omega jobs-count">';
     96
     97        $output .= '<a href="' . $feed_link . '"><div class="dashicons dashicons-rss"></div></a><span>' . $jobscnt . '</span></div>
    9698                </div>
    9799                <div class="clear"></div>
     
    120122        $field_label = esc_html( $field_label );
    121123
    122         echo '<div class="post-job-input post-job-input-$field_name">' . "\n";
     124        echo '<div class="post-job-input post-job-input-' . $field_name . '">' . "\n";
    123125        echo "<label for='$field_name'>$field_label" . ( $required ? '*' : '' ) . "</label>\n";
    124126
  • sites/trunk/jobs.wordpress.net/public_html/wp-content/themes/jobswp/style.css

    r123 r169  
    849849        margin: 0;
    850850}
     851.job-list-head h2 span {
     852        display: none;
     853}
    851854.job-list-head h2 a {
    852855        text-decoration: none;
     
    11461149        clear: both;
    11471150        overflow: auto;
    1148         min-width: 932px;
    11491151        margin: 0 auto;
    11501152        padding: 22px 14px 65px 14px;
     
    12121214}
    12131215.jobswp #wporg-footer .wrapper {
    1214         width: inherit;
     1216        width: 100%;
    12151217        text-align: left;
    12161218}
     
    12471249        #subhead .wporg-link a {
    12481250                font-size: 0.78em;
     1251        }
     1252        #wporg-footer ul {
     1253                width: 110px;
    12491254        }
    12501255}
     
    12961301        }
    12971302        #content {
    1298                 padding-top: 30px;
     1303                padding-top: 20px;
    12991304        }
    13001305        #logo {
     
    13451350                height: 50px;
    13461351        }
     1352        .search-form .search-field {
     1353                font-size: 0.8em;
     1354        }
     1355        .search-form input[type="submit"] {
     1356                padding-top: 11px;
     1357                padding-bottom: 11px;
     1358        }
    13471359        #wporg-footer {
    13481360                min-width: inherit;
    13491361        }
    1350 }
     1362        .container .jobs-group .job-list-head.grid_7 {
     1363                width: 260px;
     1364        }
     1365        .container .jobs-group .job-list-head h2 {
     1366                display: inline;
     1367        }
     1368        .container .jobs-group .jobs-count.grid_2 {
     1369                display: inline-block;
     1370                padding-right: 0;
     1371                width: 116px;
     1372        }
     1373        .container .job-list-col-labels {
     1374                display: none;
     1375        }
     1376        .container .jobs-group .job-date {
     1377                width: 75px;
     1378                text-align: center;
     1379                padding-right: 0;
     1380                float: left;
     1381                line-height: 1.1em;
     1382                padding-top: 3px;
     1383                padding-left: 20px;
     1384                margin-left: -75px;
     1385        }
     1386        .container .jobs-group .job-title.grid_4 {
     1387                width: 250px;
     1388                padding-right: 10px;
     1389                width: 311px;
     1390                padding-left: 10px;
     1391        }
     1392        .container .jobs-group .job-type {
     1393                display: inline-block;
     1394                text-align: inherit;
     1395                width: 120px;
     1396                padding-right: 10px;
     1397                padding-left: 10px;
     1398                font-size: 12px;
     1399                color: #999;
     1400        }
     1401        .container .jobs-group .job-location {
     1402                display: inline-block;
     1403                width: 181px;
     1404                text-align: right;
     1405                padding-left: 0;
     1406                padding-right: 0;
     1407        }
     1408        .row.row-0, .row.row-1 {
     1409                padding-left: 65px;
     1410        }
     1411}
     1412
    13511413@media only screen and (max-width: 600px) {
    13521414        .menu {
     
    13691431                vertical-align: middle;
    13701432        }
    1371 }
     1433
     1434}
     1435
     1436@media only screen and (max-width: 479px) {
     1437        #subhead .container, #content {
     1438                padding-left: 10px;
     1439                padding-right: 10px;
     1440                margin-left: 0;
     1441                margin-right: 0;
     1442                width: 100%;
     1443        }
     1444        #subhead .container .grid_9 {
     1445                width: 100%;
     1446        }
     1447        .container .content-area.grid_9, .container .widget-area.grid_3 {
     1448                width: 100%;
     1449        }
     1450        .container .jobs-group .job-list-head.grid_7 {
     1451                width: 235px;
     1452        }
     1453        .container .jobs-group .job-title.grid_4 {
     1454                width: 100%;
     1455                padding-left: 0;
     1456        }
     1457        .container .jobs-group .job-date {
     1458                margin-left: -75px;
     1459                font-size: 0.9em;
     1460        }
     1461        .container .jobs-group .job-type {
     1462                display: inherit;
     1463                width: inherit;
     1464                padding-left: 0;
     1465        }
     1466        .container .jobs-group .job-location {
     1467                display: block;
     1468                width: inherit;
     1469                text-align: left;
     1470                padding-left: 0;
     1471        }
     1472        .row.row-0, .row.row-1 {
     1473                padding-left: 65px;
     1474        }
     1475        .container .jobs-group .row-head {
     1476                position: relative;
     1477        }
     1478        .job-list-head h2:before {
     1479                font-size: 28px;
     1480                margin-top: 2px;
     1481        }
     1482        .job-list-head h2 {
     1483                font-size: 1.35em;
     1484                margin: 0;
     1485        }
     1486        .container .jobs-group .jobs-count.grid_2 {
     1487                position: absolute;
     1488                right: 0;
     1489                top: 4px;
     1490                font-size: 1em;
     1491        }
     1492        .job-list-head h2 span {
     1493                display: inline;
     1494                font-size: 0.7em;
     1495        }
     1496        .container .jobs-group .jobs-count.grid_2 span {
     1497                display: none;
     1498        }
     1499}
     1500
Note: See TracChangeset for help on using the changeset viewer.