Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Burning through some issues
Browse files Browse the repository at this point in the history
* uup list formatting, link is longer a block, no more 100% wide hit
area.
* blog template allows for content above posts.
* search results limited to excerpts
* sidebar uses same grid breakpoint as main content area (md)
  • Loading branch information
andrewmbacon committed Oct 6, 2014
1 parent 064bfe5 commit 1330281
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 49 deletions.
15 changes: 9 additions & 6 deletions css/uup.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
.uup-list .uup-item .uup-text > span {
display: block;
}
.uup-list .uup-item .uup-text a .uup-name {
display: inline;
}
.uup-list .uup-item .uup-text .uup-name {
font-weight: bold;
}
Expand Down Expand Up @@ -58,21 +61,21 @@
/*
Profile Page
*/
.uup-user {
.page-template-page-user-profile-php .uup-user {
padding: 1em;
}
.uup-user > span {
.page-template-page-user-profile-php .uup-user > span {
display: block;
}
.uup-user .uup-image {
.page-template-page-user-profile-php .uup-user .uup-image {
margin-bottom: 1em;
}
.uup-user .uup-name {
.page-template-page-user-profile-php .uup-user .uup-name {
font-weight: bold;
}
.uup-user .uup-name .uup-first:after {
.page-template-page-user-profile-php .uup-user .uup-name .uup-first:after {
content: ' ';
}
.uup-user .uup-phones .uup-phone2 {
.page-template-page-user-profile-php .uup-user .uup-phones .uup-phone2 {
display: block;
}
1 change: 1 addition & 0 deletions page-blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<div class="col-sm-<?php echo (is_active_sidebar( $sidebar )?9:12); ?>">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php the_content();?>
<?php query_posts('post_type=post&post_status=publish&paged='. get_query_var('paged')); ?>
<?php if( have_posts() ): ?>
<?php while( have_posts() ): the_post(); ?>
Expand Down
72 changes: 38 additions & 34 deletions sass/uup.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
& > span {
display:block;
}

a .uup-name {
display:inline;
}
.uup-name {
font-weight:bold;

Expand Down Expand Up @@ -99,40 +101,42 @@
/*
Profile Page
*/
.uup-user {
padding: 1em;
& > span {
display:block;
}
.uup-image{
margin-bottom:1em;
}
.uup-name {
font-weight:bold;

.uup-first {
&:after {
content:' ';
.page-template-page-user-profile-php {
.uup-user {
padding: 1em;
& > span {
display:block;
}
.uup-image{
margin-bottom:1em;
}
.uup-name {
font-weight:bold;

.uup-first {
&:after {
content:' ';
}
}
.uup-last {}
}
.uup-last {}
}
.uup-title {
}
.uup-phones {
.uup-phone1 {}
.uup-phone2 {
display:block;
.uup-title {
}
.uup-phones {
.uup-phone1 {}
.uup-phone2 {
display:block;
}
}
.uup-email {
}
.uup-fax {
}
.uup-office-location {
}
.uup-office-hours {
}
.uup-mailing-address {
}
}
.uup-email {
}
.uup-fax {
}
.uup-office-location {
}
.uup-office-hours {
}
.uup-mailing-address {
}
}
}
5 changes: 3 additions & 2 deletions search.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@

<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>

<?php get_template_part( 'content', 'search' ); ?>

<h3><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h3>
<p><?php the_excerpt(); ?></p>

<?php endwhile; ?>

Expand Down
2 changes: 1 addition & 1 deletion sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package cornerstone
*/
?>
<div id="secondary" class="col-sm-3 widget-area" role="complementary">
<div id="secondary" class="col-md-3 widget-area" role="complementary">
<?php if ( ! dynamic_sidebar( 'sidebar' ) ) : ?>

<aside id="search" class="widget widget_search">
Expand Down
21 changes: 15 additions & 6 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7434,6 +7434,12 @@ object {
.widget.uc-contact-widget th {
white-space: nowrap;
}
.widget.uc-contact-widget td.uc-output-email {
word-break: break-all;
}
.widget.uc-contact-widget td.uc-output-more {
word-break: break-all;
}
.widget.uc-ecw {
padding-bottom: 1em;
}
Expand Down Expand Up @@ -7664,6 +7670,9 @@ q:before, table q:after {
.uup-list .uup-item .uup-text > span {
display: block;
}
.uup-list .uup-item .uup-text a .uup-name {
display: inline;
}
.uup-list .uup-item .uup-text .uup-name {
font-weight: bold;
}
Expand Down Expand Up @@ -7693,22 +7702,22 @@ q:before, table q:after {
/*
Profile Page
*/
.uup-user {
.page-template-page-user-profile-php .uup-user {
padding: 1em;
}
.uup-user > span {
.page-template-page-user-profile-php .uup-user > span {
display: block;
}
.uup-user .uup-image {
.page-template-page-user-profile-php .uup-user .uup-image {
margin-bottom: 1em;
}
.uup-user .uup-name {
.page-template-page-user-profile-php .uup-user .uup-name {
font-weight: bold;
}
.uup-user .uup-name .uup-first:after {
.page-template-page-user-profile-php .uup-user .uup-name .uup-first:after {
content: ' ';
}
.uup-user .uup-phones .uup-phone2 {
.page-template-page-user-profile-php .uup-user .uup-phones .uup-phone2 {
display: block;
}

Expand Down

0 comments on commit 1330281

Please sign in to comment.