From f951526c9f26c56376ca94a66ffc278392fad8e2 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Fri, 6 Jun 2014 14:29:14 +0000 Subject: [PATCH] a single CSS file for Koha MKWS --- tools/htdocs/external/koha/Makefile | 18 +++ tools/htdocs/external/koha/koha-mkws-complete.css | 156 +++++++++++++++++++++ 2 files changed, 174 insertions(+) create mode 100644 tools/htdocs/external/koha/Makefile create mode 100644 tools/htdocs/external/koha/koha-mkws-complete.css diff --git a/tools/htdocs/external/koha/Makefile b/tools/htdocs/external/koha/Makefile new file mode 100644 index 0000000..7bfbbed --- /dev/null +++ b/tools/htdocs/external/koha/Makefile @@ -0,0 +1,18 @@ +E_DIR= ../../../../examples/htdocs +COMPONENTS = ${E_DIR}/mkws-widget-reference.css + +KOHA_CSS = koha-mkws.css +KOHA_COMPLETE_CSS = koha-mkws-complete.css + +all: ${KOHA_COMPLETE_CSS} + +clean: + rm -f ${KOHA_COMPLETE_CSS} + +${KOHA_COMPLETE_CSS}: + cat ${COMPONENTS} ${KOHA_CSS} > $@.tmp + mv -f $@.tmp $@ + +distclean: clean + rm -f *.orig *.bak *.rej + diff --git a/tools/htdocs/external/koha/koha-mkws-complete.css b/tools/htdocs/external/koha/koha-mkws-complete.css new file mode 100644 index 0000000..7daa169 --- /dev/null +++ b/tools/htdocs/external/koha/koha-mkws-complete.css @@ -0,0 +1,156 @@ +.mkwsReference { + max-width: 40em; + font-family: Gill Sans, "Gillius ADF", Gillius, GilliusADF, Verdana, Sans-Serif; + background: #f0f0e0; + padding: 0.5em 1em; + border: 1px solid #c0c0a0; + border-radius: 1em; + -moz-border-radius: 1em; + -webkit-border-radius: 1em; +} + +.mkwsReference h1 a { + color: #806020; +} + +.mkwsReference a { + text-decoration: none; +} + +.mkwsReference img { + float: right; + margin: 0 0 1em 2em; + border: 0.5em solid white; +} + +.mkwsCredit { + font-size: small; + text-align: right; +} + +.mkwsCredit::before { + content: "Source: "; + font-weight: bold; +} +/*! Copyright (c) 2013-2014 IndexData ApS. http://indexdata.com + * Licence: GPL, http://www.indexdata.com/licences/gpl + * + * Style sheet for MKWS plugin for Koha + * https://mkws.indexdata.com + * +*/ + +/* submit button color */ +form[name=mkwsSearchForm] > input[type=submit].mkwsButton { + background: #006dcc; + border: 3px outset #006dcc; + margin-bottom: 10px; +} + +select.mkwsTeam_AUTO { + width: 10em; + font-size: 11px; + height: 25px; +} + +/* facet links */ +div.mkwsFacet > div.term { background: none; } + +/* facet counter for a link */ +div.mkwsFacet > div.term > span { color: #000; } + +/* sidebar */ +@media (min-width: 768px) and (max-width: 1199px) { + .span2 { width: 190px } + .span10 { width: 768px } + + .row-fluid .span10 { width: 72.90598290598291%; } + .row-fluid .span7 { width: 45.26495726495726%;; } + .row-fluid .span2 { width: 23.52991452991453%; } +} + +@media (min-width: 1200px) { + .span2 { width: 190px } + .span10 { width: 920px } + + .row-fluid .span10 { width: 73.90598290598291%; } + .row-fluid .span7 { width: 48.26495726495726%;; } + .row-fluid .span2 { width: 23.52991452991453%; } +} + +.mkws-autosearch { + border-bottom-color: rgb(210, 210, 207); + border-bottom-left-radius: 7px; + border-bottom-right-radius: 7px; + border-bottom-style: solid; + border-bottom-width: 1px; + border-image-outset: 0px; + border-image-repeat: stretch; + border-image-slice: 100%; + border-image-source: none; + border-image-width: 1; + border-left-color: rgb(210, 210, 207); + border-left-style: solid; + border-left-width: 1px; + border-right-color: rgb(210, 210, 207); + border-right-style: solid; + border-right-width: 1px; + border-top-color: rgb(210, 210, 207); + border-top-left-radius: 7px; + border-top-right-radius: 7px; + border-top-style: solid; + border-top-width: 1px; + + margin-top: 5px; + margin-bottom: 5px; +} + +.mkws-autosearch div.mkwsRecords { + padding: 3px; +} + +.mkws-autosearch h4 { + font-size: 90%; + margin: 0 0 .6em 0; + text-align: center; + display: block; + background-color: #F2F2EF; + border-radius: 8px 8px 0 0; + border-bottom: 1px solid #D8D8D8; + font-weight: bold; + padding: .7em .2em; + text-decoration: none; +} + +.mkwsSwitch a, .mkwsLang a, .mkwsFacet a, .mkwsRanking a, .mkwsPager a, .mkwsNavi a, .mkwsRecords a, .mkwsRecord a { + color: #0076b2; +} +.mkwsTargets table thead tr td { + background-color: #0076b2; +} + +.mkwsCurrentPage { + background: #0076b2; +} + +input[type=submit].mkwsButton { + background: #006dcc; +} + +.mkwsFacet { + background: #fff; +} + +/******************************************************************************** + * Koha + mkws-widget-reference.css + */ +.mkwsReference h1 a { color: #0076b2; } +.mkwsReference { + border: none; + background: none; + border-radius: none; + -moz-border-radius: none; + -webkit-border-radius: none; +} + +/* EOF */ -- 1.7.10.4