* create a *_custom.css file per CSS file in server/skin that is protected on upgrades
* use the !important attribute to override properties in the parent CSS file
Update the Makefile to generate *_custom.css stubs if they do not already exist
Remove * {font-size: large;} property from patron_summary.css
git-svn-id: svn://svn.open-ils.org/ILS/trunk@11469
dcc99617-32d9-48b4-a31d-
7c20da2025e4
export STAFF_CLIENT_BUILD_ID = $$(/bin/cat build/BUILD_ID)
OPENSRF_JSLIBS = "$(OPENSRF_LIBS)/javascript"
-CHROME_LOCALES = $$(ls chrome/locale)
+CHROME_LOCALES = $$(ls -1 chrome/locale)
+SKIN_CSS = $$(ls -1 server/skin/*css | sed -e "s/.css/_custom.css/")
install-exec-local: build
-build: build_dir chrome2remote generated open-ils stamp
+build: build_dir chrome2remote generated custom_skins open-ils stamp
@echo To test the staff client:
@echo " cd build/"
@echo " xulrunner application.ini"
cp $(OPENSRF_JSLIBS)/*.js build/chrome/content/OpenILS/util/
external/prune_dirs.sh build/
-
+custom_skins:
+ @for skin in $(SKIN_CSS); do \
+ if [ ! -f "$$skin" ]; then touch build/"$$skin"; fi \
+ done;
+@import url("cat_custom.css");
+
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/TR/REC-html40");
.has_copies { color: black; background-color: lightgreen; font-weight: bold; }
-
+@import url("circ_custom.css");
+
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/TR/REC-html40");
-
+@import url("global_custom.css");
+
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/TR/REC-html40");
*/
.edit_hold_range { display: none; }
.edit_hold_focus { display: none; }
-
+@import url("patron_display_custom.css");
+
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/TR/REC-html40");
.PATRON_JUVENILE .dob { color: purple; }
.PATRON_JUVENILE label.juvenile_indicator { display: inline; color: purple; }
-
+@import url("patron_summary_custom.css");
+
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/TR/REC-html40");
-* { font-size: large; }
-
.PENALTY_RENEW { background-color: yellow; }
.PENALTY_HOLD { background-color: orange; }
.PENALTY_CIRC { background-color: red; }
-
+@import url("simple_auth_custom.css");
+
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/TR/REC-html40");
.staff groupbox { border: #FF3333; }
.temp groupbox { border: #FF9933; }
-