[Koha-bugs] [Bug 12162] Add class="branchcode" to body tag to make OPAC CSS-styleable per branch

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jul 30 11:43:10 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12162

--- Comment #13 from Marc Véron <veron at veron.ch> ---
Created attachment 30319
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=30319&action=edit
Bug 12162 Add class="branchcode" to body tag to make OPAC CSS-styleable per
branch

New proof of concept, with opac-main.tt only (in bootstrap), not for
signing-off.

It shows how branchcode class would be inserted.
If no branch is selected, body tag is:
<body id="opac-main" class="branch-">
If e.g. branch FFL is selected, body tag is
<body id="opac-main" class="branch-FFL ">

Examples to test styling in OpacUserCSS:
/*No branch, default*/
.branch- {
background-color: orange;
border: 10px solid green;
}

/*Branch FFL*/
.branch-FFL {
background-color: yellow;
border: 10px solid pink;
}

To see what files would have to be changed:
Go to folder:
koha-tmpl/opac-tmpl/bootstrap/en
git grep "<body"

Comments welcome.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list