From: Laury GvR Date: Thu, 1 Oct 2015 13:15:44 +0000 (-0400) Subject: Image captions, central swing shadow, central swing centered/limited in width, search... X-Git-Tag: v1.0.0^2~56 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e1894e510fdd2603639f97412abbb7022af0f050;p=WP-Themes%2Fmountpleasantwow.git Image captions, central swing shadow, central swing centered/limited in width, search result background, more posts on home page, sidebar blog maches homepage, bottom sidebar corners rounded --- diff --git a/functions.php b/functions.php index 49fa1cf..d1cbe48 100644 --- a/functions.php +++ b/functions.php @@ -401,7 +401,4 @@ add_action('thematic_searchloop', 'mytheme_search_loop'); //} //add_filter('the_content', 'custom_content'); -?> - - - +?> \ No newline at end of file diff --git a/parts/blog-feed-front.php b/parts/blog-feed-front.php index 4556186..a96932b 100644 --- a/parts/blog-feed-front.php +++ b/parts/blog-feed-front.php @@ -1,5 +1,5 @@ 3, 'order_by' => 'date'); + $args = array('numberposts' => 5, 'order_by' => 'date'); $lastposts = get_posts( $args ); if ($lastposts) { ?> diff --git a/parts/blog-sidebar-r.php b/parts/blog-sidebar-r.php index 1cb0327..c1d43f2 100644 --- a/parts/blog-sidebar-r.php +++ b/parts/blog-sidebar-r.php @@ -1,11 +1,11 @@ -
+
-

Recent Posts

+

Recent Posts

    '5' ); @@ -15,9 +15,9 @@ } ?>
-

Archive

+

Archive

    'monthly', 'limit' => 12 ) ); ?>
-

Categories

+

Categories

    div { +.blog-home #blog-posts-over > div { margin: 25px 0; } #blog-side-info { background: #f4f9fd; + border-bottom-left-radius: 12px; + border-bottom-right-radius: 12px; #searchform { margin-bottom: 30px; } p { margin-bottom: 0; } + h2 { + color: #690433; + font-family: "Kaushan Script"; + font-size: 36px; + margin: 0 auto; + padding-bottom: 10px; + } } .blog-archive { #head-img { @@ -253,6 +265,17 @@ input[type="submit"].blogbutton { margin-top: -250px; } } + #blog-posts-over { + top: -35px; + } +} +#blog-side-info-wrapper { + top: -57px; +} +@media #{$medium-only} { + #blog-side-info-wrapper { + top: -10px; + } } @media #{$small-only} { #blog-side-info-wrapper { @@ -276,7 +299,7 @@ input[type="submit"].blogbutton { } } #blog-side-info { - padding: 16px 10px 0; + padding: 40px 10px 20px; background: #f4f9fd; border: none; ul { diff --git a/scss/_main.scss b/scss/_main.scss index 17837f9..901dccd 100644 --- a/scss/_main.scss +++ b/scss/_main.scss @@ -147,6 +147,9 @@ img.orb-shadow { } main { + .wp-caption p.wp-caption-text { + text-align: left; + } p a { /* font-style: italic; font-family: "Times New Roman"*/ @@ -301,40 +304,47 @@ main { top: -10px; } } - #mid { - margin-top: 20px; - img { - margin: 0 auto; - width: 100%; - height: 175px; + } + #mid { + margin: 20px auto 0; + max-width: 1000px; + img { + margin: 0 auto; + width: 100%; + height: 175px; + margin-top: -31px; + -webkit-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.5); + -moz-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.5); + -ms-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.5); + box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.5); + } + #golf { + margin-bottom: 50px; + h2 { + color: $blue; } - #golf { - margin-bottom: 50px; - h2 { - color: $blue; + #request { + margin-top: -20px; + padding: 0; + @media #{$medium-only} { + padding-left: 15px; } - #request { - margin-top: -20px; - padding: 0; - @media #{$medium-only} { - padding-left: 15px; - } - img { - width: auto; - margin: 0 auto; - -webkit-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.5); - -moz-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.5); - -ms-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.5); - box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.5); - @media #{$small-only} { - box-shadow: none; - margin-bottom: 15px; - } + img { + width: auto; + margin: 0 auto; + -webkit-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.5); + -moz-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.5); + -ms-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.5); + box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.5); + @media #{$small-only} { + box-shadow: none; + margin-bottom: 15px; } } } } } + } #head-img { background: url(../assets/interior-pg-sample-header-image.jpg) no-repeat; diff --git a/scss/_page.header.scss b/scss/_page.header.scss index 08c913c..e403ff4 100644 --- a/scss/_page.header.scss +++ b/scss/_page.header.scss @@ -1,5 +1,8 @@ header#page-header { height: 295px; + @media #{$small-only} { + height: 185px; + } @include gradient (rgba($black, 0.95), rgba($black, 0)); position: relative; padding-top: 11px; diff --git a/scss/_wordpress.scss b/scss/_wordpress.scss index 052e28b..1acbd5b 100644 --- a/scss/_wordpress.scss +++ b/scss/_wordpress.scss @@ -223,13 +223,12 @@ img.alignleft, img.alignright, img.aligncenter, img.alignnone, div.wp-caption im text-align: center; div { input.blogbutton { - @include gradient(#1999ce, #107098); +/* @include gradient(#1999ce, #107098);*/ } } } #blog-side-info { border-left: 1px solid grey; - margin-top: 30px; padding-left: 20px; @media #{$small-only} { text-align: center; diff --git a/search.php b/search.php index 0cc8f43..a7487a4 100644 --- a/search.php +++ b/search.php @@ -9,7 +9,7 @@

    Please enter a query in the search box.


    Search Results for ""

    -
    +
    post_type=='page')) continue; ?>
    @@ -105,39 +105,6 @@

    -
    -
    -
    -
    -
    - -
    -
    -

    Recent Posts

    -
      - '5' ); - $recent_posts = wp_get_recent_posts( $args ); - foreach( $recent_posts as $recent ){ - echo '
    • ' . $recent["post_title"].'
    • '; - } - ?> -
    -

    Archive

    -
      'monthly', 'limit' => 12 ) ); ?>
    -

    Categories

    - -
    diff --git a/single.php b/single.php index b37327f..3bf69b3 100644 --- a/single.php +++ b/single.php @@ -10,7 +10,7 @@ if (is_single() && is_post_type('ai1ec_event')){ echo '
    '; } else { - echo '
    '; + echo '
    '; } ?>