CSS fixes for custom forms
This commit is contained in:
parent
a83ebecc36
commit
62761c9542
3 changed files with 27 additions and 21 deletions
|
@ -217,7 +217,6 @@ SPARQL queries for existing values. --%>
|
||||||
|
|
||||||
List<String> customCss = new ArrayList<String>(Arrays.asList(Css.JQUERY_UI.path(),
|
List<String> customCss = new ArrayList<String>(Arrays.asList(Css.JQUERY_UI.path(),
|
||||||
Css.CUSTOM_FORM.path(),
|
Css.CUSTOM_FORM.path(),
|
||||||
"/edit/forms/css/autocomplete.css",
|
|
||||||
"/edit/forms/css/customFormWithAutocomplete.css"
|
"/edit/forms/css/customFormWithAutocomplete.css"
|
||||||
));
|
));
|
||||||
request.setAttribute("customCss", customCss);
|
request.setAttribute("customCss", customCss);
|
||||||
|
|
26
productMods/edit/forms/css/autocomplete.css
Normal file
26
productMods/edit/forms/css/autocomplete.css
Normal file
|
@ -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;
|
||||||
|
}
|
|
@ -1,25 +1,6 @@
|
||||||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
.acSelection {
|
@import url("autocomplete.css");
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Although Javascript hides these on page load, hide here as well to avoid the flash on page load.
|
/* 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. */
|
This needs to be removed to support a non-JS version of the form. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue