Making WordPress.org

Changeset 929


Ignore:
Timestamp:
10/23/2014 07:44:26 AM (10 years ago)
Author:
coffee2code
Message:

Code Reference: add up/down voting to user contributed notes. Fixes #551

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/functions.php

    r927 r929  
    4040 */
    4141require __DIR__ . '/inc/user-content.php';
     42
     43/**
     44 * Voting for user-submitted content.
     45 */
     46require __DIR__ . '/inc/user-content-voting.php';
    4247
    4348/**
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php

    r928 r929  
    177177
    178178                    <footer class="comment-meta">
     179                        <?php DevHub_User_Submitted_Content_Voting::show_voting(); ?>
    179180                        <div class="comment-author vcard">
    180181                            <span class="comment-author-attribution">
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss

    r900 r929  
    12041204        }
    12051205    }
     1206
     1207    .comment-author {
     1208        float: left;
     1209    }
     1210    .user-note-voting {
     1211        font-size: 1.5em;
     1212        clear: left;
     1213        float: left;
     1214        margin-top: -5px;
     1215        margin-right: 10px;
     1216    }
     1217    .user-note-voting-up .dashicons, .user-note-voting-down .dashicons {
     1218        font-size: 30px;
     1219        height: 30px;
     1220        width: 30px;
     1221        color: #000;
     1222    }
     1223    .user-note-voting-up {
     1224        margin-left: -9px;
     1225    }
     1226    .user-note-voting-count {
     1227        margin-right: -2px;
     1228    }
     1229    .user-voted.user-note-voting-up .dashicons {
     1230        color: green;
     1231    }
     1232    .user-voted.user-note-voting-down .dashicons {
     1233        color: red;
     1234    }
    12061235}
    12071236
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css

    r900 r929  
    13321332  color: #555 !important;
    13331333}
     1334.devhub-wrap .comment-author {
     1335  float: left;
     1336}
     1337.devhub-wrap .user-note-voting {
     1338  font-size: 1.5em;
     1339  clear: left;
     1340  float: left;
     1341  margin-top: -5px;
     1342  margin-right: 10px;
     1343}
     1344.devhub-wrap .user-note-voting-up .dashicons, .devhub-wrap .user-note-voting-down .dashicons {
     1345  font-size: 30px;
     1346  height: 30px;
     1347  width: 30px;
     1348  color: #000;
     1349}
     1350.devhub-wrap .user-note-voting-up {
     1351  margin-left: -9px;
     1352}
     1353.devhub-wrap .user-note-voting-count {
     1354  margin-right: -2px;
     1355}
     1356.devhub-wrap .user-voted.user-note-voting-up .dashicons {
     1357  color: green;
     1358}
     1359.devhub-wrap .user-voted.user-note-voting-down .dashicons {
     1360  color: red;
     1361}
    13341362
    13351363@media (max-width: 60em) {
Note: See TracChangeset for help on using the changeset viewer.