-
Notifications
You must be signed in to change notification settings - Fork 2
/
LibAnswers_custom_css_js.html
176 lines (153 loc) · 5.15 KB
/
LibAnswers_custom_css_js.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!--link rel="stylesheet" href="//library.bc.edu/css/style_clean.css"/-->
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i"/>
<link rel="stylesheet" href="https://library.bc.edu/sass/libguides.css"/>
<style>
body {
background: #fff 0% 0%;
font-family: 'Open Sans', Arial, sans-serif;
color: #000;
font-size: 15px;
padding: 0;
line-height: 1.75;
}
a, a:visited, .ui-widget-content a, .ui-widget-content a:visited {
/*color: #990000;*/
color:#337ab7;
font-weight: normal;
}
/*.homepagerefresh #lib-footer a {font-weight:300;}*/
p {font-weight:inherit;}
h1, h2, h3, h4, h5, h6 {
font-weight: normal;
text-transform:none;
color:#000;
}
h4, h5, h6 {font-weight: 600;}
.homepagerefresh #lib-footer h4 a {font-weight:700;}
.homepagerefresh #lib-footer h4.orgname {margin:0 0 10px 0!important;}
.homepagerefresh #lib-footer h4 {margin:0 0 5px!important;}
.homepagerefresh .col-md-12:first-of-type,
.homepagerefresh .col-md-3:first-of-type,
.homepagerefresh .col-md-4:first-of-type,
.homepagerefresh .col-md-6:first-of-type {padding-left: 15px;}
.homepagerefresh .col-md-12:last-of-type,
.homepagerefresh .col-md-3:last-of-type,
.homepagerefresh .col-md-4:last-of-type,
.homepagerefresh .col-md-6:last-of-type {padding-right:15px;}
#block_search .input-group-addon, .input-group-btn {width:1%;}
#s-la-browsebar-collapse .navbar-nav {margin:8px 10px;}
.navbar-default .navbar-nav > li > a {color:#337ab7;}
#socialmedia {margin:inherit;}
.quick-links a {font-weight:inherit;}
.homepagerefresh .bottom_row {background-color:#fff;}
.more a {
background: inherit;
display: inline;
padding: 0;
width: auto;
border-bottom: none;
}
/* override bc style table default */
td, th {padding:0;}
table, th, td {border:none;}
td {vertical-align: middle;}
.highlight-box-blue {
padding: 10px 0 20px 20px;
border: 1px solid #e7e7e7;
background-color: aliceblue;
border-radius: 4px;
-moz-border-radius: 4px;
margin-bottom: 10px;
}
.breadcrumb {
background-image: none;
}
#s-la-bc {margin-top:60px;}
#s-la-public-footer {
padding: 0;
border: 0;
background-color: #fff;
background-image: none;
}
#s-la-footer-brand {display:none;}
#s-la-footer-admin-links {
text-align: right;
width: 100%;
padding-top: 5em;
}
/* hide public banner */
#s-la-public-banner {display: none;}
/* override */
.col-md-12:last-of-type, .col-md-3:last-of-type, .col-md-4:last-of-type, .col-md-6:last-of-type {
padding-right: 15px;
padding-left: 15px;
}
.row {
margin-right: -15px;
margin-left: -15px;
}
footer {
margin-top: 1em;
}
/* overwrite LibAnswers default styles */
a:not(.btn,.collapsible-toggle,.accordion-toggle) {text-decoration: none;}
/* make sure hidden fields are not displayed on homepage form */
fieldset#s-la-askform-section-1932 {display:none;}
</style>
<script>
$(document).ready(function(){
/* */
/* UPDATE BREADCRUMBS */
/* */
//if(window.location.pathname.indexOf('/reserve/') == 0){
// $("ol.breadcrumb li:nth-child(2)").hide();
//}
/* */
/* RENAME LOGIN LINK */
/* */
var logintext = $("#s-la-footer-login-link a").text();
if (logintext && logintext.length && logintext === "Login to LibApps") {
$("#s-la-footer-login-link a").text("Staff login");
}
/* */
/* CONVERT SIDE NAV INTO DROPDOWN ON MOBILE */
/* */
var myNavID = "nav";
/* For each nav menu, create a corresponding drop down menu */
$("nav.drop-down").each(function(){
if ($(this).attr("id")) {
myNavID = "nav#" + $(this).attr("id");
}
//console.log("navID " + myNavID);
sel = $(this).find(".nav-mobile");
if (sel.length == 0){
/* Create the dropdown base */
$("<select class='nav-mobile' />").appendTo(myNavID);
sel = $(this).find(".nav-mobile");
}
/* Create default option "Go to..." */
$("<option />", {
"selected": "selected",
"value" : "",
"text" : "Go to..."
}).appendTo(sel);
/* Populate dropdown with menu items */
$(myNavID + " a").each(function() {
var el = $(this);
var myText = el.text();
if ($(el).parents(".s-lg-subtab-ul").length > 0) {
myText = "> " + el.text();
}
$("<option />", {
"value" : el.attr("href"),
"text" : myText
}).appendTo(sel);
});
/* To make dropdown actually work
// To make more unobtrusive: http://css-tricks.com/4064-unobtrusive-page-changer/ */
$(sel).change(function() {
window.location = $(this).find("option:selected").val();
});
});
});
</script>