SlideShare a Scribd company logo
Krueger Library custom JS/CSS code
10/02/13
<link rel="shortcut icon" href="http://www.winona.edu/favicon.ico" />
<style>
/*hide location and today's hours text on hours box, old text color 5E5E5E*/
#hours-col-l, .hours-col-loc, #hours-col-t {display: none;}
.hours-col-time {color:#000000; font: 18px Helvetica, Arial, sans-serif; font-
weight: bold; padding: 0px 0px 10px 40px; position:relative;}
/* change table of contents box */
.box_toc_page, .box_toc_subpage, .box_toc_current {
font: 14px Helvetica, Arial, sans-serif; font-weight: bold;
padding: 0 2px 4px 2px;
}
/* hide search box row and guide description */
.stitle, .guidedesc { display:none; }
/*change guide title font and spacing*/
.guidetitle {
font: 20px Helvetica, Arial, sans-serif;
padding: 15px 0px 0px 0px;
}
/*change link color to WSU purple*/
a {color:#4B08A1;}
/*tab customization*/
#tabsI, #tabs12 {
font: 12px Helvetica, Arial, sans-serif; font-weight: bold; !important;
text-transform: uppercase;
background:transparent;
float: left;
padding: 0;
margin: 0 0 15px -2px;
position: relative;
border-bottom:1px solid #BBB;
width:990px;}
#tabsI ul, #tabs12 ul {padding: 0;}
Krueger Library custom JS/CSS code
10/02/13
#tabsI a, #tabs12 a {background:transparent;background-
color:#F1F1F1;border:1px solid #ADADAD;border-bottom:0;padding: 3px 2px
3px 4px;margin-left:4px;border-radius: 2px 2px 0 0;-moz-border-radius: 2px 2px 0
0;-webkit-border-radius: 2px 2px 0 0;-khtml-border-radius: 2px 2px 0 0;}
#tabsI #current a, #tabs12 #current a {color: #fff;font-weight:
bold;background:transparent;background-color:#4B08A1;border:1px solid
#777;border-bottom:0;}
#tabsI a span, #tabs12 a span {background:transparent;color:#000;padding: 0
10px;}
#tabsI #current a span, #tabs12 #current a span {color:#EEE; }
#tabsI a:hover, #tabs12 a:hover {background:transparent;background-
color:#888;border:1px solid
#adadad;border-bottom:0;}
#tabsI a span:hover, #tabs12 a span:hover {color:#fff;}
.dropmenudiv {border:1px solid #BBB;}
.dropmenudiv a {background-color:#EEE;font-color:#FFF;font-size:12px
Helvetica, Arial, sans-serif; !important;}
.dropmenudiv a:last-child {border-bottom:0;}
.dropmenudiv a:hover {background:#4B08A1;color:#FFF;}
/*box customization */
.headerbox h2 {
font: 14px Helvetica, Arial, san-serif; !important;
/* add this back in if you want the font bolded: font-weight: bold; */
text-transform: uppercase;
color: #FFF;
font-size: 14px;
padding: 2px;
}
#container { background: #fafafa !important; }
div.innerbox.roundbox {
Krueger Library custom JS/CSS code
10/02/13
border-radius: 0px 0px 3px 3px !important;
}
div.roundbox.headerbox {
background: #888888;
border-radius: 3px 3px 0px 0px;
}
.outerbox {
padding: 0px !important;
background: transparent;
border: 1px dotted #ddd;
}
.itemlist li {
font-weight: bold !important;
}
.linklist li {
font-weight: bold !important;
}
</style>
<style type="text/css">
.column, .floatcols {
float: left;
width: 49%;
padding: 0;
margin: 0;
}
.column-wrapper {
overflow: hidden;
}
ul#mylistid{
width: 100%;
padding: 0;
Krueger Library custom JS/CSS code
10/02/13
}
li.subject_link {
padding:2px 0;
margin: 2px 6px;
list-style-type: none;
font-size: 1.15em !important;
}
li.subject_link:hover {
background: #eee;
cursor: pointer;
}
a.toggle_button {
text-decoration: none;
text-align: center;
color: #FFF;
background: #4B08A1;
border: 1px solid #ccc;
font-weight:bold;
margin: auto 6px auto 0;
padding:1px 3px;
display:inline-block;
width:15px;
cursor: pointer;
}
span.toggletext {
cursor: pointer;
}
ul.guide_links li {
margin:3px 3px 3px 26px;
list-style-type:disc;
}
ul.guide_links {
margin: 6px 0;
padding: 0;
Krueger Library custom JS/CSS code
10/02/13
line-height 1.5em;
}
</style>
<!-- jquery.columns was written by Karl Swedberg. See the file source for more
attribution information -->
<script
src="http://demo.libguides.com/data/custom/1/jquery.columns.js"></script>
<script type="text/javascript">
// Contributors: Dan Brubaker Horst, Laura J. Harris, thorbroo (#code4lib), Erin R.
White, Derik Badman.
// Code is licensed under a Creative Commons Atrribution license:
http://creativecommons.org/licenses/by/3.0/us
//compatibility mode for $ namespace (which might get used by other js libraries)
better to use jQuery in these cases
jQuery.noConflict();
// Wrapping with: (function($){ ...code...})(jQuery); replaces '$' with 'jQuery'.
(function($){
$(document).ready(function() {
$('#myScript').remove();
// creates the columns through the column plug loaded above
$('.mylist').columns({columns: 2});
// 'hide' function is called on each of the 'ul' elements with the class 'guide_links'
$('ul.guide_links').hide();
// DOM insert a link element inside of each of the subject list items.
$('li.subject_link').prepend('<a href="javascript://toggle guide links"
class="toggle_button">+</a>');
// enable toggle action on each Subject LI
$('li.subject_link').bind("click", function(){
// toggles text in the link between '+' and '-'.
if($(this).children('a.toggle_button').text() == '+'){
$(this).children('a.toggle_button').text('-');
} else {
$(this).children('a.toggle_button').text('+');
}
Krueger Library custom JS/CSS code
10/02/13
// Toggle the child 'ul' element
$(this).children('ul.guide_links').slideToggle("fast");
});
$('a.subject_link_a').contents().unwrap();
});
})(jQuery);
</script>

More Related Content

PDF
Sass - Making CSS fun again.
PPTX
Ch1(introduction to php)
DOCX
styleSample
PDF
Theming Ext JS 4
PDF
Sencha Touch
KEY
FCIP SASS Talk
PDF
Modular Stylesheets with Css Modules (Dublin CSS)
PPTX
CIESE Overview
Sass - Making CSS fun again.
Ch1(introduction to php)
styleSample
Theming Ext JS 4
Sencha Touch
FCIP SASS Talk
Modular Stylesheets with Css Modules (Dublin CSS)
CIESE Overview

Similar to Krueger Library Custom CSS for LibGuides (20)

DOC
Simple Blue Blog Template XML 的副本
PPTX
Css frameworks
DOCX
Doctype html publi
PDF
LessCSS Presentation @ April 2015 GTALUG Meeting
KEY
Demystifying CSS & WordPress
PDF
The New CSS Layout - Dutch PHP Conference
PDF
LESS is More
RTF
Document
RTF
Documento
PDF
css-ppt.pdf
PDF
CSCADING style sheet. Internal external inline
KEY
Beyond HTML - Scriptsprachen, Frameworks, Templatesprachen und vieles mehr
PDF
cdocumentsandsettingsstudentdesktopnewfolderhtmlcss-100220030010-phpapp01.pdf
PDF
Mobile-first OOCSS, Sass & Compass at BBC Responsive News
TXT
Slider goymon
PDF
GOTO Berlin - You can use CSS for that
PDF
Work and play with SASS & Compass
PPT
Introduction to css by programmerblog.net
DOCX
My discussion Student A A8 - Cross-Site Request Forgery (CSR.docx
TXT
This is a test
Simple Blue Blog Template XML 的副本
Css frameworks
Doctype html publi
LessCSS Presentation @ April 2015 GTALUG Meeting
Demystifying CSS & WordPress
The New CSS Layout - Dutch PHP Conference
LESS is More
Document
Documento
css-ppt.pdf
CSCADING style sheet. Internal external inline
Beyond HTML - Scriptsprachen, Frameworks, Templatesprachen und vieles mehr
cdocumentsandsettingsstudentdesktopnewfolderhtmlcss-100220030010-phpapp01.pdf
Mobile-first OOCSS, Sass & Compass at BBC Responsive News
Slider goymon
GOTO Berlin - You can use CSS for that
Work and play with SASS & Compass
Introduction to css by programmerblog.net
My discussion Student A A8 - Cross-Site Request Forgery (CSR.docx
This is a test
Ad

More from Tammi Owens (9)

PPTX
Emerge. Or, Thoughts of a Future Butterfly (LITA Forum 2014)
PPTX
Civic Action and the Library
PDF
Search Strategies for Nursing Students
PDF
Library Resources for Nursing Students
PPTX
Is it real or just a trace? Ownership, ephemerality, and materiality in socia...
PPTX
Find a Dissertation Using WorldCat: A step-by-step guide
PPTX
Just a Minute: Delivering quick tutorials at the point of need
PPTX
Find the full text of an article
PPTX
Managing sources
Emerge. Or, Thoughts of a Future Butterfly (LITA Forum 2014)
Civic Action and the Library
Search Strategies for Nursing Students
Library Resources for Nursing Students
Is it real or just a trace? Ownership, ephemerality, and materiality in socia...
Find a Dissertation Using WorldCat: A step-by-step guide
Just a Minute: Delivering quick tutorials at the point of need
Find the full text of an article
Managing sources
Ad

Recently uploaded (20)

PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Encapsulation theory and applications.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Big Data Technologies - Introduction.pptx
MIND Revenue Release Quarter 2 2025 Press Release
20250228 LYD VKU AI Blended-Learning.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Encapsulation theory and applications.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
The AUB Centre for AI in Media Proposal.docx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Understanding_Digital_Forensics_Presentation.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
sap open course for s4hana steps from ECC to s4
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Empathic Computing: Creating Shared Understanding
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Programs and apps: productivity, graphics, security and other tools
Reach Out and Touch Someone: Haptics and Empathic Computing
Encapsulation_ Review paper, used for researhc scholars
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Big Data Technologies - Introduction.pptx

Krueger Library Custom CSS for LibGuides

  • 1. Krueger Library custom JS/CSS code 10/02/13 <link rel="shortcut icon" href="http://www.winona.edu/favicon.ico" /> <style> /*hide location and today's hours text on hours box, old text color 5E5E5E*/ #hours-col-l, .hours-col-loc, #hours-col-t {display: none;} .hours-col-time {color:#000000; font: 18px Helvetica, Arial, sans-serif; font- weight: bold; padding: 0px 0px 10px 40px; position:relative;} /* change table of contents box */ .box_toc_page, .box_toc_subpage, .box_toc_current { font: 14px Helvetica, Arial, sans-serif; font-weight: bold; padding: 0 2px 4px 2px; } /* hide search box row and guide description */ .stitle, .guidedesc { display:none; } /*change guide title font and spacing*/ .guidetitle { font: 20px Helvetica, Arial, sans-serif; padding: 15px 0px 0px 0px; } /*change link color to WSU purple*/ a {color:#4B08A1;} /*tab customization*/ #tabsI, #tabs12 { font: 12px Helvetica, Arial, sans-serif; font-weight: bold; !important; text-transform: uppercase; background:transparent; float: left; padding: 0; margin: 0 0 15px -2px; position: relative; border-bottom:1px solid #BBB; width:990px;} #tabsI ul, #tabs12 ul {padding: 0;}
  • 2. Krueger Library custom JS/CSS code 10/02/13 #tabsI a, #tabs12 a {background:transparent;background- color:#F1F1F1;border:1px solid #ADADAD;border-bottom:0;padding: 3px 2px 3px 4px;margin-left:4px;border-radius: 2px 2px 0 0;-moz-border-radius: 2px 2px 0 0;-webkit-border-radius: 2px 2px 0 0;-khtml-border-radius: 2px 2px 0 0;} #tabsI #current a, #tabs12 #current a {color: #fff;font-weight: bold;background:transparent;background-color:#4B08A1;border:1px solid #777;border-bottom:0;} #tabsI a span, #tabs12 a span {background:transparent;color:#000;padding: 0 10px;} #tabsI #current a span, #tabs12 #current a span {color:#EEE; } #tabsI a:hover, #tabs12 a:hover {background:transparent;background- color:#888;border:1px solid #adadad;border-bottom:0;} #tabsI a span:hover, #tabs12 a span:hover {color:#fff;} .dropmenudiv {border:1px solid #BBB;} .dropmenudiv a {background-color:#EEE;font-color:#FFF;font-size:12px Helvetica, Arial, sans-serif; !important;} .dropmenudiv a:last-child {border-bottom:0;} .dropmenudiv a:hover {background:#4B08A1;color:#FFF;} /*box customization */ .headerbox h2 { font: 14px Helvetica, Arial, san-serif; !important; /* add this back in if you want the font bolded: font-weight: bold; */ text-transform: uppercase; color: #FFF; font-size: 14px; padding: 2px; } #container { background: #fafafa !important; } div.innerbox.roundbox {
  • 3. Krueger Library custom JS/CSS code 10/02/13 border-radius: 0px 0px 3px 3px !important; } div.roundbox.headerbox { background: #888888; border-radius: 3px 3px 0px 0px; } .outerbox { padding: 0px !important; background: transparent; border: 1px dotted #ddd; } .itemlist li { font-weight: bold !important; } .linklist li { font-weight: bold !important; } </style> <style type="text/css"> .column, .floatcols { float: left; width: 49%; padding: 0; margin: 0; } .column-wrapper { overflow: hidden; } ul#mylistid{ width: 100%; padding: 0;
  • 4. Krueger Library custom JS/CSS code 10/02/13 } li.subject_link { padding:2px 0; margin: 2px 6px; list-style-type: none; font-size: 1.15em !important; } li.subject_link:hover { background: #eee; cursor: pointer; } a.toggle_button { text-decoration: none; text-align: center; color: #FFF; background: #4B08A1; border: 1px solid #ccc; font-weight:bold; margin: auto 6px auto 0; padding:1px 3px; display:inline-block; width:15px; cursor: pointer; } span.toggletext { cursor: pointer; } ul.guide_links li { margin:3px 3px 3px 26px; list-style-type:disc; } ul.guide_links { margin: 6px 0; padding: 0;
  • 5. Krueger Library custom JS/CSS code 10/02/13 line-height 1.5em; } </style> <!-- jquery.columns was written by Karl Swedberg. See the file source for more attribution information --> <script src="http://demo.libguides.com/data/custom/1/jquery.columns.js"></script> <script type="text/javascript"> // Contributors: Dan Brubaker Horst, Laura J. Harris, thorbroo (#code4lib), Erin R. White, Derik Badman. // Code is licensed under a Creative Commons Atrribution license: http://creativecommons.org/licenses/by/3.0/us //compatibility mode for $ namespace (which might get used by other js libraries) better to use jQuery in these cases jQuery.noConflict(); // Wrapping with: (function($){ ...code...})(jQuery); replaces '$' with 'jQuery'. (function($){ $(document).ready(function() { $('#myScript').remove(); // creates the columns through the column plug loaded above $('.mylist').columns({columns: 2}); // 'hide' function is called on each of the 'ul' elements with the class 'guide_links' $('ul.guide_links').hide(); // DOM insert a link element inside of each of the subject list items. $('li.subject_link').prepend('<a href="javascript://toggle guide links" class="toggle_button">+</a>'); // enable toggle action on each Subject LI $('li.subject_link').bind("click", function(){ // toggles text in the link between '+' and '-'. if($(this).children('a.toggle_button').text() == '+'){ $(this).children('a.toggle_button').text('-'); } else { $(this).children('a.toggle_button').text('+'); }
  • 6. Krueger Library custom JS/CSS code 10/02/13 // Toggle the child 'ul' element $(this).children('ul.guide_links').slideToggle("fast"); }); $('a.subject_link_a').contents().unwrap(); }); })(jQuery); </script>