Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change search match style #1344

Merged
merged 2 commits into from
Jul 16, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 50 additions & 59 deletions sass/chosen.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,56 @@ $chosen-sprite-retina: image-url('[email protected]');
}
/* @end */

/* @group Results */
.chzn-container .chzn-results {
position: relative;
overflow-x: hidden;
overflow-y: auto;
margin: 0 4px 4px 0;
padding: 0 0 0 4px;
max-height: 240px;
-webkit-overflow-scrolling: touch;
li {
display: none;
margin: 0;
padding: 5px 6px;
list-style: none;
line-height: 15px;
&.active-result {
display: list-item;
cursor: pointer;
}
&.disabled-result {
display: list-item;
color: #ccc;
cursor: default;
}
&.highlighted {
background-color: #3875d7;
@include background-image(linear-gradient(#3875d7 20%, #2a62bc 90%));
color: #fff;
}
&.no-results {
display: list-item;
background: #f4f4f4;
}
&.group-result {
display: list-item;
color: #999;
font-weight: bold;
cursor: default;
}
&.group-option {
padding-left: 15px;
}
em {
font-style: normal;
text-decoration: underline;
}
}
}
/* @end */

/* @group Multi Chosen */
.chzn-container-multi{
.chzn-choices {
Expand Down Expand Up @@ -211,65 +261,6 @@ $chosen-sprite-retina: image-url('[email protected]');
display: list-item;
color: #ccc;
cursor: default;
em {
background: transparent;
}
}
}
/* @end */

/* @group Results */
.chzn-container .chzn-results {
position: relative;
overflow-x: hidden;
overflow-y: auto;
margin: 0 4px 4px 0;
padding: 0 0 0 4px;
max-height: 240px;
-webkit-overflow-scrolling: touch;
li {
display: none;
margin: 0;
padding: 5px 6px;
list-style: none;
line-height: 15px;
&.active-result {
display: list-item;
cursor: pointer;
}
&.disabled-result {
display: list-item;
color: #ccc;
cursor: default;
em {
background: transparent;
}
}
&.highlighted {
background-color: #3875d7;
@include background-image(linear-gradient(#3875d7 20%, #2a62bc 90%));
color: #fff;
em {
background: transparent;
}
}
&.no-results {
display: list-item;
background: #f4f4f4;
}
&.group-result {
display: list-item;
color: #999;
font-weight: bold;
cursor: default;
}
&.group-option {
padding-left: 15px;
}
em {
background: #feffde;
font-style: normal;
}
}
}
/* @end */
Expand Down