diff --git a/Controls/TypeAhead/src/DotVVM.Contrib/Styles/DotVVM.Contrib.TypeAhead.css b/Controls/TypeAhead/src/DotVVM.Contrib/Styles/DotVVM.Contrib.TypeAhead.css index 38382e01..db58face 100644 --- a/Controls/TypeAhead/src/DotVVM.Contrib/Styles/DotVVM.Contrib.TypeAhead.css +++ b/Controls/TypeAhead/src/DotVVM.Contrib/Styles/DotVVM.Contrib.TypeAhead.css @@ -1,53 +1,89 @@ -.typeahead { - background-color: #fff; -} +/* +The MIT License (MIT) -.typeahead:focus { - border: 2px solid #0097cf; -} +Copyright (c) 2014 Bass Jobsen -.tt-query { - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -} +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -.tt-hint { - color: #999 +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ + +span.twitter-typeahead .tt-menu { + cursor: pointer; } -.tt-menu { - margin: 0; - padding: 8px 0; +.dropdown-menu, span.twitter-typeahead .tt-menu { + position: absolute; + top: 100%; + left: 0; + z-index: 1000; + display: none; + float: left; + min-width: 160px; + padding: 5px 0; + margin: 2px 0 0; + font-size: 1rem; + color: #373a3c; + text-align: left; + list-style: none; background-color: #fff; - border: 1px solid #ccc; - border: 1px solid rgba(0, 0, 0, 0.2); - -webkit-border-radius: 8px; - -moz-border-radius: 8px; - border-radius: 8px; - -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2); - -moz-box-shadow: 0 5px 10px rgba(0,0,0,.2); - box-shadow: 0 5px 10px rgba(0,0,0,.2); + background-clip: padding-box; + border: 1px solid rgba(0, 0, 0, 0.15); + border-radius: 0.25rem; } -.tt-suggestion { +span.twitter-typeahead .tt-suggestion { + display: block; padding: 3px 20px; - font-size: 18px; - line-height: 24px; + clear: both; + font-weight: normal; + line-height: 1.5; + color: #373a3c; + text-align: inherit; + white-space: nowrap; + background: none; + border: 0; } -.tt-suggestion:hover { - cursor: pointer; - color: #fff; - background-color: #0097cf; + span.twitter-typeahead .tt-suggestion:focus, .dropdown-item:hover, span.twitter-typeahead .tt-suggestion:hover { + color: #2b2d2f; + text-decoration: none; + background-color: #f5f5f5; + } + + span.twitter-typeahead .active.tt-suggestion, span.twitter-typeahead .tt-suggestion.tt-cursor, span.twitter-typeahead .active.tt-suggestion:focus, span.twitter-typeahead .tt-suggestion.tt-cursor:focus, span.twitter-typeahead .active.tt-suggestion:hover, span.twitter-typeahead .tt-suggestion.tt-cursor:hover { + color: #fff; + text-decoration: none; + background-color: #0275d8; + outline: 0; + } + +span.twitter-typeahead .disabled.tt-suggestion, span.twitter-typeahead .disabled.tt-suggestion:focus, span.twitter-typeahead .disabled.tt-suggestion:hover { + color: #818a91; } -.tt-suggestion.tt-cursor { - color: #fff; - background-color: #0097cf; + span.twitter-typeahead .disabled.tt-suggestion:focus, span.twitter-typeahead .disabled.tt-suggestion:hover { + text-decoration: none; + cursor: not-allowed; + background-color: transparent; + background-image: none; + filter: "progid:DXImageTransform.Microsoft.gradient(enabled = false)"; + } + +span.twitter-typeahead { + width: 100%; +} +.input-group span.twitter-typeahead { + display: block !important; } -.tt-suggestion p { - margin: 0; -} \ No newline at end of file + .input-group span.twitter-typeahead .tt-menu { + top: 2.375rem !important; + } + +.tt-hint { + color: #888; +}