Merge "Use Less in jquery.suggestions"
This commit is contained in:
commit
3141c4d542
3 changed files with 79 additions and 77 deletions
|
|
@ -239,7 +239,7 @@ return [
|
|||
],
|
||||
'jquery.suggestions' => [
|
||||
'scripts' => 'resources/src/jquery/jquery.suggestions.js',
|
||||
'styles' => 'resources/src/jquery/jquery.suggestions.css',
|
||||
'styles' => 'resources/src/jquery/jquery.suggestions.less',
|
||||
'dependencies' => 'jquery.highlightText',
|
||||
],
|
||||
'jquery.tablesorter' => [
|
||||
|
|
|
|||
|
|
@ -1,76 +0,0 @@
|
|||
/* suggestions plugin */
|
||||
|
||||
/* stylelint-disable selector-class-pattern */
|
||||
|
||||
.suggestions {
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 0;
|
||||
border: 0;
|
||||
z-index: 1099;
|
||||
padding: 0;
|
||||
margin: -1px 0 0 0;
|
||||
}
|
||||
|
||||
.suggestions-special {
|
||||
position: relative;
|
||||
background-color: #fff;
|
||||
cursor: pointer;
|
||||
border: 1px solid #a2a9b1;
|
||||
margin: 0;
|
||||
margin-top: -2px;
|
||||
display: none;
|
||||
padding: 0.25em 0.25em;
|
||||
line-height: 1.25em;
|
||||
}
|
||||
|
||||
.suggestions-results {
|
||||
background-color: #fff;
|
||||
cursor: pointer;
|
||||
border: 1px solid #a2a9b1;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.suggestions-result {
|
||||
color: #000;
|
||||
margin: 0;
|
||||
line-height: 1.5em;
|
||||
padding: 0.01em 0.25em;
|
||||
text-align: left;
|
||||
/* Apply ellipsis to suggestions */
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.suggestions-result-current {
|
||||
background-color: #2a4b8d;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.suggestions-special .special-label {
|
||||
color: #72777d;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.suggestions-special .special-query {
|
||||
color: #000;
|
||||
font-style: italic;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.suggestions-special .special-hover {
|
||||
background-color: #c8ccd1;
|
||||
}
|
||||
|
||||
.suggestions-result-current .special-label,
|
||||
.suggestions-result-current .special-query {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.highlight {
|
||||
font-weight: bold;
|
||||
}
|
||||
78
resources/src/jquery/jquery.suggestions.less
Normal file
78
resources/src/jquery/jquery.suggestions.less
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
/* suggestions plugin */
|
||||
|
||||
/* stylelint-disable selector-class-pattern */
|
||||
|
||||
.suggestions {
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 0;
|
||||
border: 0;
|
||||
z-index: 1099;
|
||||
padding: 0;
|
||||
margin: -1px 0 0 0;
|
||||
|
||||
&-special {
|
||||
position: relative;
|
||||
background-color: #fff;
|
||||
cursor: pointer;
|
||||
border: 1px solid #a2a9b1;
|
||||
margin: 0;
|
||||
margin-top: -2px;
|
||||
display: none;
|
||||
padding: 0.25em 0.25em;
|
||||
line-height: 1.25em;
|
||||
|
||||
.special {
|
||||
&-label {
|
||||
color: #72777d;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
&-query {
|
||||
color: #000;
|
||||
font-style: italic;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
&-hover {
|
||||
background-color: #c8ccd1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-results {
|
||||
background-color: #fff;
|
||||
cursor: pointer;
|
||||
border: 1px solid #a2a9b1;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
&-result {
|
||||
color: #000;
|
||||
margin: 0;
|
||||
line-height: 1.5em;
|
||||
padding: 0.01em 0.25em;
|
||||
text-align: left;
|
||||
/* Apply ellipsis to suggestions */
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
||||
&-current {
|
||||
background-color: #2a4b8d;
|
||||
color: #fff;
|
||||
|
||||
.special-label,
|
||||
.special-query {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.highlight {
|
||||
font-weight: bold;
|
||||
}
|
||||
Loading…
Reference in a new issue