From: Charles Connell Date: Thu, 24 Apr 2014 12:48:10 +0000 (-0400) Subject: Fix one more css url X-Git-Tag: release-20150131~127 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a45515de09dcbbeee106c9d065975bce35673c64;p=oweals%2Fkarmaworld.git Fix one more css url --- diff --git a/karmaworld/assets/css/ajax_select.css b/karmaworld/assets/css/ajax_select.css new file mode 100644 index 0000000..f751a0a --- /dev/null +++ b/karmaworld/assets/css/ajax_select.css @@ -0,0 +1,46 @@ +.results_on_deck .ui-icon-trash { + float: left; + cursor: pointer; +} +.results_on_deck { + padding: 0.25em 0; +} +form .aligned .results_on_deck { + padding-left: 38px; + margin-left: 7em; +} +.results_on_deck > div { + margin-bottom: 0.5em; +} +.ui-autocomplete-loading { + background: url('//karma-prod.s3.amazonaws.com/css/images/loading-indicator.gif') no-repeat; + background-origin: content-box; + background-position: right; +} +ul.ui-autocomplete { +/* + this is the dropdown menu. + + if max-width is not set and you are using django-admin + then the dropdown is the width of your whole page body (totally wrong). + + this sets max-width at 60% which is graceful at full page or in a popup + or on a small width window. + + fixed width is harder see http://stackoverflow.com/questions/4607164/changing-width-of-jquery-ui-autocomplete-widgets-individually +*/ + max-width: 60%; + + margin: 0; + padding: 0; + position: absolute; +} +ul.ui-autocomplete li { + list-style-type: none; + padding: 0; +} +ul.ui-autocomplete li a { + display: block; + padding: 2px 3px; + cursor: pointer; +} diff --git a/karmaworld/assets/css/images/loading-indicator.gif b/karmaworld/assets/css/images/loading-indicator.gif new file mode 100644 index 0000000..085ccae Binary files /dev/null and b/karmaworld/assets/css/images/loading-indicator.gif differ diff --git a/karmaworld/templates/base.html b/karmaworld/templates/base.html index 2a5a8a4..52862b6 100644 --- a/karmaworld/templates/base.html +++ b/karmaworld/templates/base.html @@ -14,7 +14,7 @@ - + {% endcompress %} @@ -29,7 +29,6 @@ {% include 'partial/trackers.html' %} -