-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfull-width-bounded-region.html
291 lines (283 loc) · 12.2 KB
/
full-width-bounded-region.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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
<!DOCTYPE html>
<!--[if IEMobile 7]><html class="iem7 oldie" lang="en"><![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="ie7 oldie" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="ie8 oldie" lang="en"><![endif]-->
<!--[if (IE 9)&!(IEMobile)]><html class="ie9" lang="en"><![endif]-->
<!--[[if (gt IE 9)|(gt IEMobile 7)]><!--><html lang="en"><!--<![endif]-->
<!--
* UBC CLF (Common Look and Feel) v7.0.4
* Copyright 2012 The University of British Columbia
* UBC Communications and Marketing
* http://brand.ubc.ca/clf
*/
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>The University of British Columbia</title>
<meta name="viewport" content="width=device-width">
<meta name="description" content="">
<meta name="author" content="">
<!-- Stylesheets -->
<link href="//cdn.ubc.ca/clf/7.0.4/css/ubc-clf-full.min.css" rel="stylesheet">
<link href="css/unit.css" rel="stylesheet">
<!--[if lte IE 7]>
<link href="//cdn.ubc.ca/clf/7.0.4/css/font-awesome-ie7.css" rel="stylesheet">
<![endif]-->
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
<link rel="shortcut icon" href="//cdn.ubc.ca/clf/7.0.4/img/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="//cdn.ubc.ca/clf/7.0.4/img/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="//cdn.ubc.ca/clf/7.0.4/img/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="//cdn.ubc.ca/clf/7.0.4/img/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="//cdn.ubc.ca/clf/7.0.4/img/apple-touch-icon-57-precomposed.png">
<style type="text/css">
.ubc-menu .container,
.full-width-container .bound {
max-width: 940px;
margin-left: auto;
margin-right: auto;
padding-left: 0;
padding-right: 0;
}
@media screen and (min-width: 1200px) {
.ubc-menu .container,
.full-width-container .bound {
max-width: 1170px;
}
}
@media screen and (max-width: 979px) {
/* This class adds the padding back in */
.full-width-container .bound {
padding-left: 20px;
padding-right: 20px;
width: auto;
}
}
</style>
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXX-X']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body class="full-width">
<!-- UBC Global Utility Menu -->
<div class="collapse expand" id="ubc7-global-menu">
<div id="ubc7-search" class="expand">
<div class="container">
<div id="ubc7-search-box">
<form class="form-search" method="get" action="//www.ubc.ca/search/refine/" role="search">
<input type="text" name="q" placeholder="Search this website" class="input-xlarge search-query">
<input type="hidden" name="label" value="Search UBC" />
<input type="hidden" name="site" value="*.ubc.ca" />
<button type="submit" class="btn">Search</button>
</form>
</div>
</div>
</div>
<div class="container">
<div id="ubc7-global-header" class="expand">
<!-- Global Utility Header from CDN -->
</div>
</div>
</div>
<!-- End of UBC Global Utility Menu -->
<!-- UBC Header -->
<header id="ubc7-header" class="row-fluid expand" role="banner">
<div class="container">
<div class="span1">
<div id="ubc7-logo">
<a href="//www.ubc.ca">The University of British Columbia</a>
</div>
</div>
<div class="span2">
<div id="ubc7-apom">
<a href="//cdn.ubc.ca/clf/ref/aplaceofmind">UBC - A Place of Mind</a>
</div>
</div>
<div class="span9" id="ubc7-wordmark-block">
<div id="ubc7-wordmark">
<a href="//www.ubc.ca">The University of British Columbia</a>
<span class="ubc7-campus" id="ubc7-vancouver-campus">Vancouver campus</span>
</div>
<div id="ubc7-global-utility">
<button type="button" data-toggle="collapse" data-target="#ubc7-global-menu"><span>UBC Search</span></button>
<noscript><a id="ubc7-global-utility-no-script" href="//www.ubc.ca/">UBC Search</a></noscript>
</div>
</div>
</div>
</header>
<!-- End of UBC Header -->
<!-- UBC Unit Identifier -->
<div id="ubc7-unit" class="row-fluid expand">
<div class="container">
<div class="span12">
<!-- Mobile Menu Icon -->
<div class="navbar">
<a class="btn btn-navbar" data-toggle="collapse" data-target="#ubc7-unit-navigation">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
</div>
<!-- Read more about Unit Name Treatment on http://brand.ubc.ca/clf -->
<!-- No Faculty Treatment --><!--<div id="ubc7-unit-name" class="ubc7-single-element"> -->
<div id="ubc7-unit-name">
<a href="/"><span id="ubc7-unit-faculty">Faculty Name</span><span id="ubc7-unit-identifier">Unit Name</span></a>
</div>
</div>
</div>
</div>
<!-- End of UBC Unit Identifier -->
<!-- UBC Unit Navigation -->
<div id="ubc7-unit-menu" class="navbar expand" role="navigation">
<div class="navbar-inner expand">
<div class="container">
<div class="nav-collapse collapse" id="ubc7-unit-navigation">
<ul class="nav">
<li class="active"><a href="/">Home</a></li>
<li><a href="#">First Link</a></li>
<li><a href="#">Second Link</a></li>
<li><a href="#">Third Link</a></li>
<li class="dropdown">
<div class="btn-group">
<a class="btn" href="//www.ubc.ca/">Dropdown</a>
<button class="btn dropdown-toggle" data-toggle="dropdown"><span class="ubc7-arrow blue down-arrow"></span></button>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else</a></li>
<li class="nav-header">Navigation header</li>
<li><a href="#">Separated link</a></li>
<li><a href="#">One more separated link</a></li>
</ul>
</div>
</li>
</ul>
</div><!-- /.nav-collapse -->
</div>
</div><!-- /navbar-inner -->
</div><!-- /navbar -->
<!-- End of UBC Unit Navigation -->
<div class="full-width-container no-padding">
<!-- UBC Unit Breadcrumbs -->
<ul class="breadcrumb expand">
<li>
<a href="#">Faculty Name</a> <span class="divider">/</span>
</li>
<li>
<a href="#">Unit Name</a> <span class="divider">/</span>
</li>
<li class="active">Page Name</li>
</ul>
<!-- End of UBC Unit Breadcrumbs -->
<!-- Content Area -->
<div class="content expand" role="main">
<div class="row-fluid">
<div class="bound">
<div class="span12">
<h3>Center align and bound content</h3>
<p>Just like this region</p>
<h4>HTML:</h4>
<pre><div class=“row-fluid”><br /> <div class=“<b>bound</b>”><br /> <div class=“span12”><br /> <i>Content</i><br /> </div><br /> </div><br /></div>
</pre>
<h4>CSS:</h4>
<pre>.ubc-menu .container, /* Center align for menu */
.full-width-container .bound {
max-width: 940px;
margin-left: auto;
margin-right: auto;
padding-left: 0;
padding-right: 0;
}
@media screen and (min-width: 1200px) {
.ubc-menu .container,
.full-width-container .bound {
max-width: 1170px;
}
}
@media screen and (max-width: 979px) {
/* This class adds the padding back in for mobile/tablet view*/
.full-width-container .bound {
padding-left: 20px;
padding-right: 20px;
width: auto;
}
}</pre>
</div>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<h3>Region without “Bound” will be expand to full width. Best to mix with <i>no-padding</i> CSS rules and class to allow this region flush to window's width</h3>
<p>Content will be expand to full width, while maintain the twelve columns grid behaviour</p>
<div style="padding-bottom: 300px; background: #ECECEC"></div>
</div>
</div>
</div>
</div>
<!-- End of Content Area -->
</div>
<footer id="ubc7-footer" class="expand" role="contentinfo">
<div class="row-fluid expand" id="ubc7-unit-footer">
<div class="container">
<div class="span10" id="ubc7-unit-address">
<div id="ubc7-address-unit-name">Unit Name</div>
<div id="ubc7-address-campus">Vancouver Campus | Okanagan Campus</div>
<div id="ubc7-address-street">1234 Street Name</div>
<div id="ubc7-address-location">
<span id="ubc7-address-city">Vancouver | Kelowna</span>, <span id="ubc7-address-province">BC</span> <span id="ubc7-address-country">Canada</span> <span id="ubc7-address-postal">V0V 0V0</span>
</div>
<div id="ubc7-address-phone">Tel XXX XXX XXXX</div>
<div id="ubc7-address-email">E-mail [email protected]</div>
</div>
<div class="span2">
<strong>Find us on</strong>
<div id="ubc7-unit-social-icons">
<a href="//www.ubc.ca/"><i class="icon-facebook-sign"></i></a>
<a href="//www.ubc.ca/"><i class="icon-twitter-sign"></i></a>
</div>
</div>
</div>
</div>
<div class="row-fluid expand ubc7-back-to-top">
<div class="container">
<div class="span2">
<a href="#">Back to top <div class="ubc7-arrow up-arrow grey"></div></a>
</div>
</div>
</div>
<div class="row-fluid expand" id="ubc7-global-footer">
<div class="container">
<div class="span5" id="ubc7-signature"><a href="//www.ubc.ca/">The University of British Columbia</a></div>
<div class="span7" id="ubc7-footer-menu">
</div>
</div>
</div>
<div class="row-fluid expand" id="ubc7-minimal-footer">
<div class="container">
<div class="span12">
<ul>
<li><a href="//cdn.ubc.ca/clf/ref/emergency">Emergency Procedures</a> <span class="divider">|</span></li>
<li><a href="//cdn.ubc.ca/clf/ref/terms">Terms of Use</a> <span class="divider">|</span></li>
<li><a href="//cdn.ubc.ca/clf/ref/copyright">Copyright</a> <span class="divider">|</span></li>
<li><a href="//cdn.ubc.ca/clf/ref/accessibility">Accessibility</a></li>
</ul>
</div>
</div>
</div>
</footer>
<!-- Placed javascript at the end for faster loading -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="//cdn.ubc.ca/clf/7.0.4/js/ubc-clf.min.js"></script>
</body>
</html>