This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Uses Flexbox to create grid with container's direct descendant elements | |
.flex-grid(@columns: 2, @margin: @indent-md) { | |
@total-margin: (@columns - 1) * @margin; | |
@first-column-offset: @columns + 1; | |
.flex(); | |
.flex-wrap(wrap); | |
> * { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Random Plugin | |
*/ | |
;(function($, window, document, undefined) { | |
'use strict'; | |
/** | |
* Creates the random plugin. | |
* @class Random Plugin | |
* @param {Owl} carousel - The Owl Carousel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---------------------------------------------------------------------- | |
# | Expires headers | | |
# ---------------------------------------------------------------------- | |
# Serve resources with far-future expires headers. | |
# | |
# (!) If you don't control versioning with filename-based | |
# cache busting, you should consider lowering the cache times | |
# to something like one week. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Magento_Review | |
// -------------------------------------------------- | |
// | |
// Variables | |
// ------------------------------------------ | |
@helpful-variable-margin: 10px 0 40px 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Triangles and arrows | |
.triangle-props { | |
content: ""; | |
display: block; | |
position: absolute; | |
} | |
.triangle-upper-left(@size; @color) { | |
border-color: @color transparent transparent @color; | |
border-style: solid; | |
border-width: @size @size 0 1px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if($_key == 'name'): ?> | |
<option value="<?php echo $this->getOrderUrl($_key, 'asc') ?>"<?php if($this->isOrderCurrent($_key) && ($this->getCurrentDirection() == 'asc')): ?> selected="selected"<?php endif; ?>> | |
<?php echo $this->__("%s (A-Z)",$_order) ?> | |
</option> | |
<option value="<?php echo $this->getOrderUrl($_key, 'desc') ?>"<?php if($this->isOrderCurrent($_key) && ($this->getCurrentDirection() == 'desc')): ?> selected="selected"<?php endif; ?>> | |
<?php echo $this->__("%s (Z-A)",$_order) ?> | |
</option> | |
<?php endif;?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Improves jQuery:contains to become case-insensitive | |
* */ | |
window.jQuery.expr[':'].Contains = function(a, i, m) { | |
return window.jQuery(a).text().toUpperCase() | |
.indexOf(m[3].toUpperCase()) >= 0; | |
}; | |
(function($) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="qty-box qty-toggle"> | |
<span class="label"><?php echo $this->__('Quantity');?></span> | |
<div class="inner"> | |
<button class="button minus decrement" type="button"><i class="icon-minus"></i></button> | |
<input type="number" name="qty" id="qty" maxlength="12" value="<?php echo ($_product->getQty()*1) ?>" title="<?php echo $this->__('Qty') ?>" placeholder="QTY" class="input-text qty" /> | |
<button class="button plus increment" type="button"><i class="icon-plus"></i></button> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Owl Carousel - Animate Plugin | |
*/ | |
.owl-carousel { | |
&.animated { | |
-webkit-animation-duration: 1000ms; | |
animation-duration: 1000ms; | |
-webkit-animation-fill-mode: both; | |
animation-fill-mode: both; | |
} |