diff --git a/wp-admin/css/theme-rtl.css b/wp-admin/css/theme-rtl.css index 7b7916c850..decfd15585 100644 --- a/wp-admin/css/theme-rtl.css +++ b/wp-admin/css/theme-rtl.css @@ -340,11 +340,10 @@ /* * The search form */ -.theme-browser .theme-search { - float: right; +.themes-php .theme-search { position: relative; - top: 7px; - right: 10px; + top: -2px; + right: 20px; font-size: 16px; font-weight: 300; line-height: 1.5; diff --git a/wp-admin/css/theme-rtl.min.css b/wp-admin/css/theme-rtl.min.css index fc5ff1dcd9..99bc4ea26a 100644 --- a/wp-admin/css/theme-rtl.min.css +++ b/wp-admin/css/theme-rtl.min.css @@ -1 +1 @@ -.theme-browser .themes{clear:both;padding:0 0 100px}.themes-php .wrap h2{float:right;margin-bottom:15px}.themes-php .wrap h2 .button{margin-right:20px}.themes-php .theme-count{color:#fff;border-radius:30px;background:#777;font-size:14px;padding:4px 10px;font-weight:600;margin-right:5px;margin-left:20px;position:relative;top:-3px}.themes-php div.updated{margin:0 0 20px;clear:both}.themes-php div.updated a{text-decoration:underline}.theme{cursor:pointer;float:right;margin:0 0 96% 5%;position:relative;width:30%;border:1px solid #dedede;-webkit-box-shadow:0 1px 1px -1px rgba(0,0,0,.1);box-shadow:0 1px 1px -1px rgba(0,0,0,.1);-moz-box-sizing:border-box;box-sizing:border-box}.theme:nth-child(3n){margin-left:0}.theme:hover,.theme:focus{cursor:pointer}.theme .theme-name{font-size:15px;font-weight:600;margin:0;padding:15px;box-shadow:inset 0 1px 0 rgba(0,0,0,.1);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.theme-name{background:#fff;background:rgba(255,255,255,.65)}.theme .theme-actions{opacity:0;transition:opacity .1s ease-in-out;position:absolute;bottom:0;left:0;height:38px;padding:9px 10px 0;background:rgba(244,244,244,.7);border-right:1px solid rgba(0,0,0,.05)}.theme:hover .theme-actions{opacity:1}.theme .theme-actions .button-primary{margin-left:3px}.theme .theme-actions .button-secondary{float:none;margin-right:3px}.theme .theme-screenshot{display:block;overflow:hidden;position:relative;transition:opacity .2s ease-in-out}.theme .theme-screenshot:after{content:'';display:block;padding-top:66%}.theme .theme-screenshot img{height:auto;position:absolute;right:0;top:0;width:100%;-webkit-transform:translateZ(0);transition:opacity .2s ease-in-out}.theme:after{display:block;opacity:0;content:'\f348';-webkit-font-smoothing:antialiased;font:400 64px/1 dashicons;vertical-align:middle;text-align:center;color:#000;position:absolute;top:0;right:0;left:0;padding-top:24%;text-shadow:0 1px 20px rgba(255,255,255,.9);transition:opacity .2s ease-in-out}.theme:hover:after{opacity:.6}.theme:hover .theme-screenshot{background:#fff}.theme:hover .theme-screenshot img{opacity:.4}.theme .theme-update{background:#d54e21;background:rgba(213,78,33,.95);color:#fff;display:block;font-size:13px;font-weight:400;height:48px;line-height:48px;padding:0 10px;position:absolute;top:0;left:0;right:0;border-bottom:1px solid rgba(0,0,0,.25);overflow:hidden}.theme .theme-update:before{content:'\f113';display:inline-block;font:400 20px/1 dashicons;margin:0 0 0 6px;opacity:.8;position:relative;top:5px;speak:none;-webkit-font-smoothing:antialiased}.theme.active{}.theme.active .theme-screenshot{}.theme.active .theme-name{background:#0074a2;color:#fff;box-shadow:inset 0 1px 1px rgba(0,0,0,.5)}.theme.active .theme-actions{top:0;right:0;background:#2f2f2f;height:48px;opacity:1;line-height:48px;padding:0 10px;z-index:1}.theme.active .theme-actions .button{float:left;margin-top:10px}.theme.active .current-label{font-size:13px;font-weight:400;color:#ccc;margin-right:5px}.theme.active .current-label:before{color:#7ad03a;content:'\f147';display:inline-block;display:none;font:400 24px/1 dashicons;margin:0 0 0 4px;position:relative;top:6px;speak:none;-webkit-font-smoothing:antialiased}.theme.active .theme-update{top:48px}.theme .theme-author{background:#222;color:#eee;display:none;font-size:14px;margin:0 10px;padding:5px 10px;position:absolute;bottom:56px}.theme.display-author .theme-author{display:block}.theme.display-author .theme-author a{color:inherit;text-decoration:none}.theme.active .theme-screenshot{}.theme-browser .add-new-theme{border:0;box-shadow:none}.theme-browser .add-new-theme a{color:#999;text-decoration:none;display:block;position:relative;z-index:1}.theme-browser .add-new-theme:after{display:block;content:'';opacity:1;background:rgba(0,0,0,0);position:absolute;top:0;right:0;left:0;bottom:0;padding:90% 0 0;text-shadow:none;transition:opacity .2s ease-in-out;border:5px dashed rgba(0,0,0,.1);box-sizing:border-box}.theme-browser .add-new-theme span:after{background:rgba(153,153,153,.1);border-radius:50%;display:inline-block;content:'\f132';-webkit-font-smoothing:antialiased;font:400 74px/115px dashicons;width:100px;height:100px;vertical-align:middle;text-align:center;color:#999;position:absolute;top:30%;right:50%;margin-right:-50px;text-indent:-4px;padding:0;text-shadow:none;z-index:4}.theme-browser .add-new-theme:hover .theme-screenshot{background:0}.theme-browser .add-new-theme:hover span:after{background:#fff;color:#0074a2}.theme-browser .add-new-theme:hover:after{border-color:transparent;color:#fff;background:#0074a2}.theme-browser .add-new-theme .theme-name{background:0;text-align:center;box-shadow:none;font-weight:400;position:relative;top:-50px}.theme-browser .add-new-theme:hover .theme-name{color:#fff;z-index:2}.theme-browser .theme-search{float:right;position:relative;top:7px;right:10px;font-size:16px;font-weight:300;line-height:1.5}.theme-overlay .theme-backdrop{position:absolute;right:-20px;left:0;top:0;bottom:0;background:rgba(238,238,238,.9);z-index:10}body.theme-overlay-open{overflow:hidden}.theme-overlay .theme-utility{position:absolute;top:0;right:0;left:0;border-bottom:1px solid #eee}.theme-overlay .back{cursor:pointer;height:48px;width:50px;text-align:center;float:left;border-right:1px solid #eee}.theme-overlay .back:hover{background:#333}.theme-overlay .back:hover:before{color:#fff}.theme-overlay .back:before{font:400 30px/48px dashicons!important;color:#bbb;display:inline-block;content:'\f335';font-weight:300}.theme-overlay .right,.theme-overlay .left{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;height:48px;width:54px;float:right;text-align:center;border-left:1px solid #eee}.theme-overlay .right:hover,.theme-overlay .left:hover{background:#333}.theme-overlay .right:hover:before,.theme-overlay .left:hover:before{color:#fff}.theme-overlay .left:before{content:'\f341'}.theme-overlay .right:before{content:'\f345'}.theme-overlay .right:before,.theme-overlay .left:before{font:400 16px/54px dashicons!important;display:inline;font-weight:300}.theme-overlay .left:before{}.theme-overlay .theme-wrap{clear:both;position:fixed;top:120px;right:190px;left:40px;bottom:80px;overflow:auto;background:#fff;padding:88px 40px 110px;box-shadow:0 1px 20px 5px rgba(0,0,0,.1),0 0 0 1px rgba(0,0,0,.1);z-index:20}.theme-overlay .theme-wrap:after{content:".";display:block;height:0;clear:both;visibility:hidden}.theme-overlay .theme-actions{position:fixed;text-align:center;bottom:80px;right:190px;left:40px;padding:20px 25px;background:rgba(243,243,243,.9);border-top:1px solid rgba(0,0,0,.1);z-index:30}.theme-overlay.active .theme-actions{}.theme-overlay .theme-actions a{margin-left:5px;margin-bottom:0;font-size:16px;line-height:37px;height:37px;padding:0 20px 1px}.theme-overlay .theme-actions .delete-theme{border-radius:2px;color:#a00;font-size:14px;padding:0 10px;position:absolute;left:10px;bottom:20px;text-decoration:none}.theme-overlay .theme-actions .delete-theme:hover{background:#d54e21;color:#fff}.theme-overlay .theme-actions .active-theme,.theme-overlay.active .theme-actions .inactive-theme{display:none}.theme-overlay .theme-actions .inactive-theme,.theme-overlay.active .theme-actions .active-theme{display:block}.theme-overlay .theme-screenshots{float:right;margin:0 0 0 30px;width:55%;text-align:center}.theme-overlay .screenshot{background:#000;border:1px solid #fff;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;position:relative;box-shadow:0 0 0 1px rgba(0,0,0,.2)}.theme-overlay .screenshot:after{content:'';display:block;padding-top:66.66666%}.theme-overlay .screenshot img{cursor:pointer;height:auto;position:absolute;right:0;top:0;width:100%}.theme-overlay .screenshot.thumb{background:#ccc;border:1px solid #eee;float:none;display:inline-block;margin:10px 5px 0;width:140px;height:80px}.theme-overlay .screenshot.thumb:after{content:'';display:block;padding-top:100%}.theme-overlay .screenshot.thumb img{cursor:pointer;height:auto;position:absolute;right:0;top:0;width:100%;height:auto}.theme-overlay .screenshot.selected{background:transparent;border:2px solid #2ea2cc}.theme-overlay .screenshot.selected img{opacity:.8}.theme-overlay .theme-info{width:40%;float:right}.theme-overlay .current-label{background:#333;color:#fff;font-size:11px;display:inline-block;padding:2px 8px;border-radius:2px;margin:0 0 -10px;-webkit-user-select:none;user-select:none}.theme-overlay .theme-name{color:#222;font-size:32px;font-weight:100;margin:10px 0 0;line-height:1.3}.theme-overlay .theme-version{color:#999;font-size:13px;font-weight:400;float:none;display:inline-block;margin-right:10px;-webkit-user-select:none;user-select:none}.theme-overlay .theme-author{color:#686868;font-size:16px;font-weight:400;margin:15px 0 25px}.theme-overlay .theme-author a{color:inherit;text-decoration:none}.theme-overlay .theme-description{color:#555;font-size:15px;font-weight:400;line-height:1.5;margin:30px 0 0}.theme-overlay .theme-tags{border-top:3px solid #eee;color:#888;font-size:13px;font-weight:400;margin:30px 0 0;padding-top:20px;text-transform:capitalize}.theme-overlay .theme-tags span{color:#444;font-weight:700;margin-left:5px}.theme-overlay .theme-actions{}.theme-overlay .theme-update-message{background:#fefaf7;border:1px solid #eee;border-right:4px solid #d54e21;border-radius:3px;padding:5px 20px 10px}.theme-overlay .theme-update{color:#222;font-size:18px;display:inline-block;line-height:40px;margin:0}.theme-overlay .parent-theme{background:#f7fcfe;border:1px solid #eee;border-right:4px solid #2ea2cc;font-size:14px;font-weight:400;margin-top:30px;padding:10px 20px 10px 10px}.theme-overlay .parent-theme strong{font-weight:700}.theme-categories{background:#fbfbfb;border:1px solid #dedede;box-shadow:0 1px 1px -1px rgba(0,0,0,.1);color:#999;display:inline-block;font-size:13px;margin:20px 0 30px;padding:15px 20px}.theme-categories a{color:#999;margin:0 5px;text-decoration:none}.theme-categories a.current{border-bottom:2px solid #555;color:#555;font-weight:800}.theme-linear-grid{border-bottom:3px solid #ddd;margin:0 0 30px;overflow-x:hidden;padding-bottom:20px;position:relative}.theme-linear-grid .theme-section{margin:0 0 20px}.theme-linear-grid .themes{position:relative;white-space:nowrap}.theme-linear-grid .theme{float:none;display:inline-block;margin:0 0 0 2.4%}.theme-linear-grid .show-more-themes{background:rgba(0,0,0,.8);color:#eee;display:none;width:80px;height:100%;position:absolute;left:0;top:0}@media (min-width:1700px){.theme{width:22.7%;margin:0 0 3% 3%}.theme:nth-child(3n){margin-left:3%}.theme:nth-child(4n){margin-left:0}.theme-overlay .theme-wrap,.theme-overlay .theme-actions{left:15%;right:22%}}@media (max-width:1200px){.theme{width:47.5%;margin-left:0}.theme:nth-child(even){margin-left:0}.theme:nth-child(odd){margin-left:5%}}@media (max-width:900px){.theme-overlay .theme-wrap,.theme-overlay .theme-actions{right:76px}}@media (max-width:780px){.theme.active .theme-actions .button{margin-top:6px;margin-left:-3px}.theme-overlay .theme-wrap{top:45px;left:0;bottom:0;right:0;padding:70px 20px 100px}.theme-overlay .theme-actions{left:0;bottom:0;right:0;text-align:right;padding:10px}.theme-overlay .theme-screenshots{width:40%}.theme-overlay .theme-info{width:50%}.theme-overlay .theme-actions .delete-theme{bottom:10px}.theme-browser .theme-search{top:3px}}@media (max-width:650px){.theme{width:100%;margin-left:0}.theme:hover .theme-actions{display:none}.theme:nth-child(2n),.theme:nth-child(3n){margin-left:0}.theme-overlay .theme-update,.theme-overlay .theme-description{margin-right:0}.theme-overlay.active .theme-actions .active-theme .button:nth-child(3n){display:none}.theme.active .theme-actions .button{margin-top:6px;margin-left:0}.theme-overlay .theme-screenshots{width:100%;float:none}.theme-overlay .theme-info{width:100%}.theme-overlay .theme-author{margin:5px 0 15px}.theme-overlay .theme-version{margin-right:0;position:absolute;top:18px;right:130px}.theme-overlay .current-label{margin-top:10px;font-size:13px}.theme-browser .theme-search{float:none;clear:both;right:0;margin:10px 0;width:100%}} \ No newline at end of file +.theme-browser .themes{clear:both;padding:0 0 100px}.themes-php .wrap h2{float:right;margin-bottom:15px}.themes-php .wrap h2 .button{margin-right:20px}.themes-php .theme-count{color:#fff;border-radius:30px;background:#777;font-size:14px;padding:4px 10px;font-weight:600;margin-right:5px;margin-left:20px;position:relative;top:-3px}.themes-php div.updated{margin:0 0 20px;clear:both}.themes-php div.updated a{text-decoration:underline}.theme{cursor:pointer;float:right;margin:0 0 96% 5%;position:relative;width:30%;border:1px solid #dedede;-webkit-box-shadow:0 1px 1px -1px rgba(0,0,0,.1);box-shadow:0 1px 1px -1px rgba(0,0,0,.1);-moz-box-sizing:border-box;box-sizing:border-box}.theme:nth-child(3n){margin-left:0}.theme:hover,.theme:focus{cursor:pointer}.theme .theme-name{font-size:15px;font-weight:600;margin:0;padding:15px;box-shadow:inset 0 1px 0 rgba(0,0,0,.1);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.theme-name{background:#fff;background:rgba(255,255,255,.65)}.theme .theme-actions{opacity:0;transition:opacity .1s ease-in-out;position:absolute;bottom:0;left:0;height:38px;padding:9px 10px 0;background:rgba(244,244,244,.7);border-right:1px solid rgba(0,0,0,.05)}.theme:hover .theme-actions{opacity:1}.theme .theme-actions .button-primary{margin-left:3px}.theme .theme-actions .button-secondary{float:none;margin-right:3px}.theme .theme-screenshot{display:block;overflow:hidden;position:relative;transition:opacity .2s ease-in-out}.theme .theme-screenshot:after{content:'';display:block;padding-top:66%}.theme .theme-screenshot img{height:auto;position:absolute;right:0;top:0;width:100%;-webkit-transform:translateZ(0);transition:opacity .2s ease-in-out}.theme:after{display:block;opacity:0;content:'\f348';-webkit-font-smoothing:antialiased;font:400 64px/1 dashicons;vertical-align:middle;text-align:center;color:#000;position:absolute;top:0;right:0;left:0;padding-top:24%;text-shadow:0 1px 20px rgba(255,255,255,.9);transition:opacity .2s ease-in-out}.theme:hover:after{opacity:.6}.theme:hover .theme-screenshot{background:#fff}.theme:hover .theme-screenshot img{opacity:.4}.theme .theme-update{background:#d54e21;background:rgba(213,78,33,.95);color:#fff;display:block;font-size:13px;font-weight:400;height:48px;line-height:48px;padding:0 10px;position:absolute;top:0;left:0;right:0;border-bottom:1px solid rgba(0,0,0,.25);overflow:hidden}.theme .theme-update:before{content:'\f113';display:inline-block;font:400 20px/1 dashicons;margin:0 0 0 6px;opacity:.8;position:relative;top:5px;speak:none;-webkit-font-smoothing:antialiased}.theme.active{}.theme.active .theme-screenshot{}.theme.active .theme-name{background:#0074a2;color:#fff;box-shadow:inset 0 1px 1px rgba(0,0,0,.5)}.theme.active .theme-actions{top:0;right:0;background:#2f2f2f;height:48px;opacity:1;line-height:48px;padding:0 10px;z-index:1}.theme.active .theme-actions .button{float:left;margin-top:10px}.theme.active .current-label{font-size:13px;font-weight:400;color:#ccc;margin-right:5px}.theme.active .current-label:before{color:#7ad03a;content:'\f147';display:inline-block;display:none;font:400 24px/1 dashicons;margin:0 0 0 4px;position:relative;top:6px;speak:none;-webkit-font-smoothing:antialiased}.theme.active .theme-update{top:48px}.theme .theme-author{background:#222;color:#eee;display:none;font-size:14px;margin:0 10px;padding:5px 10px;position:absolute;bottom:56px}.theme.display-author .theme-author{display:block}.theme.display-author .theme-author a{color:inherit;text-decoration:none}.theme.active .theme-screenshot{}.theme-browser .add-new-theme{border:0;box-shadow:none}.theme-browser .add-new-theme a{color:#999;text-decoration:none;display:block;position:relative;z-index:1}.theme-browser .add-new-theme:after{display:block;content:'';opacity:1;background:rgba(0,0,0,0);position:absolute;top:0;right:0;left:0;bottom:0;padding:90% 0 0;text-shadow:none;transition:opacity .2s ease-in-out;border:5px dashed rgba(0,0,0,.1);box-sizing:border-box}.theme-browser .add-new-theme span:after{background:rgba(153,153,153,.1);border-radius:50%;display:inline-block;content:'\f132';-webkit-font-smoothing:antialiased;font:400 74px/115px dashicons;width:100px;height:100px;vertical-align:middle;text-align:center;color:#999;position:absolute;top:30%;right:50%;margin-right:-50px;text-indent:-4px;padding:0;text-shadow:none;z-index:4}.theme-browser .add-new-theme:hover .theme-screenshot{background:0}.theme-browser .add-new-theme:hover span:after{background:#fff;color:#0074a2}.theme-browser .add-new-theme:hover:after{border-color:transparent;color:#fff;background:#0074a2}.theme-browser .add-new-theme .theme-name{background:0;text-align:center;box-shadow:none;font-weight:400;position:relative;top:-50px}.theme-browser .add-new-theme:hover .theme-name{color:#fff;z-index:2}.themes-php .theme-search{position:relative;top:-2px;right:20px;font-size:16px;font-weight:300;line-height:1.5}.theme-overlay .theme-backdrop{position:absolute;right:-20px;left:0;top:0;bottom:0;background:rgba(238,238,238,.9);z-index:10}body.theme-overlay-open{overflow:hidden}.theme-overlay .theme-utility{position:absolute;top:0;right:0;left:0;border-bottom:1px solid #eee}.theme-overlay .back{cursor:pointer;height:48px;width:50px;text-align:center;float:left;border-right:1px solid #eee}.theme-overlay .back:hover{background:#333}.theme-overlay .back:hover:before{color:#fff}.theme-overlay .back:before{font:400 30px/48px dashicons!important;color:#bbb;display:inline-block;content:'\f335';font-weight:300}.theme-overlay .right,.theme-overlay .left{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;height:48px;width:54px;float:right;text-align:center;border-left:1px solid #eee}.theme-overlay .right:hover,.theme-overlay .left:hover{background:#333}.theme-overlay .right:hover:before,.theme-overlay .left:hover:before{color:#fff}.theme-overlay .left:before{content:'\f341'}.theme-overlay .right:before{content:'\f345'}.theme-overlay .right:before,.theme-overlay .left:before{font:400 16px/54px dashicons!important;display:inline;font-weight:300}.theme-overlay .left:before{}.theme-overlay .theme-wrap{clear:both;position:fixed;top:120px;right:190px;left:40px;bottom:80px;overflow:auto;background:#fff;padding:88px 40px 110px;box-shadow:0 1px 20px 5px rgba(0,0,0,.1),0 0 0 1px rgba(0,0,0,.1);z-index:20}.theme-overlay .theme-wrap:after{content:".";display:block;height:0;clear:both;visibility:hidden}.theme-overlay .theme-actions{position:fixed;text-align:center;bottom:80px;right:190px;left:40px;padding:20px 25px;background:rgba(243,243,243,.9);border-top:1px solid rgba(0,0,0,.1);z-index:30}.theme-overlay.active .theme-actions{}.theme-overlay .theme-actions a{margin-left:5px;margin-bottom:0;font-size:16px;line-height:37px;height:37px;padding:0 20px 1px}.theme-overlay .theme-actions .delete-theme{border-radius:2px;color:#a00;font-size:14px;padding:0 10px;position:absolute;left:10px;bottom:20px;text-decoration:none}.theme-overlay .theme-actions .delete-theme:hover{background:#d54e21;color:#fff}.theme-overlay .theme-actions .active-theme,.theme-overlay.active .theme-actions .inactive-theme{display:none}.theme-overlay .theme-actions .inactive-theme,.theme-overlay.active .theme-actions .active-theme{display:block}.theme-overlay .theme-screenshots{float:right;margin:0 0 0 30px;width:55%;text-align:center}.theme-overlay .screenshot{background:#000;border:1px solid #fff;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;position:relative;box-shadow:0 0 0 1px rgba(0,0,0,.2)}.theme-overlay .screenshot:after{content:'';display:block;padding-top:66.66666%}.theme-overlay .screenshot img{cursor:pointer;height:auto;position:absolute;right:0;top:0;width:100%}.theme-overlay .screenshot.thumb{background:#ccc;border:1px solid #eee;float:none;display:inline-block;margin:10px 5px 0;width:140px;height:80px}.theme-overlay .screenshot.thumb:after{content:'';display:block;padding-top:100%}.theme-overlay .screenshot.thumb img{cursor:pointer;height:auto;position:absolute;right:0;top:0;width:100%;height:auto}.theme-overlay .screenshot.selected{background:transparent;border:2px solid #2ea2cc}.theme-overlay .screenshot.selected img{opacity:.8}.theme-overlay .theme-info{width:40%;float:right}.theme-overlay .current-label{background:#333;color:#fff;font-size:11px;display:inline-block;padding:2px 8px;border-radius:2px;margin:0 0 -10px;-webkit-user-select:none;user-select:none}.theme-overlay .theme-name{color:#222;font-size:32px;font-weight:100;margin:10px 0 0;line-height:1.3}.theme-overlay .theme-version{color:#999;font-size:13px;font-weight:400;float:none;display:inline-block;margin-right:10px;-webkit-user-select:none;user-select:none}.theme-overlay .theme-author{color:#686868;font-size:16px;font-weight:400;margin:15px 0 25px}.theme-overlay .theme-author a{color:inherit;text-decoration:none}.theme-overlay .theme-description{color:#555;font-size:15px;font-weight:400;line-height:1.5;margin:30px 0 0}.theme-overlay .theme-tags{border-top:3px solid #eee;color:#888;font-size:13px;font-weight:400;margin:30px 0 0;padding-top:20px;text-transform:capitalize}.theme-overlay .theme-tags span{color:#444;font-weight:700;margin-left:5px}.theme-overlay .theme-actions{}.theme-overlay .theme-update-message{background:#fefaf7;border:1px solid #eee;border-right:4px solid #d54e21;border-radius:3px;padding:5px 20px 10px}.theme-overlay .theme-update{color:#222;font-size:18px;display:inline-block;line-height:40px;margin:0}.theme-overlay .parent-theme{background:#f7fcfe;border:1px solid #eee;border-right:4px solid #2ea2cc;font-size:14px;font-weight:400;margin-top:30px;padding:10px 20px 10px 10px}.theme-overlay .parent-theme strong{font-weight:700}.theme-categories{background:#fbfbfb;border:1px solid #dedede;box-shadow:0 1px 1px -1px rgba(0,0,0,.1);color:#999;display:inline-block;font-size:13px;margin:20px 0 30px;padding:15px 20px}.theme-categories a{color:#999;margin:0 5px;text-decoration:none}.theme-categories a.current{border-bottom:2px solid #555;color:#555;font-weight:800}.theme-linear-grid{border-bottom:3px solid #ddd;margin:0 0 30px;overflow-x:hidden;padding-bottom:20px;position:relative}.theme-linear-grid .theme-section{margin:0 0 20px}.theme-linear-grid .themes{position:relative;white-space:nowrap}.theme-linear-grid .theme{float:none;display:inline-block;margin:0 0 0 2.4%}.theme-linear-grid .show-more-themes{background:rgba(0,0,0,.8);color:#eee;display:none;width:80px;height:100%;position:absolute;left:0;top:0}@media (min-width:1700px){.theme{width:22.7%;margin:0 0 3% 3%}.theme:nth-child(3n){margin-left:3%}.theme:nth-child(4n){margin-left:0}.theme-overlay .theme-wrap,.theme-overlay .theme-actions{left:15%;right:22%}}@media (max-width:1200px){.theme{width:47.5%;margin-left:0}.theme:nth-child(even){margin-left:0}.theme:nth-child(odd){margin-left:5%}}@media (max-width:900px){.theme-overlay .theme-wrap,.theme-overlay .theme-actions{right:76px}}@media (max-width:780px){.theme.active .theme-actions .button{margin-top:6px;margin-left:-3px}.theme-overlay .theme-wrap{top:45px;left:0;bottom:0;right:0;padding:70px 20px 100px}.theme-overlay .theme-actions{left:0;bottom:0;right:0;text-align:right;padding:10px}.theme-overlay .theme-screenshots{width:40%}.theme-overlay .theme-info{width:50%}.theme-overlay .theme-actions .delete-theme{bottom:10px}.theme-browser .theme-search{top:3px}}@media (max-width:650px){.theme{width:100%;margin-left:0}.theme:hover .theme-actions{display:none}.theme:nth-child(2n),.theme:nth-child(3n){margin-left:0}.theme-overlay .theme-update,.theme-overlay .theme-description{margin-right:0}.theme-overlay.active .theme-actions .active-theme .button:nth-child(3n){display:none}.theme.active .theme-actions .button{margin-top:6px;margin-left:0}.theme-overlay .theme-screenshots{width:100%;float:none}.theme-overlay .theme-info{width:100%}.theme-overlay .theme-author{margin:5px 0 15px}.theme-overlay .theme-version{margin-right:0;position:absolute;top:18px;right:130px}.theme-overlay .current-label{margin-top:10px;font-size:13px}.theme-browser .theme-search{float:none;clear:both;right:0;margin:10px 0;width:100%}} \ No newline at end of file diff --git a/wp-admin/css/theme.css b/wp-admin/css/theme.css index b95543225b..9b70079f0a 100644 --- a/wp-admin/css/theme.css +++ b/wp-admin/css/theme.css @@ -340,11 +340,10 @@ /* * The search form */ -.theme-browser .theme-search { - float: left; +.themes-php .theme-search { position: relative; - top: 7px; - left: 10px; + top: -2px; + left: 20px; font-size: 16px; font-weight: 300; line-height: 1.5; diff --git a/wp-admin/js/theme.js b/wp-admin/js/theme.js index 36853a56a5..040015c5a1 100644 --- a/wp-admin/js/theme.js +++ b/wp-admin/js/theme.js @@ -73,7 +73,7 @@ themes.view.Appearance = wp.Backbone.View.extend({ // Render and append after screen title view.render(); - self.$el.append( view.el ); + $('#wpbody h2:first').append( view.el ); }, // Checks when the user gets close to the bottom diff --git a/wp-admin/js/theme.min.js b/wp-admin/js/theme.min.js index 1a484e66a4..2059a1e7bf 100644 --- a/wp-admin/js/theme.min.js +++ b/wp-admin/js/theme.min.js @@ -1 +1 @@ -window.wp=window.wp||{},function(a){var b,c;b=wp.themes=wp.themes||{},b.data=_wpThemeSettings,c=b.data.l10n,_.extend(b,{model:{},view:{},routes:{},router:{},template:wp.template}),b.model=Backbone.Model.extend({}),b.view.Appearance=wp.Backbone.View.extend({el:"#wpbody-content .wrap .theme-browser",window:a(window),page:0,initialize:function(){var a=this;this.window.bind("scroll.themes",function(){this.throttle=!0}),setInterval(function(){this.throttle&&(this.throttle=!1,a.scroller())},300)},render:function(){this.view=new b.view.Themes({collection:this.collection,parent:this}),this.search(),this.view.render(),this.$el.append(this.view.el)},search:function(){var a,c=this;a=new b.view.Search({collection:c.collection}),a.render(),c.$el.append(a.el)},scroller:function(){var a,b,c=this;a=this.window.scrollTop()+c.window.height(),b=c.$el.offset().top+c.$el.outerHeight(!1)-c.window.height(),b=Math.round(.9*b),a>b&&this.trigger("theme:scroll")}}),b.Collection=Backbone.Collection.extend({model:b.model,terms:"",doSearch:function(a){this.terms=a,this.terms.length>0&&this.search(this.terms),""===this.terms&&this.reset(b.data.themes),this.trigger("update")},search:function(a){var c,d,e,f=this;f.reset(b.data.themes),a=a.replace(" ",")(?=.*"),c=new RegExp("^(?=.*"+a+").+","i"),d=f.filter(function(a){return e=_.union(a.get("name"),a.get("author"),a.get("tags")),c.test(a.get("author"))&&a.set("displayAuthor",!0),c.test(e)}),f.reset(d)},paginate:function(a){var b=this;return a=a||0,b=_(b.rest(15*a)),b=_(b.first(15))}}),b.view.Theme=wp.Backbone.View.extend({className:"theme",state:"grid",html:b.template("theme"),events:{click:"expand"},render:function(){var a=this.model.toJSON();this.$el.html(this.html(a)),this.activeTheme(),this.model.get("displayAuthor")&&this.$el.addClass("display-author")},activeTheme:function(){this.model.get("active")&&(this.$el.addClass("active"),a(".theme-overlay").addClass("active"))},expand:function(b){var c=this;b=b||window.event,a(b.target).is(".theme-actions a, .delete-theme")||this.trigger("theme:expand",c.model.cid)}}),b.view.Details=wp.Backbone.View.extend({className:"theme-overlay",events:{click:"collapse","click .delete-theme":"deleteTheme","click .left":"previousTheme","click .right":"nextTheme"},html:b.template("theme-single"),render:function(){var a=this.model.toJSON();this.$el.html(this.html(a)),this.activeTheme(),this.navigation()},activeTheme:function(){this.$el.toggleClass("active",this.model.get("active"))},collapse:function(c){var d,e=this;c=c||window.event,(a(c.target).is(".theme-backdrop")||a(c.target).is("div.back")||27===c.keyCode)&&(a("body").addClass("closing-overlay"),this.$el.fadeOut(130,function(){a("body").removeClass("theme-overlay-open closing-overlay"),e.closeOverlay(),d=document.body.scrollTop,b.router.navigate(""),document.body.scrollTop=d}))},navigation:function(){var b=this;a("body").on("keyup",function(a){39===a.keyCode&&b.trigger("theme:next",b.model.cid),37===a.keyCode&&b.trigger("theme:previous",b.model.cid),27===a.keyCode&&b.collapse()})},closeOverlay:function(){this.remove(),this.unbind(),this.trigger("theme:collapse")},screenshotGallery:function(){var b,c,d=a("#theme-screenshots");d.find("div.first").next().addClass("selected"),d.on("click","div.thumb",function(){b=a(this),c=a(this).find("img").clone(),b.siblings(".first").html(c),b.siblings(".selected").removeClass("selected"),b.addClass("selected")})},deleteTheme:function(){return confirm(b.data.settings.confirmDelete)},nextTheme:function(){var a=this;a.trigger("theme:next",a.model.cid)},previousTheme:function(){var a=this;a.trigger("theme:previous",a.model.cid)}}),b.view.Themes=wp.Backbone.View.extend({className:"themes",index:0,count:a(".theme-count"),initialize:function(a){var b=this;this.parent=a.parent,this.setView("grid"),b.currentTheme(),this.listenTo(b.collection,"update",function(){b.parent.page=0,b.currentTheme(),b.render(this)}),this.listenTo(this.parent,"theme:scroll",function(){b.renderThemes(b.parent.page)})},render:function(){this.$el.html(""),this.renderThemes(this.parent.page),this.count.text(this.collection.length)},renderThemes:function(d){var e=this;e.instance=e.collection.paginate(d),0!==e.instance.length&&(d>=1&&a(".add-new-theme").remove(),e.instance.each(function(a){e.theme=new b.view.Theme({model:a}),e.theme.render(),e.$el.append(e.theme.el),e.listenTo(e.theme,"theme:expand",e.expand,e)}),b.data.settings.canInstall&&this.$el.append('
"),this.parent.page++)},currentTheme:function(){var a,b=this;a=b.collection.findWhere({active:!0}),a&&(b.collection.remove(a),b.collection.add(a,{at:0}))},setView:function(a){return a},expand:function(c){var d=this;this.model=d.collection.get(c),b.router.navigate("theme/"+this.model.id),this.setView("detail"),a("body").addClass("theme-overlay-open"),this.overlay=new b.view.Details({model:d.model}),this.overlay.render(),this.$el.append(this.overlay.el),this.overlay.screenshotGallery(),this.listenTo(this.overlay,"theme:next",function(){d.next([d.model.cid]),d.overlay.screenshotGallery()}).listenTo(this.overlay,"theme:previous",function(){d.previous([d.model.cid]),d.overlay.screenshotGallery()})},next:function(a){var c,d,e=this;c=e.collection.get(a[0]),d=e.collection.at(e.collection.indexOf(c)+1),void 0!==d&&(this.overlay.closeOverlay(),b.router.navigate("theme/"+d.id,{trigger:!0}))},previous:function(a){var c,d,e=this;c=e.collection.get(a[0]),d=e.collection.at(e.collection.indexOf(c)-1),void 0!==d&&(this.overlay.closeOverlay(),b.router.navigate("theme/"+d.id,{trigger:!0}))}}),b.view.Search=wp.Backbone.View.extend({tagName:"input",className:"theme-search",attributes:{placeholder:c.search},events:{input:"search",keyup:"search",change:"search",search:"search"},search:function(a){"keyup"===a.type&&27===a.which&&(a.target.value=""),this.collection.doSearch(a.target.value)}}),b.routes=Backbone.Router.extend({routes:{"search/:query":"search","theme/:slug":"theme"},search:function(b){a(".theme-search").val(b)}}),_.extend(b.routes,b.data.settings.extraRoutes),b.Run={init:function(){this.themes=new b.Collection(b.data.themes),this.view=new b.view.Appearance({collection:this.themes}),this.render()},render:function(){this.view.render(),this.routes(),Backbone.history.start({root:b.data.settings.root})},routes:function(){var a=this;b.router=new b.routes,b.router.on("route:theme",function(b){a.view.view.expand(b)}),b.router.on("route:search",function(b){a.themes.doSearch(b)})}},jQuery(document).ready(_.bind(b.Run.init,b.Run))}(jQuery);var tb_position;jQuery(document).ready(function(a){tb_position=function(){var b=a("#TB_window"),c=a(window).width(),d=a(window).height(),e=c>1040?1040:c,f=0;a("body.admin-bar").length&&(f=parseInt(jQuery("#wpadminbar").css("height"),10)),b.size()&&(b.width(e-50).height(d-45-f),a("#TB_iframeContent").width(e-50).height(d-75-f),b.css({"margin-left":"-"+parseInt((e-50)/2,10)+"px"}),"undefined"!=typeof document.body.style.maxWidth&&b.css({top:20+f+"px","margin-top":"0"}))},a(window).resize(function(){tb_position()})}); \ No newline at end of file +window.wp=window.wp||{},function(a){var b,c;b=wp.themes=wp.themes||{},b.data=_wpThemeSettings,c=b.data.l10n,_.extend(b,{model:{},view:{},routes:{},router:{},template:wp.template}),b.model=Backbone.Model.extend({}),b.view.Appearance=wp.Backbone.View.extend({el:"#wpbody-content .wrap .theme-browser",window:a(window),page:0,initialize:function(){var a=this;this.window.bind("scroll.themes",function(){this.throttle=!0}),setInterval(function(){this.throttle&&(this.throttle=!1,a.scroller())},300)},render:function(){this.view=new b.view.Themes({collection:this.collection,parent:this}),this.search(),this.view.render(),this.$el.append(this.view.el)},search:function(){var c,d=this;c=new b.view.Search({collection:d.collection}),c.render(),a("#wpbody h2:first").append(c.el)},scroller:function(){var a,b,c=this;a=this.window.scrollTop()+c.window.height(),b=c.$el.offset().top+c.$el.outerHeight(!1)-c.window.height(),b=Math.round(.9*b),a>b&&this.trigger("theme:scroll")}}),b.Collection=Backbone.Collection.extend({model:b.model,terms:"",doSearch:function(a){this.terms=a,this.terms.length>0&&this.search(this.terms),""===this.terms&&this.reset(b.data.themes),this.trigger("update")},search:function(a){var c,d,e,f=this;f.reset(b.data.themes),a=a.replace(" ",")(?=.*"),c=new RegExp("^(?=.*"+a+").+","i"),d=f.filter(function(a){return e=_.union(a.get("name"),a.get("author"),a.get("tags")),c.test(a.get("author"))&&a.set("displayAuthor",!0),c.test(e)}),f.reset(d)},paginate:function(a){var b=this;return a=a||0,b=_(b.rest(15*a)),b=_(b.first(15))}}),b.view.Theme=wp.Backbone.View.extend({className:"theme",state:"grid",html:b.template("theme"),events:{click:"expand"},render:function(){var a=this.model.toJSON();this.$el.html(this.html(a)),this.activeTheme(),this.model.get("displayAuthor")&&this.$el.addClass("display-author")},activeTheme:function(){this.model.get("active")&&(this.$el.addClass("active"),a(".theme-overlay").addClass("active"))},expand:function(b){var c=this;b=b||window.event,a(b.target).is(".theme-actions a, .delete-theme")||this.trigger("theme:expand",c.model.cid)}}),b.view.Details=wp.Backbone.View.extend({className:"theme-overlay",events:{click:"collapse","click .delete-theme":"deleteTheme","click .left":"previousTheme","click .right":"nextTheme"},html:b.template("theme-single"),render:function(){var a=this.model.toJSON();this.$el.html(this.html(a)),this.activeTheme(),this.navigation()},activeTheme:function(){this.$el.toggleClass("active",this.model.get("active"))},collapse:function(c){var d,e=this;c=c||window.event,(a(c.target).is(".theme-backdrop")||a(c.target).is("div.back")||27===c.keyCode)&&(a("body").addClass("closing-overlay"),this.$el.fadeOut(130,function(){a("body").removeClass("theme-overlay-open closing-overlay"),e.closeOverlay(),d=document.body.scrollTop,b.router.navigate(""),document.body.scrollTop=d}))},navigation:function(){var b=this;a("body").on("keyup",function(a){39===a.keyCode&&b.trigger("theme:next",b.model.cid),37===a.keyCode&&b.trigger("theme:previous",b.model.cid),27===a.keyCode&&b.collapse()})},closeOverlay:function(){this.remove(),this.unbind(),this.trigger("theme:collapse")},screenshotGallery:function(){var b,c,d=a("#theme-screenshots");d.find("div.first").next().addClass("selected"),d.on("click","div.thumb",function(){b=a(this),c=a(this).find("img").clone(),b.siblings(".first").html(c),b.siblings(".selected").removeClass("selected"),b.addClass("selected")})},deleteTheme:function(){return confirm(b.data.settings.confirmDelete)},nextTheme:function(){var a=this;a.trigger("theme:next",a.model.cid)},previousTheme:function(){var a=this;a.trigger("theme:previous",a.model.cid)}}),b.view.Themes=wp.Backbone.View.extend({className:"themes",index:0,count:a(".theme-count"),initialize:function(a){var b=this;this.parent=a.parent,this.setView("grid"),b.currentTheme(),this.listenTo(b.collection,"update",function(){b.parent.page=0,b.currentTheme(),b.render(this)}),this.listenTo(this.parent,"theme:scroll",function(){b.renderThemes(b.parent.page)})},render:function(){this.$el.html(""),this.renderThemes(this.parent.page),this.count.text(this.collection.length)},renderThemes:function(d){var e=this;e.instance=e.collection.paginate(d),0!==e.instance.length&&(d>=1&&a(".add-new-theme").remove(),e.instance.each(function(a){e.theme=new b.view.Theme({model:a}),e.theme.render(),e.$el.append(e.theme.el),e.listenTo(e.theme,"theme:expand",e.expand,e)}),b.data.settings.canInstall&&this.$el.append('"),this.parent.page++)},currentTheme:function(){var a,b=this;a=b.collection.findWhere({active:!0}),a&&(b.collection.remove(a),b.collection.add(a,{at:0}))},setView:function(a){return a},expand:function(c){var d=this;this.model=d.collection.get(c),b.router.navigate("theme/"+this.model.id),this.setView("detail"),a("body").addClass("theme-overlay-open"),this.overlay=new b.view.Details({model:d.model}),this.overlay.render(),this.$el.append(this.overlay.el),this.overlay.screenshotGallery(),this.listenTo(this.overlay,"theme:next",function(){d.next([d.model.cid]),d.overlay.screenshotGallery()}).listenTo(this.overlay,"theme:previous",function(){d.previous([d.model.cid]),d.overlay.screenshotGallery()})},next:function(a){var c,d,e=this;c=e.collection.get(a[0]),d=e.collection.at(e.collection.indexOf(c)+1),void 0!==d&&(this.overlay.closeOverlay(),b.router.navigate("theme/"+d.id,{trigger:!0}))},previous:function(a){var c,d,e=this;c=e.collection.get(a[0]),d=e.collection.at(e.collection.indexOf(c)-1),void 0!==d&&(this.overlay.closeOverlay(),b.router.navigate("theme/"+d.id,{trigger:!0}))}}),b.view.Search=wp.Backbone.View.extend({tagName:"input",className:"theme-search",attributes:{placeholder:c.search},events:{input:"search",keyup:"search",change:"search",search:"search"},search:function(a){"keyup"===a.type&&27===a.which&&(a.target.value=""),this.collection.doSearch(a.target.value)}}),b.routes=Backbone.Router.extend({routes:{"search/:query":"search","theme/:slug":"theme"},search:function(b){a(".theme-search").val(b)}}),_.extend(b.routes,b.data.settings.extraRoutes),b.Run={init:function(){this.themes=new b.Collection(b.data.themes),this.view=new b.view.Appearance({collection:this.themes}),this.render()},render:function(){this.view.render(),this.routes(),Backbone.history.start({root:b.data.settings.root})},routes:function(){var a=this;b.router=new b.routes,b.router.on("route:theme",function(b){a.view.view.expand(b)}),b.router.on("route:search",function(b){a.themes.doSearch(b)})}},jQuery(document).ready(_.bind(b.Run.init,b.Run))}(jQuery);var tb_position;jQuery(document).ready(function(a){tb_position=function(){var b=a("#TB_window"),c=a(window).width(),d=a(window).height(),e=c>1040?1040:c,f=0;a("body.admin-bar").length&&(f=parseInt(jQuery("#wpadminbar").css("height"),10)),b.size()&&(b.width(e-50).height(d-45-f),a("#TB_iframeContent").width(e-50).height(d-75-f),b.css({"margin-left":"-"+parseInt((e-50)/2,10)+"px"}),"undefined"!=typeof document.body.style.maxWidth&&b.css({top:20+f+"px","margin-top":"0"}))},a(window).resize(function(){tb_position()})}); \ No newline at end of file diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 33fdeccb97..17a2d4521a 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -119,9 +119,6 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); - - -