This repo holds the custom CSS, javascript, header and footer for UCSC's LibApps. The main branch is on Bootstrap 3 and currently covers all Libapps, except for the LibGuides A-Z, which is on the bootstrap5 branch.
Styles come from the Library's drupal theme, Spencer. Stlyes are maintained and should be copied from the global CSS file at: /sites/all/themes/spencer/css/global.css
Javsacript also comes from the Spencer theme. It can be found at /sites/all/themes/spencer/js/spencer.js
Note that most of the code there is legacy and is not copied here.
To update the header, look at the source code of the main website. Copy
from the <div class="header">
tag down to the closing div just before the
<div id="main-content">
tag.
IMPORTANT: Update the URL of the search form. It should look like:
<form class="google-cse" action="https://library.ucsc.edu/" method="post" id="search-block-form" accept-charset="UTF-8">
Each Libapp has a separate footer to include the specific login link. Changes to the global footer should be carefully reproduced on each separate file.
IMPORTANT: The URL of the newsletter subscription form should also point to the drupal site.