forked from bgrins/spectrum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
118 additions
and
14 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | ||
<title>Spectrum - The No Hassle jQuery Colorpicker</title> | ||
|
||
<meta name="description" content="Spectrum is a JavaScript colorpicker plugin using the jQuery framework. It is highly customizable, but can also be used as a simple input type=color polyfill"> | ||
<meta name="author" content="Brian Grinstead and Spectrum contributors"> | ||
|
||
<link rel="stylesheet" type="text/css" href="../spectrum.css"> | ||
<link rel="stylesheet" type="text/css" href="../docs/bootstrap.css"> | ||
<link rel="stylesheet" type="text/css" href="../docs/docs.css"> | ||
<script type="text/javascript" src="../docs/jquery-1.9.1.js"></script> | ||
<script type="text/javascript" src="../spectrum.js"></script> | ||
|
||
|
||
<link rel="stylesheet" type="text/css" href="sp-dark.css"> | ||
|
||
</head> | ||
<body> | ||
<div id='header'> | ||
<h1><a href='http://bgrins.github.com/spectrum'>Spectrum</a></h1> <h2><em>The No Hassle jQuery Colorpicker</em></h2> | ||
<div id='links'> | ||
View the <a href='http://github.com/bgrins/spectrum'>Source code</a>. | ||
Spectrum is a project by <a href='http://twitter.com/bgrins'>@bgrins</a>. | ||
</div> | ||
<br style='clear:both;' /> | ||
</div> | ||
|
||
<div class="container"> | ||
<h2>Themes</h2> | ||
|
||
<div class="alert"> | ||
This page is in development. | ||
</div> | ||
|
||
<div id="theme-gallery"> | ||
<h3>Gallery of existing themes</h3> | ||
|
||
<div class="theme" id="sp-light"> | ||
<h4>sp-light</h4> | ||
<p>This is the default theme that you know and love.</p> | ||
|
||
<div class='example'> | ||
<input type='text' /> | ||
</div> | ||
</div> | ||
|
||
<div class="theme" id="sp-dark"> | ||
<h4>sp-dark</h4> | ||
<p>Similar to sp-light, only ... darker</p> | ||
|
||
<div class='example'> | ||
<input type='text' /> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="theme-instructions"> | ||
<h3>Instructions for building themes</h3> | ||
</div> | ||
</div> | ||
|
||
|
||
<script> | ||
$("#sp-light input").spectrum({ | ||
theme: "sp-light" | ||
}); | ||
$("#sp-dark input").spectrum({ | ||
theme: "sp-dark" | ||
}); | ||
</script> | ||
<script type="text/javascript" src="../docs/prettify.js"></script> | ||
<script type="text/javascript"> | ||
|
||
var _gaq = _gaq || []; | ||
_gaq.push(['_setAccount', 'UA-8259845-4']); | ||
_gaq.push(['_trackPageview']); | ||
|
||
(function() { | ||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | ||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | ||
})(); | ||
|
||
</script> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* Container */ | ||
.sp-dark.sp-container { | ||
background-color: #333; | ||
border: solid 1px #555; | ||
} | ||
|
||
/* Replacer (the little preview div that shows up instead of the <input>) */ | ||
.sp-dark.sp-replacer { | ||
border: solid 1px #fff; | ||
background: #333; | ||
color: #eee; | ||
vertical-align: middle; | ||
} | ||
.sp-replacer:hover, .sp-replacer.sp-active { | ||
border-color: #F0C49B; | ||
color: #fff; | ||
} | ||
.sp-replacer.sp-disabled { | ||
border-color: silver; | ||
color: silver; | ||
} | ||
.sp-dark .sp-preview { | ||
border: solid 1px #eee; | ||
} |