Skip to content

Commit

Permalink
Fixes #30, #32, #34; Updated for wordpress.org; Added Instagram, Stac…
Browse files Browse the repository at this point in the history
…k Overflow, Bitbucket icons
  • Loading branch information
lacymorrow committed Aug 8, 2014
1 parent 2772bae commit 05d4821
Show file tree
Hide file tree
Showing 15 changed files with 321 additions and 148 deletions.
50 changes: 12 additions & 38 deletions 404.php
Original file line number Diff line number Diff line change
@@ -1,56 +1,30 @@
<?php
/**
* The template for displaying 404 pages (not found).
* The template for displaying 404 pages (Not Found).
*
* @package casper
* @package Casper
*/

get_header(); ?>

get_header();
?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">

<section class="error-404 not-found">
<section class="error-404 not-found hentry">
<header class="page-header">
<h1 class="page-title"><?php _e( 'Oops! That page can&rsquo;t be found.', 'casper' ); ?></h1>
<h2 class="entry-title"><?php _e( 'Oops! That page can&rsquo;t be found.', 'casper' ); ?></h1>
</header><!-- .page-header -->

<div class="page-content">
<p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'casper' ); ?></p>

<?php get_search_form(); ?>

<?php the_widget( 'WP_Widget_Recent_Posts' ); ?>

<?php if ( casper_categorized_blog() ) : // Only show the widget if site has multiple categories. ?>
<div class="widget widget_categories">
<h2 class="widget-title"><?php _e( 'Most Used Categories', 'casper' ); ?></h2>
<ul>
<?php
wp_list_categories( array(
'orderby' => 'count',
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10,
) );
?>
</ul>
</div><!-- .widget -->
<?php endif; ?>

<?php
/* translators: %1$s: smiley */
$archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'casper' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
?>

<?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>
<img class="alignright" src="<?php echo get_template_directory_uri(); ?>/img/404-ghost@2x.png" width="96" height="150">
<p>We tried searching for what you were looking for, but didn&apos;t find anything. Please use the search form below.</p>

<p><?php get_search_form(); ?></p>

</div><!-- .page-content -->
</section><!-- .error-404 -->

</main><!-- #main -->
</div><!-- #primary -->

<?php get_footer(); ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
2 changes: 1 addition & 1 deletion content.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
?>
<header class="post-header">
<?php if ( 'post' == get_post_type() ) : ?>
<span class="post-meta"><?php casper_posted_on(); printf( __( ' on %1$s', 'casper' ), $category_list ); ?></span>
<span class="post-meta"><?php casper_posted_on(); printf( __( ' on ', 'casper' ).'%1$s', $category_list ); ?></span>
<?php endif; ?>
<h2 class="post-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
Expand Down
126 changes: 87 additions & 39 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Author: Lacy Morrow <me@lacymorrow.com>
Author URI: http://lacymorrow.com
Description: A port of Ghost's Casper theme to WordPress
Version: 1.0.7
Version: 1.0.8
License: GNU General Public License v2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casper
Expand Down Expand Up @@ -435,19 +435,35 @@ table
src: url('fonts/fa.eot?#iefix') format('embedded-opentype'), url('fonts/fa.woff') format('woff'), url('fonts/fa.ttf') format('truetype'), url('fonts/fa.svg#icons') format('svg');
}
/* Apply these base styles to all icons */
.icon-github-alt:before,
.icon-youtube-play:before,
.icon-stack-overflow:before,
.icon-bitbucket:before,
.icon-bitbucket-square:before,
.icon-vimeo-square:before,
.icon-behance:before,
.icon-spotify:before,
.icon-deviantart:before,
.icon-soundcloud:before,
.icon-vine:before,
.icon-codepen:before,
.icon-jsfiddle:before,
.icon-send:before,
.icon-ghost:before,
.icon-feed:before,
.icon-twitter:before,
.icon-google-plus:before,
.icon-facebook:before,
.icon-home:before,
.icon-menu:before,
.icon-facebook:before,
.icon-github:before,
.icon-instagram:before,
.icon-google-plus:before,
.icon-envelope:before,
.icon-linkedin:before,
.icon-youtube:before,
.icon-tumblr:before,
.icon-dribbble:before
.icon-dribbble:before,
.icon-flickr:before
{
font-family: 'icons';
font-weight: normal;
Expand All @@ -464,6 +480,62 @@ table
}
/* Each icon is created by inserting the corret character into the
content of the :before pseudo element. Like a boss. */
.icon-github-alt:before
{
content: '\f113';
}
.icon-youtube-play:before
{
content: '\f16a';
}
.icon-stack-overflow:before
{
content: '\f16c';
}
.icon-bitbucket:before
{
content: '\f171';
}
.icon-bitbucket-square:before
{
content: '\f172';
}
.icon-vimeo-square:before
{
content: '\f194';
}
.icon-behance:before
{
content: '\f1b4';
}
.icon-spotify:before
{
content: '\f1bc';
}
.icon-deviantart:before
{
content: '\f1bd';
}
.icon-soundcloud:before
{
content: '\f1be';
}
.icon-vine:before
{
content: '\f1ca';
}
.icon-codepen:before
{
content: '\f1cb';
}
.icon-jsfiddle:before
{
content: '\f1cc';
}
.icon-send:before
{
content: '\f1d8';
}
.icon-ghost:before
{
content: '\e000';
Expand All @@ -474,14 +546,10 @@ table
}
.icon-twitter:before
{
font-size: 1.1em;

content: '\e002';
}
.icon-home:before
{
font-size: 1.1em;

content: '\e600';
}
.icon-menu:before
Expand All @@ -494,10 +562,12 @@ table
}
.icon-github:before
{
font-size: 1.1em;

content: '\e603';
}
.icon-instagram:before
{
content: '\e604';
}
.icon-google-plus:before
{
content: '\e605';
Expand All @@ -520,10 +590,12 @@ table
}
.icon-dribbble:before
{
font-size: 1.1em;

content: '\e60a';
}
.icon-flickr:before
{
content: '\e60b';
}
/* ==========================================================================
2. General - Setting up some base styles
========================================================================== */
Expand Down Expand Up @@ -1084,14 +1156,10 @@ textarea
font-family: 'Open Sans', sans-serif;

width: 100%;
padding: 5px 0;
padding: 5px;

This comment has been minimized.

Copy link
@KeSch

KeSch Aug 12, 2014

Padding on each side (left and right too) leads to an unattractive white border, if you look the site on a smartphone.

screenshot_2014-08-12-17-28-32


color: white;
}
.main-navigation div
{
overflow: hidden;
}
.main-navigation > div
{
width: 80%;
Expand All @@ -1104,7 +1172,6 @@ textarea
font-size: 1.2rem;

float: right;
overflow: hidden;

margin: 0 4rem 0 4rem;
padding: 0;
Expand Down Expand Up @@ -1140,23 +1207,16 @@ textarea
{
position: absolute;
z-index: 99999;
top: 1.5em;
top: 100%;
left: 0;

display: none;
float: left;

box-shadow: 0 3px 3px rgba(0, 0, 0, .2);
}
.main-navigation ul ul ul
{
top: 0;
left: 100%;
}
.main-navigation ul ul a
{
width: 200px;
}
.main-navigation ul li:hover > ul
{
display: block;
Expand Down Expand Up @@ -1774,6 +1834,7 @@ body.home .site-head:after
max-width: 100%;
height: auto;
margin: 0 auto;
padding: 1em;
}
/* The author credit area after the post */
.post-footer
Expand Down Expand Up @@ -2251,10 +2312,6 @@ body.home .site-head:after
{
font-size: 2.8rem;
}
.widget-area aside
{
width: 47%;
}
}
/* ==========================================================================
10. Media Queries - Smaller than 500px
Expand Down Expand Up @@ -2361,15 +2418,6 @@ body.home .site-head:after

margin-top: 6rem;
}
.widget-area aside
{
float: none;

width: auto;
height: auto;

padding: 0;
}
}
/* ==========================================================================
End of file. Media queries should be the last thing here. Do not add stuff
Expand Down
Binary file modified fonts/fa.eot
100644 → 100755
Binary file not shown.

1 comment on commit 05d4821

@lacymorrow
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is why you shouldn't commit when drunk.

Please sign in to comment.