Make WordPress Core

Changeset 38962


Ignore:
Timestamp:
10/26/2016 04:42:10 PM (8 years ago)
Author:
davidakennedy
Message:

Twenty Seventeen: Improve front end display in Internet Explorer 8

  • Fixes the display issues with the header. The header doesn't look exactly like it does in newer browsers, but it's closer.
  • Gets the font sizes a bit more consistent with how it looks like other browsers.
  • IE8 doesn't support SVGs, so it's using the fallback styles for some of the icons. The fallbacks are limited to the absolutely necessary icons - so there is one for the submenu dropdown toggle icon, but not for the little 'hamburger' and X that sit in front of the 'menu' button.

Props laurelfulford.

Fixes #38472.

Location:
trunk/src/wp-content/themes/twentyseventeen
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/assets/css/ie8.css

    r38833 r38962  
    44*/
    55
     6body {
     7    font-size: 16px;
     8}
    69
    710h1 {
     
    3639}
    3740
     41img {
     42    width: inherit;  /* Make images fill their parent's space. */
     43}
     44
     45/* Fixes linked images */
     46.entry-content a img,
     47.widget a img {
     48    filter: progid:DXImageTransform.Microsoft.DropShadow(OffX=0, OffY=5, Color=#ffffff);
     49}
     50
     51/* Layout */
     52
     53.site-content {
     54    padding: 6.5em 0 0;
     55}
     56
    3857/* Site Branding */
    3958
     59.custom-header {
     60    overflow: hidden;
     61}
     62
     63.custom-header-image {
     64    background-position: bottom center;
     65}
     66
     67.site-branding {
     68    padding: 45px 0;
     69}
     70
    4071.site-title {
     72    font-size: 36px;
    4173    font-weight: bolder;
    4274}
    4375
     76.site-description {
     77    font-size: 16px;
     78}
     79
    4480/* Main Navigation */
     81
     82.navigation-top {
     83    background: #fff;
     84    position: relative;
     85    z-index: 10;
     86}
    4587
    4688.menu-toggle {
     
    5193    margin-bottom: -1px;
    5294    padding: 0;
     95}
     96
     97.no-svg .dropdown-toggle {
     98    padding: 0.25em 0 0;
     99}
     100
     101.no-svg .dropdown-toggle.toggled-on {
     102    padding: 0.75em 0 0;
    53103}
    54104
     
    63113/* Front Page */
    64114
    65 .custom-header-image,
     115.twentyseventeen-front-page.has-header-image .custom-header,
     116.blog.home.has-header-image .custom-header,
    66117.panel-image {
    67     height: 1000px;
    68     max-height: 1000px;
     118    height: 800px;
     119    max-height: 800px;
    69120    padding-top: 0;
     121}
     122
     123.twentyseventeen-front-page .custom-header-image,
     124.blog.home .custom-header-image {
     125    background-position: center center;
     126}
     127
     128.twentyseventeen-front-page.has-header-image .site-branding,
     129.home.blog.has-header-image .site-branding {
     130    bottom: 20px;
     131    position: absolute;
     132    width: 100%;
    70133}
    71134
     
    82145/* Posts */
    83146
     147.blog .site-main > article,
     148.archive .site-main > article,
     149.search .site-main > article {
     150    padding-bottom: 4em;
     151}
     152
    84153time.updated {
    85154    display: none;
     
    94163}
    95164
    96 .blog .post,
    97 .archive .post,
    98 .search .post,
    99 .search .page {
    100     padding-bottom: 4em;
     165.single-post .entry-title,
     166.page .entry-title,
     167.entry-meta + .entry-title {
     168    font-size: 26px;
     169    font-weight: normal;
     170    letter-spacing: normal;
     171    padding-top: 0;
     172    text-transform: none;
     173}
     174
     175.entry-footer .cat-links,
     176.entry-footer .tags-links {
     177    padding-left: 0;
    101178}
    102179
     
    105182}
    106183
    107 img {
    108     width: inherit;  /* Make images fill their parent's space. */
     184ol.children .children {
     185    padding-left: 2em;
    109186}
    110187
    111 /* Fixes linked images */
    112 .entry-content a img,
    113 .widget a img {
    114     filter: progid:DXImageTransform.Microsoft.DropShadow(OffX=0, OffY=5, Color=#fff);
     188/* RTL Styles */
     189
     190.rtl .entry-footer .cat-links,
     191.rtl .entry-footer .tags-links {
     192    padding-right: 0;
    115193}
     194
     195.rtl ol.children .children {
     196    padding-left: 0;
     197    padding-right: 2em;
     198}
  • trunk/src/wp-content/themes/twentyseventeen/rtl.css

    r38892 r38962  
    245245.gallery-caption {
    246246    text-align: right;
     247}
     248
     249/* SVG Fallback */
     250
     251.no-svg .dropdown-toggle {
     252    left: 0;
     253    right: auto;
    247254}
    248255
  • trunk/src/wp-content/themes/twentyseventeen/style.css

    r38918 r38962  
    30183018}
    30193019
     3020.no-svg .dropdown-toggle {
     3021    padding: 0.5em 0 0;
     3022    right: 0;
     3023    text-align: center;
     3024    width: 2em;
     3025}
     3026
    30203027.no-svg .dropdown-toggle .svg-fallback.icon-expand {
    3021     font-size: 16px;
    3022     font-size: 1em;
    3023     font-weight: 400;
    3024     line-height: 2.5em;
    3025     position: absolute;
    3026     top: 8px;
     3028    font-size: 20px;
     3029    font-size: 1.25rem;
     3030    font-weight: normal;
     3031    line-height: 1;
    30273032    -webkit-transform: rotate(180deg); /* Chrome, Safari, Opera */
    30283033    -ms-transform: rotate(180deg); /* IE 9 */
     
    30383043.no-svg .dropdown-toggle .svg-fallback.icon-expand:before {
    30393044    content: "\005E";
    3040     display: block;
    3041     height: 25px;
    3042     text-align: center;
    3043     width: 20px;
    30443045}
    30453046
Note: See TracChangeset for help on using the changeset viewer.