Make WordPress Core

Changeset 23781


Ignore:
Timestamp:
03/22/2013 05:20:55 PM (14 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: style up the new mediaelement audio and video players. Props obenland, fixes #23821.

Location:
trunk/wp-content/themes/twentythirteen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/rtl.css

    r23698 r23781  
    343343
    344344.format-audio .entry-content:before {
    345         float: none;
    346         content: normal;
    347         font-size: inherit;
    348 }
    349 
    350 .format-audio .entry-content:after {
    351         content: "\f109";
    352         font-size: 64px;
     345        -ms-filter: "FlipH";
     346        filter: FlipH;
     347        float: right;
     348        -webkit-transform: scaleX(-1);
     349        -moz-transform:    scaleX(-1);
     350        -o-transform:      scaleX(-1);
     351        transform:         scaleX(-1);
    353352}
    354353
  • trunk/wp-content/themes/twentythirteen/style.css

    r23771 r23781  
    12421242}
    12431243
     1244/* Mediaelements */
     1245.entry-content .mejs-container .mejs-controls {
     1246        background: #220e10;
     1247}
     1248
     1249.entry-content .mejs-controls .mejs-time-rail .mejs-time-loaded,
     1250.entry-content .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
     1251        background: #fff;
     1252}
     1253
     1254.entry-content .mejs-controls .mejs-time-rail .mejs-time-current {
     1255        background: #ea9629;
     1256}
     1257
     1258.entry-content .mejs-controls .mejs-time-rail .mejs-time-total,
     1259.entry-content .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total {
     1260        background: #595959;
     1261}
     1262
     1263.entry-content .mejs-controls .mejs-time-rail span,
     1264.entry-content .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total,
     1265.entry-content .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
     1266        border-radius: 0;
     1267}
     1268
    12441269
    12451270/**
    … …  
    14421467
    14431468.format-audio .entry-content:before {
     1469        content: "\f109";
    14441470        float: left;
    1445         content: "\f109";
    14461471        font-size: 64px;
    1447 }
    1448 
    1449 .format-audio .entry-content:before,
    1450 .format-audio .entry-content:after {
    1451         display: inline-block;
     1472        position: relative;
     1473        top: 4px;
    14521474}
    14531475
    … …  
    14701492        background-size: 4px 4px;
    14711493        float: right;
    1472         margin: 0 0 24px;
    14731494        padding-left: 35px;
    14741495        width: 80%;
    14751496        width: -webkit-calc(100% - 115px);
    14761497        width:         calc(100% - 115px);
     1498}
     1499
     1500.format-audio .wp-audio-shortcode {
     1501        height: 30px !important; /* Override mediaelement.js style */
     1502        margin: 20px 0;
     1503        max-width: 400px !important; /* Override mediaelement.js style */
    14771504}
    14781505
Note: See TracChangeset for help on using the changeset viewer.