WordPress.org

Make WordPress Themes

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


Ignore:
Location:
davis/1.03
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • davis/1.03/changelog.txt

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

    r85617 r85617  
    11<?php 
    22 
    3 // Theme setup 
     3/* THEME SETUP 
     4------------------------------------------------ */ 
     5 
    46function davis_setup() { 
    57     
     
    2527     
    2628    // Make the theme translation ready 
    27     load_theme_textdomain( 'davis', get_template_directory() . '/languages'); 
     29    load_theme_textdomain( 'davis', get_template_directory() . '/languages' ); 
    2830     
    2931    $locale_file = get_template_directory() . "/languages/" . get_locale(); 
     
    3739 
    3840 
    39 // Register and enqueue styles 
     41/* ENQUEUE STYLES 
     42------------------------------------------------ */ 
     43 
    4044function davis_load_style() { 
    4145    if ( ! is_admin() ) { 
    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() ); 
     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' ) ); 
    4448    }  
    4549} 
     
    4751 
    4852 
    49 // Enqueue comment-reply.js 
     53/* ENQUEUE COMMENT-REPLY.JS 
     54------------------------------------------------ */ 
     55 
    5056function davis_load_scripts(){ 
    51     if ( ( !is_admin() ) && is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); 
     57    if ( ( ! is_admin() ) && is_singular() && comments_open() && get_option( 'thread_comments' ) ) { 
     58        wp_enqueue_script( 'comment-reply' ); 
     59    } 
    5260} 
    5361add_action( 'wp_print_scripts', 'davis_load_scripts' ); 
  • davis/1.03/style.css

    r85617 r85617  
    22 
    33    Theme Name: Davis 
    4     Version: 1.01 
     4    Text Domain: davis 
     5    Version: 1.03 
    56    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. 
    6     Tags: white, light, responsive-layout, one-column, featured-images, post-formats, sticky-post, threaded-comments, translation-ready 
     7    Tags: blog, one-column, custom-menu, featured-images, post-formats, threaded-comments, translation-ready 
    78    Author: Anders Norén 
    89    Author URI: http://www.andersnoren.se 
     
    3233/*  0. CSS Reset 
    3334/* -------------------------------------------------------------------------------- */ 
     35 
    3436 
    3537html, body {  
     
    104106/* -------------------------------------------------------------------------------- */ 
    105107 
     108 
    106109body { 
    107110    background: #fff; 
     
    109112    color: #111; 
    110113    font-size: 18px; 
    111     margin: 0; 
    112     padding: 0; 
    113114} 
    114115 
     
    143144} 
    144145 
    145 ::-webkit-input-placeholder { color: #999; } 
    146 :-ms-input-placeholder { color: #999; } 
     146input::-webkit-input-placeholder { color: #999; } 
     147input:-ms-input-placeholder { color: #999; } 
     148input::-moz-placeholder { color: #999; } 
    147149 
    148150 
     
    150152/*  2.  Structure 
    151153/* -------------------------------------------------------------------------------- */ 
     154 
    152155 
    153156.wrapper { 
     
    161164/*  3.  Header 
    162165/* -------------------------------------------------------------------------------- */ 
     166 
    163167 
    164168.header { margin-bottom: 100px; } 
     
    244248/*  4.  Blog 
    245249/* -------------------------------------------------------------------------------- */ 
     250 
    246251 
    247252.post:before, 
     
    294299/* -------------------------------------------------------------------------------- */ 
    295300 
     301 
    296302.content * { max-width: 100%; } 
    297303 
    298304.content a { border-bottom: 1px solid #111; } 
     305 
    299306.content a:hover {  
    300     border-bottom-color: #666; 
     307    border-color: #666; 
    301308    color: #666; 
    302309    text-decoration: none;  
     
    328335.post hr:before { content: "***"; } 
    329336 
     337.content > ol, 
     338.content > ul { 
     339    margin-bottom: 30px; 
     340} 
     341 
    330342.post ol, 
    331343.post ul { 
    332     margin-bottom: 30px; 
    333 } 
    334  
    335 .post ul { 
    336     list-style: disc; 
    337     margin-left: 1.5em; 
    338 } 
    339  
     344    margin-left: 1.5rem; 
     345} 
     346 
     347.post ul { list-style: disc; } 
    340348.post ul ul { list-style: circle; } 
    341349.post ul ul ul { list-style: square; } 
    342350 
    343 .post ol { 
    344     list-style: decimal; 
    345     margin-left: 1.5em; 
    346 } 
    347  
     351.post ol { list-style: decimal; } 
    348352.post ol ol { list-style: lower-alpha; } 
    349353.post ol ol ol { list-style: lower-roman; } 
    350354 
    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 { 
     355.post li { 
     356    line-height: 1.5; 
    371357    margin-top: 0.5em; 
    372358} 
     359 
     360dd + dt { margin-top: 15px; } 
     361 
     362/* Quotes ----------------------------- */ 
    373363 
    374364blockquote { 
    375365    border-left: 1px solid #ccc; 
    376     margin-bottom: 30px; 
    377     padding-left: 30px; 
     366    margin: 0 0 30px 0; 
     367    padding: 0 0 0 30px; 
    378368} 
    379369 
    380370blockquote p { font-style: italic; } 
    381371 
    382 blockquote cite {  
    383     display: block; 
    384     margin-top: 15px;  
    385 } 
    386  
    387372blockquote cite:before { content: "— "; } 
    388373 
    389 dd + dt { margin-top: 15px; } 
    390  
    391  
    392 /* Media --------------------------------- */ 
    393  
     374/* Media ------------------------------ */ 
    394375 
    395376div.wp-caption {  
     
    427408.alignright .wp-caption-text { text-align: right; } 
    428409 
    429  
    430 /* Inputs --------------------------------- */ 
    431  
     410/* Inputs ----------------------------- */ 
    432411 
    433412fieldset { 
     
    488467} 
    489468 
    490  
    491 /* Tables --------------------------------- */ 
    492  
     469/* Tables ----------------------------- */ 
    493470 
    494471table { 
     
    537514/* -------------------------------------------------------------------------------- */ 
    538515 
     516 
    539517.comment { margin-top: 40px; } 
    540518 
     
    592570.comment .reply a:hover { text-decoration: underline; } 
    593571 
    594  
    595 /* Respond */ 
    596  
     572/* Respond ---------------------------- */ 
    597573 
    598574.comment-respond p + p { margin-top: 20px; } 
     
    612588/* -------------------------------------------------------------------------------- */ 
    613589 
     590 
    614591.pagination { text-align: center; } 
    615592.pagination * + * { margin-left: 30px; } 
     
    619596/*  8.  Footer 
    620597/* -------------------------------------------------------------------------------- */ 
     598 
    621599 
    622600.footer {  
     
    639617/*  9.  Media Queries 
    640618/* -------------------------------------------------------------------------------- */ 
     619 
    641620 
    642621@media ( max-width: 620px ) { 
     
    693672 
    694673} 
     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.