Ticket #1173: 1173.diff
File 1173.diff, 60.6 KB (added by , 7 years ago) |
---|
-
functions.php
222 222 // Enqueue jQuery Cycle 223 223 function wpsc_scripts() { 224 224 wp_enqueue_script( 'jquery' ); // explicit enqueue 225 wp_enqueue_script( 'jquery-cycle', get_template_directory_uri() . '/js/jquery.cycle .min.js', array( 'jquery' ) );225 wp_enqueue_script( 'jquery-cycle', get_template_directory_uri() . '/js/jquery.cycle2.min.js', array( 'jquery' ) ); 226 226 wp_enqueue_script( 'wpsc-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'jquery', 'jquery-cycle' ) ); 227 227 } 228 228 add_action('wp_enqueue_scripts', 'wpsc_scripts'); -
header.php
1 1 <?php 2 3 // UNDO ALL 4 2 5 $GLOBALS['pagetitle'] = wp_get_document_title(); 3 6 4 7 $prefix = is_ssl() ? 'https://' : 'http://s.'; 5 8 wp_enqueue_style( 'blog-wp4', $prefix.'wordpress.org/style/blog-wp4.css', array(), 4 ); 6 wp_enqueue_style( 'showcase', $prefix.'wordpress.org/wp-content/themes/pub/wporg-showcase/style.css', array(), 14 ); 9 //wp_enqueue_style( 'showcase', $prefix.'wordpress.org/wp-content/themes/pub/wporg-showcase/style.css', array(), 14 ); 10 wp_enqueue_style( 'showcase', '/wp-content/themes/pub/wporg-showcase/style.css', array(), 14 ); 7 11 require WPORGPATH . 'header.php'; 8 12 ?> 9 13 <div id="headline"> 10 14 <div class="wrapper"> 11 15 <a id="wpsc-mobile-menu-button" class="" href="#" onclick="toggleWpscMobileMenu();"></a><h2><?php _e( 'Showcase', 'wporg-showcase' ); ?></h2> 12 16 </div> 13 17 </div> -
js/jquery.cycle2.min.js
1 /*! 2 * jQuery Cycle2; version: 2.1.6 build: 20141007 3 * http://jquery.malsup.com/cycle2/ 4 * Copyright (c) 2014 M. Alsup; Dual licensed: MIT/GPL 5 */ 6 !function(a){"use strict";function b(a){return(a||"").toLowerCase()}var c="2.1.6";a.fn.cycle=function(c){var d;return 0!==this.length||a.isReady?this.each(function(){var d,e,f,g,h=a(this),i=a.fn.cycle.log;if(!h.data("cycle.opts")){(h.data("cycle-log")===!1||c&&c.log===!1||e&&e.log===!1)&&(i=a.noop),i("--c2 init--"),d=h.data();for(var j in d)d.hasOwnProperty(j)&&/^cycle[A-Z]+/.test(j)&&(g=d[j],f=j.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,b),i(f+":",g,"("+typeof g+")"),d[f]=g);e=a.extend({},a.fn.cycle.defaults,d,c||{}),e.timeoutId=0,e.paused=e.paused||!1,e.container=h,e._maxZ=e.maxZ,e.API=a.extend({_container:h},a.fn.cycle.API),e.API.log=i,e.API.trigger=function(a,b){return e.container.trigger(a,b),e.API},h.data("cycle.opts",e),h.data("cycle.API",e.API),e.API.trigger("cycle-bootstrap",[e,e.API]),e.API.addInitialSlides(),e.API.preInitSlideshow(),e.slides.length&&e.API.initSlideshow()}}):(d={s:this.selector,c:this.context},a.fn.cycle.log("requeuing slideshow (dom not ready)"),a(function(){a(d.s,d.c).cycle(c)}),this)},a.fn.cycle.API={opts:function(){return this._container.data("cycle.opts")},addInitialSlides:function(){var b=this.opts(),c=b.slides;b.slideCount=0,b.slides=a(),c=c.jquery?c:b.container.find(c),b.random&&c.sort(function(){return Math.random()-.5}),b.API.add(c)},preInitSlideshow:function(){var b=this.opts();b.API.trigger("cycle-pre-initialize",[b]);var c=a.fn.cycle.transitions[b.fx];c&&a.isFunction(c.preInit)&&c.preInit(b),b._preInitialized=!0},postInitSlideshow:function(){var b=this.opts();b.API.trigger("cycle-post-initialize",[b]);var c=a.fn.cycle.transitions[b.fx];c&&a.isFunction(c.postInit)&&c.postInit(b)},initSlideshow:function(){var b,c=this.opts(),d=c.container;c.API.calcFirstSlide(),"static"==c.container.css("position")&&c.container.css("position","relative"),a(c.slides[c.currSlide]).css({opacity:1,display:"block",visibility:"visible"}),c.API.stackSlides(c.slides[c.currSlide],c.slides[c.nextSlide],!c.reverse),c.pauseOnHover&&(c.pauseOnHover!==!0&&(d=a(c.pauseOnHover)),d.hover(function(){c.API.pause(!0)},function(){c.API.resume(!0)})),c.timeout&&(b=c.API.getSlideOpts(c.currSlide),c.API.queueTransition(b,b.timeout+c.delay)),c._initialized=!0,c.API.updateView(!0),c.API.trigger("cycle-initialized",[c]),c.API.postInitSlideshow()},pause:function(b){var c=this.opts(),d=c.API.getSlideOpts(),e=c.hoverPaused||c.paused;b?c.hoverPaused=!0:c.paused=!0,e||(c.container.addClass("cycle-paused"),c.API.trigger("cycle-paused",[c]).log("cycle-paused"),d.timeout&&(clearTimeout(c.timeoutId),c.timeoutId=0,c._remainingTimeout-=a.now()-c._lastQueue,(c._remainingTimeout<0||isNaN(c._remainingTimeout))&&(c._remainingTimeout=void 0)))},resume:function(a){var b=this.opts(),c=!b.hoverPaused&&!b.paused;a?b.hoverPaused=!1:b.paused=!1,c||(b.container.removeClass("cycle-paused"),0===b.slides.filter(":animated").length&&b.API.queueTransition(b.API.getSlideOpts(),b._remainingTimeout),b.API.trigger("cycle-resumed",[b,b._remainingTimeout]).log("cycle-resumed"))},add:function(b,c){var d,e=this.opts(),f=e.slideCount,g=!1;"string"==a.type(b)&&(b=a.trim(b)),a(b).each(function(){var b,d=a(this);c?e.container.prepend(d):e.container.append(d),e.slideCount++,b=e.API.buildSlideOpts(d),e.slides=c?a(d).add(e.slides):e.slides.add(d),e.API.initSlide(b,d,--e._maxZ),d.data("cycle.opts",b),e.API.trigger("cycle-slide-added",[e,b,d])}),e.API.updateView(!0),g=e._preInitialized&&2>f&&e.slideCount>=1,g&&(e._initialized?e.timeout&&(d=e.slides.length,e.nextSlide=e.reverse?d-1:1,e.timeoutId||e.API.queueTransition(e)):e.API.initSlideshow())},calcFirstSlide:function(){var a,b=this.opts();a=parseInt(b.startingSlide||0,10),(a>=b.slides.length||0>a)&&(a=0),b.currSlide=a,b.reverse?(b.nextSlide=a-1,b.nextSlide<0&&(b.nextSlide=b.slides.length-1)):(b.nextSlide=a+1,b.nextSlide==b.slides.length&&(b.nextSlide=0))},calcNextSlide:function(){var a,b=this.opts();b.reverse?(a=b.nextSlide-1<0,b.nextSlide=a?b.slideCount-1:b.nextSlide-1,b.currSlide=a?0:b.nextSlide+1):(a=b.nextSlide+1==b.slides.length,b.nextSlide=a?0:b.nextSlide+1,b.currSlide=a?b.slides.length-1:b.nextSlide-1)},calcTx:function(b,c){var d,e=b;return e._tempFx?d=a.fn.cycle.transitions[e._tempFx]:c&&e.manualFx&&(d=a.fn.cycle.transitions[e.manualFx]),d||(d=a.fn.cycle.transitions[e.fx]),e._tempFx=null,this.opts()._tempFx=null,d||(d=a.fn.cycle.transitions.fade,e.API.log('Transition "'+e.fx+'" not found. Using fade.')),d},prepareTx:function(a,b){var c,d,e,f,g,h=this.opts();return h.slideCount<2?void(h.timeoutId=0):(!a||h.busy&&!h.manualTrump||(h.API.stopTransition(),h.busy=!1,clearTimeout(h.timeoutId),h.timeoutId=0),void(h.busy||(0!==h.timeoutId||a)&&(d=h.slides[h.currSlide],e=h.slides[h.nextSlide],f=h.API.getSlideOpts(h.nextSlide),g=h.API.calcTx(f,a),h._tx=g,a&&void 0!==f.manualSpeed&&(f.speed=f.manualSpeed),h.nextSlide!=h.currSlide&&(a||!h.paused&&!h.hoverPaused&&h.timeout)?(h.API.trigger("cycle-before",[f,d,e,b]),g.before&&g.before(f,d,e,b),c=function(){h.busy=!1,h.container.data("cycle.opts")&&(g.after&&g.after(f,d,e,b),h.API.trigger("cycle-after",[f,d,e,b]),h.API.queueTransition(f),h.API.updateView(!0))},h.busy=!0,g.transition?g.transition(f,d,e,b,c):h.API.doTransition(f,d,e,b,c),h.API.calcNextSlide(),h.API.updateView()):h.API.queueTransition(f))))},doTransition:function(b,c,d,e,f){var g=b,h=a(c),i=a(d),j=function(){i.animate(g.animIn||{opacity:1},g.speed,g.easeIn||g.easing,f)};i.css(g.cssBefore||{}),h.animate(g.animOut||{},g.speed,g.easeOut||g.easing,function(){h.css(g.cssAfter||{}),g.sync||j()}),g.sync&&j()},queueTransition:function(b,c){var d=this.opts(),e=void 0!==c?c:b.timeout;return 0===d.nextSlide&&0===--d.loop?(d.API.log("terminating; loop=0"),d.timeout=0,e?setTimeout(function(){d.API.trigger("cycle-finished",[d])},e):d.API.trigger("cycle-finished",[d]),void(d.nextSlide=d.currSlide)):void 0!==d.continueAuto&&(d.continueAuto===!1||a.isFunction(d.continueAuto)&&d.continueAuto()===!1)?(d.API.log("terminating automatic transitions"),d.timeout=0,void(d.timeoutId&&clearTimeout(d.timeoutId))):void(e&&(d._lastQueue=a.now(),void 0===c&&(d._remainingTimeout=b.timeout),d.paused||d.hoverPaused||(d.timeoutId=setTimeout(function(){d.API.prepareTx(!1,!d.reverse)},e))))},stopTransition:function(){var a=this.opts();a.slides.filter(":animated").length&&(a.slides.stop(!1,!0),a.API.trigger("cycle-transition-stopped",[a])),a._tx&&a._tx.stopTransition&&a._tx.stopTransition(a)},advanceSlide:function(a){var b=this.opts();return clearTimeout(b.timeoutId),b.timeoutId=0,b.nextSlide=b.currSlide+a,b.nextSlide<0?b.nextSlide=b.slides.length-1:b.nextSlide>=b.slides.length&&(b.nextSlide=0),b.API.prepareTx(!0,a>=0),!1},buildSlideOpts:function(c){var d,e,f=this.opts(),g=c.data()||{};for(var h in g)g.hasOwnProperty(h)&&/^cycle[A-Z]+/.test(h)&&(d=g[h],e=h.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,b),f.API.log("["+(f.slideCount-1)+"]",e+":",d,"("+typeof d+")"),g[e]=d);g=a.extend({},a.fn.cycle.defaults,f,g),g.slideNum=f.slideCount;try{delete g.API,delete g.slideCount,delete g.currSlide,delete g.nextSlide,delete g.slides}catch(i){}return g},getSlideOpts:function(b){var c=this.opts();void 0===b&&(b=c.currSlide);var d=c.slides[b],e=a(d).data("cycle.opts");return a.extend({},c,e)},initSlide:function(b,c,d){var e=this.opts();c.css(b.slideCss||{}),d>0&&c.css("zIndex",d),isNaN(b.speed)&&(b.speed=a.fx.speeds[b.speed]||a.fx.speeds._default),b.sync||(b.speed=b.speed/2),c.addClass(e.slideClass)},updateView:function(a,b){var c=this.opts();if(c._initialized){var d=c.API.getSlideOpts(),e=c.slides[c.currSlide];!a&&b!==!0&&(c.API.trigger("cycle-update-view-before",[c,d,e]),c.updateView<0)||(c.slideActiveClass&&c.slides.removeClass(c.slideActiveClass).eq(c.currSlide).addClass(c.slideActiveClass),a&&c.hideNonActive&&c.slides.filter(":not(."+c.slideActiveClass+")").css("visibility","hidden"),0===c.updateView&&setTimeout(function(){c.API.trigger("cycle-update-view",[c,d,e,a])},d.speed/(c.sync?2:1)),0!==c.updateView&&c.API.trigger("cycle-update-view",[c,d,e,a]),a&&c.API.trigger("cycle-update-view-after",[c,d,e]))}},getComponent:function(b){var c=this.opts(),d=c[b];return"string"==typeof d?/^\s*[\>|\+|~]/.test(d)?c.container.find(d):a(d):d.jquery?d:a(d)},stackSlides:function(b,c,d){var e=this.opts();b||(b=e.slides[e.currSlide],c=e.slides[e.nextSlide],d=!e.reverse),a(b).css("zIndex",e.maxZ);var f,g=e.maxZ-2,h=e.slideCount;if(d){for(f=e.currSlide+1;h>f;f++)a(e.slides[f]).css("zIndex",g--);for(f=0;f<e.currSlide;f++)a(e.slides[f]).css("zIndex",g--)}else{for(f=e.currSlide-1;f>=0;f--)a(e.slides[f]).css("zIndex",g--);for(f=h-1;f>e.currSlide;f--)a(e.slides[f]).css("zIndex",g--)}a(c).css("zIndex",e.maxZ-1)},getSlideIndex:function(a){return this.opts().slides.index(a)}},a.fn.cycle.log=function(){window.console&&console.log&&console.log("[cycle2] "+Array.prototype.join.call(arguments," "))},a.fn.cycle.version=function(){return"Cycle2: "+c},a.fn.cycle.transitions={custom:{},none:{before:function(a,b,c,d){a.API.stackSlides(c,b,d),a.cssBefore={opacity:1,visibility:"visible",display:"block"}}},fade:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e),b.cssBefore=a.extend(f,{opacity:0,visibility:"visible",display:"block"}),b.animIn={opacity:1},b.animOut={opacity:0}}},fadeout:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e),b.cssBefore=a.extend(f,{opacity:1,visibility:"visible",display:"block"}),b.animOut={opacity:0}}},scrollHorz:{before:function(a,b,c,d){a.API.stackSlides(b,c,d);var e=a.container.css("overflow","hidden").width();a.cssBefore={left:d?e:-e,top:0,opacity:1,visibility:"visible",display:"block"},a.cssAfter={zIndex:a._maxZ-2,left:0},a.animIn={left:0},a.animOut={left:d?-e:e}}}},a.fn.cycle.defaults={allowWrap:!0,autoSelector:".cycle-slideshow[data-cycle-auto-init!=false]",delay:0,easing:null,fx:"fade",hideNonActive:!0,loop:0,manualFx:void 0,manualSpeed:void 0,manualTrump:!0,maxZ:100,pauseOnHover:!1,reverse:!1,slideActiveClass:"cycle-slide-active",slideClass:"cycle-slide",slideCss:{position:"absolute",top:0,left:0},slides:"> img",speed:500,startingSlide:0,sync:!0,timeout:4e3,updateView:0},a(document).ready(function(){a(a.fn.cycle.defaults.autoSelector).cycle()})}(jQuery),/*! Cycle2 autoheight plugin; Copyright (c) M.Alsup, 2012; version: 20130913 */ 7 function(a){"use strict";function b(b,d){var e,f,g,h=d.autoHeight;if("container"==h)f=a(d.slides[d.currSlide]).outerHeight(),d.container.height(f);else if(d._autoHeightRatio)d.container.height(d.container.width()/d._autoHeightRatio);else if("calc"===h||"number"==a.type(h)&&h>=0){if(g="calc"===h?c(b,d):h>=d.slides.length?0:h,g==d._sentinelIndex)return;d._sentinelIndex=g,d._sentinel&&d._sentinel.remove(),e=a(d.slides[g].cloneNode(!0)),e.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel"),e.css({position:"static",visibility:"hidden",display:"block"}).prependTo(d.container).addClass("cycle-sentinel cycle-slide").removeClass("cycle-slide-active"),e.find("*").css("visibility","hidden"),d._sentinel=e}}function c(b,c){var d=0,e=-1;return c.slides.each(function(b){var c=a(this).height();c>e&&(e=c,d=b)}),d}function d(b,c,d,e){var f=a(e).outerHeight();c.container.animate({height:f},c.autoHeightSpeed,c.autoHeightEasing)}function e(c,f){f._autoHeightOnResize&&(a(window).off("resize orientationchange",f._autoHeightOnResize),f._autoHeightOnResize=null),f.container.off("cycle-slide-added cycle-slide-removed",b),f.container.off("cycle-destroyed",e),f.container.off("cycle-before",d),f._sentinel&&(f._sentinel.remove(),f._sentinel=null)}a.extend(a.fn.cycle.defaults,{autoHeight:0,autoHeightSpeed:250,autoHeightEasing:null}),a(document).on("cycle-initialized",function(c,f){function g(){b(c,f)}var h,i=f.autoHeight,j=a.type(i),k=null;("string"===j||"number"===j)&&(f.container.on("cycle-slide-added cycle-slide-removed",b),f.container.on("cycle-destroyed",e),"container"==i?f.container.on("cycle-before",d):"string"===j&&/\d+\:\d+/.test(i)&&(h=i.match(/(\d+)\:(\d+)/),h=h[1]/h[2],f._autoHeightRatio=h),"number"!==j&&(f._autoHeightOnResize=function(){clearTimeout(k),k=setTimeout(g,50)},a(window).on("resize orientationchange",f._autoHeightOnResize)),setTimeout(g,30))})}(jQuery),/*! caption plugin for Cycle2; version: 20130306 */ 8 function(a){"use strict";a.extend(a.fn.cycle.defaults,{caption:"> .cycle-caption",captionTemplate:"{{slideNum}} / {{slideCount}}",overlay:"> .cycle-overlay",overlayTemplate:"<div>{{title}}</div><div>{{desc}}</div>",captionModule:"caption"}),a(document).on("cycle-update-view",function(b,c,d,e){if("caption"===c.captionModule){a.each(["caption","overlay"],function(){var a=this,b=d[a+"Template"],f=c.API.getComponent(a);f.length&&b?(f.html(c.API.tmpl(b,d,c,e)),f.show()):f.hide()})}}),a(document).on("cycle-destroyed",function(b,c){var d;a.each(["caption","overlay"],function(){var a=this,b=c[a+"Template"];c[a]&&b&&(d=c.API.getComponent("caption"),d.empty())})})}(jQuery),/*! command plugin for Cycle2; version: 20140415 */ 9 function(a){"use strict";var b=a.fn.cycle;a.fn.cycle=function(c){var d,e,f,g=a.makeArray(arguments);return"number"==a.type(c)?this.cycle("goto",c):"string"==a.type(c)?this.each(function(){var h;return d=c,f=a(this).data("cycle.opts"),void 0===f?void b.log('slideshow must be initialized before sending commands; "'+d+'" ignored'):(d="goto"==d?"jump":d,e=f.API[d],a.isFunction(e)?(h=a.makeArray(g),h.shift(),e.apply(f.API,h)):void b.log("unknown command: ",d))}):b.apply(this,arguments)},a.extend(a.fn.cycle,b),a.extend(b.API,{next:function(){var a=this.opts();if(!a.busy||a.manualTrump){var b=a.reverse?-1:1;a.allowWrap===!1&&a.currSlide+b>=a.slideCount||(a.API.advanceSlide(b),a.API.trigger("cycle-next",[a]).log("cycle-next"))}},prev:function(){var a=this.opts();if(!a.busy||a.manualTrump){var b=a.reverse?1:-1;a.allowWrap===!1&&a.currSlide+b<0||(a.API.advanceSlide(b),a.API.trigger("cycle-prev",[a]).log("cycle-prev"))}},destroy:function(){this.stop();var b=this.opts(),c=a.isFunction(a._data)?a._data:a.noop;clearTimeout(b.timeoutId),b.timeoutId=0,b.API.stop(),b.API.trigger("cycle-destroyed",[b]).log("cycle-destroyed"),b.container.removeData(),c(b.container[0],"parsedAttrs",!1),b.retainStylesOnDestroy||(b.container.removeAttr("style"),b.slides.removeAttr("style"),b.slides.removeClass(b.slideActiveClass)),b.slides.each(function(){var d=a(this);d.removeData(),d.removeClass(b.slideClass),c(this,"parsedAttrs",!1)})},jump:function(a,b){var c,d=this.opts();if(!d.busy||d.manualTrump){var e=parseInt(a,10);if(isNaN(e)||0>e||e>=d.slides.length)return void d.API.log("goto: invalid slide index: "+e);if(e==d.currSlide)return void d.API.log("goto: skipping, already on slide",e);d.nextSlide=e,clearTimeout(d.timeoutId),d.timeoutId=0,d.API.log("goto: ",e," (zero-index)"),c=d.currSlide<d.nextSlide,d._tempFx=b,d.API.prepareTx(!0,c)}},stop:function(){var b=this.opts(),c=b.container;clearTimeout(b.timeoutId),b.timeoutId=0,b.API.stopTransition(),b.pauseOnHover&&(b.pauseOnHover!==!0&&(c=a(b.pauseOnHover)),c.off("mouseenter mouseleave")),b.API.trigger("cycle-stopped",[b]).log("cycle-stopped")},reinit:function(){var a=this.opts();a.API.destroy(),a.container.cycle()},remove:function(b){for(var c,d,e=this.opts(),f=[],g=1,h=0;h<e.slides.length;h++)c=e.slides[h],h==b?d=c:(f.push(c),a(c).data("cycle.opts").slideNum=g,g++);d&&(e.slides=a(f),e.slideCount--,a(d).remove(),b==e.currSlide?e.API.advanceSlide(1):b<e.currSlide?e.currSlide--:e.currSlide++,e.API.trigger("cycle-slide-removed",[e,b,d]).log("cycle-slide-removed"),e.API.updateView())}}),a(document).on("click.cycle","[data-cycle-cmd]",function(b){b.preventDefault();var c=a(this),d=c.data("cycle-cmd"),e=c.data("cycle-context")||".cycle-slideshow";a(e).cycle(d,c.data("cycle-arg"))})}(jQuery),/*! hash plugin for Cycle2; version: 20130905 */ 10 function(a){"use strict";function b(b,c){var d;return b._hashFence?void(b._hashFence=!1):(d=window.location.hash.substring(1),void b.slides.each(function(e){if(a(this).data("cycle-hash")==d){if(c===!0)b.startingSlide=e;else{var f=b.currSlide<e;b.nextSlide=e,b.API.prepareTx(!0,f)}return!1}}))}a(document).on("cycle-pre-initialize",function(c,d){b(d,!0),d._onHashChange=function(){b(d,!1)},a(window).on("hashchange",d._onHashChange)}),a(document).on("cycle-update-view",function(a,b,c){c.hash&&"#"+c.hash!=window.location.hash&&(b._hashFence=!0,window.location.hash=c.hash)}),a(document).on("cycle-destroyed",function(b,c){c._onHashChange&&a(window).off("hashchange",c._onHashChange)})}(jQuery),/*! loader plugin for Cycle2; version: 20131121 */ 11 function(a){"use strict";a.extend(a.fn.cycle.defaults,{loader:!1}),a(document).on("cycle-bootstrap",function(b,c){function d(b,d){function f(b){var f;"wait"==c.loader?(h.push(b),0===j&&(h.sort(g),e.apply(c.API,[h,d]),c.container.removeClass("cycle-loading"))):(f=a(c.slides[c.currSlide]),e.apply(c.API,[b,d]),f.show(),c.container.removeClass("cycle-loading"))}function g(a,b){return a.data("index")-b.data("index")}var h=[];if("string"==a.type(b))b=a.trim(b);else if("array"===a.type(b))for(var i=0;i<b.length;i++)b[i]=a(b[i])[0];b=a(b);var j=b.length;j&&(b.css("visibility","hidden").appendTo("body").each(function(b){function g(){0===--i&&(--j,f(k))}var i=0,k=a(this),l=k.is("img")?k:k.find("img");return k.data("index",b),l=l.filter(":not(.cycle-loader-ignore)").filter(':not([src=""])'),l.length?(i=l.length,void l.each(function(){this.complete?g():a(this).load(function(){g()}).on("error",function(){0===--i&&(c.API.log("slide skipped; img not loaded:",this.src),0===--j&&"wait"==c.loader&&e.apply(c.API,[h,d]))})})):(--j,void h.push(k))}),j&&c.container.addClass("cycle-loading"))}var e;c.loader&&(e=c.API.add,c.API.add=d)})}(jQuery),/*! pager plugin for Cycle2; version: 20140415 */ 12 function(a){"use strict";function b(b,c,d){var e,f=b.API.getComponent("pager");f.each(function(){var f=a(this);if(c.pagerTemplate){var g=b.API.tmpl(c.pagerTemplate,c,b,d[0]);e=a(g).appendTo(f)}else e=f.children().eq(b.slideCount-1);e.on(b.pagerEvent,function(a){b.pagerEventBubble||a.preventDefault(),b.API.page(f,a.currentTarget)})})}function c(a,b){var c=this.opts();if(!c.busy||c.manualTrump){var d=a.children().index(b),e=d,f=c.currSlide<e;c.currSlide!=e&&(c.nextSlide=e,c._tempFx=c.pagerFx,c.API.prepareTx(!0,f),c.API.trigger("cycle-pager-activated",[c,a,b]))}}a.extend(a.fn.cycle.defaults,{pager:"> .cycle-pager",pagerActiveClass:"cycle-pager-active",pagerEvent:"click.cycle",pagerEventBubble:void 0,pagerTemplate:"<span>•</span>"}),a(document).on("cycle-bootstrap",function(a,c,d){d.buildPagerLink=b}),a(document).on("cycle-slide-added",function(a,b,d,e){b.pager&&(b.API.buildPagerLink(b,d,e),b.API.page=c)}),a(document).on("cycle-slide-removed",function(b,c,d){if(c.pager){var e=c.API.getComponent("pager");e.each(function(){var b=a(this);a(b.children()[d]).remove()})}}),a(document).on("cycle-update-view",function(b,c){var d;c.pager&&(d=c.API.getComponent("pager"),d.each(function(){a(this).children().removeClass(c.pagerActiveClass).eq(c.currSlide).addClass(c.pagerActiveClass)}))}),a(document).on("cycle-destroyed",function(a,b){var c=b.API.getComponent("pager");c&&(c.children().off(b.pagerEvent),b.pagerTemplate&&c.empty())})}(jQuery),/*! prevnext plugin for Cycle2; version: 20140408 */ 13 function(a){"use strict";a.extend(a.fn.cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:!1}),a(document).on("cycle-initialized",function(a,b){if(b.API.getComponent("next").on(b.nextEvent,function(a){a.preventDefault(),b.API.next()}),b.API.getComponent("prev").on(b.prevEvent,function(a){a.preventDefault(),b.API.prev()}),b.swipe){var c=b.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle",d=b.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";b.container.on(c,function(){b._tempFx=b.swipeFx,b.API.next()}),b.container.on(d,function(){b._tempFx=b.swipeFx,b.API.prev()})}}),a(document).on("cycle-update-view",function(a,b){if(!b.allowWrap){var c=b.disabledClass,d=b.API.getComponent("next"),e=b.API.getComponent("prev"),f=b._prevBoundry||0,g=void 0!==b._nextBoundry?b._nextBoundry:b.slideCount-1;b.currSlide==g?d.addClass(c).prop("disabled",!0):d.removeClass(c).prop("disabled",!1),b.currSlide===f?e.addClass(c).prop("disabled",!0):e.removeClass(c).prop("disabled",!1)}}),a(document).on("cycle-destroyed",function(a,b){b.API.getComponent("prev").off(b.nextEvent),b.API.getComponent("next").off(b.prevEvent),b.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})}(jQuery),/*! progressive loader plugin for Cycle2; version: 20130315 */ 14 function(a){"use strict";a.extend(a.fn.cycle.defaults,{progressive:!1}),a(document).on("cycle-pre-initialize",function(b,c){if(c.progressive){var d,e,f=c.API,g=f.next,h=f.prev,i=f.prepareTx,j=a.type(c.progressive);if("array"==j)d=c.progressive;else if(a.isFunction(c.progressive))d=c.progressive(c);else if("string"==j){if(e=a(c.progressive),d=a.trim(e.html()),!d)return;if(/^(\[)/.test(d))try{d=a.parseJSON(d)}catch(k){return void f.log("error parsing progressive slides",k)}else d=d.split(new RegExp(e.data("cycle-split")||"\n")),d[d.length-1]||d.pop()}i&&(f.prepareTx=function(a,b){var e,f;return a||0===d.length?void i.apply(c.API,[a,b]):void(b&&c.currSlide==c.slideCount-1?(f=d[0],d=d.slice(1),c.container.one("cycle-slide-added",function(a,b){setTimeout(function(){b.API.advanceSlide(1)},50)}),c.API.add(f)):b||0!==c.currSlide?i.apply(c.API,[a,b]):(e=d.length-1,f=d[e],d=d.slice(0,e),c.container.one("cycle-slide-added",function(a,b){setTimeout(function(){b.currSlide=1,b.API.advanceSlide(-1)},50)}),c.API.add(f,!0)))}),g&&(f.next=function(){var a=this.opts();if(d.length&&a.currSlide==a.slideCount-1){var b=d[0];d=d.slice(1),a.container.one("cycle-slide-added",function(a,b){g.apply(b.API),b.container.removeClass("cycle-loading")}),a.container.addClass("cycle-loading"),a.API.add(b)}else g.apply(a.API)}),h&&(f.prev=function(){var a=this.opts();if(d.length&&0===a.currSlide){var b=d.length-1,c=d[b];d=d.slice(0,b),a.container.one("cycle-slide-added",function(a,b){b.currSlide=1,b.API.advanceSlide(-1),b.container.removeClass("cycle-loading")}),a.container.addClass("cycle-loading"),a.API.add(c,!0)}else h.apply(a.API)})}})}(jQuery),/*! tmpl plugin for Cycle2; version: 20121227 */ 15 function(a){"use strict";a.extend(a.fn.cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"}),a.extend(a.fn.cycle.API,{tmpl:function(b,c){var d=new RegExp(c.tmplRegex||a.fn.cycle.defaults.tmplRegex,"g"),e=a.makeArray(arguments);return e.shift(),b.replace(d,function(b,c){var d,f,g,h,i=c.split(".");for(d=0;d<e.length;d++)if(g=e[d]){if(i.length>1)for(h=g,f=0;f<i.length;f++)g=h,h=h[i[f]]||c;else h=g[c];if(a.isFunction(h))return h.apply(g,e);if(void 0!==h&&null!==h&&h!=c)return h}return c})}})}(jQuery); 16 No newline at end of file -
js/scripts.js
1 jQuery(document).ready(function($) { 2 $(".wpsc-hero-slide-container").cycle({ 3 fx: 'scrollHorz', 4 pager: '.wpsc-slide-nav', 5 timeout: 8000 6 }); 7 }); 8 No newline at end of file 1 (function($){ 2 $('document').ready(function(){ 3 toggleWpscMobileMenu = function() { 4 if (!$('.leftsidebar').hasClass('wpscMobileMenuSlideIn')) { 5 $('.leftsidebar').animate({ 6 left: "+=209" 7 }); 8 $('.leftsidebar').addClass('wpscMobileMenuSlideIn'); 9 } else { 10 $('.leftsidebar').animate({ 11 left: "-=209" 12 }); 13 $('.leftsidebar').removeClass('wpscMobileMenuSlideIn'); 14 } 15 }; 16 }); 17 })(jQuery); 18 No newline at end of file -
page-home.php
10 10 <?php if ( have_posts() ) : ?> 11 11 12 12 <div class="wpsc-hero group"> 13 <div class="wpsc-hero-slide-container no-js ">13 <div class="wpsc-hero-slide-container no-js cycle-slideshow" data-cycle-pager=".wpsc-slide-pager" data-cycle-fx="scrollHorz" data-cycle-auto-height="container" data-cycle-timeout="8000" data-cycle-slides="> div"> 14 14 15 15 <?php while ( have_posts() ) : the_post(); ?> 16 16 17 17 <div class="wpsc-hero-slide"> 18 18 <div class="wpsc-hero-slide-content"> 19 <a href="<?php the_permalink(); ?>" class="wpsc-hero-slide-img"> 20 <?php site_screenshot_tag( 457 ); ?> 21 </a> 22 <h3><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3> 19 <div class="wpsc-hero-slide-content-left"> 20 <a href="<?php the_permalink(); ?>" class="wpsc-hero-slide-img"> 21 <?php site_screenshot_tag( 457 ); ?> 22 </a> 23 </div> 24 <div class="wpsc-hero-slide-content-right"> 25 <div class="wpsc-hero-slide-content-right-wrapper"> 26 <h3><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3> 23 27 24 25 26 27 28 29 30 28 <?php $wpsc_url = esc_url( get_post_meta( $post->ID, 'domain', true ) ); ?> 29 <?php if ( $wpsc_url ) : // make sure the URL is valid (esc_url will return an empty string if not) ?> 30 <a href="<?php echo $wpsc_url; ?>" class="wpsc-linkout"> 31 <?php echo str_replace( parse_url( $wpsc_url, PHP_URL_SCHEME ) . '://', '', untrailingslashit( $wpsc_url ) ); ?> 32 <span class="linkout-symbol"><?php _ex( '➲', 'linkout symbol', 'wporg-showcase' ); ?></span> 33 </a> 34 <?php endif; // $wpsc_url ?> 31 35 32 <?php 33 the_tags( '<ul class="wpsc-tags"><li>','</li><li>','</li></ul>' ); 34 the_excerpt(); 35 ?> 36 <a class="wpsc-hero-learnmore" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"> 37 <?php _e( 'Learn More →', 'wporg-showcase' ); ?> 38 </a> 36 <?php 37 the_tags( '<ul class="wpsc-tags"><li>','</li><li>','</li></ul>' ); 38 the_excerpt(); 39 ?> 40 <a class="wpsc-hero-learnmore" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"> 41 <?php _e( 'Learn More →', 'wporg-showcase' ); ?> 42 </a> 43 </div> 44 </div> 39 45 </div><!-- .wpsc-hero-slide-content --> 40 46 </div><!-- .wpsc-hero-slide --> 41 47 … … 42 48 <?php endwhile; ?> 43 49 44 50 </div> 45 <div class="wpsc-slide-nav">< /div>51 <div class="wpsc-slide-nav"><div class="wpsc-slide-pager"></div></div> 46 52 </div> <!-- .wpsc-hero --> 47 53 48 54 <?php endif; ?> … … 52 58 <?php get_sidebar( 'left' ); ?> 53 59 54 60 <div class="col-7 main-content"> 61 <div class="maincontentwrapper"> 62 <?php query_posts( array( 'cat' => 4, 'posts_per_page' => 3, 'tag' => 'business', 'orderby' => 'rand' ) ); ?> 63 <?php if ( have_posts() ) : ?> 64 <h3><?php _e( 'Featured Business Sites', 'wporg-showcase' ); ?></h3> 65 <ul class="wpsc-recent wpsc-business"> 55 66 56 <?php query_posts( array( 'cat' => 4, 'posts_per_page' => 3, 'tag' => 'business', 'orderby' => 'rand' ) ); ?> 57 <?php if ( have_posts() ) : ?> 58 <h3><?php _e( 'Featured Business Sites', 'wporg-showcase' ); ?></h3> 59 <ul class="wpsc-recent"> 67 <?php while ( have_posts() ) : the_post(); ?> 60 68 61 <?php while ( have_posts() ) : the_post(); ?> 69 <li> 70 <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"> 71 <?php site_screenshot_tag( 215 ); ?> 72 </a> 73 <h5><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5> 74 <?php 75 the_content_limit( 90 ); 76 the_tags( '<ul class="wpsc-tags"><li>', '</li><li>', '</li></ul>' ); 77 ?> 78 </li> 62 79 63 <li> 64 <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"> 65 <?php site_screenshot_tag( 215 ); ?> 66 </a> 67 <h5><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5> 68 <?php 69 the_content_limit( 90 ); 70 the_tags( '<ul class="wpsc-tags"><li>', '</li><li>', '</li></ul>' ); 71 ?> 72 </li> 80 <?php endwhile; // have_posts ?> 81 </ul> 82 <?php endif; // have_posts ?> 73 83 74 <?php endwhile; // have_posts ?> 75 </ul> 76 <?php endif; // have_posts ?> 84 <?php query_posts( array( 'posts_per_page' => 9 ) ); ?> 85 <?php if ( have_posts() ) : ?> 77 86 78 <?php query_posts( array( 'posts_per_page' => 9 ) ); ?>79 <?php if ( have_posts() ) : ?>87 <h3><?php _e( 'Recently Added Sites', 'wporg-showcase' ); ?></h3> 88 <ul class="wpsc-recent wpsc-recadded"> 80 89 81 <h3><?php _e( 'Recently Added Sites', 'wporg-showcase' ); ?></h3> 82 <ul class="wpsc-recent"> 90 <?php while ( have_posts() ) : the_post(); ?> 83 91 84 <?php while ( have_posts() ) : the_post(); ?> 92 <li> 93 <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"> 94 <?php site_screenshot_tag( 215 ); ?> 95 </a> 96 <h5><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5> 97 <?php 98 the_tags( '<ul class="wpsc-tags"><li>', '</li><li>', '</li></ul>' ); 99 if ( function_exists( 'the_ratings' ) ) the_ratings(); 100 ?> 101 </li> 85 102 86 <li> 87 <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"> 88 <?php site_screenshot_tag( 215 ); ?> 89 </a> 90 <h5><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5> 91 <?php 92 the_tags( '<ul class="wpsc-tags"><li>', '</li><li>', '</li></ul>' ); 93 if ( function_exists( 'the_ratings' ) ) the_ratings(); 94 ?> 95 </li> 103 <?php endwhile; // have_posts ?> 104 </ul> 105 <a href="<?php echo home_url( '/archives/' ); ?>" class="wpsc-view-all"><?php _e( 'View All Showcase Sites →', 'wporg-showcase' ); ?></a> 96 106 97 <?php endwhile; // have_posts ?> 98 </ul> 99 <a href="<?php echo home_url( '/archives/' ); ?>" class="wpsc-view-all"><?php _e( 'View All Showcase Sites →', 'wporg-showcase' ); ?></a> 100 101 <?php endif; // have_posts ?> 102 107 <?php endif; // have_posts ?> 108 </div> 103 109 </div> 104 110 </div> 105 111 </div> -
sidebar-left.php
1 <div class="col-2 secondary ">1 <div class="col-2 secondary leftsidebar"> 2 2 <a href="<?php echo home_url( '/submit-a-wordpress-site/' ); ?>" class="wpsc-submit-site"><?php _e( 'Submit a Site →', 'wporg-showcase' ); ?></a> 3 3 4 4 <h4 class="search"><?php _e( 'Search', 'wporg-showcase' ); ?></h4> -
sidebar-right.php
1 <div class="col-3">2 <h4><?php _e( 'Top Rated', 'wporg-showcase' ); ?></h4>3 <table class="top-rated"> 4 <?php get_highest_rated( 'post', 10, 10 ); ?>5 </table>1 <div class="col-3 rightsidebar"> 2 <div class="rightsidebarwrapper"> 3 <p class="button"><a 4 href="http://<?php get_site_domain(false); ?>"><?php _e('Visit Site', 'wporg-showcase'); ?></a> 5 </p> 6 6 7 <h4><?php _e( 'Most Votes', 'wporg-showcase' ); ?></h4> 8 <table class="most-votes"> 9 <?php get_most_rated(); ?> 10 </table> 11 </div> 7 <h4><?php _e('Rating', 'wporg-showcase'); ?></h4> 8 <?php the_ratings(); ?> 9 <p class='rating-descrip'><?php _e('Rate this site based on their implementation and use of WordPress.', 'wporg-showcase'); ?></p> 10 11 <?php wp_flavors(); ?> 12 <br/> 13 <?php tags_with_count('list', '<h4>' . __('Tags', 'wporg-showcase') . '</h4><ul>', '', '</ul>'); ?> 14 15 <h4><?php _e('Top Rated', 'wporg-showcase'); ?></h4> 16 <table class="top-rated"> 17 <?php get_highest_rated('post', 10, 10); ?> 18 </table> 19 20 <h4><?php _e('Most Votes', 'wporg-showcase'); ?></h4> 21 <table class="most-votes"> 22 <?php get_most_rated(); ?> 23 </table> 24 </div> 25 </div> -
single.php
54 54 </div><!-- .storycontent --> 55 55 <?php comments_template(); ?> 56 56 </div><!-- .col-5 --> 57 <div class="col-13">58 <p class="button"><a href="http://<?php get_site_domain( false ); ?>"><?php _e( 'Visit Site', 'wporg-showcase' ); ?></a></p>59 57 60 <h4><?php _e( 'Rating', 'wporg-showcase' ); ?></h4>61 <?php the_ratings(); ?>62 <p class='rating-descrip'><?php _e( 'Rate this site based on their implementation and use of WordPress.', 'wporg-showcase' ); ?></p>63 64 <?php wp_flavors(); ?>65 <br />66 <?php tags_with_count( 'list', '<h4>' . __( 'Tags', 'wporg-showcase' ) . '</h4><ul>', '', '</ul>' ); ?>67 </div>68 69 58 <?php get_sidebar( 'right' ) ?> 70 59 71 60 <?php endwhile; // have_posts ?> -
style.css
2 2 Theme Name: WordPress.org Showcase Theme 3 3 */ 4 4 5 .col-5 { 6 width: calc(100% - 390px); 7 } 8 5 9 .alignleft img, img.alignleft, .alignleft { 6 7 10 float: left; 11 padding: 5px; 8 12 } 9 13 10 14 img.aligncenter { 11 12 13 15 display: block; 16 margin-left: auto; 17 margin-right: auto; 14 18 } 15 19 16 .col-2 p.button, .col-13 p.button { 17 display: block; 18 text-align: center; 19 line-height: 1.4em; 20 padding: 0; 21 background: #d54e21; 22 color: #fff; 23 -moz-border-radius: 3px; 24 -khtml-border-radius: 3px; 25 -webkit-border-radius: 3px; 26 border-radius: 3px; 27 border: none; 28 text-shadow: none; 20 .col-2 p.button, .col-3 p.button { 21 background: #d54e21; 22 border: none; 23 border-radius: 3px; 24 -moz-border-radius: 3px; 25 -webkit-border-radius: 3px; 26 color: #fff; 27 display: block; 28 line-height: 1.4em; 29 padding: 0; 30 text-align: center; 31 text-shadow: none; 29 32 } 30 33 31 34 .col-2 p.button { 32 35 width: 110px; 33 36 } 34 37 35 38 .col-13 p.button { 36 39 width: 75px; 37 40 } 38 41 39 .col-2 p.button a, .col- 13 p.button a {40 font-size: 13px;41 color: #fff;42 display: block;43 padding: 8px 10px;44 text-shadow: rgba(0,0,0,0.5) 0 1px 0;42 .col-2 p.button a, .col-3 p.button a { 43 color: #fff; 44 display: block; 45 font-size: 13px; 46 padding: 14px 10px; 47 text-shadow: rgba(0, 0, 0, 0.5) 0 1px 0; 45 48 } 46 49 47 50 p.button a:hover { 48 color: #ffac90;49 border: none;51 border: none; 52 color: #ffac90; 50 53 } 51 54 52 55 textarea.text { 53 margin-right: 2px; 54 font-size: 10px; 55 padding: 3px; 56 background: #f5f5f5; 57 border: 1px solid #ccc; 58 -moz-border-radius: 3px; 59 -khtml-border-radius: 3px; 60 -webkit-border-radius: 3px; 61 border-radius: 3px; 62 vertical-align: top; 63 color: #666; 56 background: #f5f5f5; 57 border: 1px solid #ccc; 58 border-radius: 3px; 59 -moz-border-radius: 3px; 60 -webkit-border-radius: 3px; 61 color: #666; 62 font-size: 10px; 63 margin-right: 2px; 64 padding: 3px; 65 vertical-align: top; 64 66 } 65 67 66 68 div.post-ratings { 67 69 height: 50px; 68 70 } 69 71 70 72 h4 { 71 border-bottom:1px solid #DEDEDE;72 color:#333333;73 font-size:12px;74 font-weight:bold;75 margin-bottom:10px;76 padding-bottom:4px;77 padding-top:1px;73 border-bottom: 1px solid #DEDEDE; 74 color: #333333; 75 font-size: 12px; 76 font-weight: bold; 77 margin-bottom: 10px; 78 padding-bottom: 4px; 79 padding-top: 1px; 78 80 } 79 81 80 82 h4.search { 81 83 padding-top: 0; 82 84 } 83 85 84 86 .archives h4 { 85 87 margin-top: 10px; 86 88 } 87 89 88 90 .col-2 p { 89 90 91 margin: 0; 92 padding: 0; 91 93 } 92 94 93 95 #searchform { 94 96 margin-bottom: 22px; 95 97 } 96 98 97 99 .gallery { 98 100 margin: auto; 99 101 } 100 102 101 103 .gallery-item { 102 103 104 105 104 float: left; 105 margin-top: 0; 106 text-align: center; 107 width: 50%; 106 108 } 107 109 108 110 .gallery img { 109 110 padding: 4px;111 border: 1px solid #ccc;111 background: #f5f5f5; 112 border: 1px solid #ccc; 113 padding: 4px; 112 114 } 113 115 114 116 .gallery-caption { 115 116 117 margin: 0 8px 0 8px; 118 text-align: left; 117 119 } 118 120 119 121 .gallery-caption h5 { 120 122 margin-top: 10px; 121 123 } 122 124 123 125 h5 { 124 125 126 font-size: 16px; 127 margin-bottom: 5px; 126 128 } 127 129 128 130 h5 a { 129 131 font-weight: normal; 130 132 } 131 133 132 134 #pagebody .excerpt p { 133 margin-bottom: 0;134 font-size: 12px;135 line-height: 18px;135 font-size: 12px; 136 line-height: 18px; 137 margin-bottom: 0; 136 138 } 137 139 138 140 .featured-sites { 139 140 padding-bottom: 20px;141 margin-bottom: 20px;141 border-bottom: 1px solid #DEDEDE; 142 margin-bottom: 20px; 143 padding-bottom: 20px; 142 144 } 143 145 144 146 #pagebody .featured-sites .gallery-caption p { 145 font-size: 12px; 146 line-height: 18px; 147 margin: 0px; 148 margin-bottom: 10px; 147 font-size: 12px; 148 line-height: 18px; 149 margin: 0 0 10px 0; 149 150 } 151 150 152 .excerpt p { 151 margin: 0;152 padding: 0;153 font-size: 10px;153 font-size: 10px; 154 margin: 0; 155 padding: 0; 154 156 } 155 157 156 158 table.most-votes, table.top-rated { 157 padding: 0;158 margin-bottom: 22px;159 margin-bottom: 22px; 160 padding: 0; 159 161 } 160 162 161 163 table.most-votes, table.top-rated td { 162 valign: top;163 line-height: 16px;164 line-height: 16px; 165 vertical-align: top; 164 166 } 165 167 166 168 .most-rated { 167 background: #F5F5F5; 168 -moz-border-radius: 3px; 169 -khtml-border-radius: 3px; 170 -webkit-border-radius: 3px; 171 border-radius: 3px; 172 border: 1px solid #ccc; 173 padding: 0; 174 margin: 1px 2px 0 0; 175 display: block; 176 text-align: center; 177 font-weight: bold; 178 width: 50px; 179 line-height: 14px; 180 color: #797979; 181 font-size: 11px; 169 background: #F5F5F5; 170 border: 1px solid #ccc; 171 border-radius: 3px; 172 -moz-border-radius: 3px; 173 -webkit-border-radius: 3px; 174 color: #797979; 175 display: block; 176 font-size: 11px; 177 font-weight: bold; 178 line-height: 14px; 179 margin: 1px 2px 0 0; 180 padding: 0; 181 text-align: center; 182 width: 50px; 182 183 } 183 184 184 185 .top-rated img.post-ratings-image { 185 186 width: 10px;187 margin-top: 3px;186 height: 10px; 187 margin-top: 3px; 188 width: 10px; 188 189 } 189 190 190 191 .top-rated-stars { 191 192 width: 54px; 192 193 } 193 194 194 195 ul#flavors { 195 196 196 margin: 0; 197 padding: 0; 197 198 } 198 199 199 200 ul#flavors li { 200 list-style: none;201 margin: 0;202 padding: 3px 0 3px0;203 color: #c9c9c9;201 color: #c9c9c9; 202 list-style: none; 203 margin: 0; 204 padding: 3px 0 3px 0; 204 205 } 205 206 206 207 #flavors li img, .post-ratings img, .top-rated li img { 207 208 vertical-align: middle; 208 209 } 209 210 210 211 ul#flavors li.flavor-used { 211 212 color: #363636; 212 213 } 213 214 214 215 .post .storycontent { 215 216 217 216 border-bottom: 1px solid #DEDEDE; 217 margin-bottom: 10px; 218 padding-bottom: 10px; 218 219 } 219 220 220 221 221 .story-excerpt { 222 222 margin: 0 0 30px 0; 223 223 } 224 224 225 225 h3 { 226 font-weight: normal;227 font-size: 20px;228 226 font-size: 20px; 227 font-weight: normal; 228 margin-bottom: 20px; 229 229 } 230 230 231 231 h3 a { 232 232 font-weight: normal; 233 233 } 234 234 235 .meta {236 margin: 3px 0 0 0;237 font-size: 12px;235 .meta { 236 font-size: 12px; 237 margin: 3px 0 0 0; 238 238 } 239 239 240 240 .meta a { 241 241 font-weight: normal; 242 242 } 243 243 244 .single .storycontent { 245 padding-right: 0; 246 } 247 244 248 .story-excerpt img, .storycontent img { 245 246 padding: 4px;247 border: 1px solid #ccc;248 margin-right: 10px;249 background: #f5f5f5; 250 border: 1px solid #ccc; 251 margin-right: 10px; 252 padding: 4px; 249 253 } 250 254 251 255 .story-excerpt img.noborder, .storycontent img.noborder { 252 padding: 0;253 border: 0;256 border: 0; 257 padding: 0; 254 258 } 255 259 256 260 .post .storycontent img.site-screenshot { 257 background: #f5f5f5; 258 margin: 0; 259 padding: 3px; 260 border: 1px solid #ccc; 261 background: #f5f5f5; 262 border: 1px solid #ccc; 263 margin: 0; 264 padding: 3px; 265 width: 100%; 266 height: auto; 261 267 } 262 268 263 .col- 13 {264 float: left;265 margin: 38px 00 0;266 269 .col-3 { 270 float: right; 271 margin: 0 14px 0 0; 272 width: 160px; 267 273 } 268 274 269 275 blockquote { 270 271 margin-top:16px;272 padding: 8px 32px 12px 8px;273 border:none;276 background: url(images/openquote.png?1) left top no-repeat; 277 border: none; 278 margin-top: 16px; 279 padding: 8px 32px 12px 8px; 274 280 } 275 281 276 277 282 blockquote cite { 278 283 float: right; 279 284 } 280 285 281 .next {282 286 .next { 287 float: right; 283 288 } 284 289 285 290 .prev { 286 291 float: left; 287 292 } 288 293 289 294 .nextprev { 290 295 margin-bottom: 20px; 291 296 } 292 297 293 298 .post-ratings-text { 294 299 padding-left: 8px; 295 300 } 296 301 297 302 .clear { 298 299 visibility: hidden;300 height: 0;303 clear: both; 304 height: 0; 305 visibility: hidden; 301 306 } 302 307 303 308 .rating-descrip { 304 305 309 font-size: 12px; 310 line-height: 1.4em; 306 311 } 307 312 308 #wordpress-org #wp_page_numbers ul, 309 #wordpress-org #wp_page_numbers li, 313 #wordpress-org #wp_page_numbers ul, 314 #wordpress-org #wp_page_numbers li, 310 315 #wordpress-org #wp_page_numbers a { 311 padding: 0;312 margin: 0;313 text-decoration: none;314 font-style: normal;315 list-style: none;316 text-transform: none;317 text-indent: 0px;318 font-variant: normal;319 text-align: left;320 line-height: 14px;321 letter-spacing: 0px;322 word-spacing: 0px;323 font-size: 12px;324 font-family: sans-serif;316 font-family: sans-serif; 317 font-size: 12px; 318 font-style: normal; 319 font-variant: normal; 320 letter-spacing: 0; 321 line-height: 14px; 322 list-style: none; 323 margin: 0; 324 padding: 0; 325 text-align: left; 326 text-decoration: none; 327 text-indent: 0; 328 text-transform: none; 329 word-spacing: 0; 325 330 } 326 331 327 332 #wordpress-org #wp_page_numbers { 328 329 333 margin: 10px 0 22px 0; 334 width: 100%; 330 335 } 336 331 337 #wordpress-org #wp_page_numbers ul { 332 width: 100%;333 padding-top: 10px;338 padding-top: 10px; 339 width: 100%; 334 340 } 341 335 342 #wordpress-org #wp_page_numbers li { 336 float: left;337 display: block;338 343 display: block; 344 float: left; 345 margin-bottom: 2px; 339 346 } 347 340 348 #wordpress-org #wp_page_numbers li.page_info { 341 349 padding: 2px 8px 3px 0; 342 350 } 351 343 352 #wordpress-org #wp_page_numbers a { 344 padding: 3px; 345 padding-left: 5px; 346 padding-right: 5px; 347 margin-left: 2px; 348 margin-right: 2px; 349 display: block; 350 border: 1px solid #cccccc; 353 border: 1px solid #cccccc; 354 display: block; 355 margin-left: 2px; 356 margin-right: 2px; 357 padding: 3px 5px 3px 5px; 351 358 } 352 359 353 360 #wordpress-org #wp_page_numbers li a:hover { 354 361 border-color: #999999; 355 362 } 356 363 357 364 #wordpress-org #wp_page_numbers li.space { 358 padding: 6px; 359 padding-left: 2px; 360 padding-right: 2px; 365 padding: 6px 2px 6px 2px; 361 366 } 362 367 363 368 #wordpress-org #wp_page_numbers li.active_page a { 364 background-color:#328AB2;365 border:1px solid #328AB2;366 color:#FFFFFF;369 background-color: #328AB2; 370 border: 1px solid #328AB2; 371 color: #FFFFFF; 367 372 } 368 373 369 #wordpress-org #wp_page_numbers li.active_page a:hover 370 background-color:#328AB2;371 border:1px solid #328AB2;372 color:#FFFFFF;374 #wordpress-org #wp_page_numbers li.active_page a:hover { 375 background-color: #328AB2; 376 border: 1px solid #328AB2; 377 color: #FFFFFF; 373 378 } 374 379 375 .archives .col-7, .home .col-7 { 376 380 .archives .col-7, .home .col-7 { 381 margin-bottom: 20px; 377 382 } 378 383 379 384 .archives .storycontent { 380 385 margin-left: 15px; 381 386 } 382 387 383 388 /* !Showcase Homepage Refresh … … 384 389 ================================================= */ 385 390 386 391 /* Clearfix */ 387 .group:before, .group:after { content:""; display:table; } 388 .group:after {clear:both;} 389 .group {zoom:1;} 392 .group:before, .group:after { 393 content: ""; 394 display: table; 395 } 390 396 397 .group:after { 398 clear: both; 399 } 400 401 .group { 402 zoom: 1; 403 } 404 391 405 #pagebody { 392 406 font-size: 13px; 393 407 } 394 408 395 409 #pagebody.home { 396 410 margin: 0 397 411 } 398 412 399 413 #pagebody .main-content, #pagebody .storycontent { 400 414 font-size: 16px; 401 415 } 402 416 403 a {outline: none} 417 a { 418 outline: none 419 } 404 420 405 421 /* Hero Area */ 406 422 407 423 .wpsc-hero { 408 background: #373737; 409 color: #fff; 410 411 position: relative; 412 413 padding: 21px 0 0 0; 414 margin: 0 0 42px 0; 415 416 min-height: 365px; 424 background: #373737; 425 color: #fff; 426 margin: 0 0 42px 0; 427 min-height: 365px; 428 padding: 21px 0 0 0; 429 position: relative; 417 430 } 418 431 419 432 .wpsc-hero a:hover { 420 433 color: #ffac90; 421 434 } 422 435 423 436 .wpsc-hero-slide-container { 424 margin: auto; 425 position: relative; 426 427 width: 970px; 428 height: 310px; 429 overflow: hidden; 437 margin: auto auto 20px auto; 438 max-width: 970px; 439 overflow: hidden; 440 position: relative; 441 width: 100%; 430 442 } 431 443 432 444 .wpsc-hero-slide { 433 background: #373737; 434 clear: both; 435 436 margin: auto; 437 width: 970px; 438 439 font-size: 14px; 440 441 text-shadow: 0px 1px 0px rgba(0,0,0,0.75) 445 background: #373737; 446 clear: both; 447 font-size: 14px; 448 margin: auto; 449 max-width: 970px; 450 min-height: 310px; 451 text-shadow: 0 1px 0 rgba(0, 0, 0, 0.75); 452 width: 100%; 442 453 } 443 454 444 455 .wpsc-hero-slide-img { 445 display: block; 446 overflow: hidden; 447 position: relative; 448 449 height: 285px; 456 background: #fff; 457 border: 5px #fff solid; 458 border-radius: 3px; 459 -webkit-border-radius: 3px; 460 box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.4); 461 -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.4); 462 display: block; 463 position: relative; 464 } 450 465 451 float: left; 452 margin: 0 32px 25px 0; 453 454 border: 5px #fff solid; 455 border-radius: 3px; 456 -webkit-border-radius: 3px; 457 458 box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.4); 459 -webkit-box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.4); 466 .wpsc-hero-slide-img img { 467 height: auto; 468 width: 100%; 460 469 } 461 470 462 471 .wpsc-hero-slide-content { 463 472 padding: 0 20px; 464 473 } 465 474 475 .wpsc-hero-slide-content-left { 476 float: left; 477 position: relative; 478 width: 50%; 479 } 480 481 .wpsc-hero-slide-content-right { 482 float: left; 483 position: relative; 484 width: 50%; 485 } 486 487 .wpsc-hero-slide-content-right-wrapper { 488 display: block; 489 padding-left: 20px; 490 } 491 466 492 .wpsc-slide-nav { 467 background: #f7f7f7; 468 border-bottom: 1px #c6c6c6 solid; 469 470 position: absolute; 471 bottom: 0; 472 z-index: 99; 473 474 width: 100%; 475 476 padding: 18px 0 15px 0; 477 478 text-align: center; 493 background: #f7f7f7; 494 border-bottom: 1px #c6c6c6 solid; 495 bottom: 0; 496 padding: 18px 0 10px 0; 497 position: relative; 498 text-align: center; 499 width: 100%; 500 z-index: 99; 479 501 } 480 502 481 .wpsc-slide-nav a { 482 display: inline-block; 483 text-indent: -1000%; 484 485 background: #dcdcdc; 486 border: 1px #bcbcbc solid; 487 488 margin: 0 6px; 489 490 width: 11px; 491 height: 11px; 492 493 border-radius: 50%; 503 .wpsc-slide-nav .wpsc-slide-pager span { 504 background: #dcdcdc; 505 border: 1px #bcbcbc solid; 506 border-radius: 50%; 507 display: inline-block; 508 height: 11px; 509 margin: 0 6px; 510 text-indent: -1000%; 511 width: 11px; 494 512 } 495 513 496 .wpsc-slide-nav a:hover {497 514 .wpsc-slide-nav .wpsc-slide-pager span:hover { 515 background: #bababa; 498 516 } 499 517 500 .wpsc-slide-nav . activeSlide {501 502 518 .wpsc-slide-nav .wpsc-slide-pager span.cycle-pager-active { 519 background: #acacac; 520 border-color: #5f5f5f; 503 521 } 504 522 505 .wpsc- hero-slide p{506 line-height: 1.7;523 .wpsc-slide-pager span:hover { 524 cursor: pointer; 507 525 } 508 526 509 .wpsc-hero-slide h3{510 margin: 0 0 5px 0;527 .wpsc-hero-slide p { 528 line-height: 1.7; 511 529 } 512 530 513 531 .wpsc-hero-slide h3 a { 514 display: block; 515 516 color: #fff; 517 font-weight: bold; 518 font-size: 24px; 519 520 padding: 20px 0 0 0; 532 color: #fff; 533 display: block; 534 font-size: 24px; 535 font-weight: bold; 521 536 } 522 537 523 538 .wpsc-linkout, 524 539 .wpsc-linkout:visited { 525 526 540 color: #c8c8c8; 541 font-size: 12px; 527 542 } 528 543 529 544 .linkout-symbol { 530 font-size: 15px; 531 font-family: "Arial Unicode MS", Arial, sans-serif; 532 line-height: 0.7; 533 534 display: inline-block; 535 margin: 1px 0 -1px 3px; 545 display: inline-block; 546 font-family: "Arial Unicode MS", Arial, sans-serif; 547 font-size: 15px; 548 line-height: 0.7; 549 margin: 1px 0 -1px 3px; 536 550 } 537 551 538 552 a.wpsc-hero-learnmore { 539 540 font-weight: bold;541 font-size: 16px;542 553 color: #fff; 554 font-size: 16px; 555 font-weight: bold; 556 line-height: 1; 543 557 } 544 558 545 559 #pagebody .wpsc-tags { 546 560 margin: 10px 0 17px 0; 547 561 } 548 562 549 563 .wpsc-tags li { 550 564 display: inline; 551 565 } 552 566 553 567 .wpsc-hero .wpsc-tags li a { 554 background: #6c6c6c; 555 color: #fff; 556 557 text-shadow: 0 -1px 0 rgba(0,0,0,1); 558 -webkit-text-shadow: 0 -1px 0 rgba(0,0,0,1); 568 background: #6c6c6c; 569 color: #fff; 570 text-shadow: 0 -1px 0 rgba(0, 0, 0, 1); 559 571 } 560 572 561 573 .wpsc-hero .wpsc-tags li a:hover { 562 background: #eee; 563 color: #d54e21; 564 565 text-shadow: none; 566 -webkit-text-shadow: none; 574 background: #eee; 575 color: #d54e21; 576 text-shadow: none; 567 577 } 568 578 569 579 /* Sidebar */ 580 .leftsidebar { 581 z-index: 200; 582 } 570 583 571 .home .secondary { 572 width: 150px; 584 .secondary { 585 display: block; 586 float: left; 587 position: relative; 588 width: 150px; 573 589 } 574 590 575 591 .secondary h4 { 576 color: #444; 577 font-size: 13px; 578 line-height: 1.2; 579 580 padding: 0 0 10px 0; 581 582 margin: 47px 0 11px 0; 592 color: #444; 593 font-size: 13px; 594 line-height: 1.2; 595 margin: 47px 0 11px 0; 596 padding: 0 0 10px 0; 583 597 } 584 598 585 599 .home .secondary h4.search { 586 600 margin-bottom: 16px; 587 601 } 588 602 603 .home .wpsc-recent img { 604 width: 100%; 605 height: auto; 606 } 607 589 608 .wpsc-submit-site { 590 display: block; 591 font-weight: bold; 592 line-height: 1.4; 593 594 padding: 0 0 8px 0; 595 596 border-bottom: 1px #dedede solid; 609 border-bottom: 1px #dedede solid; 610 display: block; 611 font-weight: bold; 612 line-height: 1.4; 613 padding: 0 0 8px 0; 597 614 } 598 615 599 616 .secondary #s { 600 width: 78px; 601 602 border-radius: 2px; 603 -webkit-border-radius: 2px; 617 border-radius: 2px; 618 -webkit-border-radius: 2px; 619 width: 78px; 604 620 } 605 621 606 622 .secondary .tag-count { 607 display: block; 608 float: right; 609 610 background: #e6e6e6; 611 612 font-size: 11px; 613 font-weight: bold; 614 line-height: 1; 615 616 text-shadow: 0 1px 0 #fff; 617 -webkit-text-shadow: 0 1px 0 #fff; 618 619 padding: 4px 7px 3px 7px; 620 621 border-radius: 23px; 622 -webkit-border-radius: 23px; 623 background: #e6e6e6; 624 border-radius: 23px; 625 -webkit-border-radius: 23px; 626 display: block; 627 float: right; 628 font-size: 11px; 629 font-weight: bold; 630 line-height: 1; 631 padding: 4px 7px 3px 7px; 632 text-shadow: 0 1px 0 #fff; 623 633 } 624 634 625 635 .secondary .wpsc-all-tags { 626 636 font-weight: bold; 627 637 } 628 638 629 639 #pagebody .secondary li { 630 631 640 border-bottom: 0; 641 padding: 6px 0; 632 642 } 633 643 634 644 .secondary .cat-item-5 a:before, … … 635 645 .secondary .cat-item-186 a:before, 636 646 .secondary .cat-item-187 a:before, 637 647 .secondary .cat-item-188 a:before { 638 639 640 641 648 content: "\f120"; 649 font-family: dashicons; 650 font-size: 16px; 651 padding: 0 6px 0 0; 642 652 position: relative; 643 653 top: 2px; 644 654 } 645 655 646 656 .secondary .cat-item-3 a:before { 647 648 649 650 657 content: "\f448"; 658 font-family: dashicons; 659 font-size: 16px; 660 padding: 0 6px 0 0; 651 661 position: relative; 652 662 top: 2px; 653 663 } 654 664 655 665 .secondary .cat-item-218 a:before { 656 657 658 659 660 661 666 content: "\f477"; 667 font-family: dashicons; 668 font-size: 16px; 669 padding: 0 6px 0 0; 670 position: relative; 671 top: 2px; 662 672 } 663 673 664 665 674 /* Main Content Area */ 666 675 667 676 .wpsc-tags li a { 668 display: inline-block; 669 background: #ebebeb; 670 671 font-size: 12px; 672 font-weight: bold; 673 line-height: 1; 674 675 margin: 0 5px 5px 0; 676 padding: 3px 5px; 677 678 border-radius: 2px; 679 -webkit-border-radius: 2px; 680 681 text-shadow: 0 1px 0 #fff; 682 -webkit-text-shadow: 0 1px 0 #fff; 677 background: #ebebeb; 678 border-radius: 2px; 679 -webkit-border-radius: 2px; 680 display: inline-block; 681 font-size: 12px; 682 font-weight: bold; 683 line-height: 1; 684 margin: 0 5px 5px 0; 685 padding: 3px 5px; 686 text-shadow: 0 1px 0 #fff; 683 687 } 684 688 685 .wpsc-tags li a:hover { 686 text-shadow: none; 687 -webkit-text-shadow: none; 689 .wpsc-tags li a:hover { 690 text-shadow: none; 688 691 } 689 692 690 693 .home .main-content { 691 margin: 0 -25px 0 0; 692 width: 750px;693 694 float: right;694 float: left; 695 margin: 0; 696 /*max-width: 740px;*/ 697 width: calc(100% - 180px); 695 698 } 696 699 700 .home .main-content .maincontentwrapper { 701 padding: 0 14px; 702 } 703 697 704 .home .main-content h3 { 698 699 705 font-weight: bold; 706 margin: 0 0 29px 0; 700 707 } 701 708 702 709 #pagebody.home .wpsc-recent { 703 704 710 margin: 0; 711 overflow: auto; 705 712 } 706 713 707 .home .wpsc-recent>li { 708 display: block; 709 float: left; 710 position: relative; 711 712 list-style: none; 713 714 min-height: 310px; 715 width: 215px; 716 717 margin: 0 33px 40px 0; 718 padding: 0 0 10px 0; 714 .home .wpsc-recent > li { 715 display: block; 716 float: left; 717 list-style: none; 718 min-height: 310px; 719 padding: 10px; 720 position: relative; 721 width: 29%; 719 722 } 720 723 721 .wpsc-recent >li .screenshot {722 723 724 725 box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.35);726 -webkit-box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.35);724 .wpsc-recent > li .screenshot { 725 border-radius: 3px; 726 -webkit-border-radius: 3px; 727 728 box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.35); 729 -webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.35); 727 730 } 728 731 729 .wpsc-recent >li a:hover .screenshot {730 box-shadow: 0px 1px 5px 1px rgba(0,0,0,0.5);731 -webkit-box-shadow: 0px 1px 5px 1px rgba(0,0,0,0.5);732 .wpsc-recent > li a:hover .screenshot { 733 box-shadow: 0 1px 5px 1px rgba(0, 0, 0, 0.5); 734 -webkit-box-shadow: 0 1px 5px 1px rgba(0, 0, 0, 0.5); 732 735 } 733 736 734 737 #pagebody .wpsc-recent p { 735 margin: 10px 0 20px 0;736 line-height: 1.4 738 line-height: 1.4; 739 margin: 10px 0 20px 0; 737 740 } 738 741 739 742 .wpsc-recent h5 { 740 741 742 743 font-size: 14px; 744 line-height: 1.2; 745 margin: 13px 0 0 0; 743 746 } 744 747 745 748 .wpsc-recent h5 a { 746 747 749 font-style: normal; 750 font-weight: bold; 748 751 } 749 752 750 .wpsc-recent>li .post-ratings { 751 position: absolute; 752 bottom: 0; 753 height:auto; 754 border-top: 1px #EFEFEF solid; 755 padding: 5px 0 0 0; 756 text-align: right; 753 .wpsc-recent > li .post-ratings { 754 border-top: 1px #EFEFEF solid; 755 bottom: 0; 756 height: auto; 757 padding: 5px 0 0 0; 758 text-align: right; 757 759 } 758 760 759 761 /* Ratings */ 760 762 761 #pagebody .post-ratings img, 762 #pagebody .post-ratings-loading img, 763 #pagebody .post-ratings img, 764 #pagebody .post-ratings-loading img, 763 765 #pagebody .post-ratings-image img { 764 padding: 5px 2px 0 0; /* was margin */ 765 float: left;766 width:12px; 767 height:12px;766 float: left; 767 height: 12px; 768 padding: 5px 2px 0 0; /* was margin */ 769 width: 12px; 768 770 } 769 771 770 772 .wpsc-view-all { 771 772 773 text-align: right;774 font-weight: bold;775 margin: 20px 25px 100px 25px;776 773 clear: both; 774 display: block; 775 font-weight: bold; 776 margin: 20px 25px 100px 25px; 777 text-align: right; 778 777 779 } 780 781 #wpsc-mobile-menu-button:before { 782 border: none; 783 box-sizing: border-box; 784 -moz-box-sizing: border-box; 785 color: #888; 786 content: '\f228'; 787 display: none; 788 float: left; 789 font: normal 30px/1 'Dashicons'; 790 height: 32px; 791 margin-right: -10px; 792 margin-top: 15px; 793 outline: none; 794 padding: 3px; 795 text-decoration: none; 796 vertical-align: middle; 797 width: 39px; 798 -webkit-font-smoothing: antialiased; 799 } 800 801 /* Large devices */ 802 @media (max-width: 992px) { 803 804 } 805 806 /* Medium devices */ 807 @media (max-width: 768px) { 808 .home .main-content { 809 padding: 0; 810 width: 100%; 811 } 812 813 .wpsc-hero.group { 814 display: none !important; 815 } 816 817 .wpsc-business > li, 818 .wpsc-recadded > li { 819 width: 44% !important;; 820 } 821 822 .wpsc-business > li:last-child, 823 .wpsc-recadded > li:last-child { 824 display: none !important; 825 } 826 827 .leftsidebar { 828 background: #fff; 829 border: 1px #DFDFDF solid; 830 height: 100%; 831 margin-left: -210px; 832 margin-top: -1px; 833 min-height: 100vh; 834 padding: 20px; 835 } 836 837 #wpsc-mobile-menu-button:before { 838 display: inline-block; 839 } 840 841 .col-5 { 842 width: calc(100% - 220px); 843 } 844 845 .single .leftsidebar { 846 margin-top: -41px; 847 } 848 } 849 850 /* Small devices */ 851 @media (max-width: 576px) { 852 .wpsc-business > li, 853 .wpsc-recadded > li { 854 width: 100% !important; 855 } 856 857 .home .wpsc-recent > li { 858 padding: 0; 859 text-align: center; 860 } 861 862 .rightsidebar { 863 display: inline-block; 864 margin: 50px 0 0 0; 865 width: 100%; 866 clear: none; 867 float: none; 868 } 869 870 .rightsidebarwrapper { 871 padding: 0 14px 0 14px; 872 } 873 874 .col-5 { 875 width: 100%; 876 margin: 0; 877 padding: 0 14px 0 14px; 878 display: table-cell; 879 float: none; 880 } 881 } 882 No newline at end of file