Koha/koha-tmpl/opac-tmpl/bootstrap/css/babeltheque.css
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

171 lines
3.7 KiB
CSS
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* ## BABELTHEQUE ## */
/* Babeltheque is a french supplier for advanced features
this babeltheque.css is not used anywhere by Koha, it's not a mistake
If you're babeltheque customer, you have access to a specific configuration URL
on babeltheque website, where you can activate this css
So: it should not be removed from Koha !
*/
#BW_etiquettes {
clear :left;
border: 1px solid #E8E8E8;
margin-top: 10px;
width: 49%;
float: left;
visibility: hidden;
visibility: visible\9;
}
#BW_etiquettes:not(:empty) {
visibility: visible;
}
#BW_etiquettes h2 {
clear:left;
background-color: #E8E8E8;
margin: 5px 10px;
padding: 0 5px;
}
#BW_ulEti {max-width:100%;}
#BW_ulEti ul {
margin:0;
padding:0 15px;
list-style-type: none;
}
#BW_ulEti a {
text-decoration: none;
}
#BW_ulEti a.tag_s0 {font-weight: 120;font-size:0.8em;}
#BW_ulEti a.tag_s1 {font-weight: 150;font-size:0.9em;}
#BW_ulEti a.tag_s2 {font-weight: 180;font-size:1.0em;}
#BW_ulEti a.tag_s3 {font-weight: 200;font-size:1.2em;}
#BW_ulEti a.tag_s4 {font-weight: 220;font-size:1.4em;}
#BW_ulEti a.tag_s5 {font-weight: 230;font-size:1.5em;}
#BW_ulEti a.tag_s6 {font-weight: 320;font-size:1.6em;}
#BW_ulEti a.tag_s7 {font-weight: 350;font-size:1.7em;}
#BW_ulEti a.tag_s8 {font-weight: 400;font-size:1.8em;}
#BW_ulEti { padding: 0px; line-height: 2em; text-align: center;}
#BW_ulEti a { padding: 2px; }
#BW_ulEti { margin: 0px; }
#BW_ulEti ol {
float:left;
display: inline;
margin: 0 10px;
}
#BW_suggestions {
border: 1px solid #E8E8E8;
margin-top: 10px;
float: right;
width: 49%;
visibility: hidden;
visibility: visible\9;
}
#BW_suggestions:not(:empty) {
visibility: visible;
}
#BW_suggestions h2 {
background-color: #E8E8E8;
margin: 5px 10px;
padding: 0 5px;
}
#BW_suggestions .BW_livres_tag_page {
padding: 0 15px;
}
#BW_suggestions .BW_livres_tag_page:before {
content : '> ';
}
#BW_droite .BW_livres_tag:before {
content : '> ';
}
#BW_podcasts {
border: 1px solid #E8E8E8;
margin-top: 10px;
min-width: 100%;
float: left;
/*width: 49%;*/
visibility: hidden;
visibility: visible\9;
}
#BW_podcasts > iframe {
margin: -20px 0 10px 20px;
}
#BW_videos {
clear :left;
border: 1px solid #E8E8E8;
margin-top: 10px;
min-width: 100%;
/*width: 49%;*/
float: left;
visibility: hidden;
visibility: visible\9;
}
#BW_videos:not(:empty) {
visibility: visible;
}
#BW_podcasts:not(:empty) {
visibility: visible;
}
#BW_videos h2, #BW_podcasts h2 {
background-color: #E8E8E8;
margin: 5px 10px;
padding: 0 5px;
}
#BW_videos .BW_bloc_vid {
clear: both;
padding: 0 15px;
}
.BW_vignette_vid {
border: 1px solid #DFD9CE;
float: left;
height: 141px;
margin: 5px;
min-height: 141px;
padding: 5px;
white-space: nowrap;
}
#BW_notes {clear :left;}
#BW_notes h2 {font-size:85%;}
#BW_citations {}
#BW_citations h2 {font-size:85%;}
#BW_critiques {}
#BW_critiques h2 {font-size:85%;}
#BW_critiques_pro {}
#BW_critiques_pro h2 {font-size:85%;}
#BW_citations,#BW_critiques,#BW_critiques_pro {
background: -moz-linear-gradient(center top , #3399FF, #3333FF) repeat scroll 0 0 transparent;
background: -webkit-gradient(linear, center top, center bottom, from(#3399FF), to(#3333FF));
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#3399FF', endColorstr='#3333FF');
border: 1px solid #B7B7B7;
border-radius: 5px 5px 5px 5px;
color: #FFFFCC;
display: inline-block;
float: left;
font-weight: bold;
margin: 15px 20px 15px 0;
min-width: 150px;
padding: 0 15px 8px;
position: relative;
text-align: center;
text-shadow: 1px 1px 1px #777777;
white-space: nowrap;
}
#BW_citations a,#BW_critiques a,#BW_critiques_pro a {
color: #FFFFCC;
}