Browse Source

Updates tos earch

pull/2092/head
jlukic 9 years ago
parent
commit
e571eacc50
3 changed files with 17 additions and 4 deletions
  1. 11
      src/definitions/modules/search.js
  2. 3
      src/definitions/modules/search.less
  3. 7
      src/themes/default/modules/search.variables

11
src/definitions/modules/search.js

@ -604,6 +604,8 @@ $.fn.search = function(parameters) {
$results
.transition({
animation : settings.transition + ' in',
debug : settings.debug,
verbose : settings.verbose,
duration : settings.duration,
queue : true
})
@ -622,10 +624,19 @@ $.fn.search = function(parameters) {
hideResults: function() {
if( module.is.visible() ) {
if( module.can.transition() ) {
console.log('here', {
animation : settings.transition + ' out',
debug : settings.debug,
verbose : settings.verbose,
duration : settings.duration,
queue : true
});
module.debug('Hiding results with css animations');
$results
.transition({
animation : settings.transition + ' out',
debug : settings.debug,
verbose : settings.verbose,
duration : settings.duration,
queue : true
})

3
src/definitions/modules/search.less

@ -91,7 +91,7 @@
display: block;
overflow: hidden;
font-size: @resultFontSize;
padding: @resultVerticalPadding @resultHorizontalPadding;
padding: @resultPadding;
color: @resultTextColor;
line-height: @resultLineHeight;
border-bottom: @resultDivider;
@ -124,6 +124,7 @@
}
.ui.search > .results .result .title {
margin: @resultTitleMargin;
font-family: @resultTitleFont;
font-weight: @resultTitleFontWeight;
font-size: @resultTitleFontSize;

7
src/themes/default/modules/search.variables

@ -29,7 +29,7 @@
/* Result */
@resultFontSize: 1em;
@resultVerticalPadding: 0.5em;
@resultVerticalPadding: @relativeMini;
@resultHorizontalPadding: @relativeLarge;
@resultPadding: @resultVerticalPadding @resultHorizontalPadding;
@resultTextColor: @textColor;
@ -47,6 +47,7 @@
/* Result Content */
@resultTitleFont: @headerFont;
@resultTitleMargin: -@headerLineHeightOffset 0em 0em;
@resultTitleFontWeight: bold;
@resultTitleFontSize: @relativeMedium;
@resultTitleColor: @darkTextColor;
@ -63,10 +64,10 @@
/* Special Message */
@messageVerticalPadding: 1em;
@messageHorizontalPadding: 1em;
@messageHeaderFontSize: 1.1428em;
@messageHeaderFontSize: @medium;
@messageHeaderFontWeight: bold;
@messageHeaderColor: @textColor;
@messageDescriptionDistance: 0.75rem;
@messageDescriptionDistance: 0.25rem;
@messageDescriptionFontSize: 1em;
@messageDescriptionColor: @textColor;

Loading…
Cancel
Save