From 62761c9542970dae944ea71fa3e7bf962989a55e Mon Sep 17 00:00:00 2001 From: rjy7 Date: Wed, 15 Sep 2010 20:20:47 +0000 Subject: [PATCH] CSS fixes for custom forms --- .../edit/forms/addPublicationToPerson.jsp | 1 - productMods/edit/forms/css/autocomplete.css | 26 +++++++++++++++++++ .../forms/css/customFormWithAutocomplete.css | 21 +-------------- 3 files changed, 27 insertions(+), 21 deletions(-) create mode 100644 productMods/edit/forms/css/autocomplete.css diff --git a/productMods/edit/forms/addPublicationToPerson.jsp b/productMods/edit/forms/addPublicationToPerson.jsp index 467b500c..b69883ea 100644 --- a/productMods/edit/forms/addPublicationToPerson.jsp +++ b/productMods/edit/forms/addPublicationToPerson.jsp @@ -217,7 +217,6 @@ SPARQL queries for existing values. --%> List customCss = new ArrayList(Arrays.asList(Css.JQUERY_UI.path(), Css.CUSTOM_FORM.path(), - "/edit/forms/css/autocomplete.css", "/edit/forms/css/customFormWithAutocomplete.css" )); request.setAttribute("customCss", customCss); diff --git a/productMods/edit/forms/css/autocomplete.css b/productMods/edit/forms/css/autocomplete.css new file mode 100644 index 00000000..4c7029d5 --- /dev/null +++ b/productMods/edit/forms/css/autocomplete.css @@ -0,0 +1,26 @@ +/* $This file is distributed under the terms of the license in /doc/license.txt$ */ + +/* + * Styles for autocomplete and autocomplete selections using jQuery UI. This is separated out so that forms + * that don't load customFormWithAutocomplete.css still have access to these styles. + */ + +.acSelection { + display: none; + margin-top: 2em; +} + +.acSelectionInfo { + background-color: #d9d9d9; + padding: .5em 1em; +} + + +ul.ui-autocomplete { + font-size: .95em; +} + +li.ui-menu-item a.ui-corner-all { + text-align: left; + padding-left: .25em; +} \ No newline at end of file diff --git a/productMods/edit/forms/css/customFormWithAutocomplete.css b/productMods/edit/forms/css/customFormWithAutocomplete.css index d47a688b..2916ab70 100644 --- a/productMods/edit/forms/css/customFormWithAutocomplete.css +++ b/productMods/edit/forms/css/customFormWithAutocomplete.css @@ -1,25 +1,6 @@ /* $This file is distributed under the terms of the license in /doc/license.txt$ */ -.acSelection { - display: none; - margin-top: 2em; -} - -.acSelectionInfo { - background-color: #d9d9d9; - padding: .5em 1em; -} - - -/* jQuery UI autocomplete */ -ul.ui-autocomplete { - font-size: .95em; -} - -li.ui-menu-item a.ui-corner-all { - text-align: left; - padding-left: .25em; -} +@import url("autocomplete.css"); /* Although Javascript hides these on page load, hide here as well to avoid the flash on page load. This needs to be removed to support a non-JS version of the form. */