mirror of
https://github.com/janishutz/color-thief.git
synced 2025-11-25 13:54:25 +00:00
Drag'n'drop working again. Appending quantize.js code into color-thief.js
This commit is contained in:
337
css/app.css
337
css/app.css
@@ -63,96 +63,127 @@ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav,
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* line 29, ../sass/app.sass */
|
||||
/* line 30, ../sass/app.sass */
|
||||
body, input, textarea {
|
||||
margin: 40px;
|
||||
margin: 40px 40px 80px 40px;
|
||||
color: #aaaaaa;
|
||||
background: #444444;
|
||||
font-size: 18px;
|
||||
font-family: "Karla", "lucida grande", sans-serif;
|
||||
}
|
||||
|
||||
/* line 36, ../sass/app.sass */
|
||||
/* line 37, ../sass/app.sass */
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
color: white;
|
||||
line-height: 1.2em;
|
||||
font-weight: 500;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
/* line 42, ../sass/app.sass */
|
||||
h2 {
|
||||
font-size: 36px;
|
||||
line-height: 1.2em;
|
||||
h1 {
|
||||
font-size: 72px;
|
||||
line-height: 1em;
|
||||
}
|
||||
|
||||
/* line 46, ../sass/app.sass */
|
||||
h3 {
|
||||
font-size: 16px;
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
h2 {
|
||||
font-size: 36px;
|
||||
line-height: 1.2em;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
|
||||
/* line 51, ../sass/app.sass */
|
||||
h3 {
|
||||
font-size: 16px;
|
||||
letter-spacing: 0.1em;
|
||||
margin-bottom: 0.2em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* line 57, ../sass/app.sass */
|
||||
h4 {
|
||||
font-size: 20px;
|
||||
margin-bottom: 1.25em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
/* line 55, ../sass/app.sass */
|
||||
/* line 61, ../sass/app.sass */
|
||||
p {
|
||||
line-height: 1.5em;
|
||||
margin-bottom: 1.25em;
|
||||
line-height: 1.4em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
/* line 59, ../sass/app.sass */
|
||||
/* line 65, ../sass/app.sass */
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* line 68, ../sass/app.sass */
|
||||
code,
|
||||
kbd {
|
||||
font: 12px "Andale Mono", "DejaVu Sans Mono", monospace;
|
||||
color: #848484;
|
||||
}
|
||||
|
||||
/* Links */
|
||||
/* line 63, ../sass/app.sass */
|
||||
/* line 74, ../sass/app.sass */
|
||||
a {
|
||||
color: #00bfa8;
|
||||
text-decoration: none;
|
||||
}
|
||||
/* line 66, ../sass/app.sass */
|
||||
/* line 77, ../sass/app.sass */
|
||||
a:hover {
|
||||
color: #59ffeb;
|
||||
}
|
||||
|
||||
/* Images */
|
||||
/* line 81, ../sass/app.sass */
|
||||
img {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* -- Layout ------------------------------------------------------------------ */
|
||||
/* line 71, ../sass/app.sass */
|
||||
/* line 86, ../sass/app.sass */
|
||||
.wrapper {
|
||||
text-align: center;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* line 76, ../sass/app.sass */
|
||||
/* line 90, ../sass/app.sass */
|
||||
.section-header {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* line 93, ../sass/app.sass */
|
||||
.intro {
|
||||
text-align: center;
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
/* line 97, ../sass/app.sass */
|
||||
.description {
|
||||
max-width: 450px;
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
/* line 81, ../sass/app.sass */
|
||||
/* line 102, ../sass/app.sass */
|
||||
.read-more-links {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* line 105, ../sass/app.sass */
|
||||
.image-section {
|
||||
margin-bottom: 80px;
|
||||
background: #2b2b2b;
|
||||
}
|
||||
/* line 84, ../sass/app.sass */
|
||||
/* line 108, ../sass/app.sass */
|
||||
.image-section .image-wrap {
|
||||
position: relative;
|
||||
background: #444444;
|
||||
}
|
||||
|
||||
/* line 89, ../sass/app.sass */
|
||||
.target-image {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* line 92, ../sass/app.sass */
|
||||
/* -- Image examples ------------------------------------------------------------------ */
|
||||
/* line 115, ../sass/app.sass */
|
||||
.run-functions-button {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
@@ -167,17 +198,18 @@ a:hover {
|
||||
-ms-border-radius: 50%;
|
||||
-o-border-radius: 50%;
|
||||
border-radius: 50%;
|
||||
color: #817702;
|
||||
color: #686002;
|
||||
background-color: #fdf485;
|
||||
font-size: 24px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
}
|
||||
/* line 106, ../sass/app.sass */
|
||||
/* line 130, ../sass/app.sass */
|
||||
.run-functions-button:hover {
|
||||
background-color: #fef9b7;
|
||||
color: #9a8f03;
|
||||
color: #4f4901;
|
||||
}
|
||||
/* line 109, ../sass/app.sass */
|
||||
/* line 133, ../sass/app.sass */
|
||||
.run-functions-button:active {
|
||||
-webkit-transform: scale(0.9, 0.9);
|
||||
-moz-transform: scale(0.9, 0.9);
|
||||
@@ -185,171 +217,157 @@ a:hover {
|
||||
-o-transform: scale(0.9, 0.9);
|
||||
transform: scale(0.9, 0.9);
|
||||
}
|
||||
|
||||
/* line 112, ../sass/app.sass */
|
||||
.color-thief-output {
|
||||
margin-top: 20px;
|
||||
/* line 135, ../sass/app.sass */
|
||||
.run-functions-button.hide {
|
||||
-webkit-transition: all 0.4s;
|
||||
-moz-transition: all 0.4s;
|
||||
-o-transition: all 0.4s;
|
||||
transition: all 0.4s;
|
||||
top: 100%;
|
||||
-webkit-transform: scale(0, 0);
|
||||
-moz-transform: scale(0, 0);
|
||||
-ms-transform: scale(0, 0);
|
||||
-o-transform: scale(0, 0);
|
||||
transform: scale(0, 0);
|
||||
}
|
||||
|
||||
/* line 115, ../sass/app.sass */
|
||||
/* line 140, ../sass/app.sass */
|
||||
.target-image {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* line 143, ../sass/app.sass */
|
||||
.color-thief-output {
|
||||
display: none;
|
||||
padding: 20px;
|
||||
background-color: #eeeeee;
|
||||
}
|
||||
/* line 147, ../sass/app.sass */
|
||||
.color-thief-output .function-title {
|
||||
color: #444444;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* line 151, ../sass/app.sass */
|
||||
.function {
|
||||
clear: left;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
/* line 154, ../sass/app.sass */
|
||||
.swatches {
|
||||
*zoom: 1;
|
||||
}
|
||||
/* line 38, ../../../../.rvm/gems/ruby-1.9.2-p320/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss */
|
||||
.function:after {
|
||||
.swatches:after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* line 120, ../sass/app.sass */
|
||||
/* line 157, ../sass/app.sass */
|
||||
.swatch {
|
||||
width: 60px;
|
||||
height: 30px;
|
||||
margin-right: 2px;
|
||||
margin: 0 2px 2px 0;
|
||||
background: #dddddd;
|
||||
float: left;
|
||||
-webkit-transition: scale 0.5s;
|
||||
-moz-transition: scale 0.5s;
|
||||
-o-transition: scale 0.5s;
|
||||
transition: scale 0.5s;
|
||||
}
|
||||
/* line 127, ../sass/app.sass */
|
||||
.swatch:hover {
|
||||
-webkit-transition: none;
|
||||
-moz-transition: none;
|
||||
-o-transition: none;
|
||||
transition: none;
|
||||
-webkit-transform: scale(1.1, 1.1);
|
||||
-moz-transform: scale(1.1, 1.1);
|
||||
-ms-transform: scale(1.1, 1.1);
|
||||
-o-transform: scale(1.1, 1.1);
|
||||
transform: scale(1.1, 1.1);
|
||||
-webkit-box-shadow: 0 1px 10px black;
|
||||
-moz-box-shadow: 0 1px 10px black;
|
||||
box-shadow: 0 1px 10px black;
|
||||
}
|
||||
|
||||
/* Hardcoding the offset for the FB icon example */
|
||||
/* line 133, ../sass/app.sass */
|
||||
.fbIcon .imageWrap .targetImage {
|
||||
-webkit-border-radius: 0;
|
||||
-moz-border-radius: 0;
|
||||
-ms-border-radius: 0;
|
||||
-o-border-radius: 0;
|
||||
border-radius: 0;
|
||||
position: relative;
|
||||
top: 142px;
|
||||
left: 192px;
|
||||
}
|
||||
|
||||
/* line 139, ../sass/app.sass */
|
||||
/* line 164, ../sass/app.sass */
|
||||
canvas {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* -- Animated logo ------------------------------------------------------------------ */
|
||||
/* line 143, ../sass/app.sass */
|
||||
h1 {
|
||||
font-size: 72px;
|
||||
line-height: 0.5em;
|
||||
margin-bottom: 0.3em;
|
||||
}
|
||||
/* line 147, ../sass/app.sass */
|
||||
h1 small {
|
||||
font-size: 20px;
|
||||
}
|
||||
/* line 150, ../sass/app.sass */
|
||||
h1 .char1 {
|
||||
/* line 169, ../sass/app.sass */
|
||||
.logo .char1 {
|
||||
-webkit-transition: color 0.1s;
|
||||
-moz-transition: color 0.1s;
|
||||
-o-transition: color 0.1s;
|
||||
transition: color 0.1s;
|
||||
}
|
||||
/* line 152, ../sass/app.sass */
|
||||
h1 .char2 {
|
||||
/* line 171, ../sass/app.sass */
|
||||
.logo .char2 {
|
||||
-webkit-transition: color 0.1s;
|
||||
-webkit-transition-delay: 0.05s;
|
||||
-moz-transition: color 0.1s 0.05s;
|
||||
-o-transition: color 0.1s 0.05s;
|
||||
transition: color 0.1s 0.05s;
|
||||
}
|
||||
/* line 154, ../sass/app.sass */
|
||||
h1 .char3 {
|
||||
/* line 173, ../sass/app.sass */
|
||||
.logo .char3 {
|
||||
-webkit-transition: color 0.1s;
|
||||
-webkit-transition-delay: 0.1s;
|
||||
-moz-transition: color 0.1s 0.1s;
|
||||
-o-transition: color 0.1s 0.1s;
|
||||
transition: color 0.1s 0.1s;
|
||||
}
|
||||
/* line 156, ../sass/app.sass */
|
||||
h1 .char4 {
|
||||
/* line 175, ../sass/app.sass */
|
||||
.logo .char4 {
|
||||
-webkit-transition: color 0.1s;
|
||||
-webkit-transition-delay: 0.15s;
|
||||
-moz-transition: color 0.1s 0.15s;
|
||||
-o-transition: color 0.1s 0.15s;
|
||||
transition: color 0.1s 0.15s;
|
||||
}
|
||||
/* line 158, ../sass/app.sass */
|
||||
h1 .char5 {
|
||||
/* line 177, ../sass/app.sass */
|
||||
.logo .char5 {
|
||||
-webkit-transition: color 0.1s;
|
||||
-webkit-transition-delay: 0.2s;
|
||||
-moz-transition: color 0.1s 0.2s;
|
||||
-o-transition: color 0.1s 0.2s;
|
||||
transition: color 0.1s 0.2s;
|
||||
}
|
||||
/* line 161, ../sass/app.sass */
|
||||
h1 .char7 {
|
||||
/* line 180, ../sass/app.sass */
|
||||
.logo .char7 {
|
||||
-webkit-transition: color 0.1s;
|
||||
-webkit-transition-delay: 0.3s;
|
||||
-moz-transition: color 0.1s 0.3s;
|
||||
-o-transition: color 0.1s 0.3s;
|
||||
transition: color 0.1s 0.3s;
|
||||
}
|
||||
/* line 163, ../sass/app.sass */
|
||||
h1 .char8 {
|
||||
/* line 182, ../sass/app.sass */
|
||||
.logo .char8 {
|
||||
-webkit-transition: color 0.1s;
|
||||
-webkit-transition-delay: 0.35s;
|
||||
-moz-transition: color 0.1s 0.35s;
|
||||
-o-transition: color 0.1s 0.35s;
|
||||
transition: color 0.1s 0.35s;
|
||||
}
|
||||
/* line 165, ../sass/app.sass */
|
||||
h1 .char9 {
|
||||
/* line 184, ../sass/app.sass */
|
||||
.logo .char9 {
|
||||
-webkit-transition: color 0.1s;
|
||||
-webkit-transition-delay: 0.4s;
|
||||
-moz-transition: color 0.1s 0.4s;
|
||||
-o-transition: color 0.1s 0.4s;
|
||||
transition: color 0.1s 0.4s;
|
||||
}
|
||||
/* line 167, ../sass/app.sass */
|
||||
h1 .char10 {
|
||||
/* line 186, ../sass/app.sass */
|
||||
.logo .char10 {
|
||||
-webkit-transition: color 0.1s;
|
||||
-webkit-transition-delay: 0.45s;
|
||||
-moz-transition: color 0.1s 0.45s;
|
||||
-o-transition: color 0.1s 0.45s;
|
||||
transition: color 0.1s 0.45s;
|
||||
}
|
||||
/* line 169, ../sass/app.sass */
|
||||
h1 .char11 {
|
||||
/* line 188, ../sass/app.sass */
|
||||
.logo .char11 {
|
||||
-webkit-transition: color 0.1s;
|
||||
-webkit-transition-delay: 0.5s;
|
||||
-moz-transition: color 0.1s 0.5s;
|
||||
-o-transition: color 0.1s 0.5s;
|
||||
transition: color 0.1s 0.5s;
|
||||
}
|
||||
/* line 172, ../sass/app.sass */
|
||||
h1:hover .char1 {
|
||||
/* line 191, ../sass/app.sass */
|
||||
.logo:hover .char1 {
|
||||
-webkit-transition: color 0.1s;
|
||||
-moz-transition: color 0.1s;
|
||||
-o-transition: color 0.1s;
|
||||
transition: color 0.1s;
|
||||
color: #ff4040;
|
||||
}
|
||||
/* line 175, ../sass/app.sass */
|
||||
h1:hover .char2 {
|
||||
/* line 194, ../sass/app.sass */
|
||||
.logo:hover .char2 {
|
||||
-webkit-transition: color 0.1s;
|
||||
-webkit-transition-delay: 0.05s;
|
||||
-moz-transition: color 0.1s 0.05s;
|
||||
@@ -357,8 +375,8 @@ h1:hover .char2 {
|
||||
transition: color 0.1s 0.05s;
|
||||
color: #ff8000;
|
||||
}
|
||||
/* line 178, ../sass/app.sass */
|
||||
h1:hover .char3 {
|
||||
/* line 197, ../sass/app.sass */
|
||||
.logo:hover .char3 {
|
||||
-webkit-transition: color 0.1s;
|
||||
-webkit-transition-delay: 0.1s;
|
||||
-moz-transition: color 0.1s 0.1s;
|
||||
@@ -366,8 +384,8 @@ h1:hover .char3 {
|
||||
transition: color 0.1s 0.1s;
|
||||
color: #fdf485;
|
||||
}
|
||||
/* line 181, ../sass/app.sass */
|
||||
h1:hover .char4 {
|
||||
/* line 200, ../sass/app.sass */
|
||||
.logo:hover .char4 {
|
||||
-webkit-transition: color 0.1s;
|
||||
-webkit-transition-delay: 0.15s;
|
||||
-moz-transition: color 0.1s 0.15s;
|
||||
@@ -375,8 +393,8 @@ h1:hover .char4 {
|
||||
transition: color 0.1s 0.15s;
|
||||
color: #00bfa8;
|
||||
}
|
||||
/* line 184, ../sass/app.sass */
|
||||
h1:hover .char5 {
|
||||
/* line 203, ../sass/app.sass */
|
||||
.logo:hover .char5 {
|
||||
-webkit-transition: color 0.1s;
|
||||
-webkit-transition-delay: 0.2s;
|
||||
-moz-transition: color 0.1s 0.2s;
|
||||
@@ -384,8 +402,8 @@ h1:hover .char5 {
|
||||
transition: color 0.1s 0.2s;
|
||||
color: #0096df;
|
||||
}
|
||||
/* line 188, ../sass/app.sass */
|
||||
h1:hover .char7 {
|
||||
/* line 207, ../sass/app.sass */
|
||||
.logo:hover .char7 {
|
||||
-webkit-transition: color 0.1s;
|
||||
-webkit-transition-delay: 0.3s;
|
||||
-moz-transition: color 0.1s 0.3s;
|
||||
@@ -393,8 +411,8 @@ h1:hover .char7 {
|
||||
transition: color 0.1s 0.3s;
|
||||
color: #ff4040;
|
||||
}
|
||||
/* line 191, ../sass/app.sass */
|
||||
h1:hover .char8 {
|
||||
/* line 210, ../sass/app.sass */
|
||||
.logo:hover .char8 {
|
||||
-webkit-transition: color 0.1s;
|
||||
-webkit-transition-delay: 0.35s;
|
||||
-moz-transition: color 0.1s 0.35s;
|
||||
@@ -402,8 +420,8 @@ h1:hover .char8 {
|
||||
transition: color 0.1s 0.35s;
|
||||
color: #ff8000;
|
||||
}
|
||||
/* line 194, ../sass/app.sass */
|
||||
h1:hover .char9 {
|
||||
/* line 213, ../sass/app.sass */
|
||||
.logo:hover .char9 {
|
||||
-webkit-transition: color 0.1s;
|
||||
-webkit-transition-delay: 0.4s;
|
||||
-moz-transition: color 0.1s 0.4s;
|
||||
@@ -411,8 +429,8 @@ h1:hover .char9 {
|
||||
transition: color 0.1s 0.4s;
|
||||
color: #fdf485;
|
||||
}
|
||||
/* line 197, ../sass/app.sass */
|
||||
h1:hover .char10 {
|
||||
/* line 216, ../sass/app.sass */
|
||||
.logo:hover .char10 {
|
||||
-webkit-transition: color 0.1s;
|
||||
-webkit-transition-delay: 0.45s;
|
||||
-moz-transition: color 0.1s 0.45s;
|
||||
@@ -420,8 +438,8 @@ h1:hover .char10 {
|
||||
transition: color 0.1s 0.45s;
|
||||
color: #00bfa8;
|
||||
}
|
||||
/* line 200, ../sass/app.sass */
|
||||
h1:hover .char11 {
|
||||
/* line 219, ../sass/app.sass */
|
||||
.logo:hover .char11 {
|
||||
-webkit-transition: color 0.1s;
|
||||
-webkit-transition-delay: 0.5s;
|
||||
-moz-transition: color 0.1s 0.5s;
|
||||
@@ -431,53 +449,84 @@ h1:hover .char11 {
|
||||
}
|
||||
|
||||
/* -- Drag and drop ------------------------------------------------------------------ */
|
||||
/* line 207, ../sass/app.sass */
|
||||
.drag-and-drop {
|
||||
/* line 226, ../sass/app.sass */
|
||||
.drag-drop {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* line 210, ../sass/app.sass */
|
||||
.dropZone {
|
||||
height: 200px;
|
||||
margin-bottom: 60px;
|
||||
background: url("../img/drag_placeholder.png");
|
||||
/* line 229, ../sass/app.sass */
|
||||
.drop-zone {
|
||||
height: 400px;
|
||||
margin-bottom: 80px;
|
||||
background: url("../img/dark_checkered_bg.png");
|
||||
}
|
||||
/* line 214, ../sass/app.sass */
|
||||
.dropZone.dragging {
|
||||
-webkit-box-shadow: inset 0 1px 10px #09a1ec;
|
||||
-moz-box-shadow: inset 0 1px 10px #09a1ec;
|
||||
box-shadow: inset 0 1px 10px #09a1ec;
|
||||
/* line 233, ../sass/app.sass */
|
||||
.drop-zone.dragging {
|
||||
-webkit-box-shadow: inset 0 0 0 4px #00bfa8;
|
||||
-moz-box-shadow: inset 0 0 0 4px #00bfa8;
|
||||
box-shadow: inset 0 0 0 4px #00bfa8;
|
||||
}
|
||||
/* line 235, ../sass/app.sass */
|
||||
.drop-zone.dragging .default-label {
|
||||
display: none;
|
||||
}
|
||||
/* line 237, ../sass/app.sass */
|
||||
.drop-zone.dragging .dragging-label {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* line 216, ../sass/app.sass */
|
||||
.droppedImage {
|
||||
/* line 240, ../sass/app.sass */
|
||||
.drop-zone-label {
|
||||
position: relative;
|
||||
top: 170px;
|
||||
padding: 10px;
|
||||
margin: 0 100px;
|
||||
border: 4px solid #fdf485;
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
-ms-border-radius: 4px;
|
||||
-o-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
color: #fdf485;
|
||||
font-size: 24px;
|
||||
text-align: center;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* line 252, ../sass/app.sass */
|
||||
.dragging-label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* line 256, ../sass/app.sass */
|
||||
.dropped-image .run-functions-button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 480px) {
|
||||
/* line 223, ../sass/app.sass */
|
||||
/* line 263, ../sass/app.sass */
|
||||
body {
|
||||
margin: 40px 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* line 226, ../sass/app.sass */
|
||||
/* line 266, ../sass/app.sass */
|
||||
.intro {
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
/* line 229, ../sass/app.sass */
|
||||
/* line 269, ../sass/app.sass */
|
||||
h1 {
|
||||
font-size: 48px;
|
||||
}
|
||||
|
||||
/* line 231, ../sass/app.sass */
|
||||
/* line 271, ../sass/app.sass */
|
||||
h2 {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
/* line 233, ../sass/app.sass */
|
||||
/* line 273, ../sass/app.sass */
|
||||
h3 {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user