Reorganize files for Bower distro

This commit is contained in:
Lokesh Dhakar
2014-04-17 11:07:23 -07:00
parent cb5c9c6ca8
commit 9cbad46067
19 changed files with 54 additions and 39 deletions

1
examples/css/screen.css Normal file

File diff suppressed because one or more lines are too long

BIN
examples/img/photo1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

BIN
examples/img/photo2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

BIN
examples/img/photo3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

140
examples/js/demo.js Normal file

File diff suppressed because one or more lines are too long

9111
examples/js/jquery.js vendored Normal file

File diff suppressed because it is too large Load Diff

570
examples/js/mustache.js Normal file
View File

@@ -0,0 +1,570 @@
/*!
* mustache.js - Logic-less {{mustache}} templates with JavaScript
* http://github.com/janl/mustache.js
*/
/*global define: false*/
(function (root, factory) {
if (typeof exports === "object" && exports) {
factory(exports); // CommonJS
} else {
var mustache = {};
factory(mustache);
if (typeof define === "function" && define.amd) {
define(mustache); // AMD
} else {
root.Mustache = mustache; // <script>
}
}
}(this, function (mustache) {
var whiteRe = /\s*/;
var spaceRe = /\s+/;
var nonSpaceRe = /\S/;
var eqRe = /\s*=/;
var curlyRe = /\s*\}/;
var tagRe = /#|\^|\/|>|\{|&|=|!/;
// Workaround for https://issues.apache.org/jira/browse/COUCHDB-577
// See https://github.com/janl/mustache.js/issues/189
var RegExp_test = RegExp.prototype.test;
function testRegExp(re, string) {
return RegExp_test.call(re, string);
}
function isWhitespace(string) {
return !testRegExp(nonSpaceRe, string);
}
var Object_toString = Object.prototype.toString;
var isArray = Array.isArray || function (object) {
return Object_toString.call(object) === '[object Array]';
};
function isFunction(object) {
return typeof object === 'function';
}
function escapeRegExp(string) {
return string.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
}
var entityMap = {
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
'"': '&quot;',
"'": '&#39;',
"/": '&#x2F;'
};
function escapeHtml(string) {
return String(string).replace(/[&<>"'\/]/g, function (s) {
return entityMap[s];
});
}
function escapeTags(tags) {
if (!isArray(tags) || tags.length !== 2) {
throw new Error('Invalid tags: ' + tags);
}
return [
new RegExp(escapeRegExp(tags[0]) + "\\s*"),
new RegExp("\\s*" + escapeRegExp(tags[1]))
];
}
/**
* Breaks up the given `template` string into a tree of tokens. If the `tags`
* argument is given here it must be an array with two string values: the
* opening and closing tags used in the template (e.g. [ "<%", "%>" ]). Of
* course, the default is to use mustaches (i.e. mustache.tags).
*
* A token is an array with at least 4 elements. The first element is the
* mustache symbol that was used inside the tag, e.g. "#" or "&". If the tag
* did not contain a symbol (i.e. {{myValue}}) this element is "name". For
* all template text that appears outside a symbol this element is "text".
*
* The second element of a token is its "value". For mustache tags this is
* whatever else was inside the tag besides the opening symbol. For text tokens
* this is the text itself.
*
* The third and fourth elements of the token are the start and end indices
* in the original template of the token, respectively.
*
* Tokens that are the root node of a subtree contain two more elements: an
* array of tokens in the subtree and the index in the original template at which
* the closing tag for that section begins.
*/
function parseTemplate(template, tags) {
tags = tags || mustache.tags;
template = template || '';
if (typeof tags === 'string') {
tags = tags.split(spaceRe);
}
var tagRes = escapeTags(tags);
var scanner = new Scanner(template);
var sections = []; // Stack to hold section tokens
var tokens = []; // Buffer to hold the tokens
var spaces = []; // Indices of whitespace tokens on the current line
var hasTag = false; // Is there a {{tag}} on the current line?
var nonSpace = false; // Is there a non-space char on the current line?
// Strips all whitespace tokens array for the current line
// if there was a {{#tag}} on it and otherwise only space.
function stripSpace() {
if (hasTag && !nonSpace) {
while (spaces.length) {
delete tokens[spaces.pop()];
}
} else {
spaces = [];
}
hasTag = false;
nonSpace = false;
}
var start, type, value, chr, token, openSection;
while (!scanner.eos()) {
start = scanner.pos;
// Match any text between tags.
value = scanner.scanUntil(tagRes[0]);
if (value) {
for (var i = 0, len = value.length; i < len; ++i) {
chr = value.charAt(i);
if (isWhitespace(chr)) {
spaces.push(tokens.length);
} else {
nonSpace = true;
}
tokens.push(['text', chr, start, start + 1]);
start += 1;
// Check for whitespace on the current line.
if (chr === '\n') {
stripSpace();
}
}
}
// Match the opening tag.
if (!scanner.scan(tagRes[0])) break;
hasTag = true;
// Get the tag type.
type = scanner.scan(tagRe) || 'name';
scanner.scan(whiteRe);
// Get the tag value.
if (type === '=') {
value = scanner.scanUntil(eqRe);
scanner.scan(eqRe);
scanner.scanUntil(tagRes[1]);
} else if (type === '{') {
value = scanner.scanUntil(new RegExp('\\s*' + escapeRegExp('}' + tags[1])));
scanner.scan(curlyRe);
scanner.scanUntil(tagRes[1]);
type = '&';
} else {
value = scanner.scanUntil(tagRes[1]);
}
// Match the closing tag.
if (!scanner.scan(tagRes[1])) {
throw new Error('Unclosed tag at ' + scanner.pos);
}
token = [ type, value, start, scanner.pos ];
tokens.push(token);
if (type === '#' || type === '^') {
sections.push(token);
} else if (type === '/') {
// Check section nesting.
openSection = sections.pop();
if (!openSection) {
throw new Error('Unopened section "' + value + '" at ' + start);
}
if (openSection[1] !== value) {
throw new Error('Unclosed section "' + openSection[1] + '" at ' + start);
}
} else if (type === 'name' || type === '{' || type === '&') {
nonSpace = true;
} else if (type === '=') {
// Set the tags for the next time around.
tagRes = escapeTags(tags = value.split(spaceRe));
}
}
// Make sure there are no open sections when we're done.
openSection = sections.pop();
if (openSection) {
throw new Error('Unclosed section "' + openSection[1] + '" at ' + scanner.pos);
}
return nestTokens(squashTokens(tokens));
}
/**
* Combines the values of consecutive text tokens in the given `tokens` array
* to a single token.
*/
function squashTokens(tokens) {
var squashedTokens = [];
var token, lastToken;
for (var i = 0, len = tokens.length; i < len; ++i) {
token = tokens[i];
if (token) {
if (token[0] === 'text' && lastToken && lastToken[0] === 'text') {
lastToken[1] += token[1];
lastToken[3] = token[3];
} else {
squashedTokens.push(token);
lastToken = token;
}
}
}
return squashedTokens;
}
/**
* Forms the given array of `tokens` into a nested tree structure where
* tokens that represent a section have two additional items: 1) an array of
* all tokens that appear in that section and 2) the index in the original
* template that represents the end of that section.
*/
function nestTokens(tokens) {
var nestedTokens = [];
var collector = nestedTokens;
var sections = [];
var token, section;
for (var i = 0, len = tokens.length; i < len; ++i) {
token = tokens[i];
switch (token[0]) {
case '#':
case '^':
collector.push(token);
sections.push(token);
collector = token[4] = [];
break;
case '/':
section = sections.pop();
section[5] = token[2];
collector = sections.length > 0 ? sections[sections.length - 1][4] : nestedTokens;
break;
default:
collector.push(token);
}
}
return nestedTokens;
}
/**
* A simple string scanner that is used by the template parser to find
* tokens in template strings.
*/
function Scanner(string) {
this.string = string;
this.tail = string;
this.pos = 0;
}
/**
* Returns `true` if the tail is empty (end of string).
*/
Scanner.prototype.eos = function () {
return this.tail === "";
};
/**
* Tries to match the given regular expression at the current position.
* Returns the matched text if it can match, the empty string otherwise.
*/
Scanner.prototype.scan = function (re) {
var match = this.tail.match(re);
if (match && match.index === 0) {
var string = match[0];
this.tail = this.tail.substring(string.length);
this.pos += string.length;
return string;
}
return "";
};
/**
* Skips all text until the given regular expression can be matched. Returns
* the skipped string, which is the entire tail if no match can be made.
*/
Scanner.prototype.scanUntil = function (re) {
var index = this.tail.search(re), match;
switch (index) {
case -1:
match = this.tail;
this.tail = "";
break;
case 0:
match = "";
break;
default:
match = this.tail.substring(0, index);
this.tail = this.tail.substring(index);
}
this.pos += match.length;
return match;
};
/**
* Represents a rendering context by wrapping a view object and
* maintaining a reference to the parent context.
*/
function Context(view, parentContext) {
this.view = view == null ? {} : view;
this.cache = { '.': this.view };
this.parent = parentContext;
}
/**
* Creates a new context using the given view with this context
* as the parent.
*/
Context.prototype.push = function (view) {
return new Context(view, this);
};
/**
* Returns the value of the given name in this context, traversing
* up the context hierarchy if the value is absent in this context's view.
*/
Context.prototype.lookup = function (name) {
var value;
if (name in this.cache) {
value = this.cache[name];
} else {
var context = this;
while (context) {
if (name.indexOf('.') > 0) {
value = context.view;
var names = name.split('.'), i = 0;
while (value != null && i < names.length) {
value = value[names[i++]];
}
} else {
value = context.view[name];
}
if (value != null) break;
context = context.parent;
}
this.cache[name] = value;
}
if (isFunction(value)) {
value = value.call(this.view);
}
return value;
};
/**
* A Writer knows how to take a stream of tokens and render them to a
* string, given a context. It also maintains a cache of templates to
* avoid the need to parse the same template twice.
*/
function Writer() {
this.cache = {};
}
/**
* Clears all cached templates in this writer.
*/
Writer.prototype.clearCache = function () {
this.cache = {};
};
/**
* Parses and caches the given `template` and returns the array of tokens
* that is generated from the parse.
*/
Writer.prototype.parse = function (template, tags) {
var cache = this.cache;
var tokens = cache[template];
if (tokens == null) {
tokens = cache[template] = parseTemplate(template, tags);
}
return tokens;
};
/**
* High-level method that is used to render the given `template` with
* the given `view`.
*
* The optional `partials` argument may be an object that contains the
* names and templates of partials that are used in the template. It may
* also be a function that is used to load partial templates on the fly
* that takes a single argument: the name of the partial.
*/
Writer.prototype.render = function (template, view, partials) {
var tokens = this.parse(template);
var context = (view instanceof Context) ? view : new Context(view);
return this.renderTokens(tokens, context, partials, template);
};
/**
* Low-level method that renders the given array of `tokens` using
* the given `context` and `partials`.
*
* Note: The `originalTemplate` is only ever used to extract the portion
* of the original template that was contained in a higher-order section.
* If the template doesn't use higher-order sections, this argument may
* be omitted.
*/
Writer.prototype.renderTokens = function (tokens, context, partials, originalTemplate) {
var buffer = '';
// This function is used to render an arbitrary template
// in the current context by higher-order sections.
var self = this;
function subRender(template) {
return self.render(template, context, partials);
}
var token, value;
for (var i = 0, len = tokens.length; i < len; ++i) {
token = tokens[i];
switch (token[0]) {
case '#':
value = context.lookup(token[1]);
if (!value) continue;
if (isArray(value)) {
for (var j = 0, jlen = value.length; j < jlen; ++j) {
buffer += this.renderTokens(token[4], context.push(value[j]), partials, originalTemplate);
}
} else if (typeof value === 'object' || typeof value === 'string') {
buffer += this.renderTokens(token[4], context.push(value), partials, originalTemplate);
} else if (isFunction(value)) {
if (typeof originalTemplate !== 'string') {
throw new Error('Cannot use higher-order sections without the original template');
}
// Extract the portion of the original template that the section contains.
value = value.call(context.view, originalTemplate.slice(token[3], token[5]), subRender);
if (value != null) buffer += value;
} else {
buffer += this.renderTokens(token[4], context, partials, originalTemplate);
}
break;
case '^':
value = context.lookup(token[1]);
// Use JavaScript's definition of falsy. Include empty arrays.
// See https://github.com/janl/mustache.js/issues/186
if (!value || (isArray(value) && value.length === 0)) {
buffer += this.renderTokens(token[4], context, partials, originalTemplate);
}
break;
case '>':
if (!partials) continue;
value = isFunction(partials) ? partials(token[1]) : partials[token[1]];
if (value != null) buffer += this.renderTokens(this.parse(value), context, partials, value);
break;
case '&':
value = context.lookup(token[1]);
if (value != null) buffer += value;
break;
case 'name':
value = context.lookup(token[1]);
if (value != null) buffer += mustache.escape(value);
break;
case 'text':
buffer += token[1];
break;
}
}
return buffer;
};
mustache.name = "mustache.js";
mustache.version = "0.8.1";
mustache.tags = [ "{{", "}}" ];
// All high-level mustache.* functions use this writer.
var defaultWriter = new Writer();
/**
* Clears all cached templates in the default writer.
*/
mustache.clearCache = function () {
return defaultWriter.clearCache();
};
/**
* Parses and caches the given template in the default writer and returns the
* array of tokens it contains. Doing this ahead of time avoids the need to
* parse templates on the fly as they are rendered.
*/
mustache.parse = function (template, tags) {
return defaultWriter.parse(template, tags);
};
/**
* Renders the `template` with the given `view` and `partials` using the
* default writer.
*/
mustache.render = function (template, view, partials) {
return defaultWriter.render(template, view, partials);
};
// This is here for backwards compatibility with 0.4.x.
mustache.to_html = function (template, view, partials, send) {
var result = mustache.render(template, view, partials);
if (isFunction(send)) {
send(result);
} else {
return result;
}
};
// Export the escaping function so that the user may override it.
// See https://github.com/janl/mustache.js/issues/244
mustache.escape = escapeHtml;
// Export these mainly for testing, but also for advanced usage.
mustache.Scanner = Scanner;
mustache.Context = Context;
mustache.Writer = Writer;
}));

View File

@@ -0,0 +1,224 @@
/**! normalize.css v2.1.1 | MIT License | git.io/normalize
// HTML5 display definitions
// Correct `block` display not defined in IE 8/9.
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary
display: block
// Correct `inline-block` display not defined in IE 8/9.
audio, canvas, video
display: inline-block
audio:not([controls])
// Prevent modern browsers from displaying `audio` without controls.
display: none
// Remove excess height in iOS 5 devices.
height: 0
// Address styling not present in IE 8/9.
[hidden]
display: none
// Base
html
// Prevent system color scheme's background color being used in Firefox, IE, and Opera.
background: #fff
// Prevent system color scheme's text color being used in Firefox, IE, and Opera.
color: #000
// Set default font family to sans-serif.
font-family: sans-serif
// Prevent iOS text size adjust after orientation change, without disabling user zoom.
-ms-text-size-adjust: 100%
-webkit-text-size-adjust: 100%
// Remove default margin.
body
margin: 0
// Links
a
// Address `outline` inconsistency between Chrome and other browsers.
&:focus
outline: thin dotted
// Improve readability when focused and also mouse hovered in all browsers.
&:active, &:hover
outline: 0
// Typography
// Address variable `h1` font-size and margin within `section` and `article` contexts in Firefox 4+, Safari 5, and Chrome.
h1
font-size: 2em
margin: 0.67em 0
// Address styling not present in IE 8/9, Safari 5, and Chrome.
abbr[title]
border-bottom: 1px dotted
// Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
b, strong
font-weight: bold
// Address styling not present in Safari 5 and Chrome.
dfn
font-style: italic
// Address differences between Firefox and other browsers.
hr
-moz-box-sizing: content-box
box-sizing: content-box
height: 0
// Address styling not present in IE 8/9.
mark
background: #ff0
color: #000
// Correct font family set oddly in Safari 5 and Chrome.
code, kbd, pre, samp
font-family: monospace, serif
font-size: 1em
// Improve readability of pre-formatted text in all browsers.
pre
white-space: pre-wrap
// Set consistent quote types.
q
quotes: '\201C' '\201D' '\2018' '\2019'
// Address inconsistent and variable font size in all browsers.
small
font-size: 80%
// Prevent `sub` and `sup` affecting `line-height` in all browsers.
sub, sup
font-size: 75%
line-height: 0
position: relative
vertical-align: baseline
sup
top: -0.5em
sub
bottom: -0.25em
// Embedded content
// Remove border when inside `a` element in IE 8/9.
img
border: 0
// Correct overflow displayed oddly in IE 9.
svg:not(:root)
overflow: hidden
// Figures
// Address margin not present in IE 8/9 and Safari 5.
figure
margin: 0
// Forms
// Define consistent border, margin, and padding.
fieldset
border: 1px solid #c0c0c0
margin: 0 2px
padding: 0.35em 0.625em 0.75em
legend
// Correct `color` not being inherited in IE 8/9.
border: 0
// Remove padding so people aren't caught out if they zero out fieldsets.
padding: 0
button, input, select, textarea
// Correct font family not being inherited in all browsers.
font-family: inherit
// Correct font size not being inherited in all browsers.
font-size: 100%
// Address margins set differently in Firefox 4+, Safari 5, and Chrome.
margin: 0
// Address Firefox 4+ setting `line-height` on `input` using `!important` in the UA stylesheet.
button, input
line-height: normal
// Address inconsistent `text-transform` inheritance for `button` and `select`.
// All other form control elements do not inherit `text-transform` values.
// Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
// Correct `select` style inheritance in Firefox 4+ and Opera.
button, select
text-transform: none
button, html input[type='button'], input[type='reset'], input[type='submit']
// Avoid the WebKit bug in Android 4.0.* where `html input[type='button'] { -webkit-appearance: button }` destroys native `audio` and `video` controls.
// Correct inability to style clickable `input` types in iOS.
-webkit-appearance: button
// Improve usability and consistency of cursor style between image-type `input` and others.
cursor: pointer
// Re-set default cursor for disabled elements.
button[disabled], html input[disabled]
cursor: default
input
&[type='checkbox'], &[type='radio']
// Address box sizing set to `content-box` in IE 8/9.
box-sizing: border-box
// Remove excess padding in IE 8/9.
padding: 0
&[type='search']
// Address `appearance` set to `searchfield` in Safari 5 and Chrome.
-webkit-appearance: textfield
// Address `box-sizing` set to `border-box` in Safari 5 and Chrome (include `-moz` to future-proof).
-moz-box-sizing: content-box
-webkit-box-sizing: content-box
box-sizing: content-box
// Remove inner padding and search cancel button in Safari 5 and Chrome on OS X.
&::-webkit-search-cancel-button, &::-webkit-search-decoration
-webkit-appearance: none
// Remove inner padding and border in Firefox 4+.
button::-moz-focus-inner, input::-moz-focus-inner
border: 0
padding: 0
textarea
// Remove default vertical scrollbar in IE 8/9.
overflow: auto
// Improve readability and alignment in all browsers.
vertical-align: top
// Tables
// Remove most spacing between table cells.
table
border-collapse: collapse
border-spacing: 0

405
examples/sass/screen.sass Normal file
View File

@@ -0,0 +1,405 @@
@import "compass/css3"
@import "compass/utilities/general/clearfix"
@import "normalize"
// COLORS & BACKGROUNDS --------------------------------------------------------
$yellow: #fdf485
$orange: #e67e39
$blue: #4ae
$green: #61c227
$gray: #777
$gray-light: #aaa
$gray-dark: #222
$color: $gray
$bg-color: #f3f3f3
$border-color: darken($bg-color, 5%)
$header-bg-color: #fff
$section-heading-color: $orange
$heading-color: $gray-dark
$link-color: $blue
$code-color: $gray-light
// TYPE --------------------------------------------------------
$body-font-family: "Karla", "lucida grande", sans-serif
$heading-font-family: "Montserrat", "Helvetica", sans-serif
$code-font-family: "Karla", "lucida grande", sans-serif
// LAYOUT --------------------------------------------------------
$gutter: 30px
$max-column-width: 600px
$sharing-section-z-index: 10
// UI COMPONENTS --------------------------------------------------------
$radius: 8px
/* Typography
*----------------------------------------------- */
html
font: 87% / 1.5 $body-font-family, sans-serif
font-weight: 400
@media (min-width: 40rem)
html
font-size: 100%
@media (min-width: 64rem)
html
font-size: 106%
body
color: $color
background-color: $bg-color
h1, h2, h3, h4, h5
color: $heading-color
line-height: 1.2em
font-family: $heading-font-family
font-weight: 700
h1
font-size: 4rem
margin: 0 0 0.2em 0
line-height: 1.1em
@media (min-width: 40rem)
h1
font-size: 4.5rem
@media (min-width: 64rem)
h1
font-size: 5rem
h2
color: $section-heading-color
margin-bottom: 1.5rem
font-size: 1.5rem
text-transform: uppercase
@media (min-width: 40rem)
h2
font-size: 2rem
h3
font-size: 1.2rem
margin-bottom: .5rem
p
margin: 0 auto 2em auto
text-align: left
.lead
max-width: 50rem
margin-bottom: 1.4rem
font-size: 1.1rem
@media (min-width: 40rem)
.lead
font-size: 1.25rem
strong
font-weight: bold
a
color: $link-color
text-decoration: none
&:hover
text-decoration: underline
::-moz-selection,
::selection
background: $orange
color: white
/* Code
* ========================================================================== */
code
color: $code-color
+border-radius($radius)
font-family: Consolas, Courier, monospace
font-size: 0.9rem
padding: 0.1rem 0.3rem
position: relative
top: -1px
/* Lists
* ========================================================================== */
ul
margin: 0
text-align: left
@media (min-width: 40rem)
ul
display: inline-block
/* Buttons
* ========================================================================== */
.button
display: block
padding: 0.7rem 2rem
margin-bottom: 0.5rem
border: none
color: #fff
background-color: $link-color
font-size: 1.1rem
font-weight: bold
text-transform: uppercase
+border-radius($radius)
vertical-align: middle
white-space: nowrap
&:hover
background: darken($link-color, 10%)
text-decoration: none
@media (min-width: 40rem)
.button
display: inline-block
margin: 0 0.25rem
.button-minor
padding: 0.35rem 1rem
border: 2px solid $link-color
color: $link-color
background-color: transparent
font-size: 0.8rem
&:hover
color: white
/* Elements
* ========================================================================== */
hr
border: 0
border-top: 2px solid $border-color
margin: 2rem auto
width: 3rem
@media (min-width: 40rem)
hr
margin: 2.5rem auto
/* -- Layout ------------------------------------------------------------------ */
*, *:before, *:after
+box-sizing("border-box")
body
margin: 0
padding: 0
background: $bg-color
section
border-top: 2px solid $border-color
text-align: center
padding: 1.5rem 0
&:first-of-type
border-top: none
@media (min-width: 40rem)
section
padding: 2rem 0
.container
margin: 0 auto
max-width: 40rem
width: 90%
/* -- Header -- */
header
padding: 4rem 0 2rem 0
background-color: $header-bg-color
text-align: center
p
text-align: center
@media (min-width: 40rem)
header
padding: 2rem 0
/* -- Examples -- */
.image-section
margin-bottom: 80px
.image-wrap
position: relative
line-height: 1em
.examples-section
.image-section
.target-image
+border-bottom-radius($radius)
.image-section.with-color-thief-output
.target-image
+border-bottom-radius(0)
.run-functions-button
position: absolute
top: 50%
left: 50%
width: 8rem
height: 8rem
margin-top: -4rem
margin-left: -4rem
border: none
+border-radius(50%)
color: $color
background-color: $yellow
font-size: 2rem
font-weight: bold
cursor: pointer
text-transform: uppercase
outline: none
&:hover
+scale(1.1)
+transition(transform .2s)
&:active
+scale(0.9)
&.hide
background-color: $yellow
color: $color
+transition(transform .6s, top .6s cubic-bezier(0.220, -0.370, 0.750, 0.750))
top: 105%
+scale(0)
// Use Modernizr to check for touch support
.touch
.touch-label
display: inline
.no-touch-label
display: none
.no-touch
.touch-label
display: none
.no-touch-label
display: inline
.target-image
display: block
width: 100%
+border-top-radius($radius)
.color-thief-output
display: none
padding: 1.5rem
background-color: white
border: 1px solid $border-color
border-top-width: 0
+border-bottom-radius($radius)
.function-title
margin-top: 0
.function
margin-bottom: 1.5rem
.swatch
display: inline-block
margin: 0
background: #dddddd
@media (min-width: 40rem)
.swatch
margin-right: -2px
.get-color
.swatch
width: 6rem
height: 3rem
.get-palette
.swatch
width: 3rem
height: 2rem
@media (min-width: 40rem)
.get-palette
.swatch
width: 4rem
height: 2.7rem
canvas
display: none
/* -- Credits -- */
footer
padding: 2rem 0
background-color: $header-bg-color
text-align: center
p
text-align: center
.button
margin-top: 0.5rem
/* -- Sharing -- */
.sharing-section
position: fixed
z-index: $sharing-section-z-index
top: 20px
right: 0
/* -- Drag and drop ------------------------------------------------------------------ */
.drag-drop-section
display: none
.drop-zone
height: 25rem
margin-bottom: 4rem
background-color: $gray-dark
+border-radius($radius)
&.dragging
font-weight: 700
+box-shadow(inset 0 0 0 8px $link-color)
.drop-zone-label
color: $link-color
.default-label
display: none
.dragging-label
display: block
.drop-zone-label
position: relative
top: 11rem
color: $yellow
font-size: 1.8rem
text-align: center
pointer-events: none
text-transform: uppercase
+border-radius($radius)
@media (min-width: 40rem)
.drop-zone-label
top: 10.5rem
font-size: 2.4rem
.dragging-label
display: none
.dropped-image
.run-functions-button
display: none
.targetImage
// width: 100%