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
/* Devices sizes */ | |
$tablet-width: 768px; | |
$mobile-width: 420px; | |
/* Responsive breakpoints */ | |
$break-small: $mobile-width; | |
$break-large: $tablet-width; | |
@mixin respond-to($media) { | |
@if $media == mobile { |
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
def add_to_cart(name, variant=nil) | |
visit spree.root_path | |
click_link name | |
# in the product page | |
choose variant if variant | |
click_button "add-to-cart-button" | |
end | |
def complete_checkout_with_login(email, password) | |
begin_checkout |
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
if (window.matchMedia('only screen and (max-device-width: 480px)').matches) { | |
// Asynchronously load iphone.js | |
} else if (window.matchMedia('only screen and (min-device-width: 481px) and ' + | |
'(max-device-width: 1024px) and ' + | |
'(orientation: portrait)').matches) { | |
// Asynchronously load ipad-portrait.js | |
} | |
NewerOlder