/
index.html
executable file
·236 lines (198 loc) · 7.18 KB
/
index.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
<!doctype html>
<html class="no-js aui bcc-aui" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Pattern Library | Bristol City Council</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/Uniform.js/2.1.2/jquery.uniform.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/2.0.0/handlebars.min.js"></script>
<link rel="stylesheet" href="/css/common.css">
<script>ga=function(){};</script>
</head>
<body>
<div class="wr__mobnav">
<div class="mini-logo">
<a href="/">
<img src="/images/logo-bcc-white.png" alt="">
</a>
</div>
<div class="nav-launch"></div>
</div>
<div class="wr__header">
<div class="wr__logo">
<a href="/">
<img src="/images/logo-bcc.png" alt="">
</a>
</div>
<div class="wr__nav">
<div class="wr__group">
<ul>
<li class="bcc-header__menu-item bcc-header__menu-item--active">
<a href="/">
Home
</a>
</li>
</ul>
</div>
<div class="wr__group">
<header>
<span>Patterns</span>
</header>
<ul>
<li class="bcc-header__menu-item ">
<a href="/patterns/buttons">Buttons</a>
</li>
<li class="bcc-header__menu-item ">
<a href="/patterns/colours">Colours</a>
</li>
<li class="bcc-header__menu-item ">
<a href="/patterns/forms">Forms</a>
</li>
<li class="bcc-header__menu-item ">
<a href="/patterns/headers">Headers</a>
</li>
<li class="bcc-header__menu-item ">
<a href="/patterns/icons">Icons</a>
</li>
<li class="bcc-header__menu-item ">
<a href="/patterns/navigation">Navigation</a>
</li>
<li class="bcc-header__menu-item ">
<a href="/patterns/panels">Panels</a>
</li>
<li class="bcc-header__menu-item ">
<a href="/patterns/type">Type</a>
</li>
<li class="bcc-header__menu-item ">
<a href="/patterns/validation">Validation</a>
</li>
</ul>
</div>
<div class="wr__group">
<header>
<span>Examples</span>
</header>
<ul>
<li class="bcc-header__menu-item ">
<a href="/example/project">
Webpages
</a>
</li>
<li class="bcc-header__menu-item ">
<a href="/example/emails">
Emails
</a>
</li>
</ul>
</div>
<div class="wr__group">
<header>
<span>Documentation</span>
</header>
<ul>
<li class="bcc-header__menu-item ">
<a href="/documentation">
Getting started
</a>
</li>
</ul>
</div>
<br>
<br>
<br>
</div>
</div>
<div class="wr__page-content">
<!-- Add classes across PL -->
<h1 class="pl__title">Home</h1>
<hr class="pl__rule" />
<p>This pattern library represents a standard set of web components / patterns that has been designed and built
through user testing, accessibility testing and meeting the Bristol City Council frontend coding guidelines. It is not exhaustive and should not be viewed as being exhaustive; it's a living, breathing, pull-request loving, store of how we, as an organisation aim to build and craft our web experiences.</p>
<p>It is released under a MIT license, apart from misuse of the Bristol City Council logo is open and free software. Here is how you can <a href="/documentation">get started</a>. If you find this useful, we'd love to hear about it @<a target="_blank" href="https://twitter.com/BristolCouncil">BristolCouncil.</a></p>
<p>
You can find examples of our <a href="/patterns/buttons">common elements</a> as well as some examples of how our elements are used <a href="/example/project">within pages</a>.
</p>
<p>If you find a bug or have an improvement, please do <a href="https://github.com/BristolCityCouncil/web_styles">fork this project on github.</a> </p>
<p>Thank you,<br/> <strong>Bristol City Council</strong></p><!-- load ace -->
<!-- ace-mode="ace/mode/css" ace-theme="ace/theme/chrome" ace-gutter="true" -->
<script src="/ace-builds/src/ace.js"></script>
<!-- load ace static_highlight extension -->
<script src="/ace-builds/src/ext-static_highlight.js"></script>
<script>
var source = function($el){
$l = $("<div/>").text(
$el.html()
).html();
return $l;
};
$(".wr__code pre").each(function(){
$(this).addClass('language-markup');
$(this).empty();
$(this).html(
source(
$(this).closest('.pattern')
.find('.wr__example').next()
)
);
});
var highlight = ace.require("ace/ext/static_highlight")
var dom = ace.require("ace/lib/dom")
function qsa(sel) {
return Array.apply(null, document.querySelectorAll(sel));
}
qsa(".language-markup").forEach(function (codeEl) {
highlight(codeEl, {
mode: "ace/mode/html",
theme: "ace/theme/github",
startLineNumber: 0,
showGutter: false,
trim: true,
wrap: false,
}, function (highlighted) {
});
});
</script>
<style type="text/css">
pre[class*="language-"], .lt-ie9 pre {
overflow: auto;
}
.ace_static_highlight .ace_line {
white-space: nowrap;
word-wrap: normal;
}
</style>
</div>
<script>
var ie7 = false;
</script>
<!--[if IE 7]> <script>ie7=true;</script> <![endif]-->
<!-- <script src="/bcc-beta-theme/dev.js"></script>
<script src="/bcc-beta-theme/js/main.js"></script> -->
<script src="/bcc-beta-theme/js/main.pack.js"></script>
<!-- <script src="/js/vendor/prism.js"></script> -->
<script>
// you can register settings like this before require.js is loaded
$(function() {
// console.log("load");
$('.nav-launch').on('click', function() {
$('body').toggleClass('visible-header');
});
$('.wr__dropdown select').change(function() {
//console.log("change: .wr__dropdown <select>");
var targetVal = $(this).val();
var targetPosition = $(targetVal).offset().top;
$('html,body').animate({
scrollTop: targetPosition
}, 'slow');
window.location.hash = targetVal;
});
});
</script>
</body>
</html>