Make WordPress Core

Changeset 29919


Ignore:
Timestamp:
10/16/2014 07:01:18 PM (10 years ago)
Author:
iandstewart
Message:

Twenty Fifteen: add print styles.

Props iamtakashi, closes #29967

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/style.css

    r29892 r29919  
    54665466    }
    54675467}
     5468
     5469
     5470/**
     5471 * 16.0 Print
     5472 */
     5473
     5474@media print {
     5475    body {
     5476        background: none !important; /* Brute force since user agents all print differently. */
     5477        font-size: 11.25pt;
     5478    }
     5479
     5480    .secondary-toggle,
     5481    .navigation,
     5482    .page-links,
     5483    .edit-link,
     5484    #reply-title,
     5485    .comment-form,
     5486    .comment-edit-link,
     5487    .comment-list .reply a,
     5488    button,
     5489    input,
     5490    textarea,
     5491    select {
     5492        display: none;
     5493    }
     5494
     5495    .site-header,
     5496    .site-footer,
     5497    .hentry,
     5498    .entry-footer,
     5499    .page-header,
     5500    .page-content,
     5501    .comments-area {
     5502        background: none !important; /* Make sure color schemes dont't affect to print */
     5503    }
     5504
     5505    body,
     5506    blockquote,
     5507    blockquote cite,
     5508    blockquote small,
     5509    label,
     5510    a,
     5511    .site-title a,
     5512    .site-description,
     5513    .post-title,
     5514    .author-heading,
     5515    .entry-footer,
     5516    .entry-footer a,
     5517    .taxonomy-description,
     5518    .entry-caption,
     5519    .comment-author,
     5520    .comment-metadata,
     5521    .comment-metadata a,
     5522    .comment-notes,
     5523    .comment-awaiting-moderation,
     5524    .no-comments,
     5525    .site-info,
     5526    .site-info a,
     5527    .wp-caption-text,
     5528    .gallery-caption {
     5529        color: #000 !important; /* Make sure color schemes don't affect to print */
     5530    }
     5531
     5532    pre,
     5533    abbr[title],
     5534    table,
     5535    th,
     5536    td,
     5537    .site-header,
     5538    .site-footer,
     5539    .hentry + .hentry,
     5540    .author-info,
     5541    .page-header,
     5542    .comments-area,
     5543    .comment-list + .comment-respond,
     5544    .comment-list article,
     5545    .comment-list .pingback,
     5546    .comment-list .trackback,
     5547    .no-comments {
     5548        border-color: #eaeaea !important; /* Make sure color schemes don't affect to print */
     5549    }
     5550
     5551    .site {
     5552        margin: 0 7.6923%;
     5553    }
     5554
     5555    .site-branding {
     5556        padding: 0;
     5557    }
     5558
     5559    .site-header {
     5560        padding: 7.6923% 0;
     5561    }
     5562
     5563    .site-description {
     5564        display: block;
     5565    }
     5566
     5567    .hentry + .hentry {
     5568        margin-top: 7.6923%;
     5569    }
     5570
     5571    .hentry.has-post-thumbnail {
     5572        padding-top: 7.6923%;
     5573    }
     5574
     5575    .sticky-post {
     5576        background: #000 !important;
     5577        color: #fff !important;
     5578    }
     5579
     5580    .entry-header,
     5581    .entry-footer  {
     5582        padding: 0;
     5583    }
     5584
     5585    .entry-content,
     5586    .entry-summary {
     5587        padding: 0 0 7.6923%;
     5588    }
     5589
     5590    .post-thumbnail img {
     5591        margin: 0;
     5592    }
     5593
     5594    .author-info {
     5595        margin: 0;
     5596    }
     5597
     5598    .page-content {
     5599        padding: 7.6923% 0 0;
     5600    }
     5601
     5602    .page-header {
     5603        padding: 3.84615% 0;
     5604    }
     5605
     5606    .comments-area {
     5607        border: 0;
     5608        padding: 7.6923% 0 0;
     5609    }
     5610
     5611    .site-footer {
     5612        margin-top: 7.6923%;
     5613        padding: 3.84615% 0;
     5614    }
     5615}
Note: See TracChangeset for help on using the changeset viewer.