Commits

Ian Struble committed 4011fbf

Added basic css styling for autocomplete.

**Note** The current autocomplete code does not play well with IE.

Comments (0)

Files changed (1)

django/contrib/admin/media/css/widgets.css

     border-top: 1px solid #ddd;
 }
 
+/* AUTOCOMPLETE */
+/* *** NOTE ***
+   This is mostly culled from css generated by http://jqueryui.com/themeroller
+   */
+.ui-menu {
+    display: block;
+    float: left;
+    list-style: none outside none;
+    margin: 0;
+    padding: 2px;
+}
+.ui-menu .ui-menu-item a {
+    display: block;
+    line-height: 1.5;
+    padding: 0.2em 0.4em;
+    text-decoration: none;
+}
+
+.ui-autocomplete {
+    cursor: default;
+    position: absolute;
+}
+
+form .aligned ul.ui-autocomplete {
+    padding: 2px;
+}
+.ui-widget-content {
+    background: #fcfdfd;
+    border: 1px solid #a6c9e2;
+    color: #222222;
+}
+.ui-menu .ui-menu-item {
+    background: #fcfdfd;
+    clear: left;
+    float: left;
+    margin: 0;
+    padding: 0;
+    width: 100%;
+}
+.ui-menu .ui-menu-item a {
+    border: 1px solid #fcfdfd;
+}
+ul.ui-menu li {
+    list-style-type: none;
+}
+.ui-state-hover, .ui-state-focus {
+    color: #fff;
+    background: #417690;
+    border: 1px solid #417690;
+}
+
+.ui-autocomplete-value a {
+    margin-left: 0.5em;
+}