forked from Pikaday/Pikaday
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: CHANGELOG.md README.md bower.json component.json package.json pikaday.js
- Loading branch information
Showing
9 changed files
with
364 additions
and
10 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
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,56 @@ | ||
/** | ||
* This theme is an example to show how you can create your own. | ||
*/ | ||
.pika-single.dark-theme { | ||
color: #fff; | ||
background: #333; | ||
border: 1px solid #666; | ||
border-bottom-color: #999; | ||
} | ||
|
||
.dark-theme .pika-label { | ||
background-color: #333; | ||
} | ||
|
||
.dark-theme .pika-prev, | ||
.dark-theme .is-rtl .pika-next { | ||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAQAAACGG/bgAAAAQ0lEQVR4Ae3KIQ4AIBTD0N0/IeHGI3UIRA3ut/Zl+ltXc5++htVAmIAwAWECwgSEKbgthEoIlRAqIVRCqINQB9nDgQd7ktwFo6UpWQAAAABJRU5ErkJggg=='); | ||
} | ||
|
||
.dark-theme .pika-next, | ||
.dark-theme .is-rtl .pika-prev { | ||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAQAAACGG/bgAAAAP0lEQVQ4y+3TMQoAMAgEwfwfAvvjTZ1uGzuvHhBPPGczEG+FRqqRaqQaqUaqkX6QBmmjacvQ6qEVTjsh+xizebvlaWptGXZAAAAAAElFTkSuQmCC'); | ||
} | ||
|
||
.dark-theme .pika-table th { | ||
color: #999; | ||
} | ||
|
||
.dark-theme .pika-button { | ||
color: #fff; | ||
background: #222; | ||
} | ||
|
||
.dark-theme .pika-week { | ||
color: #999; | ||
} | ||
|
||
.dark-theme .is-today .pika-button { | ||
color: #33aaff; | ||
} | ||
|
||
.dark-theme .is-selected .pika-button { | ||
color: #fff; | ||
background: #33aaff; | ||
box-shadow: inset 0 1px 3px #178fe5; | ||
} | ||
|
||
.dark-theme .is-disabled .pika-button { | ||
color: #999; | ||
opacity: .3; | ||
} | ||
|
||
.dark-theme .pika-button:hover { | ||
color: #fff !important; | ||
background: #ff8000 !important; | ||
} |
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,50 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1"> | ||
<title>Pikaday - Theme example</title> | ||
<meta name="author" content="Stuart McFarlane"> | ||
<link rel="stylesheet" href="../css/pikaday.css"> | ||
<link rel="stylesheet" href="../css/theme.css"> | ||
<link rel="stylesheet" href="../css/site.css"> | ||
</head> | ||
<body> | ||
<a href="https://github.com/dbushell/Pikaday"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a> | ||
|
||
<h1>Pikaday - Theme example</h1> | ||
|
||
<p class="large">A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.</p> | ||
|
||
<label for="datepicker">Date:</label> | ||
<br> | ||
No theme <input type="text" id="datepicker"> | ||
<br> | ||
Custom theme <input type="text" id="datepicker-theme"> | ||
|
||
<h2>What is this?</h2> | ||
|
||
<p>Since version 1.0 Pikaday is a stable and battle tested date-picker. Feel free to use it however you like but please report any bugs or feature requests to the <a href="https://github.com/dbushell/Pikaday/issues">GitHub issue tracker</a>, thanks!</p> | ||
|
||
<p class="small">Copyright © 2014 <a href="http://dbushell.com/">David Bushell</a> | BSD & MIT license | Example by <a href="https://github.com/rikkert">Ramiro Rikkert</a></p> | ||
|
||
|
||
<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.5.1/moment.min.js"></script> | ||
<script src="../pikaday.js"></script> | ||
<script> | ||
|
||
// You can use different themes with the `theme` option | ||
var pickerDefault = new Pikaday( | ||
{ | ||
field: document.getElementById('datepicker'), | ||
}); | ||
|
||
var pickerTheme = new Pikaday( | ||
{ | ||
field: document.getElementById('datepicker-theme'), | ||
theme: 'dark-theme' | ||
}); | ||
|
||
</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
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
Oops, something went wrong.