Make WordPress Core

Changeset 21392


Ignore:
Timestamp:
08/01/2012 03:47:02 PM (14 years ago)
Author:
lancewillett
Message:

Twenty Twelve: add print styles to stylesheet, first pass props obenland. See #21377.

File:
1 edited

Legend:

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

    r21372 r21392  
    14561456        margin: 0.857142857rem 0;
    14571457}
     1458
     1459
     1460/* =Print
     1461----------------------------------------------- */
     1462
     1463@media print {
     1464        body {
     1465                background: none !important;
     1466                font-size: 10pt;
     1467        }
     1468        footer a[rel=bookmark]:link:after,
     1469        footer a[rel=bookmark]:visited:after {
     1470                content: " [" attr(href) "] "; /* Show URLs */
     1471        }
     1472        .entry-content img,
     1473        .comment-content img,
     1474        #author-avatar img,
     1475        img.wp-post-image {
     1476                border-radius: 0;
     1477                box-shadow: none;
     1478        }
     1479        #page {
     1480                clear: both !important;
     1481                display: block !important;
     1482                float: none !important;
     1483                max-width: 100%;
     1484                position: relative !important;
     1485        }
     1486        .site-header {
     1487                margin-bottom: 72px;
     1488                margin-bottom: 5.142857143rem;
     1489                text-align: left;
     1490        }
     1491        .site-header hgroup h1 {
     1492                font-size: 21pt;
     1493                line-height: 1;
     1494                text-align: left;
     1495        }
     1496        .site-header hgroup h2 {
     1497                font-size: 10pt;
     1498                text-align: left;
     1499        }
     1500        img.header-image {
     1501                display: none;
     1502        }
     1503        nav.site-navigation {
     1504                display: none;
     1505        }
     1506        #main {
     1507                border-top: none;
     1508                box-shadow: none;
     1509        }
     1510        #primary {
     1511                float: left;
     1512                margin: 0;
     1513                width: 100%;
     1514        }
     1515        #content {
     1516                margin: 0;
     1517                width: auto;
     1518        }
     1519        .singular #content {
     1520                margin: 0;
     1521                width: 100%;
     1522        }
     1523        .singular .entry-header .entry-meta {
     1524                position: static;
     1525        }
     1526        .entry-meta .edit-link a {
     1527                display: none;
     1528        }
     1529        #content nav {
     1530                display: none;
     1531        }
     1532        .singular .entry-header,
     1533        .singular .entry-content,
     1534        .singular footer.entry-meta,
     1535        .singular #comments-title {
     1536                margin: 0;
     1537                width: 100%;
     1538        }
     1539        header.entry-header .entry-title,
     1540        .entry-title,
     1541        .singular .entry-title {
     1542                font-size: 21pt;
     1543        }
     1544        .entry-meta {
     1545                font-size: 10pt;
     1546        }
     1547        .entry-header .comments-link {
     1548                display: none;
     1549        }
     1550        .page-link {
     1551                display: none;
     1552        }
     1553        #author-avatar {
     1554                display: none;
     1555        }
     1556        #author-description {
     1557                float: none;
     1558                width: auto;
     1559        }
     1560        #respond {
     1561                display: none;
     1562        }
     1563        #secondary {
     1564                display: none;
     1565        }
     1566        #colophon {
     1567                display: none;
     1568        }
     1569
     1570        /* Comments */
     1571        .commentlist > li.comment {
     1572                background: none;
     1573                position: relative;
     1574                width: auto;
     1575        }
     1576        .commentlist .avatar {
     1577                height: 39px;
     1578                left: 2.2em;
     1579                top: 2.2em;
     1580                width: 39px;
     1581        }
     1582        #comments article header cite,
     1583        #comments article header time {
     1584                margin-left: 50px;
     1585                margin-left: 3.57142857rem;
     1586        }
     1587        .commentlist .comment-edit-link {
     1588                display: none;
     1589        }
     1590        .commentlist .reply {
     1591                display: none;
     1592        }
     1593}
Note: See TracChangeset for help on using the changeset viewer.