forked from select2/select2
-
Notifications
You must be signed in to change notification settings - Fork 7
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
0 parents
commit 53e214d
Showing
6 changed files
with
1,128 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. |
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,100 @@ | ||
Select2 | ||
================= | ||
|
||
Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results. Look and feel of Select2 is based on the excellent [Chosen](http://harvesthq.github.com/chosen/) library. | ||
|
||
To get started -- checkout http://ivaynberg.github.com/select2! | ||
|
||
|
||
Versioning | ||
---------- | ||
|
||
For transparency and insight into our release cycle, and for striving to maintain backward compatibility, Bootstrap will be maintained under the Semantic Versioning guidelines as much as possible. | ||
|
||
Releases will be numbered with the follow format: | ||
|
||
`<major>.<minor>.<patch>` | ||
|
||
And constructed with the following guidelines: | ||
|
||
* Breaking backward compatibility bumps the major | ||
* New additions without breaking backward compatibility bumps the minor | ||
* Bug fixes and misc changes bump the patch | ||
|
||
For more information on SemVer, please visit http://semver.org/. | ||
|
||
|
||
Bug tracker | ||
----------- | ||
|
||
Have a bug? Please create an issue here on GitHub! | ||
|
||
https://github.com/twitter/bootstrap/issues | ||
|
||
|
||
Twitter account | ||
--------------- | ||
|
||
Keep up to date on announcements and more by following Bootstrap on Twitter, <a href="http://twitter.com/TwBootstrap">@TwBootstrap</a>. | ||
|
||
|
||
Mailing list | ||
------------ | ||
|
||
Have a question? Ask on our mailing list! | ||
|
||
twitter-bootstrap@googlegroups.com | ||
|
||
http://groups.google.com/group/twitter-bootstrap | ||
|
||
|
||
IRC | ||
--- | ||
|
||
Server: irc.freenode.net | ||
|
||
Channel: ##twitter-bootstrap (the double ## is not a typo) | ||
|
||
|
||
Developers | ||
---------- | ||
|
||
We have included a makefile with convenience methods for working with the Bootstrap library. | ||
|
||
+ **build** - `make` | ||
Runs the LESS compiler to rebuild the `/less` files and compiles the docs pages. Requires lessc and uglify-js. <a href="http://twitter.github.com/bootstrap/less.html#compiling">Read more in our docs »</a> | ||
|
||
+ **watch** - `make watch` | ||
This is a convenience method for watching just Less files and automatically building them whenever you save. Requires the Watchr gem. | ||
|
||
|
||
Authors | ||
------- | ||
|
||
**Mark Otto** | ||
|
||
+ http://twitter.com/mdo | ||
+ http://github.com/markdotto | ||
|
||
**Jacob Thornton** | ||
|
||
+ http://twitter.com/fat | ||
+ http://github.com/fat | ||
|
||
|
||
Copyright and license | ||
--------------------- | ||
|
||
Copyright 2012 Twitter, Inc. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this work except in compliance with the License. | ||
You may obtain a copy of the License in the LICENSE file, or at: | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
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,231 @@ | ||
.select2-container { | ||
position: relative; | ||
display: inline-block; | ||
/* inline-block for ie7 */ | ||
zoom: 1; | ||
*display: inline; | ||
|
||
} | ||
|
||
.select2-container .select2-choice { | ||
background-color: #fff; | ||
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(0.5, white)); | ||
background-image: -webkit-linear-gradient(center bottom, #eeeeee 0%, white 50%); | ||
background-image: -moz-linear-gradient(center bottom, #eeeeee 0%, white 50%); | ||
background-image: -o-linear-gradient(top, #eeeeee 0%, #ffffff 50%); | ||
background-image: -ms-linear-gradient(top, #eeeeee 0%, #ffffff 50%); | ||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#eeeeee', endColorstr = '#ffffff', GradientType = 0); | ||
background-image: linear-gradient(top, #eeeeee 0%, #ffffff 50%); | ||
-webkit-border-radius: 4px; | ||
-moz-border-radius: 4px; | ||
border-radius: 4px; | ||
-moz-background-clip: padding; | ||
-webkit-background-clip: padding-box; | ||
background-clip: padding-box; | ||
border: 1px solid #aaa; | ||
display: block; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
position: relative; | ||
height: 26px; | ||
line-height: 26px; | ||
padding: 0 0 0 8px; | ||
color: #444; | ||
text-decoration: none; | ||
} | ||
|
||
.select2-container .select2-choice span { | ||
margin-right: 26px; | ||
display: block; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
-o-text-overflow: ellipsis; | ||
-ms-text-overflow: ellipsis; | ||
text-overflow: ellipsis; | ||
} | ||
|
||
.select2-container .select2-drop { | ||
background: #fff; | ||
border: 1px solid #aaa; | ||
border-top: 0; | ||
position: absolute; | ||
top: 29px; | ||
left: 0; | ||
-webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15); | ||
-moz-box-shadow: 0 4px 5px rgba(0, 0, 0, .15); | ||
-o-box-shadow: 0 4px 5px rgba(0, 0, 0, .15); | ||
box-shadow: 0 4px 5px rgba(0, 0, 0, .15); | ||
z-index: 999; | ||
|
||
-webkit-border-radius: 0 0 4px 4px; | ||
-moz-border-radius: 0 0 4px 4px; | ||
border-radius: 0 0 4px 4px; | ||
-moz-background-clip: padding; | ||
-webkit-background-clip: padding-box; | ||
background-clip: padding-box; | ||
} | ||
|
||
.select2-container .select2-choice div { | ||
-webkit-border-radius: 0 4px 4px 0; | ||
-moz-border-radius: 0 4px 4px 0; | ||
border-radius: 0 4px 4px 0; | ||
-moz-background-clip: padding; | ||
-webkit-background-clip: padding-box; | ||
background-clip: padding-box; | ||
background: #ccc; | ||
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee)); | ||
background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%); | ||
background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%); | ||
background-image: -o-linear-gradient(bottom, #ccc 0%, #eee 60%); | ||
background-image: -ms-linear-gradient(top, #cccccc 0%, #eeeeee 60%); | ||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#cccccc', endColorstr = '#eeeeee', GradientType = 0); | ||
background-image: linear-gradient(top, #cccccc 0%, #eeeeee 60%); | ||
border-left: 1px solid #aaa; | ||
position: absolute; | ||
right: 0; | ||
top: 0; | ||
display: block; | ||
height: 100%; | ||
width: 18px; | ||
} | ||
|
||
.select2-container .select2-choice div b { | ||
background: url('select2.png') no-repeat 0 1px; | ||
display: block; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.select2-container .select2-search { | ||
padding: 3px 4px; | ||
position: relative; | ||
margin: 0; | ||
white-space: nowrap; | ||
z-index: 1010; | ||
} | ||
|
||
.select2-container .select2-search input { | ||
background: #fff url('select2.png') no-repeat 100% -22px; | ||
background: url('select2.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee)); | ||
background: url('select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%); | ||
background: url('select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%); | ||
background: url('select2.png') no-repeat 100% -22px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%); | ||
background: url('select2.png') no-repeat 100% -22px, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%); | ||
background: url('select2.png') no-repeat 100% -22px, linear-gradient(top, #ffffff 85%, #eeeeee 99%); | ||
margin: 1px 0; | ||
padding: 4px 20px 4px 5px; | ||
outline: 0; | ||
border: 1px solid #aaa; | ||
font-family: sans-serif; | ||
font-size: 1em; | ||
} | ||
|
||
.select2-container .select2-search input.select2-active { | ||
background: #fff url('spinner.gif') no-repeat 100%; | ||
background: url('spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee)); | ||
background: url('spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%); | ||
background: url('spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%); | ||
background: url('spinner.gif') no-repeat 100%, -o-linear-gradient(bottom, white 85%, #eeeeee 99%); | ||
background: url('spinner.gif') no-repeat 100%, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%); | ||
background: url('spinner.gif') no-repeat 100%, linear-gradient(top, #ffffff 85%, #eeeeee 99%); | ||
margin: 1px 0; | ||
padding: 4px 20px 4px 5px; | ||
outline: 0; | ||
border: 1px solid #aaa; | ||
font-family: sans-serif; | ||
font-size: 1em; | ||
} | ||
|
||
|
||
/* active styles */ | ||
.select2-container-focused .select2-choice { | ||
-webkit-box-shadow: 0 0 5px rgba(0,0,0,.3); | ||
-moz-box-shadow : 0 0 5px rgba(0,0,0,.3); | ||
-o-box-shadow : 0 0 5px rgba(0,0,0,.3); | ||
box-shadow : 0 0 5px rgba(0,0,0,.3); | ||
border: 1px solid #5897fb; | ||
} | ||
|
||
.select2-dropdown-open .select2-choice { | ||
border: 1px solid #aaa; | ||
-webkit-box-shadow: 0 1px 0 #fff inset; | ||
-moz-box-shadow : 0 1px 0 #fff inset; | ||
-o-box-shadow : 0 1px 0 #fff inset; | ||
box-shadow : 0 1px 0 #fff inset; | ||
background-color: #eee; | ||
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, white), color-stop(0.5, #eeeeee)); | ||
background-image: -webkit-linear-gradient(center bottom, white 0%, #eeeeee 50%); | ||
background-image: -moz-linear-gradient(center bottom, white 0%, #eeeeee 50%); | ||
background-image: -o-linear-gradient(bottom, white 0%, #eeeeee 50%); | ||
background-image: -ms-linear-gradient(top, #ffffff 0%,#eeeeee 50%); | ||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee',GradientType=0 ); | ||
background-image: linear-gradient(top, #ffffff 0%,#eeeeee 50%); | ||
-webkit-border-bottom-left-radius : 0; | ||
-webkit-border-bottom-right-radius: 0; | ||
-moz-border-radius-bottomleft : 0; | ||
-moz-border-radius-bottomright: 0; | ||
border-bottom-left-radius : 0; | ||
border-bottom-right-radius: 0; | ||
} | ||
|
||
|
||
.select2-dropdown-open .select2-choice div { | ||
background: transparent; | ||
border-left: none; | ||
} | ||
.select2-dropdown-open .select2-choice div b { | ||
background-position: -18px 1px; | ||
} | ||
|
||
/* results */ | ||
.select2-container .select2-results { | ||
margin: 0 4px 4px 0; | ||
padding: 0 0 0 4px; | ||
position: relative; | ||
overflow-x: hidden; | ||
overflow-y: auto; | ||
max-height: 200px; | ||
} | ||
.select2-container .select2-results li { | ||
line-height: 80%; | ||
padding: 7px 7px 8px; | ||
margin: 0; | ||
list-style: none; | ||
cursor: pointer; | ||
display: list-item; | ||
} | ||
|
||
.select2-container .select2-results .select2-highlighted { | ||
background: #3875d7; | ||
color: #fff; | ||
} | ||
.select2-container .select2-results li em { | ||
background: #feffde; | ||
font-style: normal; | ||
} | ||
.select2-container .select2-results .select2-highlighted em { | ||
background: transparent; | ||
} | ||
.select2-container .select2-results .select2-no-results { | ||
background: #f4f4f4; | ||
display: list-item; | ||
} | ||
|
||
.select2-more-results.select2-active { | ||
background: #f4f4f4 url('spinner.gif') no-repeat 100%; | ||
} | ||
|
||
.select2-more-results { | ||
background: #f4f4f4; | ||
display: list-item; | ||
} | ||
|
||
|
||
|
||
|
||
|
||
/* | ||
.select2-container .select2-drop { border: 1px solid red !important;} | ||
.select2-container .select2-drop .select2-search { border: 1px solid green !important;} | ||
.select2-container .select2-drop .select2-search input { border: 1px solid blue !important;} | ||
*/ |
Oops, something went wrong.