shibori 1.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +20 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +27 -0
- data/Procfile +1 -0
- data/README.md +24 -0
- data/Rakefile +2 -0
- data/app.json +11 -0
- data/builder/lineage_hunter.js +80 -0
- data/builder/list_item_hunter.js +106 -0
- data/builder/media_hunter.js +51 -0
- data/builder/object_factory.js +60 -0
- data/builder/parameter_hunter.js +69 -0
- data/builder/pattern_assembler.js +258 -0
- data/builder/pattern_exporter.js +43 -0
- data/builder/patternlab.js +365 -0
- data/builder/patternlab_grunt.js +38 -0
- data/builder/patternlab_gulp.js +26 -0
- data/builder/pseudopattern_hunter.js +78 -0
- data/config.json +34 -0
- data/docs/Pattern Lab Node.md +225 -0
- data/favicon.ico +0 -0
- data/gulpfile.js +148 -0
- data/index.js +20 -0
- data/lib/shibori/version.rb +3 -0
- data/lib/shibori.rb +11 -0
- data/package.json +44 -0
- data/public/data/annotations.js +109 -0
- data/public/styleguide/css/static.css +458 -0
- data/public/styleguide/css/static.scss +404 -0
- data/public/styleguide/css/styleguide-specific.css +170 -0
- data/public/styleguide/css/styleguide-specific.scss +204 -0
- data/public/styleguide/css/styleguide.css +880 -0
- data/public/styleguide/css/styleguide.scss +950 -0
- data/public/styleguide/css/vendor/prism.css +112 -0
- data/public/styleguide/css/vendor/typeahead.css +66 -0
- data/public/styleguide/fonts/icomoon.eot +0 -0
- data/public/styleguide/fonts/icomoon.svg +22 -0
- data/public/styleguide/fonts/icomoon.ttf +0 -0
- data/public/styleguide/fonts/icomoon.woff +0 -0
- data/public/styleguide/html/README +1 -0
- data/public/styleguide/images/spinner.gif +0 -0
- data/public/styleguide/js/annotations-pattern.js +308 -0
- data/public/styleguide/js/annotations-viewer.js +289 -0
- data/public/styleguide/js/code-pattern.js +120 -0
- data/public/styleguide/js/code-viewer.js +443 -0
- data/public/styleguide/js/data-saver.js +169 -0
- data/public/styleguide/js/pattern-finder.js +114 -0
- data/public/styleguide/js/postmessage.js +127 -0
- data/public/styleguide/js/styleguide.js +600 -0
- data/public/styleguide/js/url-handler.js +182 -0
- data/public/styleguide/js/vendor/classlist-polyfill.js +176 -0
- data/public/styleguide/js/vendor/jquery.js +4 -0
- data/public/styleguide/js/vendor/jwerty.js +523 -0
- data/public/styleguide/js/vendor/prism.js +7 -0
- data/public/styleguide/js/vendor/typeahead.bundle.min.js +7 -0
- data/script/bootstrap +58 -0
- data/shibori.gemspec +18 -0
- data/shibori.jpg +0 -0
- data/source/_data/annotations.js +109 -0
- data/source/_data/data.json +93 -0
- data/source/_data/listitems.json +782 -0
- data/source/_patternlab-files/README +1 -0
- data/source/_patternlab-files/index.mustache +94 -0
- data/source/_patternlab-files/partials/ishControls.mustache +64 -0
- data/source/_patternlab-files/partials/patternNav.mustache +17 -0
- data/source/_patternlab-files/partials/patternPaths.mustache +3 -0
- data/source/_patternlab-files/partials/viewAllPaths.mustache +3 -0
- data/source/_patternlab-files/pattern-header-footer/README +1 -0
- data/source/_patternlab-files/pattern-header-footer/footer.html +34 -0
- data/source/_patternlab-files/pattern-header-footer/header.html +44 -0
- data/source/_patternlab-files/styleguide.mustache +75 -0
- data/source/_patternlab-files/viewall.mustache +75 -0
- data/source/_patterns/00-atoms/00-typography/00-headings.mustache +6 -0
- data/source/_patterns/00-atoms/00-typography/01-headings-options.mustache +7 -0
- data/source/_patterns/00-atoms/00-typography/02-body.mustache +2 -0
- data/source/_patterns/00-atoms/00-typography/03-text-manipulation.mustache +12 -0
- data/source/_patterns/00-atoms/00-typography/04-blockquotes.mustache +3 -0
- data/source/_patterns/00-atoms/00-typography/05-lists.mustache +64 -0
- data/source/_patterns/00-atoms/01-colors/00-colors-monochromatic.mustache +36 -0
- data/source/_patterns/00-atoms/01-colors/01-colors-brand.mustache +26 -0
- data/source/_patterns/00-atoms/01-colors/02-colors-gradients.mustache +38 -0
- data/source/_patterns/00-atoms/02-buttons/00-btn-lg.mustache +7 -0
- data/source/_patterns/00-atoms/02-buttons/01-btn-sm.mustache +7 -0
- data/source/_patterns/00-atoms/02-buttons/02-btn-xs.mustache +7 -0
- data/source/_patterns/00-atoms/02-buttons/03-btn-block.mustache +7 -0
- data/source/_patterns/00-atoms/02-buttons/04-btn-deploy.mustache +4 -0
- data/source/_patterns/00-atoms/03-forms/00-text-fields.mustache +24 -0
- data/source/_patterns/00-atoms/03-forms/01-select-menu.mustache +6 -0
- data/source/_patterns/00-atoms/03-forms/02-checkbox.mustache +10 -0
- data/source/_patterns/00-atoms/03-forms/03-radios.mustache +10 -0
- data/source/_patterns/00-atoms/03-forms/04-validation.mustache +14 -0
- data/source/_patterns/00-atoms/04-quote/00-pullquote.mustache +7 -0
- data/source/_patterns/00-atoms/04-quote/01-quote-small.mustache +7 -0
- data/source/_patterns/00-atoms/05-code/01-pre.mustache +11 -0
- data/source/_patterns/00-atoms/06-tooltips/00-text.mustache +3 -0
- data/source/_patterns/00-atoms/06-tooltips/01-diagram-callout.mustache +1 -0
- data/source/_patterns/00-atoms/07-loader/00-spinner.mustache +5 -0
- data/source/_patterns/00-atoms/08-readmore/00-readmore.mustache +3 -0
- data/source/_patterns/00-atoms/09-slider/00-dots.mustache +8 -0
- data/source/_patterns/00-atoms/10-tables/00-tables.mustache +26 -0
- data/source/_patterns/00-atoms/12-modal/00-modal.mustache +14 -0
- data/source/_patterns/00-atoms/13-panel/00-panel.mustache +3 -0
- data/source/_patterns/00-atoms/14-users/00-avatar.mustache +3 -0
- data/source/_patterns/00-atoms/15-icons/00-icons.mustache +333 -0
- data/source/_patterns/00-atoms/15-icons/04-icon-colors.mustache +38 -0
- data/source/_patterns/00-atoms/15-icons/05-icon-sizes.mustache +31 -0
- data/source/_patterns/00-atoms/15-icons/_02-languages.mustache +0 -0
- data/source/_patterns/00-atoms/15-icons/_03-social.mustache +0 -0
- data/source/_patterns/00-atoms/15-icons/_05-icon-containers.mustache +0 -0
- data/source/_patterns/00-atoms/16-video/01-video.mustache +3 -0
- data/source/_patterns/00-atoms/16-video/_00-play-button.mustache +0 -0
- data/source/_patterns/00-atoms/17-utilities/00-visibility.mustache +8 -0
- data/source/_patterns/00-atoms/17-utilities/01-ui-elements.mustache +3 -0
- data/source/_patterns/00-atoms/18-grid/_00-grid.mustache +0 -0
- data/source/_patterns/01-molecules/00-text/00-header-groups.mustache +4 -0
- data/source/_patterns/01-molecules/00-text/01-intro-text.mustache +5 -0
- data/source/_patterns/01-molecules/01-layout/00-one-up.mustache +8 -0
- data/source/_patterns/01-molecules/01-layout/01-two-up.mustache +9 -0
- data/source/_patterns/01-molecules/01-layout/02-three-up.mustache +10 -0
- data/source/_patterns/01-molecules/01-layout/03-four-up.mustache +11 -0
- data/source/_patterns/01-molecules/01-layout/04-masonary-2.mustache +24 -0
- data/source/_patterns/01-molecules/01-layout/05-masonary-3.mustache +24 -0
- data/source/_patterns/01-molecules/02-navigation/01-subnav.mustache +21 -0
- data/source/_patterns/01-molecules/02-navigation/02-breadcrumbs.mustache +25 -0
- data/source/_patterns/01-molecules/02-navigation/03-side-nav.mustache +11 -0
- data/source/_patterns/01-molecules/02-navigation/04-side-nav-small.mustache +32 -0
- data/source/_patterns/01-molecules/02-navigation/05-pagination.mustache +0 -0
- data/source/_patterns/01-molecules/02-navigation/06-tabs.mustache +46 -0
- data/source/_patterns/01-molecules/03-forms/_00-search.mustache +0 -0
- data/source/_patterns/01-molecules/04-slider/00-slider.mustache +8 -0
- data/source/_patterns/01-molecules/05-messages/00-alert.mustache +15 -0
- data/source/_patterns/01-molecules/06-components/_00-social-share.mustache +0 -0
- data/source/_patterns/01-molecules/07-Elements/01-Addons-Card.mustache +79 -0
- data/source/_patterns/01-molecules/07-Elements/02-Buttons-Card.mustache +131 -0
- data/source/_patterns/01-molecules/07-Elements/03-Buildpack-Card.mustache +109 -0
- data/source/_patterns/01-molecules/08-vertical-tabs/01-vertical-tabs.mustache +30 -0
- data/source/_patterns/02-organisms/03-sections/00-purple.mustache +11 -0
- data/source/_patterns/02-organisms/03-sections/01-purple-dark.mustache +12 -0
- data/source/_patterns/02-organisms/03-sections/03-gray-light.mustache +12 -0
- data/source/css/hk-icon-rails.scss +13 -0
- data/source/css/scss/base/_base.scss +62 -0
- data/source/css/scss/base/_fonts.scss +12 -0
- data/source/css/scss/base/_normalize.scss +431 -0
- data/source/css/scss/base/_type.scss +128 -0
- data/source/css/scss/base/_utilities.scss +78 -0
- data/source/css/scss/components/_alert.scss +38 -0
- data/source/css/scss/components/_animate.scss +3340 -0
- data/source/css/scss/components/_animation.scss +15 -0
- data/source/css/scss/components/_buttons.scss +175 -0
- data/source/css/scss/components/_code.scss +26 -0
- data/source/css/scss/components/_forms.scss +136 -0
- data/source/css/scss/components/_hero.scss +18 -0
- data/source/css/scss/components/_hr.scss +11 -0
- data/source/css/scss/components/_icons.scss +85 -0
- data/source/css/scss/components/_lists.scss +45 -0
- data/source/css/scss/components/_logos.scss +15 -0
- data/source/css/scss/components/_masonary.scss +46 -0
- data/source/css/scss/components/_modal.scss +218 -0
- data/source/css/scss/components/_owlCarousel.scss +270 -0
- data/source/css/scss/components/_panel.scss +11 -0
- data/source/css/scss/components/_pill-box.scss +38 -0
- data/source/css/scss/components/_quote.scss +96 -0
- data/source/css/scss/components/_readmore.scss +11 -0
- data/source/css/scss/components/_slider.scss +96 -0
- data/source/css/scss/components/_spinner.scss +64 -0
- data/source/css/scss/components/_sprites.scss +3 -0
- data/source/css/scss/components/_sr-only.scss +10 -0
- data/source/css/scss/components/_tables.scss +62 -0
- data/source/css/scss/components/_tooltips.scss +93 -0
- data/source/css/scss/components/_users.scss +11 -0
- data/source/css/scss/components/_vertical-tabs.scss +129 -0
- data/source/css/scss/components/_video.scss +7 -0
- data/source/css/scss/ecosystem/_addons-card.scss +3 -0
- data/source/css/scss/ecosystem/_cards.scss +369 -0
- data/source/css/scss/ecosystem/_elements-brand.scss +32 -0
- data/source/css/scss/ecosystem/_elements.scss +4 -0
- data/source/css/scss/globals/_colors.scss +189 -0
- data/source/css/scss/globals/_mixins.scss +45 -0
- data/source/css/scss/globals/_variables.scss +87 -0
- data/source/css/scss/layout/_grid-settings.scss +13 -0
- data/source/css/scss/layout/_layout.scss +95 -0
- data/source/css/scss/page-elements/_headers.scss +3 -0
- data/source/css/scss/page-elements/_navigation.scss +254 -0
- data/source/css/scss/page-elements/_sections.scss +66 -0
- data/source/css/scss/page-elements/_sidebar.scss +34 -0
- data/source/css/shibori.scss +63 -0
- data/source/fonts/bentonsans/bentonsans-book.eot +0 -0
- data/source/fonts/bentonsans/bentonsans-book.svg +400 -0
- data/source/fonts/bentonsans/bentonsans-book.ttf +0 -0
- data/source/fonts/bentonsans/bentonsans-book.woff +0 -0
- data/source/fonts/bentonsans/bentonsans-medium.eot +0 -0
- data/source/fonts/bentonsans/bentonsans-medium.svg +416 -0
- data/source/fonts/bentonsans/bentonsans-medium.ttf +0 -0
- data/source/fonts/bentonsans/bentonsans-medium.woff +0 -0
- data/source/fonts/bentonsans/bentonsans-regular.eot +0 -0
- data/source/fonts/bentonsans/bentonsans-regular.svg +416 -0
- data/source/fonts/bentonsans/bentonsans-regular.ttf +0 -0
- data/source/fonts/bentonsans/bentonsans-regular.woff +0 -0
- data/source/fonts/hk-icon/hk-icon.eot +0 -0
- data/source/fonts/hk-icon/hk-icon.svg +261 -0
- data/source/fonts/hk-icon/hk-icon.ttf +0 -0
- data/source/fonts/hk-icon/hk-icon.woff +0 -0
- data/source/fonts/inconsolata/inconsolata-bold.eot +0 -0
- data/source/fonts/inconsolata/inconsolata-bold.svg +239 -0
- data/source/fonts/inconsolata/inconsolata-bold.ttf +0 -0
- data/source/fonts/inconsolata/inconsolata-bold.woff +0 -0
- data/source/fonts/inconsolata/inconsolata-regular.eot +0 -0
- data/source/fonts/inconsolata/inconsolata-regular.svg +239 -0
- data/source/fonts/inconsolata/inconsolata-regular.ttf +0 -0
- data/source/fonts/inconsolata/inconsolata-regular.woff +0 -0
- data/source/images/blockquote/close-sm.png +0 -0
- data/source/images/blockquote/close.png +0 -0
- data/source/images/blockquote/close@2x.png +0 -0
- data/source/images/blockquote/open-sm.png +0 -0
- data/source/images/blockquote/open.png +0 -0
- data/source/images/blockquote/open@2x.png +0 -0
- data/source/images/elements/heroku_suported.svg +32 -0
- data/source/images/forms/select-input-arrows.svg +8 -0
- data/source/js/init.js +26 -0
- data/source/js/main.js +22 -0
- data/source/js/vendor/bourbon-modal.js +17 -0
- data/source/js/vendor/fitvids.js +77 -0
- data/source/js/vendor/fixto.js +719 -0
- data/source/js/vendor/jquery-2.0.0b2.js +8690 -0
- data/source/js/vendor/modernizr.js +4 -0
- data/source/js/vendor/owl.carousel.js +3069 -0
- data/source/js/vendor/readmore.js +11 -0
- data/source/js/vendor/unslider.js +1 -0
- data/source/js/vendor/vertical-tabs.js +34 -0
- data/test/files/test.css +19 -0
- data/test/lineage_hunter_tests.js +262 -0
- data/test/list_item_hunter_tests.js +167 -0
- data/test/media_hunter_tests.js +74 -0
- data/test/object_factory_tests.js +62 -0
- data/test/parameter_hunter_tests.js +298 -0
- data/test/pattern_assembler_tests.js +43 -0
- data/test/patternlab_tests.js +8 -0
- metadata +320 -0
@@ -0,0 +1,109 @@
|
|
1
|
+
var comments = {
|
2
|
+
"comments" : [
|
3
|
+
{
|
4
|
+
"el": "header[role=banner]",
|
5
|
+
"title" : "Masthead",
|
6
|
+
"comment": "The main header of the site doesn't take up too much screen real estate in order to keep the focus on the core content. It's using a linear CSS gradient instead of a background image to give greater design flexibility and reduce HTTP requests."
|
7
|
+
},
|
8
|
+
{
|
9
|
+
"el": ".logo",
|
10
|
+
"title" : "Logo",
|
11
|
+
"comment": "The logo image is an SVG file, which ensures that the logo displays crisply even on high resolution displays. A PNG fallback is provided for browsers that don't support SVG images.</p><p>Further reading: <a href=\"http://bradfrostweb.com/blog/mobile/hi-res-optimization/\">Optimizing Web Experiences for High Resolution Screens</a></p>"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"el": "#nav",
|
15
|
+
"title" : "Navigation",
|
16
|
+
"comment": "<p>Navigation for adaptive web experiences can be tricky. Top navigations are typical on desktop sites, but mobile screen sizes don't give us the luxury of space. We're dealing with this situation by creating a simple menu anchor that toggles the main navigation on small screens. This is just one method. <a href=\"http://bagcheck.com/\">Bagcheck</a> and <a href=\"http://contentsmagazine.com/\">Contents Magazine</a> add an anchor in the header that jumps users to the navigation which is placed in the footer. This solution works well because it doesn't require any Javascript in order to work. Other methods exist too. For example, <a href=\"http://m.espn.com\">ESPN's mobile navigation</a> overlays the main content of the page.</p><p>The nav is only hidden when a certain level of javascript is supported in order to ensure that users with little/poor javascript support can still access the navigation. Once the screen size is large enough to accommodate the nav, we show the main navigation links and hide the menu anchor.<p><p>See also: <a href=\"http://bradfrostweb.com/blog/web/responsive-nav-patterns/\">Responsive Navigation Patterns</a></p>"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"el": "input[type=search]",
|
20
|
+
"title" : "Search",
|
21
|
+
"comment": "<p>Search is an incredibly important priority, especially for mobile. It is a great idea to give users the ability to jump directly to what they are looking for without forcing them to wade through your site's navigation. Check out the <a href=\"http://burton.com\">Burton</a> and <a href=\"http://yelp.com\">Yelp</a> mobile sites for great examples of experiences that prioritize search.</p><p>We're also using the <a href=\"http://dev.w3.org/html5/markup/input.search.html\">HTML5 search input type</a>, which is great for mobile devices that can <a href=\"http://diveintohtml5.info/forms.html\">bring up the appropriate virtual keyboard</a> for many smartphones. And like the main header navigation, we're hiding the search form on small screens to save space. Clicking the search anchor toggles the form. </p>"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"el": "#product-img nav",
|
25
|
+
"title" : "Image Navigation",
|
26
|
+
"comment": "<p>Instead of providing bullets, pagination or text-based image navigation, it's good e-commerce practice to show a preview of the various product views. By default the images simply link through to their larger counterparts, and if adequate javascript support exists, the images get loaded into the main image container.</p>"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"el": "#img-container",
|
30
|
+
"title" : "Product Image",
|
31
|
+
"comment": "<p>The product image is the focal point of the page for good reason. It's typically what the user is there to see. The default markup simply includes the main product image, but that gets replaced with an image gallery if adequate javascript support exists.</p><p>We're also using <a href=\"http://www.modernizr.com/\">Modernizr</a> to detect if the browser supports <a href=\"https://developer.mozilla.org/en/DOM/Touch_events\">touch events</a> and if it does, we load in an excellent lightweight script called <a href=\"http://swipejs.com/\">Swipe.js</a> to create a touch-friendly image carousel. This allows users to swipe between product photos in a touch-friendly way. Because gestures are invisible, they might get overlooked, but clicking on the image navigation thumbnails animates the slideshow and hints to the user gestural interaction is available.</p>"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"el": ".product-main header",
|
35
|
+
"title" : "Product Overview",
|
36
|
+
"comment": "The product overview appears in the markup before the image container in order to provide the user with the product name, how much it costs and how popular it is. Providing this information as soon as possible can help the user determine whether or not this is the product they're looking for without having to wait for the rest of the page to load."
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"el": ".star",
|
40
|
+
"title" : "Rating Stars",
|
41
|
+
"comment": "<p>We're using HTML special characters to display the product rating stars. We're using HTML characters instead of images to reduce the amount of images we're requesting and also maintaining crispness on high resolution screens. Not every device supports HTML special characters (Blackberry <=5.0 for example), but support is strong enough and the benefits are many.</p><p>See also: <a href=\"http://bradfrostweb.com/blog/mobile/hi-res-optimization/\">Optimizing Web Experiences for High Resolution Screens</a></p>"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"el": ".review-count",
|
45
|
+
"title" : "Review Count",
|
46
|
+
"comment": "This is a simple anchor link that points to the review section of the page. This may seem like a small detail, but consider a mobile use case. Users can be in stores looking at the physical product, and <a href=\"http://googlemobileads.blogspot.com/2011/04/smartphone-user-study-shows-mobile.html\">79% of smartphone consumers use their phones to help with shopping</a>. They might be interested in buying in-store but turn to their phones to verify its popularity and quality. Making it easy for uses to read product reviews on small screens can help drive more sales, both online and offline.</p><p>While not incorporated yet, it would be easy to load the reviews for small screens on demand, thereby saving a step.</p>"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"el": ".qty-field",
|
50
|
+
"title" : "Quantity Field",
|
51
|
+
"comment": "We're using the HTML5 number input type, which <a href=\"http://diveintohtml5.info/forms.html\">brings up the appropriate virtual keyboard</a> for many mobile browsers. To increase usability, the input labels are using the \"for\" attribute, which focuses the cursor in the form field when clicked. However, iOS doesn't honor \"for\" default functionality, so we're adding \"cursor: pointer\" to the labels to get Mobile Safari to behave properly."
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"el": ".size-field",
|
55
|
+
"title" : "Size Dropdown",
|
56
|
+
"comment": "We're using a basic select menu to choose the size, which is commonplace for any e-commerce site. Select menus can be especially difficult to style and can vary greatly in behavior between platforms. Keep this in mind when creating "
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"el": ".submit-form",
|
60
|
+
"title" : "Add to Cart button",
|
61
|
+
"comment": "The add to cart button is the primary user action on the page. That's why it's large and in charge and very prominently placed on the page. The button is using box-shadows and rounded corners to create an attractive button that will hopefully get plenty of clicks."
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"el": ".share-btn",
|
65
|
+
"title" : "Share button",
|
66
|
+
"comment": "It seems like everything has a share button on it these days. And for good reason. Sharing content and products on social networks can be a great way to increase exposure. However, tacking on tons of social widgets adds a lot of overhead, which can be extremely <a href=\"http://www.strangeloopnetworks.com/web-performance-optimization-hub/topics/third-party-content/\">detrimental to the site's performance</a>. Including a simple share link that loads the heavy widgets only when requested is one way to keep pages fast and social. Check out <a href=\"http://target.com\">Target's mobile site</a> for an example of a site that isolates share functionality in a separate page fragment."
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"el": ".find-nearby",
|
70
|
+
"title" : "Geolocation",
|
71
|
+
"comment": "One of the most important aspects of the mobile context is location. We carry our mobile devices with us everywhere. Using <a href=\"http://dev.w3.org/geo/api/spec-source.html\">geolocation</a> we can tap into the user's location to deliver an enhanced experience. In this case we're giving them a chance to check out what stores nearby might sell this product. The geolocation API is well supported in mobile browsers as well as desktop browsers. We're using <a href=\"http://modernizr.com\">Modernizr</a> to detect for geolocation support and if its support, we ask the user for their latitude and longitude. If the browser does not support geolocation, the default experience could take the user to a simple web form asking for a ZIP code. Check out <a href=\"http://m.tiffany.com\">Tiffany's mobile site</a> store locator for an example of geolocation in action."
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"el": "#p-desc",
|
75
|
+
"title" : "Product Description",
|
76
|
+
"comment": "A product description is an essential part of any e-commerce experience. Descriptions offer tangible details that inform and persuade, and the tone can help support the physical product. Provide relevant information clearly and concisely. Check out the <a href=\"http://developer.android.com/design/style/writing.html\">Android design guide</a> for some tips on how to keep copy short and extremely effective."
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"el": "#related-products",
|
80
|
+
"title" : "Related Products",
|
81
|
+
"comment": "<p>Related products are obviously an important aspect of e-commerce sites as they drive awareness of other similar products and can lead to more purchases. However, including a lot of auxiliary content can bog down the site performance, which is especially crucial on mobile. On slow connections, the presence of this extra content might slow down the user experience enough that the user gives up.</p><p>We're handling the issue by <a href=\"http://24ways.org/2011/conditional-loading-for-responsive-designs\">conditionally loading</a> the auxiliary content.</p><p>By default, the related item link simply clicks through to an HTML fragment containing the related products. The content is still accessible, even on devices with poor or no javascript support. When the user clicks on the related products on small screens, the content gets dynamically loaded inline and the link becomes a toggler for the content. Once the experience reaches a certain width breakpoint, we then load in the content. However, screen size != fast connection, so we should keep our eyes on the emerging <a href=\"http://davidbcalhoun.com/2010/using-navigator-connection-android\">navigator.connection</a> to better gauge real connection speed.</p><p>See also: <a href=\"http://filamentgroup.com/lab/ajax_includes_modular_content/\">An Ajax-Include Pattern for Modular Content</a></p><p>All these wonderful t-shirts are retired/rejected <a href=\"http://bustedtees.com\">Busted Tees</a>, graciously donated to this demo by <a href=\"http://www.willschneidblog.com/\">Will Schneider</a>.</p>"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"el": "#reviews",
|
85
|
+
"title" : "Reviews",
|
86
|
+
"comment": "Reviews are incredibly influential on a user's decision to purchase a product or pass on it. Also, because we carry our mobile phones with us everywhere, we use them to inform our in-store purchased. <a href=\"http://googlemobileads.blogspot.com/2011/04/smartphone-user-study-shows-mobile.html\">70% of smartphone owners use them while in brick and mortar stores</a>, and often times they're looking for reviews to give them the green light to buy.</p><p>Only the primary product content gets loaded by default, and the reviews exist as their own separate HTML fragment. The reviews remain accessible and don't get loaded until we <a href=\"http://24ways.org/2011/conditional-loading-for-responsive-designs\">conditionally load</a> them when the screen is large enough or small screen users click the reviews link. This keeps things nimble while still providing access to the valuable reviews.</p><p>See also: <a href=\"http://filamentgroup.com/lab/ajax_includes_modular_content/\">An Ajax-Include Pattern for Modular Content</a></p>"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"el": "#p-reviews .btn",
|
90
|
+
"title" : "More Reviews Button",
|
91
|
+
"comment": "<p>All reviews aren't loaded by default in order to keep the site performance in top shape. Ultimately, this button could be replaced with a <a href=\"http://www.infinite-scroll.com/\">lazy-loading</a> solution to remove the need for the button.</p>"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"el": ".footer .nav",
|
95
|
+
"title" : "Footer Nav",
|
96
|
+
"comment": "<p>Repetition of elements isn't a bad thing, especially with potentially long scrolling pages on mobile. Providing access to the main site navigation is a good way for the user to jump off to another section and avoids leaving them with a dead end. Also, some mobile sites like <a href=\"http://bagcheck.com/\">Bagcheck</a> and <a href=\"http://contentsmagazine.com/\">Contents Magazine</a> keep the primary navigation at the footer and simply link to it with an anchor in the header. That way the nav stays accessible but the focus stays on on the core page content.</p>"
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"el": ".tel",
|
100
|
+
"title" : "Customer Service Number",
|
101
|
+
"comment": "<p>We sometimes forget that <a href=\"http://bradfrostweb.com/blog/mobile/a-tel-tale-sign/\">mobile phones can make phone calls</a>. Whether a user is having trouble with the site or simply has some questions about the product he's about to buy, it's a smart decision to provide a clickable phone number to facilitate that call. What happens when desktops and other non-phone devices click on the <a href=\"http://www.mobilexweb.com/blog/click-to-call-links-mobile-browsers\">tel link</a>? Well, some devices (like iPads and other tablets) ask the user if they'd like to add the number to their contact list, other desktops open 3rd party VoIP programs like Skype, and others simply give an error message.</p>"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"el": ".top",
|
105
|
+
"title" : "Back to Top Link",
|
106
|
+
"comment": "<p>Back to top links are simple yet underrated. They provide users with an easy way back up to the top of the page with minimum effort. This is especially helpful on mobile devices, which tend to have long scrolling pages.</p><p>We're using an HTML character for the back to top arrow in order to reduce image elements and keep things looking crisp on high res displays.</p>"
|
107
|
+
}
|
108
|
+
]
|
109
|
+
};
|
@@ -0,0 +1,458 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/*
|
3
|
+
colors
|
4
|
+
red: $orange; rgb(229,24,55)
|
5
|
+
gray: #808080;
|
6
|
+
*/
|
7
|
+
/************Reset**************/
|
8
|
+
* {
|
9
|
+
-moz-box-sizing: border-box;
|
10
|
+
-webkit-box-sizing: border-box;
|
11
|
+
box-sizing: border-box;
|
12
|
+
}
|
13
|
+
|
14
|
+
html, body, div, object, iframe, fieldset {
|
15
|
+
margin: 0;
|
16
|
+
padding: 0;
|
17
|
+
border: 0;
|
18
|
+
}
|
19
|
+
|
20
|
+
ol, ul {
|
21
|
+
list-style: none;
|
22
|
+
margin: 0;
|
23
|
+
padding: 0;
|
24
|
+
}
|
25
|
+
|
26
|
+
table {
|
27
|
+
border-collapse: collapse;
|
28
|
+
border-spacing: 0;
|
29
|
+
}
|
30
|
+
|
31
|
+
header, footer, nav, section, article, hgroup, figure {
|
32
|
+
display: block;
|
33
|
+
}
|
34
|
+
|
35
|
+
legend {
|
36
|
+
display: none;
|
37
|
+
}
|
38
|
+
|
39
|
+
/************End Reset**************/
|
40
|
+
/************Global**************/
|
41
|
+
body {
|
42
|
+
background: #fff;
|
43
|
+
color: #000;
|
44
|
+
font: 100%/1.4 "HelveticaNeue", "Helvetica", "Arial", sans-serif;
|
45
|
+
padding: 0;
|
46
|
+
-webkit-text-size-adjust: 100%;
|
47
|
+
border-top: 20px solid #000;
|
48
|
+
border-bottom: 20px solid #000;
|
49
|
+
}
|
50
|
+
|
51
|
+
a {
|
52
|
+
color: #808080;
|
53
|
+
text-decoration: none;
|
54
|
+
}
|
55
|
+
|
56
|
+
a:hover, a:focus {
|
57
|
+
color: #bededf;
|
58
|
+
}
|
59
|
+
|
60
|
+
p {
|
61
|
+
margin: 0 0 1em;
|
62
|
+
}
|
63
|
+
|
64
|
+
img, object, video {
|
65
|
+
max-width: 100%;
|
66
|
+
border: 0;
|
67
|
+
}
|
68
|
+
|
69
|
+
a img {
|
70
|
+
border: 0;
|
71
|
+
outline: 0;
|
72
|
+
}
|
73
|
+
|
74
|
+
h1 {
|
75
|
+
font-size: 3em;
|
76
|
+
line-height: 1;
|
77
|
+
letter-spacing: -0.02em;
|
78
|
+
margin-bottom: 0.2em;
|
79
|
+
}
|
80
|
+
|
81
|
+
h2 {
|
82
|
+
font-size: 2em;
|
83
|
+
line-height: 1.1;
|
84
|
+
margin-bottom: 0.2em;
|
85
|
+
}
|
86
|
+
|
87
|
+
h3 {
|
88
|
+
font-weight: normal;
|
89
|
+
line-height: 1.1;
|
90
|
+
padding-bottom: 0.4em;
|
91
|
+
border-bottom: 1px solid #ccc;
|
92
|
+
}
|
93
|
+
|
94
|
+
h1 a, h2 a, h3 a {
|
95
|
+
display: block;
|
96
|
+
color: #000;
|
97
|
+
}
|
98
|
+
|
99
|
+
h1 a:hover, h2 a:hover, h3 a:hover {
|
100
|
+
color: #bededf;
|
101
|
+
}
|
102
|
+
|
103
|
+
blockquote {
|
104
|
+
border-left: 0.5em solid #ddd;
|
105
|
+
padding-left: 1em;
|
106
|
+
margin-left: 1em;
|
107
|
+
}
|
108
|
+
|
109
|
+
small {
|
110
|
+
color: #bededf;
|
111
|
+
}
|
112
|
+
|
113
|
+
input[type=search] {
|
114
|
+
-webkit-appearance: none;
|
115
|
+
border-radius: 0;
|
116
|
+
}
|
117
|
+
|
118
|
+
::-webkit-input-placeholder {
|
119
|
+
color: #808080;
|
120
|
+
}
|
121
|
+
|
122
|
+
:-moz-placeholder {
|
123
|
+
color: #808080;
|
124
|
+
}
|
125
|
+
|
126
|
+
/************End Global**************/
|
127
|
+
/************Classes**************/
|
128
|
+
.inactive {
|
129
|
+
color: #ddd;
|
130
|
+
}
|
131
|
+
|
132
|
+
/************End Classes**************/
|
133
|
+
/************Structure**************/
|
134
|
+
.container {
|
135
|
+
max-width: 60em;
|
136
|
+
margin: 0 auto;
|
137
|
+
padding: 0 1em;
|
138
|
+
overflow: hidden;
|
139
|
+
}
|
140
|
+
|
141
|
+
[role=main] {
|
142
|
+
padding-bottom: 1em;
|
143
|
+
}
|
144
|
+
|
145
|
+
/*Footer*/
|
146
|
+
[role=contentinfo] {
|
147
|
+
color: #fff;
|
148
|
+
background: #000;
|
149
|
+
margin: 0 -1em;
|
150
|
+
position: relative;
|
151
|
+
z-index: 2;
|
152
|
+
}
|
153
|
+
|
154
|
+
[role=contentinfo] > div {
|
155
|
+
max-width: 60em;
|
156
|
+
padding: 0 1em;
|
157
|
+
margin: 0 auto;
|
158
|
+
overflow: hidden;
|
159
|
+
}
|
160
|
+
|
161
|
+
/*End Footer*/
|
162
|
+
/*Grid*/
|
163
|
+
.grid {
|
164
|
+
margin: 0 -1em;
|
165
|
+
overflow: hidden;
|
166
|
+
}
|
167
|
+
|
168
|
+
.grid:target {
|
169
|
+
-webkit-animation: fadeout 5s 1 ease-out;
|
170
|
+
-moz-animation: fadeout 5s 1 ease-out;
|
171
|
+
-o-animation: fadeout 5s 1 ease-out;
|
172
|
+
animation: fadeout 5s 1 ease-out;
|
173
|
+
}
|
174
|
+
|
175
|
+
.grid > h2 {
|
176
|
+
margin-left: 0.45em;
|
177
|
+
}
|
178
|
+
|
179
|
+
.grid > section {
|
180
|
+
padding: 1em 1em 0.5em;
|
181
|
+
}
|
182
|
+
|
183
|
+
.grid > section:target {
|
184
|
+
-webkit-animation: fadeout 5s 1 ease-out;
|
185
|
+
-moz-animation: fadeout 5s 1 ease-out;
|
186
|
+
-o-animation: fadeout 5s 1 ease-out;
|
187
|
+
animation: fadeout 5s 1 ease-out;
|
188
|
+
}
|
189
|
+
|
190
|
+
.grid ul {
|
191
|
+
overflow: hidden;
|
192
|
+
}
|
193
|
+
|
194
|
+
.grid ul li {
|
195
|
+
margin-bottom: 0.3em;
|
196
|
+
}
|
197
|
+
|
198
|
+
.featured:after {
|
199
|
+
content: "*";
|
200
|
+
color: #bededf;
|
201
|
+
}
|
202
|
+
|
203
|
+
/*Fluid*/
|
204
|
+
.fluid {
|
205
|
+
display: block;
|
206
|
+
margin: 0 auto;
|
207
|
+
max-width: 40em;
|
208
|
+
}
|
209
|
+
|
210
|
+
/*Homepage*/
|
211
|
+
.home h1 {
|
212
|
+
margin-bottom: 0.2em;
|
213
|
+
}
|
214
|
+
|
215
|
+
.intro {
|
216
|
+
font-size: 1.8em;
|
217
|
+
line-height: 1.2;
|
218
|
+
margin: 0 auto;
|
219
|
+
}
|
220
|
+
|
221
|
+
.intro a:hover, .intro a:focus {
|
222
|
+
color: #000;
|
223
|
+
border-bottom-color: #000;
|
224
|
+
}
|
225
|
+
|
226
|
+
.ani {
|
227
|
+
position: relative;
|
228
|
+
height: 15em;
|
229
|
+
margin: 1em 0 0;
|
230
|
+
width: 100%;
|
231
|
+
z-index: 0;
|
232
|
+
}
|
233
|
+
|
234
|
+
.ani div {
|
235
|
+
width: 100%;
|
236
|
+
}
|
237
|
+
|
238
|
+
.ani div b {
|
239
|
+
display: block;
|
240
|
+
position: absolute;
|
241
|
+
top: 5%;
|
242
|
+
right: 5%;
|
243
|
+
bottom: 5%;
|
244
|
+
left: 5%;
|
245
|
+
background: rgba(229, 24, 55, 0.22);
|
246
|
+
}
|
247
|
+
|
248
|
+
/*Patterns*/
|
249
|
+
.mod {
|
250
|
+
padding: 1em;
|
251
|
+
}
|
252
|
+
|
253
|
+
.pattern {
|
254
|
+
background: #f7f7f7;
|
255
|
+
border-bottom: 1px solid #808080;
|
256
|
+
margin-bottom: 1em;
|
257
|
+
overflow: hidden;
|
258
|
+
}
|
259
|
+
|
260
|
+
.pattern-description h1 {
|
261
|
+
font-size: 3.4em;
|
262
|
+
margin-bottom: 0.5em;
|
263
|
+
}
|
264
|
+
|
265
|
+
.pattern-description {
|
266
|
+
max-width: 40em;
|
267
|
+
margin: 0 auto;
|
268
|
+
}
|
269
|
+
|
270
|
+
.pattern-description ul, .pattern-description ol {
|
271
|
+
margin-bottom: 2em;
|
272
|
+
}
|
273
|
+
|
274
|
+
.pattern-description li {
|
275
|
+
margin-bottom: 1em;
|
276
|
+
}
|
277
|
+
|
278
|
+
/*Blog*/
|
279
|
+
/*Blog Header*/
|
280
|
+
.blog .container {
|
281
|
+
max-width: 62em;
|
282
|
+
}
|
283
|
+
|
284
|
+
.blog header[role=banner] {
|
285
|
+
overflow: hidden;
|
286
|
+
margin-bottom: 2em;
|
287
|
+
padding: 2em 0 1em;
|
288
|
+
border-bottom: 1px solid #000;
|
289
|
+
}
|
290
|
+
|
291
|
+
.blog-logo {
|
292
|
+
font-weight: normal;
|
293
|
+
font-size: 1.2em;
|
294
|
+
margin: 0 0 1em;
|
295
|
+
}
|
296
|
+
|
297
|
+
.blog-logo img {
|
298
|
+
width: 3.3em;
|
299
|
+
}
|
300
|
+
|
301
|
+
.blog-logo a {
|
302
|
+
color: #000;
|
303
|
+
}
|
304
|
+
|
305
|
+
.search-form {
|
306
|
+
width: 100%;
|
307
|
+
margin-bottom: 1em;
|
308
|
+
}
|
309
|
+
|
310
|
+
.search-field {
|
311
|
+
width: 100%;
|
312
|
+
padding: 0.5em 0;
|
313
|
+
border: 0;
|
314
|
+
border-bottom: 1px solid #808080;
|
315
|
+
outline: none;
|
316
|
+
}
|
317
|
+
|
318
|
+
.search-field:focus {
|
319
|
+
background: #bededf;
|
320
|
+
color: #fff;
|
321
|
+
}
|
322
|
+
|
323
|
+
.search-field:focus::-webkit-input-placeholder {
|
324
|
+
color: #fff;
|
325
|
+
}
|
326
|
+
|
327
|
+
.search-field:focus :-moz-placeholder {
|
328
|
+
color: #fff;
|
329
|
+
}
|
330
|
+
|
331
|
+
.blog .nav {
|
332
|
+
clear: both;
|
333
|
+
}
|
334
|
+
|
335
|
+
.blog .nav a {
|
336
|
+
display: block;
|
337
|
+
font-weight: bold;
|
338
|
+
color: #000;
|
339
|
+
}
|
340
|
+
|
341
|
+
.blog .nav a:hover {
|
342
|
+
color: #bededf;
|
343
|
+
}
|
344
|
+
|
345
|
+
/*Posts*/
|
346
|
+
.posts ol > li {
|
347
|
+
padding-bottom: 1em;
|
348
|
+
border-bottom: 1px solid #ccc;
|
349
|
+
margin-bottom: 1em;
|
350
|
+
overflow: hidden;
|
351
|
+
}
|
352
|
+
|
353
|
+
.posts h2 {
|
354
|
+
font-size: 1.4em;
|
355
|
+
margin: 0.28em 0 0.1em;
|
356
|
+
font-weight: normal;
|
357
|
+
}
|
358
|
+
|
359
|
+
.posts h2 a {
|
360
|
+
color: #000;
|
361
|
+
}
|
362
|
+
|
363
|
+
.posts h2 a:hover, .posts h2 a:focus {
|
364
|
+
color: #bededf;
|
365
|
+
}
|
366
|
+
|
367
|
+
.permalink {
|
368
|
+
display: block;
|
369
|
+
font-size: 0.8em;
|
370
|
+
margin-bottom: 1.2em;
|
371
|
+
}
|
372
|
+
|
373
|
+
.post-body a {
|
374
|
+
border-bottom: 1px solid #ccc;
|
375
|
+
}
|
376
|
+
|
377
|
+
.posts blockquote {
|
378
|
+
margin: 0 0 1em;
|
379
|
+
color: #666;
|
380
|
+
border-left: 0.25em solid #ccc;
|
381
|
+
padding-left: 1em;
|
382
|
+
}
|
383
|
+
|
384
|
+
.tags {
|
385
|
+
float: left;
|
386
|
+
}
|
387
|
+
|
388
|
+
.tags li {
|
389
|
+
display: inline-block;
|
390
|
+
font-size: 0.8em;
|
391
|
+
margin-right: 0.5em;
|
392
|
+
}
|
393
|
+
|
394
|
+
.posts ol > li .tags a, .permalink {
|
395
|
+
color: #ccc;
|
396
|
+
-webkit-transition: color 0.3s ease-out;
|
397
|
+
-moz-transition: color 0.3s ease-out;
|
398
|
+
-ms-transition: color 0.3s ease-out;
|
399
|
+
-o-transition: color 0.3s ease-out;
|
400
|
+
transition: color 0.3s ease-out;
|
401
|
+
}
|
402
|
+
|
403
|
+
.posts ol > li:hover .tags a, .posts ol > li:hover .permalink {
|
404
|
+
color: #808080;
|
405
|
+
}
|
406
|
+
|
407
|
+
.blog-nav {
|
408
|
+
text-align: center;
|
409
|
+
overflow: hidden;
|
410
|
+
padding: 1em 0;
|
411
|
+
}
|
412
|
+
|
413
|
+
.posts .blog-nav a {
|
414
|
+
border: 0;
|
415
|
+
}
|
416
|
+
|
417
|
+
.nav-next {
|
418
|
+
float: right;
|
419
|
+
}
|
420
|
+
|
421
|
+
.nav-prev {
|
422
|
+
float: left;
|
423
|
+
}
|
424
|
+
|
425
|
+
/* Sidebar */
|
426
|
+
.sidebar {
|
427
|
+
font-size: 0.8em;
|
428
|
+
padding-bottom: 1.4em;
|
429
|
+
}
|
430
|
+
|
431
|
+
.sidebar div {
|
432
|
+
margin-bottom: 2em;
|
433
|
+
}
|
434
|
+
|
435
|
+
.sidebar h3 {
|
436
|
+
font-weight: bold;
|
437
|
+
font-size: 0.9em;
|
438
|
+
line-height: 1;
|
439
|
+
border-bottom: 1px solid #000;
|
440
|
+
}
|
441
|
+
|
442
|
+
.sidebar a {
|
443
|
+
color: #808080;
|
444
|
+
}
|
445
|
+
|
446
|
+
.sidebar a:hover, .sidebar a:focus {
|
447
|
+
color: #bededf;
|
448
|
+
}
|
449
|
+
|
450
|
+
.top {
|
451
|
+
clear: both;
|
452
|
+
display: block;
|
453
|
+
padding: 1em 0;
|
454
|
+
}
|
455
|
+
|
456
|
+
.top:before {
|
457
|
+
content: '▲';
|
458
|
+
}
|