WordPress.org

Make WordPress Themes

Changes from davis/1.03 at r85201 to davis/1.01 at r85201


Ignore:
Location:
davis/1.01
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • davis/1.01/changelog.txt

    r85201 r85201  
    11*** Davis Changelog *** 
    2  
    3  
    4 Version 1.03 (2016-06-18) 
    5 ------------------------- 
    6 - Updated to comply with the new theme directory tags 
    7  
    8  
    9 Version 1.02 (2016-06-18) 
    10 ------------------------- 
    11 - Improved PHP structure, cleaned up CSS 
    122 
    133 
  • davis/1.01/functions.php

    r85201 r85201  
    11<?php 
    22 
    3 /* THEME SETUP 
    4 ------------------------------------------------ */ 
    5  
     3// Theme setup 
    64function davis_setup() { 
    75     
     
    2725     
    2826    // Make the theme translation ready 
    29     load_theme_textdomain( 'davis', get_template_directory() . '/languages' ); 
     27    load_theme_textdomain( 'davis', get_template_directory() . '/languages'); 
    3028     
    3129    $locale_file = get_template_directory() . "/languages/" . get_locale(); 
     
    3937 
    4038 
    41 /* ENQUEUE STYLES 
    42 ------------------------------------------------ */ 
    43  
     39// Register and enqueue styles 
    4440function davis_load_style() { 
    4541    if ( ! is_admin() ) { 
    46         wp_register_style( 'davis_fonts', '//fonts.googleapis.com/css?family=PT+Serif:400,700,400italic,700italic' ); 
    47         wp_enqueue_style( 'davis_style', get_stylesheet_uri(), array( 'davis_fonts' ) ); 
     42        wp_enqueue_style( 'hitchcock_googleFonts', '//fonts.googleapis.com/css?family=PT+Serif:400,700,400italic,700italic' ); 
     43        wp_enqueue_style( 'hitchcock_style', get_stylesheet_uri() ); 
    4844    }  
    4945} 
     
    5147 
    5248 
    53 /* ENQUEUE COMMENT-REPLY.JS 
    54 ------------------------------------------------ */ 
    55  
     49// Enqueue comment-reply.js 
    5650function davis_load_scripts(){ 
    57     if ( ( ! is_admin() ) && is_singular() && comments_open() && get_option( 'thread_comments' ) ) { 
    58         wp_enqueue_script( 'comment-reply' ); 
    59     } 
     51    if ( ( !is_admin() ) && is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); 
    6052} 
    6153add_action( 'wp_print_scripts', 'davis_load_scripts' ); 
  • davis/1.01/style.css

    r85201 r85201  
    22 
    33    Theme Name: Davis 
    4     Text Domain: davis 
    5     Version: 1.03 
     4    Version: 1.01 
    65    Description: Davis is a teeny-tiny WordPress theme that can be used a starter theme or a *really* lightweight blog theme. It consists of just three PHP files and weighs in at 27 KB, excluding screenshot.png. It features the aside post format, featured images and a responsive design. 
    7     Tags: blog, one-column, custom-menu, featured-images, post-formats, threaded-comments, translation-ready 
     6    Tags: white, light, responsive-layout, one-column, featured-images, post-formats, sticky-post, threaded-comments, translation-ready 
    87    Author: Anders Norén 
    98    Author URI: http://www.andersnoren.se 
     
    3332/*  0. CSS Reset 
    3433/* -------------------------------------------------------------------------------- */ 
    35  
    3634 
    3735html, body {  
     
    106104/* -------------------------------------------------------------------------------- */ 
    107105 
    108  
    109106body { 
    110107    background: #fff; 
     
    112109    color: #111; 
    113110    font-size: 18px; 
     111    margin: 0; 
     112    padding: 0; 
    114113} 
    115114 
     
    144143} 
    145144 
    146 input::-webkit-input-placeholder { color: #999; } 
    147 input:-ms-input-placeholder { color: #999; } 
    148 input::-moz-placeholder { color: #999; } 
     145::-webkit-input-placeholder { color: #999; } 
     146:-ms-input-placeholder { color: #999; } 
    149147 
    150148 
     
    152150/*  2.  Structure 
    153151/* -------------------------------------------------------------------------------- */ 
    154  
    155152 
    156153.wrapper { 
     
    164161/*  3.  Header 
    165162/* -------------------------------------------------------------------------------- */ 
    166  
    167163 
    168164.header { margin-bottom: 100px; } 
     
    248244/*  4.  Blog 
    249245/* -------------------------------------------------------------------------------- */ 
    250  
    251246 
    252247.post:before, 
     
    299294/* -------------------------------------------------------------------------------- */ 
    300295 
    301  
    302296.content * { max-width: 100%; } 
    303297 
    304298.content a { border-bottom: 1px solid #111; } 
    305  
    306299.content a:hover {  
    307     border-color: #666; 
     300    border-bottom-color: #666; 
    308301    color: #666; 
    309302    text-decoration: none;  
     
    335328.post hr:before { content: "***"; } 
    336329 
    337 .content > ol, 
    338 .content > ul { 
    339     margin-bottom: 30px; 
    340 } 
    341  
    342330.post ol, 
    343331.post ul { 
    344     margin-left: 1.5rem; 
    345 } 
    346  
    347 .post ul { list-style: disc; } 
     332    margin-bottom: 30px; 
     333} 
     334 
     335.post ul { 
     336    list-style: disc; 
     337    margin-left: 1.5em; 
     338} 
     339 
    348340.post ul ul { list-style: circle; } 
    349341.post ul ul ul { list-style: square; } 
    350342 
    351 .post ol { list-style: decimal; } 
     343.post ol { 
     344    list-style: decimal; 
     345    margin-left: 1.5em; 
     346} 
     347 
    352348.post ol ol { list-style: lower-alpha; } 
    353349.post ol ol ol { list-style: lower-roman; } 
    354350 
    355 .post li { 
    356     line-height: 1.5; 
     351.post ul ul, 
     352.post ul ol, 
     353.post ol ul, 
     354.post ol ol { 
     355    margin-bottom: 0; 
     356} 
     357 
     358.post ol li, 
     359.post ul li { 
     360    line-height: 1.7; 
     361    margin-bottom: 0.5em; 
     362} 
     363 
     364.post ol > li:last-child, 
     365.post ul > li:last-child { 
     366    margin-bottom: 0; 
     367} 
     368 
     369.post ol > li:first-child, 
     370.post ul > li:first-child { 
    357371    margin-top: 0.5em; 
    358372} 
    359  
    360 dd + dt { margin-top: 15px; } 
    361  
    362 /* Quotes ----------------------------- */ 
    363373 
    364374blockquote { 
    365375    border-left: 1px solid #ccc; 
    366     margin: 0 0 30px 0; 
    367     padding: 0 0 0 30px; 
     376    margin-bottom: 30px; 
     377    padding-left: 30px; 
    368378} 
    369379 
    370380blockquote p { font-style: italic; } 
    371381 
     382blockquote cite {  
     383    display: block; 
     384    margin-top: 15px;  
     385} 
     386 
    372387blockquote cite:before { content: "— "; } 
    373388 
    374 /* Media ------------------------------ */ 
     389dd + dt { margin-top: 15px; } 
     390 
     391 
     392/* Media --------------------------------- */ 
     393 
    375394 
    376395div.wp-caption {  
     
    408427.alignright .wp-caption-text { text-align: right; } 
    409428 
    410 /* Inputs ----------------------------- */ 
     429 
     430/* Inputs --------------------------------- */ 
     431 
    411432 
    412433fieldset { 
     
    467488} 
    468489 
    469 /* Tables ----------------------------- */ 
     490 
     491/* Tables --------------------------------- */ 
     492 
    470493 
    471494table { 
     
    514537/* -------------------------------------------------------------------------------- */ 
    515538 
    516  
    517539.comment { margin-top: 40px; } 
    518540 
     
    570592.comment .reply a:hover { text-decoration: underline; } 
    571593 
    572 /* Respond ---------------------------- */ 
     594 
     595/* Respond */ 
     596 
    573597 
    574598.comment-respond p + p { margin-top: 20px; } 
     
    588612/* -------------------------------------------------------------------------------- */ 
    589613 
    590  
    591614.pagination { text-align: center; } 
    592615.pagination * + * { margin-left: 30px; } 
     
    596619/*  8.  Footer 
    597620/* -------------------------------------------------------------------------------- */ 
    598  
    599621 
    600622.footer {  
     
    617639/*  9.  Media Queries 
    618640/* -------------------------------------------------------------------------------- */ 
    619  
    620641 
    621642@media ( max-width: 620px ) { 
     
    672693 
    673694} 
    674  
    675 @media ( max-width: 500px ) { 
    676  
    677     .post:before,  
    678     .comments:before,  
    679     .comment-respond:before,  
    680     .comments .comment-respond:after,  
    681     .pagination:before,  
    682     .footer:before { 
    683         margin: 30px auto; 
    684     } 
    685  
    686 } 
Note: See TracChangeset for help on using the changeset viewer.