WordPress.org

Make WordPress Core

Changeset 20291


Ignore:
Timestamp:
03/25/12 21:58:20 (2 years ago)
Author:
bumpbot
Message:

Compress scripts/styles: 3.4-alpha-20291.

Location:
trunk/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/css/customize-controls.css

    r20280 r20291  
    1 body{overflow:hidden}#customize-controls a{text-decoration:none}.customize-section{border-top:1px solid #fff;border-bottom:1px solid #dfdfdf;margin:0}.customize-section:last-child{box-shadow:0 1px 0 0 #fff}.customize-section-title{margin:0;padding:15px 20px;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.customize-section-content{display:none;padding:0 20px 15px;overflow:hidden}.customize-section.open .customize-section-content{display:block}.customize-section-title:after{content:'';width:0;height:0;border-color:#ccc transparent transparent transparent;border-style:solid;border-width:6px;position:absolute;top:20px;right:20px;z-index:1}.customize-section.open .customize-section-title:after{top:13px;border-color:transparent transparent #ccc transparent}#customize-info{margin-top:45px}#customize-info .customize-section-title:after{display:none}#customize-info.open .customize-section-title:after{display:block}#customize-info .customize-section-title .theme-screenshot{float:right;width:auto;height:53px;margin:-7px -13px 0 15px}#customize-info.open .customize-section-title .theme-screenshot{display:none}#customize-info .theme-name{font-size:16px;font-weight:bold;line-height:24px;display:block}#customize-info .theme-screenshot{width:258px;border:1px solid #ccc}#customize-info .theme-description{margin-top:1em;color:#777;line-height:20px}#customize-controls .submit{text-align:center}#customize-theme-controls{padding-bottom:60px}#customize-theme-controls ul{margin:0}.customize-control{float:left;clear:both;margin-bottom:4px}.customize-control-title{clear:left;float:left;min-width:110px;margin-right:10px;line-height:28px}.customize-control-text input,.customize-control-select select,.customize-control-checkbox input,.customize-control-color .color-picker,.customize-control-upload div{float:left;clear:right;line-height:28px}.customize-control-text input{width:138px;line-height:18px;margin:1px}.customize-control-select select{width:138px;height:28px;line-height:28px}.customize-control-checkbox input{margin-top:8px}.customize-control-radio{padding:5px 0 10px}.customize-control-radio .customize-control-title{margin-bottom:0;line-height:22px}.customize-control-radio label{float:left;clear:both;line-height:20px}.customize-control-radio input{margin-right:5px}#customize-preview{position:fixed;left:300px;right:0;top:0;bottom:0}#customize-preview iframe{width:100%;height:100%}.customize-loader{background:transparent;border:4px solid #666;border-radius:50%;display:block;margin:10px auto;text-indent:-9999px;height:12px;width:12px;-webkit-animation:customize-loader 1s infinite ease-out;-moz-animation:customize-loader 1s infinite ease-out;animation:customize-loader 1s infinite ease-out}@-moz-keyframes customize-loader{0%{opacity:0;-moz-transform:scale(0.7)}40%{opacity:1}100%{opacity:0;-moz-transform:scale(1)}}@-webkit-keyframes customize-loader{0%{opacity:0;-webkit-transform:scale(0.7)}40%{opacity:1}100%{opacity:0;-webkit-transform:scale(1)}}@keyframes customize-loader{0%{opacity:0;transform:scale(0.7)}40%{opacity:1}100%{opacity:0;transform:scale(1)}}.customize-section select{max-width:150px}.customize-section .color-picker a{display:block;height:20px;width:40px;border:solid 3px rgba(0,0,0,0.1);background-color:#fff;-webkit-border-radius:3px;border-radius:3px}.customize-section .color-picker .color-picker-controls{display:none}.customize-section .color-picker .farbtastic-placeholder{height:195px;width:195px;border:4px solid #fff;box-shadow:0 0 20px rgba(0,0,0,0.2);-webkit-border-radius:50%;border-radius:50%}.customize-section .color-picker-hex{background-color:#fff;border:1px solid #dfdfdf;-webkit-border-radius:3px;border-radius:3px;color:#777;width:70px;font-family:monospace}.customize-section .color-picker-hex span{float:left;display:block;margin:1px -2px 0 0;line-height:15px;padding:3px 0 3px 8px;text-align:right;-webkit-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.customize-section .color-picker-hex input[type="text"]{color:#777;-webkit-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0;width:50px;border:0;background:transparent}.customize-section .customize-image-picker{float:left}.customize-section .customize-image-picker .thumbnail{float:left;clear:left;width:100px;margin-right:20px;min-height:1em}.customize-section .customize-image-picker .thumbnail img{max-width:98px;max-height:98px;border:1px solid #ccc}.customize-section .customize-image-picker .actions{width:140px;float:left}.customize-section .customize-image-picker .actions a{display:block} 
     1body{overflow:hidden}#customize-controls a{text-decoration:none}.customize-section{border-top:1px solid #fff;border-bottom:1px solid #dfdfdf;margin:0}.customize-section:last-child{box-shadow:0 1px 0 0 #fff}.customize-section-title{margin:0;padding:15px 20px;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.customize-section-content{display:none;padding:0 20px 15px;overflow:hidden}.customize-section.open .customize-section-content{display:block}.customize-section-title:after{content:'';width:0;height:0;border-color:#ccc transparent transparent transparent;border-style:solid;border-width:6px;position:absolute;top:20px;right:20px;z-index:1}.customize-section.open .customize-section-title:after{top:13px;border-color:transparent transparent #ccc transparent}#customize-info{margin-top:45px}#customize-info .customize-section-title:after{display:none}#customize-info.open .customize-section-title:after{display:block}#customize-info .customize-section-title .theme-screenshot{float:right;width:auto;height:53px;margin:-7px -13px 0 15px}#customize-info.open .customize-section-title .theme-screenshot{display:none}#customize-info .theme-name{font-size:16px;font-weight:bold;line-height:24px;display:block}#customize-info .theme-screenshot{width:258px;border:1px solid #ccc}#customize-info .theme-description{margin-top:1em;color:#777;line-height:20px}#customize-controls .submit{text-align:center}#customize-theme-controls{padding-bottom:60px}#customize-theme-controls>ul,#customize-theme-controls .customize-section-content{margin:0}.customize-control{float:left;clear:both;margin-bottom:4px}.customize-control-title{clear:left;float:left;min-width:110px;margin-right:10px;line-height:28px}.customize-control-text input,.customize-control-select select,.customize-control-checkbox input,.customize-control-color .color-picker,.customize-control-upload div{float:left;clear:right;line-height:28px}.customize-control-text input{width:138px;line-height:18px;margin:1px}.customize-control-select select{width:138px;height:28px;line-height:28px}.customize-control-checkbox input{margin-top:8px}.customize-control-radio{padding:5px 0 10px}.customize-control-radio .customize-control-title{margin-bottom:0;line-height:22px}.customize-control-radio label{float:left;clear:both;line-height:20px}.customize-control-radio input{margin-right:5px}#customize-preview{position:fixed;left:300px;right:0;top:0;bottom:0}#customize-preview iframe{width:100%;height:100%}.customize-loader{background:transparent;border:4px solid #666;border-radius:50%;display:block;margin:10px auto;text-indent:-9999px;height:12px;width:12px;-webkit-animation:customize-loader 1s infinite ease-out;-moz-animation:customize-loader 1s infinite ease-out;animation:customize-loader 1s infinite ease-out}@-moz-keyframes customize-loader{0%{opacity:0;-moz-transform:scale(0.7)}40%{opacity:1}100%{opacity:0;-moz-transform:scale(1)}}@-webkit-keyframes customize-loader{0%{opacity:0;-webkit-transform:scale(0.7)}40%{opacity:1}100%{opacity:0;-webkit-transform:scale(1)}}@keyframes customize-loader{0%{opacity:0;transform:scale(0.7)}40%{opacity:1}100%{opacity:0;transform:scale(1)}}.customize-section select{max-width:150px}.customize-section .color-picker a{display:block;height:20px;width:40px;border:solid 3px rgba(0,0,0,0.1);background-color:#fff;-webkit-border-radius:3px;border-radius:3px}.customize-section .color-picker .color-picker-controls{display:none}.customize-section .color-picker .farbtastic-placeholder{height:195px;width:195px;border:4px solid #fff;box-shadow:0 0 20px rgba(0,0,0,0.2);-webkit-border-radius:50%;border-radius:50%}.customize-section .color-picker-hex{background-color:#fff;border:1px solid #dfdfdf;-webkit-border-radius:3px;border-radius:3px;color:#777;width:70px;font-family:monospace}.customize-section .color-picker-hex span{float:left;display:block;margin:1px -2px 0 0;line-height:15px;padding:3px 0 3px 8px;text-align:right;-webkit-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.customize-section .color-picker-hex input[type="text"]{color:#777;-webkit-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0;width:50px;border:0;background:transparent}.customize-section .customize-image-picker{float:left}.customize-section .customize-image-picker .thumbnail{float:left;clear:left;width:100px;margin-right:20px;min-height:1em}.customize-section .customize-image-picker .thumbnail img{max-width:98px;max-height:98px;border:1px solid #ccc}.customize-section .customize-image-picker .actions{width:140px;float:left}.customize-section .customize-image-picker .actions a{display:block}.customize-section .customize-image-picker .library{display:none}.customize-section .customize-image-picker .library ul{border-bottom:1px solid #dfdfdf;float:left;width:100%;margin:5px 0}.customize-section .customize-image-picker .library li{color:#999;float:left;padding:4px 6px;margin:0;border-style:solid;border-color:transparent;border-width:1px 1px 0 1px}.customize-section .customize-image-picker .library li.library-selected{color:#777;border-color:#dfdfdf;background:#f5f5f5;margin-bottom:-1px;padding-bottom:5px}.customize-section .customize-image-picker .library div{width:100%;float:left}.customize-section .customize-image-picker .library a{display:block;max-width:220px;max-height:80px;margin:5px auto;padding:4px;background:#fff;border:1px solid #dfdfdf}.customize-section .customize-image-picker .library a:hover{border-color:#21759b}.customize-section .customize-image-picker .library img{display:block;max-width:220px;max-height:80px}.customize-section .customize-image-picker .library-content{display:none} 
  • trunk/wp-includes/js/customize-controls.js

    r20280 r20291  
    1 (function(a,c){var b=wp.customize;b.Control=b.Value.extend({initialize:function(g,f,e){var d='[name="'+b.settings.prefix+g+'"]';this.params={};b.Value.prototype.initialize.call(this,f,e);this.id=g;this.container=c("#customize-control-"+g);this.element=this.element||new b.Element(this.container.find(d));this.method=this.method||"refresh";this.element.link(this);this.link(this.element);this.bind(this.sync)},sync:function(){switch(this.method){case"refresh":return this.previewer.refresh();case"postMessage":return this.previewer.send("setting",[this.id,this()])}}});b.ColorControl=b.Control.extend({initialize:function(d,i,l){var k=this,g,h,j,f,e;b.Control.prototype.initialize.call(this,d,i,l);g=this.container.find(".color-picker");h=g.find(".color-picker-controls");f=g.find("a");e=function(m){m="#"+m;f.css("background",m);k.farbtastic.setColor(m)};this.input=new b.Element(h.find("input"));this.link(this.input);this.input.link(this);g.on("click","a",function(){h.toggle()});this.farbtastic=c.farbtastic(g.find(".farbtastic-placeholder"),function(m){k.set(m.replace("#",""))});this.bind(e);e(this())},validate:function(d){return/^[a-fA-F0-9]{3}([a-fA-F0-9]{3})?$/.test(d)?d:null}});b.UploadControl=b.Control.extend({initialize:function(g,e,d){var f=this;b.Control.prototype.initialize.call(this,g,e,d);this.params.removed=this.params.removed||"";this.uploader=new wp.Uploader({browser:this.container.find(".upload"),success:function(h){f.set(h.url)}});this.remover=this.container.find(".remove");this.remover.click(function(h){f.set(f.params.removed);h.preventDefault()});this.bind(this.removerVisibility);this.removerVisibility(this.get());if(this.params.context){f.uploader.param("post_data[context]",this.params.context)}},removerVisibility:function(d){this.remover.toggle(d!=this.params.removed)}});b.ImageControl=b.UploadControl.extend({initialize:function(f,e,d){b.UploadControl.prototype.initialize.call(this,f,e,d);this.thumbnail=this.container.find(".thumbnail img");this.bind(this.thumbnailSrc)},thumbnailSrc:function(d){if(/^(http:\/\/|https:\/\/|\/\/)/.test(d)){this.thumbnail.prop("src",d).show()}else{this.thumbnail.hide()}}});b.defaultConstructor=b.Setting;b.Previewer=b.Messenger.extend({refreshBuffer:250,initialize:function(e,d){c.extend(this,d||{});this.loaded=c.proxy(this.loaded,this);this.loaderUuid=0;this.refresh=(function(f){var g=f.refresh,i=function(){h=null;g.call(f)},h;return function(){if(typeof h!=="number"){if(f.loading){f.loading.remove();delete f.loading;f.loader()}else{return i()}}clearTimeout(h);h=setTimeout(i,f.refreshBuffer)}})(this);this.iframe=b.ensure(e.iframe);this.form=b.ensure(e.form);this.name=this.iframe.prop("name");this.container=this.iframe.parent();b.Messenger.prototype.initialize.call(this,e.url,this.iframe[0].contentWindow);this._formOriginalProps={target:this.form.prop("target"),action:this.form.prop("action")};this.bind("url",function(f){if(this.url()==f||0!==f.indexOf(this.origin()+"/")||-1!==f.indexOf("wp-admin")){return}this.url(f);this.refresh()});this.refresh();this.form.on("keydown",function(f){if(13===f.which){f.preventDefault()}})},loader:function(){if(this.loading){return this.loading}this.loading=c("<iframe />",{name:this.name+"-loading-"+this.loaderUuid++}).appendTo(this.container);return this.loading},loaded:function(){this.iframe.remove();this.iframe=this.loading;delete this.loading;this.iframe.prop("name",this.name);this.targetWindow(this.iframe[0].contentWindow)},refresh:function(){this.loader().one("load",this.loaded);this.submit({target:this.loader().prop("name"),action:this.url()})},submit:function(d){if(d){this.form.prop(d)}this.form.submit();if(d){this.form.prop(this._formOriginalProps)}}});b.controls={color:b.ColorControl,upload:b.UploadControl,image:b.ImageControl};c(function(){if(!b.settings){return}var d=new b.Previewer({iframe:"#customize-preview iframe",form:"#customize-controls",url:b.settings.preview});c.each(b.settings.controls,function(h,f){var e=b.controls[f.control]||b.Control,g;g=b.add(h,new e(h,f.value,{params:f.params,previewer:d}));if(f.visibility){b(f.visibility.id,function(i){if("boolean"===typeof f.visibility.value){i.bind(function(j){g.container.toggle(!!j==f.visibility.value)})}else{i.bind(function(j){g.container.toggle(j==f.visibility.value)})}})}});c(".customize-section-title").click(function(){c(this).parents(".customize-section").toggleClass("open");return false});c("#save").click(function(){d.submit();return false});b("background_color",function(e){e.method="postMessage"})})})(wp,jQuery); 
     1(function(a,c){var b=wp.customize;b.Control=b.Value.extend({initialize:function(g,f,e){var d='[name="'+b.settings.prefix+g+'"]';this.params={};b.Value.prototype.initialize.call(this,f,e);this.id=g;this.container=c("#customize-control-"+g);this.element=this.element||new b.Element(this.container.find(d));this.method=this.method||"refresh";this.element.link(this);this.link(this.element);this.bind(this.sync)},sync:function(){switch(this.method){case"refresh":return this.previewer.refresh();case"postMessage":return this.previewer.send("setting",[this.id,this()])}}});b.ColorControl=b.Control.extend({initialize:function(d,i,l){var k=this,g,h,j,f,e;b.Control.prototype.initialize.call(this,d,i,l);g=this.container.find(".color-picker");h=g.find(".color-picker-controls");f=g.find("a");e=function(m){m="#"+m;f.css("background",m);k.farbtastic.setColor(m)};this.input=new b.Element(h.find("input"));this.link(this.input);this.input.link(this);g.on("click","a",function(){h.toggle()});this.farbtastic=c.farbtastic(g.find(".farbtastic-placeholder"),function(m){k.set(m.replace("#",""))});this.bind(e);e(this())},validate:function(d){return/^[a-fA-F0-9]{3}([a-fA-F0-9]{3})?$/.test(d)?d:null}});b.UploadControl=b.Control.extend({initialize:function(g,e,d){var f=this;b.Control.prototype.initialize.call(this,g,e,d);this.params.removed=this.params.removed||"";this.uploader=new wp.Uploader({browser:this.container.find(".upload"),success:function(h){f.set(h.url)}});this.remover=this.container.find(".remove");this.remover.click(function(h){f.set(f.params.removed);h.preventDefault()});this.bind(this.removerVisibility);this.removerVisibility(this.get());if(this.params.context){f.uploader.param("post_data[context]",this.params.context)}},removerVisibility:function(d){this.remover.toggle(d!=this.params.removed)}});b.ImageControl=b.UploadControl.extend({initialize:function(g,e,d){var f=this;b.UploadControl.prototype.initialize.call(this,g,e,d);this.thumbnail=this.container.find(".thumbnail img");this.bind(this.thumbnailSrc);this.library=this.container.find(".library");this.changer=this.container.find(".change");this.changer.click(function(h){f.library.toggle();h.preventDefault()});this.library.on("click","li",function(i){var h=c(this),j=h.data("customizeTab");i.preventDefault();if(h.hasClass("library-selected")){return}h.siblings(".library-selected").removeClass("library-selected");h.addClass("library-selected");f.library.find("div").hide().filter(function(){return c(this).data("customizeTab")===j}).show()});this.library.on("click","a",function(h){f.set(c(this).attr("href"));h.preventDefault()})},thumbnailSrc:function(d){if(/^(https?:)?\/\//.test(d)){this.thumbnail.prop("src",d).show()}else{this.thumbnail.hide()}}});b.defaultConstructor=b.Setting;b.Previewer=b.Messenger.extend({refreshBuffer:250,initialize:function(e,d){c.extend(this,d||{});this.loaded=c.proxy(this.loaded,this);this.loaderUuid=0;this.refresh=(function(f){var g=f.refresh,i=function(){h=null;g.call(f)},h;return function(){if(typeof h!=="number"){if(f.loading){f.loading.remove();delete f.loading;f.loader()}else{return i()}}clearTimeout(h);h=setTimeout(i,f.refreshBuffer)}})(this);this.iframe=b.ensure(e.iframe);this.form=b.ensure(e.form);this.name=this.iframe.prop("name");this.container=this.iframe.parent();b.Messenger.prototype.initialize.call(this,e.url,this.iframe[0].contentWindow);this._formOriginalProps={target:this.form.prop("target"),action:this.form.prop("action")};this.bind("url",function(f){if(this.url()==f||0!==f.indexOf(this.origin()+"/")||-1!==f.indexOf("wp-admin")){return}this.url(f);this.refresh()});this.refresh();this.form.on("keydown",function(f){if(13===f.which){f.preventDefault()}})},loader:function(){if(this.loading){return this.loading}this.loading=c("<iframe />",{name:this.name+"-loading-"+this.loaderUuid++}).appendTo(this.container);return this.loading},loaded:function(){this.iframe.remove();this.iframe=this.loading;delete this.loading;this.iframe.prop("name",this.name);this.targetWindow(this.iframe[0].contentWindow)},refresh:function(){this.loader().one("load",this.loaded);this.submit({target:this.loader().prop("name"),action:this.url()})},submit:function(d){if(d){this.form.prop(d)}this.form.submit();if(d){this.form.prop(this._formOriginalProps)}}});b.controls={color:b.ColorControl,upload:b.UploadControl,image:b.ImageControl};c(function(){if(!b.settings){return}var d=new b.Previewer({iframe:"#customize-preview iframe",form:"#customize-controls",url:b.settings.preview});c.each(b.settings.controls,function(h,f){var e=b.controls[f.control]||b.Control,g;g=b.add(h,new e(h,f.value,{params:f.params,previewer:d}));if(f.visibility){b(f.visibility.id,function(i){if("boolean"===typeof f.visibility.value){i.bind(function(j){g.container.toggle(!!j==f.visibility.value)})}else{i.bind(function(j){g.container.toggle(j==f.visibility.value)})}})}});c(".customize-section-title").click(function(){c(this).parents(".customize-section").toggleClass("open");return false});c("#save").click(function(){d.submit();return false});b("background_color",function(e){e.method="postMessage"})})})(wp,jQuery); 
  • trunk/wp-includes/version.php

    r20284 r20291  
    55 * @global string $wp_version 
    66 */ 
    7 $wp_version = '3.4-alpha-20284'; 
     7$wp_version = '3.4-alpha-20291'; 
    88 
    99/** 
Note: See TracChangeset for help on using the changeset viewer.