WordPress.org

Make WordPress Themes

Changes from amethyst/1.0.3 at r84209 to amethyst/1.0.4 at r84209


Ignore:
Location:
amethyst
Files:
3 added
6 deleted
24 edited

Legend:

Unmodified
Added
Removed
  • amethyst/1.0.4/assets/css/editor-style.css

    r84209 r84209  
    283283  color: #454545; 
    284284  font-family: Menlo, Consolas, Courier, sans-serif; 
    285   font-size: 0.75rem; 
     285  font-size: 80%; 
    286286  word-wrap: normal; 
    287287  overflow-x: auto; 
    288288} 
    289 pre code { 
     289pre > code { 
    290290  background-color: transparent; 
     291  padding: 0; 
    291292} 
    292293code { 
     
    294295  border: none; 
    295296  border-radius: 3px; 
    296   color: #cc0000; 
     297  color: #454545; 
    297298  font-family: Menlo, Consolas, Courier, sans-serif; 
    298   font-size: 0.75rem; 
     299  font-size: 80%; 
     300  padding: 2px 4px; 
    299301} 
    300302kbd { 
     
    305307  color: #ffffff; 
    306308  font-family: Menlo, Consolas, Courier, sans-serif; 
    307   font-size: 0.75rem; 
     309  font-size: 80%; 
    308310  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); 
    309311} 
  • amethyst/1.0.4/assets/js/customizer.min.js

    r84209 r84209  
    1 !function(i){$siteTitle=i(".site-title a"),$siteDesc=i(".site-description"),$siteBrand=i(".site-title a, .site-description"),$copyRight=i("#copy"),$api=wp.customize,$api("blogname",function(i){i.bind(function(i){$siteTitle.text(i)})}),$api("blogdescription",function(i){i.bind(function(i){$siteDesc.text(i)})}),$api("header_textcolor",function(i){i.bind(function(i){$siteBrand.css("blank"===i?{clip:"rect(1px, 1px, 1px, 1px)",position:"absolute"}:{clip:"auto",color:i,position:"relative"})})})}(jQuery); 
     1!function(i){$siteTitle=i(".site-title a"),$siteDesc=i(".site-description"),$siteBrand=i(".site-title a, .site-description"),$copyRight=i("#copy"),$api=wp.customize,$api("blogname",function(i){i.bind(function(i){$siteTitle.text(i)})}),$api("blogdescription",function(i){i.bind(function(i){$siteDesc.text(i)})}),$api("header_textcolor",function(i){i.bind(function(i){"blank"===i?$siteBrand.css({clip:"rect(1px, 1px, 1px, 1px)",position:"absolute"}):$siteBrand.css({clip:"auto",color:i,position:"relative"})})})}(jQuery); 
  • amethyst/1.0.4/footer.php

    r84209 r84209  
    2727      <div class="siteinfo"> 
    2828        <div class="siteinfo__inner"> 
    29             <p id="credit" class="siteinfo__text"> 
    30                 <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'amethyst' ) ); ?>"><?php printf( esc_html__( 'Proudly powered by %s', 'amethyst' ), 'WordPress' ); ?></a> 
     29            <p id="credit" class="siteinfo__credit"> 
     30                <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'amethyst' ), 'WordPress' ); ?>"><?php printf( esc_html__( 'Proudly powered by %s', 'amethyst' ), 'WordPress' ); ?></a> 
     31                <span class="siteinfo__sep">&nbsp;|&nbsp;</span> 
     32                <a href="<?php echo esc_url( __( 'http://asknode.net/', 'amethyst' ), 'featherplain' ); ?>"><?php printf( esc_html__( 'Theme by %s', 'amethyst' ), 'featherplain' ); ?></a> 
    3133                    </p> 
     34                    <p id="copy" class="siteinfo__copy">&copy;&nbsp;<?php echo date('Y'); ?>&nbsp;<?php bloginfo( 'name' ); ?></p> 
    3235        </div> 
    33       </div> 
    34     </footer><!-- /.l-footer--> 
     36      </div><!-- / .siteinfo --> 
     37    </footer><!-- / .l-footer --> 
    3538 
    3639    </div><!-- /.l-container --> 
  • amethyst/1.0.4/functions.php

    r84209 r84209  
    3636 
    3737    /* 
    38      * Enable support for Post Thumbnails on posts and pages. 
     38     * Enable support for post thumbnails on posts and pages. 
    3939     */ 
    4040    add_theme_support( 'post-thumbnails' ); 
    41  
    42     /* 
    43      * Extra image sizes. 
    44      */ 
    4541    set_post_thumbnail_size( 774, 400, true ); 
    46     add_image_size( 'thumb774x400', 774, 400, true ); 
    47     add_image_size( 'thumb288x154', 288, 154, true ); 
    4842 
    4943    /* 
     
    127121function amethyst_search_form( $form ) { 
    128122    $form = '<div class="search"><form role="search" method="get" id="searchform" class="search__form" action="' . home_url( '/' ) . '" > 
    129     <label class="screen-reader-text" for="s">' . __( 'Search for...', 'amethyst' ) . '</label> 
     123    <label class="screen-reader-text" for="s">' . esc_html__( 'Search for...', 'amethyst' ) . '</label> 
    130124    <input class="search__field" type="text" value="' . get_search_query() . '" placeholder="' . __( 'Search for...', 'amethyst' ) . '" name="s" id="s" /> 
    131125    <input class="search__submit" type="submit" id="searchsubmit" value="'. esc_attr__( 'Search', 'amethyst' ) .'" /></form></div>'; 
     
    148142function amethyst_widgets_init() { 
    149143    register_sidebar( array( 
    150         'name'          => esc_html__( 'Sidebar', 'amethyst' ), 
     144        'name'          => __( 'Sidebar', 'amethyst' ), 
    151145        'id'            => 'sidebar', 
    152         'description'   => 'Main Widgets Sidebar. Shows up in all pages.', 
     146        'description'   => __( 'Main Widgets Sidebar. Shows up in all pages.', 'amethyst' ), 
    153147        'before_widget' => '<aside id="%1$s" class="widget %2$s">', 
    154148        'after_widget'  => '</aside>', 
     
    159153        'name'          => esc_html__( 'Footer Widgets', 'amethyst' ), 
    160154        'id'            => 'footer-widgets', 
    161         'description'   => 'Will show a widgets area on the footer. Shows up in all pages.', 
     155        'description'   => esc_html__( 'Will show a widgets area on the footer. Shows up in all pages.', 'amethyst' ), 
    162156        'before_widget' => '<aside id="%1$s" class="widget widget--footer %2$s">', 
    163157        'after_widget'  => '</aside>', 
     
    180174 
    181175    // javascripts 
    182     wp_enqueue_script( 'amethyst-js-lib', get_template_directory_uri() . '/assets/js/lib.min.js', array( 'jquery' ), true ); 
     176    wp_enqueue_script( 'amethyst-js-foundation', get_template_directory_uri() . '/assets/js/foundation.min.js', array( 'jquery' ), true ); 
    183177    wp_enqueue_script( 'amethyst-js-script', get_template_directory_uri() . '/assets/js/script.min.js', array( 'jquery' ), true ); 
    184178 
  • amethyst/1.0.4/readme.txt

    r84209 r84209  
    1010== Description == 
    1111Amethyst is a simple theme based on Foundation. The design is kept simple to keep the simplicity of the Foundation. Features are, 100% responsive layouts, Genericons, Gulp use, Sass. 
     12 
     13== Copyright == 
     14Amethyst WordPress Theme, Copyright 2015 featherplain 
     15Amethyst is distributed under the terms of the GNU GPL 
    1216 
    1317 
     
    3337License: MIT 
    3438Source: http://foundation.zurb.com/ 
    35  
    36 FastClick 
    37 License: MIT 
    38 Source: https://github.com/ftlabs/fastclick 
    3939 
    4040HTML5 Shiv 
     
    7979/* -------------------------------------------------------------- */ 
    8080 
     81== 1.0.4 == 
     82* Add "featured" tag to the sticky post 
     83* Modify <code> and <pre> font color 
     84* Bugfix some layout styles 
     85* Delete unnecessary post thumbnail sizes 
     86* Delete unnecessary JavaScript files 
     87* Add copyright and theme credit on footer 
     88* Make the sidebar descriptions to be translatable 
     89* Make the placeholder text in search form to be escaped 
     90 
    8191== 1.0.3 == 
    8292* Translate to Japanese 
  • amethyst/1.0.4/src/scss/components/_footer.scss

    r84209 r84209  
    1919  &__inner { 
    2020    @include grid-row(); 
     21    @extend %clearfix; 
    2122    padding: 20px 0; 
    22     text-align: center; 
    23   } 
    24   &__text { 
    25     margin: 10px auto; 
    26     color: #ffffff; 
    2723    font-size: rem-calc(12); 
    2824    letter-spacing: 1.6px; 
     25  } 
     26  &__credit { 
     27    @include grid-column( 
     28      $columns: 6, 
     29      $float: left 
     30    ); 
    2931    a { 
    3032      color: #ffffff; 
     
    3436    } 
    3537  } 
     38  &__copy { 
     39     @include grid-column( 
     40      $columns: 6, 
     41      $float: right 
     42    ); 
     43    color: #ffffff; 
     44    text-align: right; 
     45  } 
     46  &__sep { 
     47    color: #ffffff; 
     48  } 
    3649} 
    3750/** 
    3851 * media queries 
    3952 */ 
     53.siteinfo { 
     54  @media #{$small-only} { 
     55    &__credit, 
     56    &__copy { 
     57      @include grid-column( 
     58        $columns: 12 
     59      ); 
     60      margin: 10px 0; 
     61      text-align: center; 
     62    } 
     63  } 
     64} 
    4065.footer-widgets { 
    4166  &__inner { 
  • amethyst/1.0.4/src/scss/components/_header.scss

    r84209 r84209  
    77  width: auto; 
    88  height: auto; 
    9   margin-bottom: 20px; 
     9  // margin-bottom: 20px; 
    1010  &__inner { 
    1111    @include grid-row(); 
     
    175175@media #{$medium-up} { 
    176176  .l-header { 
    177     margin-bottom: 40px; 
     177    // margin-bottom: 40px; 
    178178  } 
    179179  .site-title { 
  • amethyst/1.0.4/src/scss/components/_layout.scss

    r84209 r84209  
    1313  width: 100%; 
    1414  max-width: 780px; 
    15   margin: 0 auto; 
    1615} 
    1716/** 
     
    6968  } 
    7069} 
    71 /** 
    72  * WordPress classes 
    73  */ 
    74 .sticky { 
    75   display: inherit; 
    76 } 
  • amethyst/1.0.4/src/scss/components/_post-editor.scss

    r84209 r84209  
    9797  pre { 
    9898    padding: 10px; 
    99     background-color: lighten($colorSub, 10%); 
     99    background-color: lighten($colorSub, 8%); 
    100100    color: $colorText; 
    101101    font-family: $fontFamilyCode; 
    102     font-size: rem-calc(12); 
     102    font-size: 80%; 
    103103    word-wrap: normal; 
    104104    overflow-x: auto; 
    105     code { 
     105    > code { 
    106106      background-color: transparent; 
     107      padding: 0; 
    107108    } 
    108109  } 
    109110  code { 
    110     background-color: lighten($colorSub, 10%); 
     111    background-color: lighten($colorSub, 8%); 
    111112    border: none; 
    112113    border-radius: 3px; 
    113     color: #cc0000; 
     114    color: $colorText; 
    114115    font-family: $fontFamilyCode; 
    115     font-size: rem-calc(12); 
     116    font-size: 80%; 
     117    padding: 2px 4px; 
    116118  } 
    117119  kbd { 
     
    122124    color: #ffffff; 
    123125    font-family: $fontFamilyCode; 
    124     font-size: rem-calc(12); 
     126    font-size: 80%; 
    125127    box-shadow: 1px 1px 2px rgba(0,0,0,.3); 
    126128  } 
  • amethyst/1.0.4/src/scss/components/_post.scss

    r84209 r84209  
    4848  &__image { 
    4949    width: 100%; 
     50    height: auto; 
    5051    margin-bottom: 10px; 
     52    background-color: lighten($colorBase, 10%); 
    5153    border: 2px solid darken($colorBg, 5%); 
     54    img { 
     55      display: block; 
     56      margin: 0 auto; 
     57    } 
    5258  } 
    5359  &__pager { 
     
    6470 * meta informations 
    6571 */ 
    66 .metainfo { 
     72.metadata { 
    6773  @include hasPseudoClass(before); 
    6874  display: inline-block; 
     
    107113    } 
    108114  } 
     115  // for sticky post 
     116  &--featured { 
     117    &:before { 
     118      @include genericon('\f308', 1.1rem, top); 
     119    } 
     120  } 
    109121} 
     122/** 
     123 * for sticky post 
     124 */ 
     125.sticky { 
     126  display: inherit; 
     127} 
     128 
    110129/** 
    111130 * media queries 
  • amethyst/1.0.4/src/scss/components/core/_mixins.scss

    r84209 r84209  
    55//*--------------------------------------------------*/ 
    66@mixin layoutMargin { 
    7   margin-bottom: 40px; 
     7  margin: 0 auto; 
     8  padding-top: 40px; 
     9  padding-bottom: 40px; 
    810  @media #{$small-only} { 
    9     padding: 0 16px; 
     11    padding: 20px 16px; 
    1012  } 
    1113} 
  • amethyst/1.0.4/src/scss/style.scss

    r84209 r84209  
    66Author URI: http://asknode.net/ 
    77Description: Amethyst is a simple theme based on Foundation. The design is kept simple to keep the simplicity of the Foundation. Features are, 100% responsive layouts, Genericons, Gulp use, Sass. 
    8 Version: 1.0.3 
     8Version: 1.0.4 
    99License: GNU General Public License v2 or later 
    1010License URI: license.txt 
  • amethyst/1.0.4/style.css

    r84209 r84209  
    66Author URI: http://asknode.net/ 
    77Description: Amethyst is a simple theme based on Foundation. The design is kept simple to keep the simplicity of the Foundation. Features are, 100% responsive layouts, Genericons, Gulp use, Sass. 
    8 Version: 1.0.3 
     8Version: 1.0.4 
    99License: GNU General Public License v2 or later 
    1010License URI: license.txt 
     
    236236 
    237237.column + .column:last-child, 
    238 .columns + .columns:last-child { 
     238.columns + .column:last-child, .column + 
     239.columns:last-child, 
     240.columns + 
     241.columns:last-child { 
    239242  float: right; 
    240243} 
    241244 
    242245.column + .column.end, 
    243 .columns + .columns.end { 
     246.columns + .column.end, .column + 
     247.columns.end, 
     248.columns + 
     249.columns.end { 
    244250  float: left; 
    245251} 
     
    12521258} 
    12531259 
    1254 button:hover, 
    1255 button:focus, .button:hover, 
    1256 .button:focus { 
     1260button:hover, button:focus, .button:hover, .button:focus { 
    12571261  background-color: #1b1b1b; 
    12581262} 
    12591263 
    1260 button:hover, 
    1261 button:focus, .button:hover, 
    1262 .button:focus { 
     1264button:hover, button:focus, .button:hover, .button:focus { 
    12631265  color: #FFFFFF; 
    12641266} 
     
    12701272} 
    12711273 
    1272 button.secondary:hover, 
    1273 button.secondary:focus, .button.secondary:hover, 
    1274 .button.secondary:focus { 
     1274button.secondary:hover, button.secondary:focus, .button.secondary:hover, .button.secondary:focus { 
    12751275  background-color: #b2b2b2; 
    12761276} 
    12771277 
    1278 button.secondary:hover, 
    1279 button.secondary:focus, .button.secondary:hover, 
    1280 .button.secondary:focus { 
     1278button.secondary:hover, button.secondary:focus, .button.secondary:hover, .button.secondary:focus { 
    12811279  color: #FFFFFF; 
    12821280} 
     
    12881286} 
    12891287 
    1290 button.success:hover, 
    1291 button.success:focus, .button.success:hover, 
    1292 .button.success:focus { 
     1288button.success:hover, button.success:focus, .button.success:hover, .button.success:focus { 
    12931289  background-color: #368a55; 
    12941290} 
    12951291 
    1296 button.success:hover, 
    1297 button.success:focus, .button.success:hover, 
    1298 .button.success:focus { 
     1292button.success:hover, button.success:focus, .button.success:hover, .button.success:focus { 
    12991293  color: #FFFFFF; 
    13001294} 
     
    13061300} 
    13071301 
    1308 button.alert:hover, 
    1309 button.alert:focus, .button.alert:hover, 
    1310 .button.alert:focus { 
     1302button.alert:hover, button.alert:focus, .button.alert:hover, .button.alert:focus { 
    13111303  background-color: #cf2a0e; 
    13121304} 
    13131305 
    1314 button.alert:hover, 
    1315 button.alert:focus, .button.alert:hover, 
    1316 .button.alert:focus { 
     1306button.alert:hover, button.alert:focus, .button.alert:hover, .button.alert:focus { 
    13171307  color: #FFFFFF; 
    13181308} 
     
    13241314} 
    13251315 
    1326 button.warning:hover, 
    1327 button.warning:focus, .button.warning:hover, 
    1328 .button.warning:focus { 
     1316button.warning:hover, button.warning:focus, .button.warning:hover, .button.warning:focus { 
    13291317  background-color: #cf6e0e; 
    13301318} 
    13311319 
    1332 button.warning:hover, 
    1333 button.warning:focus, .button.warning:hover, 
    1334 .button.warning:focus { 
     1320button.warning:hover, button.warning:focus, .button.warning:hover, .button.warning:focus { 
    13351321  color: #FFFFFF; 
    13361322} 
     
    13421328} 
    13431329 
    1344 button.info:hover, 
    1345 button.info:focus, .button.info:hover, 
    1346 .button.info:focus { 
     1330button.info:hover, button.info:focus, .button.info:hover, .button.info:focus { 
    13471331  background-color: #61b6d9; 
    13481332} 
    13491333 
    1350 button.info:hover, 
    1351 button.info:focus, .button.info:hover, 
    1352 .button.info:focus { 
     1334button.info:hover, button.info:focus, .button.info:hover, .button.info:focus { 
    13531335  color: #FFFFFF; 
    13541336} 
     
    14021384} 
    14031385 
    1404 button.disabled:hover, 
    1405 button.disabled:focus, button[disabled]:hover, 
    1406 button[disabled]:focus, .button.disabled:hover, 
    1407 .button.disabled:focus, .button[disabled]:hover, 
    1408 .button[disabled]:focus { 
     1386button.disabled:hover, button.disabled:focus, button[disabled]:hover, button[disabled]:focus, .button.disabled:hover, .button.disabled:focus, .button[disabled]:hover, .button[disabled]:focus { 
    14091387  background-color: #1b1b1b; 
    14101388} 
    14111389 
    1412 button.disabled:hover, 
    1413 button.disabled:focus, button[disabled]:hover, 
    1414 button[disabled]:focus, .button.disabled:hover, 
    1415 .button.disabled:focus, .button[disabled]:hover, 
    1416 .button[disabled]:focus { 
     1390button.disabled:hover, button.disabled:focus, button[disabled]:hover, button[disabled]:focus, .button.disabled:hover, .button.disabled:focus, .button[disabled]:hover, .button[disabled]:focus { 
    14171391  color: #FFFFFF; 
    14181392} 
    14191393 
    1420 button.disabled:hover, 
    1421 button.disabled:focus, button[disabled]:hover, 
    1422 button[disabled]:focus, .button.disabled:hover, 
    1423 .button.disabled:focus, .button[disabled]:hover, 
    1424 .button[disabled]:focus { 
     1394button.disabled:hover, button.disabled:focus, button[disabled]:hover, button[disabled]:focus, .button.disabled:hover, .button.disabled:focus, .button[disabled]:hover, .button[disabled]:focus { 
    14251395  background-color: #222222; 
    14261396} 
     
    14351405} 
    14361406 
    1437 button.disabled.secondary:hover, 
    1438 button.disabled.secondary:focus, button[disabled].secondary:hover, 
    1439 button[disabled].secondary:focus, .button.disabled.secondary:hover, 
    1440 .button.disabled.secondary:focus, .button[disabled].secondary:hover, 
    1441 .button[disabled].secondary:focus { 
     1407button.disabled.secondary:hover, button.disabled.secondary:focus, button[disabled].secondary:hover, button[disabled].secondary:focus, .button.disabled.secondary:hover, .button.disabled.secondary:focus, .button[disabled].secondary:hover, .button[disabled].secondary:focus { 
    14421408  background-color: #b2b2b2; 
    14431409} 
    14441410 
    1445 button.disabled.secondary:hover, 
    1446 button.disabled.secondary:focus, button[disabled].secondary:hover, 
    1447 button[disabled].secondary:focus, .button.disabled.secondary:hover, 
    1448 .button.disabled.secondary:focus, .button[disabled].secondary:hover, 
    1449 .button[disabled].secondary:focus { 
     1411button.disabled.secondary:hover, button.disabled.secondary:focus, button[disabled].secondary:hover, button[disabled].secondary:focus, .button.disabled.secondary:hover, .button.disabled.secondary:focus, .button[disabled].secondary:hover, .button[disabled].secondary:focus { 
    14501412  color: #FFFFFF; 
    14511413} 
    14521414 
    1453 button.disabled.secondary:hover, 
    1454 button.disabled.secondary:focus, button[disabled].secondary:hover, 
    1455 button[disabled].secondary:focus, .button.disabled.secondary:hover, 
    1456 .button.disabled.secondary:focus, .button[disabled].secondary:hover, 
    1457 .button[disabled].secondary:focus { 
     1415button.disabled.secondary:hover, button.disabled.secondary:focus, button[disabled].secondary:hover, button[disabled].secondary:focus, .button.disabled.secondary:hover, .button.disabled.secondary:focus, .button[disabled].secondary:hover, .button[disabled].secondary:focus { 
    14581416  background-color: #dedede; 
    14591417} 
     
    14681426} 
    14691427 
    1470 button.disabled.success:hover, 
    1471 button.disabled.success:focus, button[disabled].success:hover, 
    1472 button[disabled].success:focus, .button.disabled.success:hover, 
    1473 .button.disabled.success:focus, .button[disabled].success:hover, 
    1474 .button[disabled].success:focus { 
     1428button.disabled.success:hover, button.disabled.success:focus, button[disabled].success:hover, button[disabled].success:focus, .button.disabled.success:hover, .button.disabled.success:focus, .button[disabled].success:hover, .button[disabled].success:focus { 
    14751429  background-color: #368a55; 
    14761430} 
    14771431 
    1478 button.disabled.success:hover, 
    1479 button.disabled.success:focus, button[disabled].success:hover, 
    1480 button[disabled].success:focus, .button.disabled.success:hover, 
    1481 .button.disabled.success:focus, .button[disabled].success:hover, 
    1482 .button[disabled].success:focus { 
     1432button.disabled.success:hover, button.disabled.success:focus, button[disabled].success:hover, button[disabled].success:focus, .button.disabled.success:hover, .button.disabled.success:focus, .button[disabled].success:hover, .button[disabled].success:focus { 
    14831433  color: #FFFFFF; 
    14841434} 
    14851435 
    1486 button.disabled.success:hover, 
    1487 button.disabled.success:focus, button[disabled].success:hover, 
    1488 button[disabled].success:focus, .button.disabled.success:hover, 
    1489 .button.disabled.success:focus, .button[disabled].success:hover, 
    1490 .button[disabled].success:focus { 
     1436button.disabled.success:hover, button.disabled.success:focus, button[disabled].success:hover, button[disabled].success:focus, .button.disabled.success:hover, .button.disabled.success:focus, .button[disabled].success:hover, .button[disabled].success:focus { 
    14911437  background-color: #43AC6A; 
    14921438} 
     
    15011447} 
    15021448 
    1503 button.disabled.alert:hover, 
    1504 button.disabled.alert:focus, button[disabled].alert:hover, 
    1505 button[disabled].alert:focus, .button.disabled.alert:hover, 
    1506 .button.disabled.alert:focus, .button[disabled].alert:hover, 
    1507 .button[disabled].alert:focus { 
     1449button.disabled.alert:hover, button.disabled.alert:focus, button[disabled].alert:hover, button[disabled].alert:focus, .button.disabled.alert:hover, .button.disabled.alert:focus, .button[disabled].alert:hover, .button[disabled].alert:focus { 
    15081450  background-color: #cf2a0e; 
    15091451} 
    15101452 
    1511 button.disabled.alert:hover, 
    1512 button.disabled.alert:focus, button[disabled].alert:hover, 
    1513 button[disabled].alert:focus, .button.disabled.alert:hover, 
    1514 .button.disabled.alert:focus, .button[disabled].alert:hover, 
    1515 .button[disabled].alert:focus { 
     1453button.disabled.alert:hover, button.disabled.alert:focus, button[disabled].alert:hover, button[disabled].alert:focus, .button.disabled.alert:hover, .button.disabled.alert:focus, .button[disabled].alert:hover, .button[disabled].alert:focus { 
    15161454  color: #FFFFFF; 
    15171455} 
    15181456 
    1519 button.disabled.alert:hover, 
    1520 button.disabled.alert:focus, button[disabled].alert:hover, 
    1521 button[disabled].alert:focus, .button.disabled.alert:hover, 
    1522 .button.disabled.alert:focus, .button[disabled].alert:hover, 
    1523 .button[disabled].alert:focus { 
     1457button.disabled.alert:hover, button.disabled.alert:focus, button[disabled].alert:hover, button[disabled].alert:focus, .button.disabled.alert:hover, .button.disabled.alert:focus, .button[disabled].alert:hover, .button[disabled].alert:focus { 
    15241458  background-color: #f04124; 
    15251459} 
     
    15341468} 
    15351469 
    1536 button.disabled.warning:hover, 
    1537 button.disabled.warning:focus, button[disabled].warning:hover, 
    1538 button[disabled].warning:focus, .button.disabled.warning:hover, 
    1539 .button.disabled.warning:focus, .button[disabled].warning:hover, 
    1540 .button[disabled].warning:focus { 
     1470button.disabled.warning:hover, button.disabled.warning:focus, button[disabled].warning:hover, button[disabled].warning:focus, .button.disabled.warning:hover, .button.disabled.warning:focus, .button[disabled].warning:hover, .button[disabled].warning:focus { 
    15411471  background-color: #cf6e0e; 
    15421472} 
    15431473 
    1544 button.disabled.warning:hover, 
    1545 button.disabled.warning:focus, button[disabled].warning:hover, 
    1546 button[disabled].warning:focus, .button.disabled.warning:hover, 
    1547 .button.disabled.warning:focus, .button[disabled].warning:hover, 
    1548 .button[disabled].warning:focus { 
     1474button.disabled.warning:hover, button.disabled.warning:focus, button[disabled].warning:hover, button[disabled].warning:focus, .button.disabled.warning:hover, .button.disabled.warning:focus, .button[disabled].warning:hover, .button[disabled].warning:focus { 
    15491475  color: #FFFFFF; 
    15501476} 
    15511477 
    1552 button.disabled.warning:hover, 
    1553 button.disabled.warning:focus, button[disabled].warning:hover, 
    1554 button[disabled].warning:focus, .button.disabled.warning:hover, 
    1555 .button.disabled.warning:focus, .button[disabled].warning:hover, 
    1556 .button[disabled].warning:focus { 
     1478button.disabled.warning:hover, button.disabled.warning:focus, button[disabled].warning:hover, button[disabled].warning:focus, .button.disabled.warning:hover, .button.disabled.warning:focus, .button[disabled].warning:hover, .button[disabled].warning:focus { 
    15571479  background-color: #f08a24; 
    15581480} 
     
    15671489} 
    15681490 
    1569 button.disabled.info:hover, 
    1570 button.disabled.info:focus, button[disabled].info:hover, 
    1571 button[disabled].info:focus, .button.disabled.info:hover, 
    1572 .button.disabled.info:focus, .button[disabled].info:hover, 
    1573 .button[disabled].info:focus { 
     1491button.disabled.info:hover, button.disabled.info:focus, button[disabled].info:hover, button[disabled].info:focus, .button.disabled.info:hover, .button.disabled.info:focus, .button[disabled].info:hover, .button[disabled].info:focus { 
    15741492  background-color: #61b6d9; 
    15751493} 
    15761494 
    1577 button.disabled.info:hover, 
    1578 button.disabled.info:focus, button[disabled].info:hover, 
    1579 button[disabled].info:focus, .button.disabled.info:hover, 
    1580 .button.disabled.info:focus, .button[disabled].info:hover, 
    1581 .button[disabled].info:focus { 
     1495button.disabled.info:hover, button.disabled.info:focus, button[disabled].info:hover, button[disabled].info:focus, .button.disabled.info:hover, .button.disabled.info:focus, .button[disabled].info:hover, .button[disabled].info:focus { 
    15821496  color: #FFFFFF; 
    15831497} 
    15841498 
    1585 button.disabled.info:hover, 
    1586 button.disabled.info:focus, button[disabled].info:hover, 
    1587 button[disabled].info:focus, .button.disabled.info:hover, 
    1588 .button.disabled.info:focus, .button[disabled].info:hover, 
    1589 .button[disabled].info:focus { 
     1499button.disabled.info:hover, button.disabled.info:focus, button[disabled].info:hover, button[disabled].info:focus, .button.disabled.info:hover, .button.disabled.info:focus, .button[disabled].info:hover, .button[disabled].info:focus { 
    15901500  background-color: #a0d3e8; 
    15911501} 
     
    17781688} 
    17791689 
    1780 input[type="text"][disabled], 
    1781 input[type="text"][readonly], 
    1782 fieldset[disabled] input[type="text"], input[type="password"][disabled], 
    1783 input[type="password"][readonly], 
    1784 fieldset[disabled] input[type="password"], input[type="date"][disabled], 
    1785 input[type="date"][readonly], 
    1786 fieldset[disabled] input[type="date"], input[type="datetime"][disabled], 
    1787 input[type="datetime"][readonly], 
    1788 fieldset[disabled] input[type="datetime"], input[type="datetime-local"][disabled], 
    1789 input[type="datetime-local"][readonly], 
    1790 fieldset[disabled] input[type="datetime-local"], input[type="month"][disabled], 
    1791 input[type="month"][readonly], 
    1792 fieldset[disabled] input[type="month"], input[type="week"][disabled], 
    1793 input[type="week"][readonly], 
    1794 fieldset[disabled] input[type="week"], input[type="email"][disabled], 
    1795 input[type="email"][readonly], 
    1796 fieldset[disabled] input[type="email"], input[type="number"][disabled], 
    1797 input[type="number"][readonly], 
    1798 fieldset[disabled] input[type="number"], input[type="search"][disabled], 
    1799 input[type="search"][readonly], 
    1800 fieldset[disabled] input[type="search"], input[type="tel"][disabled], 
    1801 input[type="tel"][readonly], 
    1802 fieldset[disabled] input[type="tel"], input[type="time"][disabled], 
    1803 input[type="time"][readonly], 
    1804 fieldset[disabled] input[type="time"], input[type="url"][disabled], 
    1805 input[type="url"][readonly], 
    1806 fieldset[disabled] input[type="url"], input[type="color"][disabled], 
    1807 input[type="color"][readonly], 
    1808 fieldset[disabled] input[type="color"], textarea[disabled], 
    1809 textarea[readonly], 
     1690input[type="text"][disabled], input[type="text"][readonly], 
     1691fieldset[disabled] input[type="text"], input[type="password"][disabled], input[type="password"][readonly], 
     1692fieldset[disabled] input[type="password"], input[type="date"][disabled], input[type="date"][readonly], 
     1693fieldset[disabled] input[type="date"], input[type="datetime"][disabled], input[type="datetime"][readonly], 
     1694fieldset[disabled] input[type="datetime"], input[type="datetime-local"][disabled], input[type="datetime-local"][readonly], 
     1695fieldset[disabled] input[type="datetime-local"], input[type="month"][disabled], input[type="month"][readonly], 
     1696fieldset[disabled] input[type="month"], input[type="week"][disabled], input[type="week"][readonly], 
     1697fieldset[disabled] input[type="week"], input[type="email"][disabled], input[type="email"][readonly], 
     1698fieldset[disabled] input[type="email"], input[type="number"][disabled], input[type="number"][readonly], 
     1699fieldset[disabled] input[type="number"], input[type="search"][disabled], input[type="search"][readonly], 
     1700fieldset[disabled] input[type="search"], input[type="tel"][disabled], input[type="tel"][readonly], 
     1701fieldset[disabled] input[type="tel"], input[type="time"][disabled], input[type="time"][readonly], 
     1702fieldset[disabled] input[type="time"], input[type="url"][disabled], input[type="url"][readonly], 
     1703fieldset[disabled] input[type="url"], input[type="color"][disabled], input[type="color"][readonly], 
     1704fieldset[disabled] input[type="color"], textarea[disabled], textarea[readonly], 
    18101705fieldset[disabled] textarea { 
    18111706  background-color: #DDDDDD; 
     
    20901985} 
    20911986 
    2092 .gnav__list:after, .nav-links:after { 
     1987.gnav__list:after, .siteinfo__inner:after, .nav-links:after { 
    20931988  display: block; 
    20941989  visibility: hidden; 
     
    21632058} 
    21642059 
    2165 a:link, 
    2166 a:visited { 
     2060a:link, a:visited { 
    21672061  color: #e80c7a; 
    21682062} 
    21692063 
    2170 a:hover, 
    2171 a:active, 
    2172 a:focus { 
     2064a:hover, a:active, a:focus { 
    21732065  outline: 0; 
    21742066  color: #91074c; 
     
    23042196  width: auto; 
    23052197  height: auto; 
    2306   margin-bottom: 20px; 
    23072198} 
    23082199 
     
    24282319} 
    24292320 
    2430 .gnav__trigger:hover, 
    2431 .gnav__trigger:focus { 
     2321.gnav__trigger:hover, .gnav__trigger:focus { 
    24322322  outline: 0; 
    24332323  background-color: #363636; 
     
    24612351} 
    24622352 
    2463 .gnav__arrowdown:hover, 
    2464 .gnav__arrowdown:focus { 
     2353.gnav__arrowdown:hover, .gnav__arrowdown:focus { 
    24652354  outline: 0; 
    24662355  background-color: #363636; 
     
    25092398 */ 
    25102399@media only screen and (min-width: 48.0625em) { 
    2511   .l-header { 
    2512     margin-bottom: 40px; 
    2513   } 
    25142400  .site-title { 
    25152401    padding: 10px 20px 10px 14px; 
     
    25502436  width: 100%; 
    25512437  padding: 20px 0; 
    2552   text-align: center; 
     2438  font-size: 0.75rem; 
     2439  letter-spacing: 1.6px; 
    25532440} 
    25542441 
     
    25622449} 
    25632450 
    2564 .siteinfo__text { 
    2565   margin: 10px auto; 
     2451.siteinfo__credit { 
     2452  padding-left: 1.125rem; 
     2453  padding-right: 1.125rem; 
     2454  width: 50%; 
     2455  float: left; 
     2456} 
     2457 
     2458.siteinfo__credit a { 
    25662459  color: #ffffff; 
    2567   font-size: 0.75rem; 
    2568   letter-spacing: 1.6px; 
    2569 } 
    2570  
    2571 .siteinfo__text a { 
     2460} 
     2461 
     2462.siteinfo__credit a:hover { 
     2463  color: #e80c7a; 
     2464} 
     2465 
     2466.siteinfo__copy { 
     2467  padding-left: 1.125rem; 
     2468  padding-right: 1.125rem; 
     2469  width: 50%; 
     2470  float: right; 
    25722471  color: #ffffff; 
    2573 } 
    2574  
    2575 .siteinfo__text a:hover { 
    2576   color: #e80c7a; 
     2472  text-align: right; 
     2473} 
     2474 
     2475.siteinfo__sep { 
     2476  color: #ffffff; 
    25772477} 
    25782478 
     
    25802480 * media queries 
    25812481 */ 
     2482@media only screen and (max-width: 48em) { 
     2483  .siteinfo__credit, .siteinfo__copy { 
     2484    padding-left: 1.125rem; 
     2485    padding-right: 1.125rem; 
     2486    width: 100%; 
     2487    float: left; 
     2488    margin: 10px 0; 
     2489    text-align: center; 
     2490  } 
     2491} 
     2492 
    25822493@media only screen and (max-width: 48em) { 
    25832494  .footer-widgets__inner { 
     
    26082519 */ 
    26092520.l-main { 
    2610   margin-bottom: 40px; 
     2521  margin: 0 auto; 
     2522  padding-top: 40px; 
     2523  padding-bottom: 40px; 
    26112524  min-height: 100vh; 
    26122525  width: 100%; 
    26132526  max-width: 780px; 
    2614   margin: 0 auto; 
    26152527} 
    26162528 
    26172529@media only screen and (max-width: 48em) { 
    26182530  .l-main { 
    2619     padding: 0 16px; 
     2531    padding: 20px 16px; 
    26202532  } 
    26212533} 
     
    26982610} 
    26992611 
    2700 /** 
    2701  * WordPress classes 
    2702  */ 
    2703 .sticky { 
    2704   display: inherit; 
    2705 } 
    2706  
    27072612/* -------------------------------------------------------------- */ 
    27082613/* post 
     
    27572662.post__image { 
    27582663  width: 100%; 
     2664  height: auto; 
    27592665  margin-bottom: 10px; 
     2666  background-color: #3c3c3c; 
    27602667  border: 2px solid #ededed; 
     2668} 
     2669 
     2670.post__image img { 
     2671  display: block; 
     2672  margin: 0 auto; 
    27612673} 
    27622674 
     
    27742686 * meta informations 
    27752687 */ 
    2776 .metainfo { 
     2688.metadata { 
    27772689  position: relative; 
    27782690  display: inline-block; 
     
    27832695} 
    27842696 
    2785 .metainfo:before { 
     2697.metadata:before { 
    27862698  display: block; 
    27872699  content: ""; 
     
    27892701} 
    27902702 
    2791 .metainfo:first-child { 
     2703.metadata:first-child { 
    27922704  margin-left: 0; 
    27932705} 
    27942706 
    2795 .metainfo a { 
     2707.metadata a { 
    27962708  margin-left: 2px; 
    27972709  color: #222222; 
     
    27992711} 
    28002712 
    2801 .metainfo a:hover { 
     2713.metadata a:hover { 
    28022714  color: #e80c7a; 
    28032715} 
    28042716 
    2805 .metainfo--date:before { 
     2717.metadata--date:before { 
    28062718  position: static; 
    28072719  display: inline-block; 
     
    28132725} 
    28142726 
    2815 .metainfo--category:before { 
     2727.metadata--category:before { 
    28162728  position: static; 
    28172729  display: inline-block; 
     
    28232735} 
    28242736 
    2825 .metainfo--author:before { 
     2737.metadata--author:before { 
    28262738  position: static; 
    28272739  display: inline-block; 
     
    28332745} 
    28342746 
    2835 .metainfo--tag:before { 
     2747.metadata--tag:before { 
    28362748  position: static; 
    28372749  display: inline-block; 
     
    28432755} 
    28442756 
    2845 .metainfo--comment:before { 
     2757.metadata--comment:before { 
    28462758  position: static; 
    28472759  display: inline-block; 
     
    28512763  font-family: Genericons; 
    28522764  line-height: 1; 
     2765} 
     2766 
     2767.metadata--featured:before { 
     2768  position: static; 
     2769  display: inline-block; 
     2770  content: ""; 
     2771  vertical-align: top; 
     2772  font-size: 1.1rem; 
     2773  font-family: Genericons; 
     2774  line-height: 1; 
     2775} 
     2776 
     2777/** 
     2778 * for sticky post 
     2779 */ 
     2780.sticky { 
     2781  display: inherit; 
    28532782} 
    28542783 
     
    31143043.comment-content pre { 
    31153044  padding: 10px; 
    3116   background-color: #f8f8f8; 
     3045  background-color: #f2f2f2; 
    31173046  color: #454545; 
    31183047  font-family: Menlo, Consolas, Courier, sans-serif; 
    3119   font-size: 0.75rem; 
     3048  font-size: 80%; 
    31203049  word-wrap: normal; 
    31213050  overflow-x: auto; 
    31223051} 
    31233052 
    3124 .post__editor pre code, 
    3125 .comment-content pre code { 
     3053.post__editor pre > code, 
     3054.comment-content pre > code { 
    31263055  background-color: transparent; 
     3056  padding: 0; 
    31273057} 
    31283058 
    31293059.post__editor code, 
    31303060.comment-content code { 
    3131   background-color: #f8f8f8; 
     3061  background-color: #f2f2f2; 
    31323062  border: none; 
    31333063  border-radius: 3px; 
    3134   color: #cc0000; 
     3064  color: #454545; 
    31353065  font-family: Menlo, Consolas, Courier, sans-serif; 
    3136   font-size: 0.75rem; 
     3066  font-size: 80%; 
     3067  padding: 2px 4px; 
    31373068} 
    31383069 
     
    31453076  color: #ffffff; 
    31463077  font-family: Menlo, Consolas, Courier, sans-serif; 
    3147   font-size: 0.75rem; 
     3078  font-size: 80%; 
    31483079  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); 
    31493080} 
     
    35153446 * WordPress widget classes 
    35163447 */ 
    3517 .widget_recent_entries span, 
    3518 .widget_rss span { 
     3448.widget_recent_entries span, .widget_rss span { 
    35193449  display: block; 
    35203450  color: #c5c5c5; 
     
    35223452} 
    35233453 
    3524 .widget_recent_entries time, 
    3525 .widget_rss time { 
     3454.widget_recent_entries time, .widget_rss time { 
    35263455  display: block; 
    35273456  margin: 4px 0; 
     
    36053534} 
    36063535 
    3607 button:link, 
    3608 button:visited, 
     3536button:link, button:visited, 
    36093537input[type="button"]:link, 
    36103538input[type="button"]:visited, 
     
    36163544} 
    36173545 
    3618 button:hover, 
    3619 button:active, 
    3620 button:focus, 
     3546button:hover, button:active, button:focus, 
    36213547input[type="button"]:hover, 
    36223548input[type="button"]:active, 
     
    36523578} 
    36533579 
    3654 .btn:link, 
    3655 .btn:visited { 
     3580.btn:link, .btn:visited { 
    36563581  color: #ffffff; 
    36573582} 
    36583583 
    3659 .btn:hover, 
    3660 .btn:active, 
    3661 .btn:focus { 
     3584.btn:hover, .btn:active, .btn:focus { 
    36623585  background-color: #c10a66; 
    36633586  color: #ffffff; 
     
    36853608} 
    36863609 
    3687 .btn-full:link, 
    3688 .btn-full:visited { 
     3610.btn-full:link, .btn-full:visited { 
    36893611  color: #ffffff; 
    36903612} 
    36913613 
    3692 .btn-full:hover, 
    3693 .btn-full:active, 
    3694 .btn-full:focus { 
     3614.btn-full:hover, .btn-full:active, .btn-full:focus { 
    36953615  background-color: #c10a66; 
    36963616  color: #ffffff; 
  • amethyst/1.0.4/template-parts/content-page.php

    r84209 r84209  
    1313    <header class="post__header"> 
    1414        <?php the_title( '<h1 class="post__title post__title--page">', '</h1>' ); ?> 
    15         <?php // post thumbnail 
    16             $size = 'thumb774x400'; 
    17             the_post_thumbnail( $size, array( 'class'   => 'attachment-' . $size . ' post__image' ) ); 
    18         ?> 
     15        <?php if ( has_post_thumbnail() ) : ?> 
     16            <div class="post__image"><?php the_post_thumbnail(); ?></div> 
     17        <?php endif; ?> 
    1918    </header><!-- / .post__header --> 
    2019 
  • amethyst/1.0.4/template-parts/content-search.php

    r84209 r84209  
    1616        <?php if ( 'post' === get_post_type() ) : ?> 
    1717        <div class="post__meta"> 
    18             <div class="metainfo metainfo--date"> 
     18            <?php if ( is_sticky() ) : ?> 
     19                <div class="metadata metadata--featured"> 
     20                    <span><?php echo esc_html__( 'featured', 'amethyst' ); ?></span> 
     21                </div> 
     22            <?php endif; ?> 
     23            <div class="metadata metadata--date"> 
    1924                <time><?php the_time( get_option( 'date_format' ) ); ?></time> 
    2025            </div> 
    21             <div class="metainfo metainfo--date"> 
     26            <div class="metadata metadata--date"> 
    2227                <span><?php echo get_the_author_meta( 'display_name' ); ?></span> 
    2328            </div> 
  • amethyst/1.0.4/template-parts/content-single.php

    r84209 r84209  
    1515 
    1616        <div class="post__meta"> 
    17             <div class="metainfo metainfo--date"> 
     17            <?php if ( is_sticky() ) : ?> 
     18                <div class="metadata metadata--featured"> 
     19                    <span><?php echo esc_html__( 'featured', 'amethyst' ); ?></span> 
     20                </div> 
     21            <?php endif; ?> 
     22            <div class="metadata metadata--date"> 
    1823                <span><?php the_time( get_option( 'date_format' ) ); ?></span> 
    1924            </div> 
    20             <div class="metainfo metainfo--author"> 
     25            <div class="metadata metadata--author"> 
    2126                <span><?php echo get_the_author_meta( 'display_name' ); ?></span> 
    2227            </div> 
    2328        </div> 
    24         <?php // post thumbnail 
    25         $size = 'thumb774x400'; 
    26         the_post_thumbnail( $size, array( 'class'   => 'attachment-' . $size . ' post__image' ) ); 
    27         ?> 
     29        <?php if ( has_post_thumbnail() ) : ?> 
     30            <div class="post__image"><?php the_post_thumbnail(); ?></div> 
     31        <?php endif; ?> 
    2832    </header><!-- / .post__header --> 
    2933 
     
    4650      <div class="post__meta post__meta--footer"> 
    4751 
    48             <?php the_tags( '<div class="metainfo metainfo--tag">' , ',' , '</div>' ); ?> 
     52            <?php the_tags( '<div class="metadata metadata--tag">' , ',' , '</div>' ); ?> 
    4953 
    5054            <?php // category 
     
    5256            $cat_html = ''; 
    5357            foreach ( $cats as $cat) { 
    54                 $cat_html = '<div class="metainfo metainfo--category"><a href="' . get_category_link( $cat->cat_ID ) . '">' . $cat->name . '</a></div>'; 
     58                $cat_html = '<div class="metadata metadata--category"><a href="' . get_category_link( $cat->cat_ID ) . '">' . $cat->name . '</a></div>'; 
    5559            } 
    5660            ?> 
  • amethyst/1.0.4/template-parts/content.php

    r84209 r84209  
    1515 
    1616        <div class="post__meta"> 
    17             <div class="metainfo metainfo--date"> 
     17            <?php if ( is_sticky() ) : ?> 
     18                <div class="metadata metadata--featured"> 
     19                    <span><?php echo esc_html__( 'featured', 'amethyst' ); ?></span> 
     20                </div> 
     21            <?php endif; ?> 
     22            <div class="metadata metadata--date"> 
    1823                <span><?php the_time( get_option( 'date_format' ) ); ?></span> 
    1924            </div> 
    20             <div class="metainfo metainfo--author"> 
     25            <div class="metadata metadata--author"> 
    2126                <span><?php echo get_the_author_meta( 'display_name' ); ?></span> 
    2227            </div> 
    2328        </div> 
    24     <?php // post thumbnail 
    25         $size = 'thumb744x400'; 
    26         the_post_thumbnail( $size, array( 'class'   => 'attachment-' . $size . ' post__image' ) ); 
    27         ?> 
     29        <?php if ( has_post_thumbnail() ) : ?> 
     30            <div class="post__image"><?php the_post_thumbnail(); ?></div> 
     31        <?php endif; ?> 
    2832        <div class="post__excerpt"> 
    2933            <?php the_excerpt(); ?> 
Note: See TracChangeset for help on using the changeset viewer.