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 $results
.transition({ .transition({
animation : settings.transition + ' in', animation : settings.transition + ' in',
debug : settings.debug,
verbose : settings.verbose,
duration : settings.duration, duration : settings.duration,
queue : true queue : true
}) })
@ -622,10 +624,19 @@ $.fn.search = function(parameters) {
hideResults: function() { hideResults: function() {
if( module.is.visible() ) { if( module.is.visible() ) {
if( module.can.transition() ) { 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'); module.debug('Hiding results with css animations');
$results $results
.transition({ .transition({
animation : settings.transition + ' out', animation : settings.transition + ' out',
debug : settings.debug,
verbose : settings.verbose,
duration : settings.duration, duration : settings.duration,
queue : true queue : true
}) })

3
src/definitions/modules/search.less

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

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

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

Loading…
Cancel
Save