Skip to content

Commit

Permalink
Heade, Comments
Browse files Browse the repository at this point in the history
better full bleed markup
links to "?" hrefs won't be flagged as external.
Beginning to work up comments styles
  • Loading branch information
andrewmbacon committed Jun 27, 2014
1 parent 573bf27 commit 8f33b73
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 33 deletions.
6 changes: 4 additions & 2 deletions comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@
<ol class="comment-list">
<?php
wp_list_comments( array(
'style' => 'ol',
'short_ping' => true,
'style' => 'ol',
'type' => 'comment',
'short_ping' => true,
'avatar_size' => 0,
) );
?>
</ol><!-- .comment-list -->
Expand Down
5 changes: 2 additions & 3 deletions js/cs.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ jQuery(document).ready(function($) {
var ext = null
var flag = null

if (href.charAt(0) != '#' && img == 0 ){
if ((href.charAt(0) != '#' || href.charAt(0) != '?') && img == 0 ){

var hrefExploded = href.split('/')
base = hrefExploded[2]


if (base != site) {
//console.log('external link detected, adding icon...')
// is external, and is not a named anchor tag
Expand Down
2 changes: 1 addition & 1 deletion js/min/cs.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 22 additions & 15 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
/*
Theme Name: Cornerstone
<<<<<<< HEAD
Theme URI: http://github.com/uconnwebdev/cornerstone
Author: Andrew Bacon of the UConn Web Development Lab
Author URI: http://andrewbacon.net
=======
Author: UConn Web Development Lab
>>>>>>> FETCH_HEAD
Description: Parent theme for University of Connecticut
Version: 1
Text Domain: cs
Expand Down Expand Up @@ -70,6 +64,10 @@ Text Domain: cs

/* UConn Branding
--------------------------------------------------------------*/
#uc-header {
border-bottom: 1px solid #fff;
}

#uc-site-header {
padding-top: 30px;
}
Expand Down Expand Up @@ -233,11 +231,6 @@ img {
padding: 1em;
}

.comments-area {
background-color: white;
padding: 1em;
}

#footer {
margin: 1.5em 0;
}
Expand Down Expand Up @@ -328,6 +321,10 @@ code {
margin: 0 0 1.5em;
}

.nav-next {
text-align: right;
}

/*--------------------------------------------------------------
10.2 Asides
--------------------------------------------------------------*/
Expand All @@ -339,12 +336,22 @@ code {
/*--------------------------------------------------------------
10.3 Comments
--------------------------------------------------------------*/
.comment-content a {
word-wrap: break-word;
.comment-list {
padding: 0;
list-style-type: none;
}

.nav-next {
text-align: right;
.comment {
padding: 1em;
border-top: 1px solid #ccc;
}

.comment.thread-odd {
background-color: #f5f5f5;
}

.comment-content a {
word-wrap: break-word;
}

/*--------------------------------------------------------------
Expand Down
42 changes: 30 additions & 12 deletions style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ url('../../global/fonts/proximanova_semibold/ProximaNova-Sbold-webfont.ttf') for
/* UConn Branding
--------------------------------------------------------------*/

#uc-header{
border-bottom:1px solid #fff;
}

#uc-site-header {
padding-top:30px;
Expand Down Expand Up @@ -278,10 +281,6 @@ img {



.comments-area {
background-color: $contentBg;
padding: $contentPadding;
}

#footer {
margin:1.5em 0;
Expand Down Expand Up @@ -396,6 +395,11 @@ code {
margin: 0 0 1.5em;
}

.nav-next {
text-align:right;
}


/*--------------------------------------------------------------
10.2 Asides
--------------------------------------------------------------*/
Expand All @@ -407,17 +411,31 @@ code {
/*--------------------------------------------------------------
10.3 Comments
--------------------------------------------------------------*/
.comment-content a {
word-wrap: break-word;
}
.bypostauthor {
}


.comments-area {

.nav-next {
text-align:right;
}


.comment-list {
padding:0;
list-style-type:none;
}

.comment {
padding:$contentPadding;
border-top:1px solid #ccc;
}
.comment.thread-odd {
background-color:#f5f5f5;
}

.comment-content a {
word-wrap: break-word;
}





/*--------------------------------------------------------------
Expand Down

0 comments on commit 8f33b73

Please sign in to comment.