Koha/koha-tmpl/opac-tmpl/bootstrap/lib/famfamfam/mini
Owen Leonard eb92d94be1 Bug 10309 - New OPAC theme based on Bootstrap
The goal of this theme is to provide a fully-responsive OPAC which
offers a high level of functionality across multiple devices with varied
viewport sizes. Its style is based on the CCSR theme, with elements of
the Bootstrap framework providing default styling of buttons, menus,
modals, etc.

The Bootstrap grid is used everywhere, but Bootstrap's default
responsive breakpoints have been expanded to allow for better
flexibility for our needs.

All non-translation-depended files are in the root directory of this new
theme:

css, images, itemtypeimg, js, less, and lib. Languages.pm has been
modified to ignore the new directories when parsing the theme language
directories.

This theme introduces the use of LESS (http://lesscss.org/) to build
CSS. Three LESS files can be found in the "less" directory: mixins.less,
opac.less, and responsive.less. These three files are compiled into one
CSS file for production: opac.css. "Base" theme styles are found in
opac.less. A few "mixins" (http://lesscss.org/#-mixins) are found in
mixins.less. Any CSS which is conditional on specific media queries is
found in responsive.less.

At the template level some general sturctural changes have been made.
For the most part JavaScript is now at the end of each template as is
recommended for performance reasons. JavaScript formerly in
doc-head-close.inc is now in opac-bottom.inc.

In order to be able to maintain this structure and accommodate
page-specific scripts at the same time the use of BLOCK and PROCESS are
added. By default opac-bottom.inc will PROCESS a "jsinclude" block:

[% PROCESS jsinclude %]

Each page template in the theme must contain this block, even if it is
empty:

[% BLOCK jsinclude %][% END %]

Pages which require that page-specific JavaScript be inserted can add it
to the jsinclude block and it will appear correctly at the bottom of the
rendered page.

The same is true for page-specific CSS. Each page contains a cssinclude
block:

[% BLOCK cssinclude %][% END %]

...which is processed in doc-head-close.inc:

[% PROCESS cssinclude %]

Using these methods helps us maintain a strict separation of CSS links
and blocks (at the top of each page) and JavaScript (at the bottom). A
few exceptions are made for some JavaScript which must be processed
sooner: respond.js (https://github.com/scottjehl/Respond, conditionally
applied to Internet Explorer versions < 9 to allow for layout
responsiveness), the _() function required for JS translatability, and
Modernizr (http://modernizr.com/, a script which detects browser
features and allows us to conditionally load JavaScript based on
available features--or lack thereof).

Another new JavaScript dependency in this theme is enquire.js
(http://wicky.nillia.ms/enquire.js/), which lets us trigger JavaScript
events based on viewport size.

I have made an effort to re-indent the templates in a sane way,
eliminating trailing spaces and tabs. However, I have not wrapped lines
at a specific line length. In order to improve template legibility I
have also tried to insert comments indicating the origin of closing tags
like <div> or template directives like [% END %]:

</div> <!-- / .container-fluid -->

[% END # / IF ( OpacBrowseResults && busc ) %]

TESTING

Proper testing of this theme is no easy task: Every template has been
touched. Each page should work reasonable well at a variety of screen
dimensions. Pages should be tested under many conditions which are
controlled by toggling OPAC system preferences on and off. A variety of
devices, platforms, and browsers should be tested.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-10-14 23:13:05 +00:00
..
action_back.gif
action_forward.gif
action_go.gif
action_paste.gif
action_print.gif
action_refresh.gif
action_refresh_blue.gif
action_save.gif
action_stop.gif
application_dreamweaver.gif
application_firefox.gif
application_flash.gif
arrow_down.gif
arrow_left.gif
arrow_right.gif
arrow_up.gif
box.gif
calendar.gif
comment.gif
comment_blue.gif
comment_delete.gif
comment_new.gif
comment_yellow.gif
copy.gif
cut.gif
date.gif
date_delete.gif
date_new.gif
file_acrobat.gif
file_font.gif
file_font_truetype.gif
flag_blue.gif
flag_green.gif
flag_orange.gif
flag_red.gif
flag_white.gif
folder.gif
folder_delete.gif
folder_images.gif
folder_lock.gif
folder_new.gif
folder_page.gif
icon_accept.gif
icon_airmail.gif
icon_alert.gif
icon_attachment.gif
icon_clock.gif
icon_component.gif
icon_download.gif
icon_email.gif
icon_extension.gif
icon_favourites.gif
icon_get_world.gif
icon_history.gif
icon_home.gif
icon_info.gif
icon_key.gif
icon_link.gif
icon_mail.gif
icon_monitor_mac.gif
icon_monitor_pc.gif
icon_network.gif
icon_package.gif
icon_package_get.gif
icon_package_open.gif
icon_padlock.gif
icon_security.gif
icon_settings.gif
icon_user.gif
icon_wand.gif
icon_world.gif
icon_world_dynamic.gif
image.gif
image_new.gif
interface_browser.gif
interface_dialog.gif
interface_installer.gif
list_comments.gif
list_components.gif
list_errors.gif
list_extensions.gif
list_images.gif
list_keys.gif
list_links.gif
list_packages.gif
list_security.gif
list_settings.gif
list_users.gif
list_world.gif
note.gif
note_delete.gif
note_new.gif
page.gif
page_alert.gif
page_attachment.gif
page_bookmark.gif
page_boy.gif
page_code.gif
page_colors.gif
page_component.gif
page_cross.gif
page_delete.gif
page_deny.gif
page_down.gif
page_dynamic.gif
page_edit.gif
page_extension.gif
page_favourites.gif
page_find.gif
page_flash.gif
page_girl.gif
page_html.gif
page_java.gif
page_key.gif
page_left.gif
page_link.gif
page_lock.gif
page_new.gif
page_next.gif
page_package.gif
page_php.gif
page_prev.gif
page_refresh.gif
page_right.gif
page_script.gif
page_security.gif
page_settings.gif
page_sound.gif
page_tag_blue.gif
page_tag_red.gif
page_text.gif
page_text_delete.gif
page_tick.gif
page_tree.gif
page_up.gif
page_url.gif
page_user.gif
page_user_dark.gif
page_user_light.gif
page_video.gif
page_wizard.gif
readme.txt
table.gif
table_delete.gif
tables.gif

mini icons - famfamfam.com
Contact: mjames@gmail.com