Sha256: 0864751b0aa28ea96c19daf9991db12d8962888bd8d8b7274892b9ca32b48103

Contents?: true

Size: 1.69 KB

Versions: 7

Compression:

Stored size: 1.69 KB

Contents

/*
 * typeahead.js
 * https://github.com/twitter/typeahead.js
 * Copyright 2013-2014 Twitter, Inc. and other contributors; Licensed MIT
 */

var css = (function() {
  'use strict';

  var css =  {
    wrapper: {
      position: 'relative',
      display: 'inline-block'
    },
    hint: {
      position: 'absolute',
      top: '0',
      left: '0',
      borderColor: 'transparent',
      boxShadow: 'none',
      // #741: fix hint opacity issue on iOS
      opacity: '1'
    },
    input: {
      position: 'relative',
      verticalAlign: 'top',
      backgroundColor: 'transparent'
    },
    inputWithNoHint: {
      position: 'relative',
      verticalAlign: 'top'
    },
    dropdown: {
      position: 'absolute',
      top: '100%',
      left: '0',
      zIndex: '100',
      display: 'none'
    },
    suggestions: {
      display: 'block'
    },
    suggestion: {
      whiteSpace: 'nowrap',
      cursor: 'pointer'
    },
    suggestionChild: {
      whiteSpace: 'normal'
    },
    ltr: {
      left: '0',
      right: 'auto'
    },
    rtl: {
      left: 'auto',
      right:' 0'
    }
  };

  // ie specific styling
  if (_.isMsie()) {
     // ie6-8 (and 9?) doesn't fire hover and click events for elements with
     // transparent backgrounds, for a workaround, use 1x1 transparent gif
    _.mixin(css.input, {
      backgroundImage: 'url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)'
    });
  }

  // ie7 and under specific styling
  if (_.isMsie() && _.isMsie() <= 7) {
    // if someone can tell me why this is necessary to align
    // the hint with the query in ie7, i'll send you $5 - @JakeHarding
    _.mixin(css.input, { marginTop: '-1px' });
  }

  return css;
})();

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
iqvoc-4.12.1 vendor/assets/bower_components/typeahead.js/src/typeahead/css.js
iqvoc-4.12.0 vendor/assets/bower_components/typeahead.js/src/typeahead/css.js
iqvoc-4.11.1 vendor/assets/bower_components/typeahead.js/src/typeahead/css.js
iqvoc-4.11.0 vendor/assets/bower_components/typeahead.js/src/typeahead/css.js
iqvoc-4.10.0 vendor/assets/bower_components/typeahead.js/src/typeahead/css.js
iqvoc-4.9.0 vendor/assets/bower_components/typeahead.js/src/typeahead/css.js
iqvoc-4.8.2 vendor/assets/bower_components/typeahead.js/src/typeahead/css.js