From b1447755df4a2647feab21c8c598daa3f3b91bc8 Mon Sep 17 00:00:00 2001 From: Nikolai Kristiansen Date: Fri, 10 May 2013 15:00:39 +0200 Subject: [PATCH] Artist template --- wp-content/themes/studio13/css/app.css | 4 +++- wp-content/themes/studio13/sass/app.scss | 8 +++++++- wp-content/themes/studio13/style.css | 1 - wp-content/themes/studio13/template-artists.php | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/wp-content/themes/studio13/css/app.css b/wp-content/themes/studio13/css/app.css index 8318166..1f7c8a3 100644 --- a/wp-content/themes/studio13/css/app.css +++ b/wp-content/themes/studio13/css/app.css @@ -616,6 +616,8 @@ article .article-footer { text-align: right; margin-bottom: 2em; } .row { /* FIXME: responsive */ width: 1000px; max-width: 1000px; } /* Template styles */ +.template-artists img { display: block; } .template-artists .artists { font-size: 1.5em; text-transform: uppercase; text-align: center; font-weight: bold; } .template-artists .artists .artist-box a { color: #007aff; } -.template-artists .artists .artist-box a:hover { color: white; background-color: #ff005c; } +.template-artists .artists .artist-box a:hover { color: white; } +.template-artists .artists .artist-box a:hover span { display: block; background-color: #ff005c; } diff --git a/wp-content/themes/studio13/sass/app.scss b/wp-content/themes/studio13/sass/app.scss index 5b2917c..5ce11e3 100644 --- a/wp-content/themes/studio13/sass/app.scss +++ b/wp-content/themes/studio13/sass/app.scss @@ -441,6 +441,9 @@ article { } /* Template styles */ .template-artists { + img { + display: block; + } .artists { font-size: 1.5em; @@ -452,7 +455,10 @@ article { color: $primary-color; &:hover { color: white; - background-color: $secondary-color; + span { + display: block; + background-color: $secondary-color; + } } } diff --git a/wp-content/themes/studio13/style.css b/wp-content/themes/studio13/style.css index fc83b9f..6035de8 100644 --- a/wp-content/themes/studio13/style.css +++ b/wp-content/themes/studio13/style.css @@ -5,4 +5,3 @@ Description: Tema for Studiofestivalen 2013 Author: Jenny Jordahl, Nikolai Kristiansen & Jon Arne Berg Author URI: http://kak.neuf.no Version: 1.0 -Tags: flexble-width, translation-ready, microformats, rtl-language-support diff --git a/wp-content/themes/studio13/template-artists.php b/wp-content/themes/studio13/template-artists.php index 9193442..04c359e 100644 --- a/wp-content/themes/studio13/template-artists.php +++ b/wp-content/themes/studio13/template-artists.php @@ -21,7 +21,7 @@ Template Name: Artists page /* Print our custom post type */ $query = new WP_Query( array ( 'post_type' => 'artist', 'orderby' => 'title', 'order' => 'asc') ); while ( $query->have_posts() ): - $query->the_post(); ?>
  • the_post(); ?>