Skip to content

Commit d5f56ec

Browse files
author
Mat Mannion
committed
ID-126 Provide SVG versions of divider in multiple colours
1 parent 4c141a8 commit d5f56ec

File tree

63 files changed

+605
-16
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+605
-16
lines changed

dist/images/id6a-logotype.png

0 Bytes

dist/images/id6a-logotype@2x.png

0 Bytes

dist/images/logo-divider-blue.png

356 Bytes

dist/images/logo-divider-gold.png

1.63 KB

dist/images/logo-divider-gray.png

1.63 KB

dist/images/logo-divider-green.png

1.62 KB

dist/images/logo-divider-orange.png

1.63 KB

dist/images/logo-divider-purple.png

2.72 KB

dist/images/logo-divider-red.png

1.62 KB

dist/images/logo-no-descriptor.png

11.2 KB

dist/images/logo.png

15.4 KB
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes

dist/images/print-logo.png

0 Bytes

docs/assets/css/subsite.css

+189
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,112 @@
1+
.thumbnail > img,
2+
.thumbnail a > img,
3+
.carousel-inner > .item > img,
4+
.carousel-inner > .item > a > img {
5+
display: block;
6+
max-width: 100%;
7+
height: auto;
8+
}
9+
.btn-group-lg > .btn {
10+
padding: 10px 16px;
11+
font-size: 18px;
12+
line-height: 1.3333333;
13+
border-radius: 0px;
14+
}
15+
.btn-group-sm > .btn {
16+
padding: 5px 10px;
17+
font-size: 12px;
18+
line-height: 1.5;
19+
border-radius: 0px;
20+
}
21+
.btn-group-xs > .btn {
22+
padding: 1px 5px;
23+
font-size: 12px;
24+
line-height: 1.5;
25+
border-radius: 0px;
26+
}
27+
.dl-horizontal dd:before,
28+
.dl-horizontal dd:after,
29+
.container:before,
30+
.container:after,
31+
.container-fluid:before,
32+
.container-fluid:after,
33+
.row:before,
34+
.row:after,
35+
.form-horizontal .form-group:before,
36+
.form-horizontal .form-group:after,
37+
.btn-toolbar:before,
38+
.btn-toolbar:after,
39+
.btn-group-vertical > .btn-group:before,
40+
.btn-group-vertical > .btn-group:after,
41+
.nav:before,
42+
.nav:after,
43+
.navbar:before,
44+
.navbar:after,
45+
.navbar-header:before,
46+
.navbar-header:after,
47+
.navbar-collapse:before,
48+
.navbar-collapse:after,
49+
.pager:before,
50+
.pager:after,
51+
.panel-body:before,
52+
.panel-body:after,
53+
.modal-footer:before,
54+
.modal-footer:after,
55+
.id7-fixed-width-container:before,
56+
.id7-fixed-width-container:after,
57+
.id7-utility-bar:before,
58+
.id7-utility-bar:after,
59+
.id7-masthead:before,
60+
.id7-masthead:after,
61+
.id7-masthead .id7-masthead-contents:before,
62+
.id7-masthead .id7-masthead-contents:after,
63+
.id7-masthead .id7-logo-row:before,
64+
.id7-masthead .id7-logo-row:after,
65+
.id7-main-content-area > header:before,
66+
.id7-main-content-area > header:after,
67+
.id7-main-content-area > .id7-main-content:before,
68+
.id7-main-content-area > .id7-main-content:after,
69+
footer .id7-site-footer:before,
70+
footer .id7-site-footer:after,
71+
footer .id7-app-footer:before,
72+
footer .id7-app-footer:after {
73+
content: " ";
74+
display: table;
75+
}
76+
.dl-horizontal dd:after,
77+
.container:after,
78+
.container-fluid:after,
79+
.row:after,
80+
.form-horizontal .form-group:after,
81+
.btn-toolbar:after,
82+
.btn-group-vertical > .btn-group:after,
83+
.nav:after,
84+
.navbar:after,
85+
.navbar-header:after,
86+
.navbar-collapse:after,
87+
.pager:after,
88+
.panel-body:after,
89+
.modal-footer:after,
90+
.id7-fixed-width-container:after,
91+
.id7-utility-bar:after,
92+
.id7-masthead:after,
93+
.id7-masthead .id7-masthead-contents:after,
94+
.id7-masthead .id7-logo-row:after,
95+
.id7-main-content-area > header:after,
96+
.id7-main-content-area > .id7-main-content:after,
97+
footer .id7-site-footer:after,
98+
footer .id7-app-footer:after {
99+
clear: both;
100+
}
101+
.btn-group-lg > .btn {
102+
border-radius: 6px;
103+
}
104+
.btn-group-sm > .btn {
105+
border-radius: 3px;
106+
}
107+
.btn-group-xs > .btn {
108+
border-radius: 3px;
109+
}
1110
.id7-main-content-area .row-spacer > [class*='col-'] {
2111
padding-top: 20px;
3112
padding-bottom: 20px;
@@ -347,3 +456,83 @@ html.no-not-selector .id7-main-content-area .slideshow .carousel-controls a:acti
347456
top: auto;
348457
left: auto;
349458
}
459+
ul.branded {
460+
padding-left: 0;
461+
list-style: none;
462+
}
463+
ul.branded > li {
464+
font-weight: bold;
465+
}
466+
ul.branded > li:before {
467+
display: inline-block;
468+
font: normal normal normal 14px/1 FontAwesome;
469+
font-size: inherit;
470+
text-rendering: auto;
471+
-webkit-font-smoothing: antialiased;
472+
-moz-osx-font-smoothing: grayscale;
473+
-webkit-transform: translate(0, 0);
474+
-ms-transform: translate(0, 0);
475+
-o-transform: translate(0, 0);
476+
transform: translate(0, 0);
477+
font-size: 12px;
478+
content: "\f04b";
479+
margin-right: 7.33333333px;
480+
position: relative;
481+
top: -1.5px;
482+
}
483+
ul.branded > li:before.pull-left {
484+
margin-right: .3em;
485+
}
486+
ul.branded > li:before.pull-right {
487+
margin-left: .3em;
488+
}
489+
ul.branded > li:nth-child(7n + 1):before {
490+
color: #5b3069;
491+
}
492+
ul.branded > li:nth-child(7n + 2):before {
493+
color: #996b00;
494+
}
495+
ul.branded > li:nth-child(7n + 3):before {
496+
color: #89102c;
497+
}
498+
ul.branded > li:nth-child(7n + 4):before {
499+
color: #797906;
500+
}
501+
ul.branded > li:nth-child(7n + 5):before {
502+
color: #204f79;
503+
}
504+
ul.branded > li:nth-child(7n + 6):before {
505+
color: #be410c;
506+
}
507+
ul.branded > li:nth-child(7n + 7):before {
508+
color: #3f4246;
509+
}
510+
blockquote.branded {
511+
border-left: none;
512+
padding: 11px;
513+
color: #5b3069;
514+
border-top: 1px solid #5b3069;
515+
background: url(/dist/images/logo-divider-purple.svg) right bottom no-repeat;
516+
-webkit-background-size: 1130px 41px;
517+
background-size: 1130px 41px;
518+
padding-bottom: 40px;
519+
position: relative;
520+
}
521+
blockquote.branded footer {
522+
color: inherit;
523+
}
524+
blockquote.branded footer:before {
525+
content: none;
526+
}
527+
blockquote.branded footer cite {
528+
font-style: normal;
529+
}
530+
blockquote.branded footer {
531+
position: absolute;
532+
left: 0px;
533+
height: 40px;
534+
overflow: hidden;
535+
font-size: 75%;
536+
line-height: 1.5;
537+
padding: 3px 0;
538+
}

docs/assets/css/subsite.less

+59-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
@import '../../../less/bootstrap/variables.less';
2-
@import '../../../less/bootstrap/mixins.less';
3-
@import '../../../less/variables.less';
4-
@import '../../../less/mixins.less';
1+
@import (reference) '../../../less/id7.less';
52

63
.id7-main-content-area {
74
.row-spacer {
@@ -210,4 +207,62 @@
210207
left: auto;
211208
}
212209
}
210+
}
211+
212+
ul.branded {
213+
.list-unstyled;
214+
215+
> li {
216+
font-weight: bold;
217+
218+
&:before {
219+
.fa();
220+
221+
font-size: 12px;
222+
content: @fa-var-play;
223+
margin-right: (@line-height-computed / 3);
224+
225+
position: relative;
226+
top: -1.5px;
227+
}
228+
229+
&:nth-child(7n + 1):before { color: @id7-brand-purple; }
230+
&:nth-child(7n + 2):before { color: @id7-brand-gold; }
231+
&:nth-child(7n + 3):before { color: @id7-brand-red; }
232+
&:nth-child(7n + 4):before { color: @id7-brand-green; }
233+
&:nth-child(7n + 5):before { color: @id7-brand-blue; }
234+
&:nth-child(7n + 6):before { color: @id7-brand-orange; }
235+
&:nth-child(7n + 7):before { color: @id7-brand-gray; }
236+
}
237+
}
238+
239+
blockquote.branded {
240+
border-left: none;
241+
padding: (@line-height-computed / 2);
242+
243+
color: @id7-brand-default;
244+
border-top: 1px solid @id7-brand-default;
245+
background: url(/dist/images/logo-divider-purple.svg) right bottom no-repeat;
246+
background-size: 1130px 41px;
247+
248+
footer {
249+
color: inherit;
250+
&:before { content: none; }
251+
252+
cite {
253+
font-style: normal;
254+
}
255+
}
256+
257+
padding-bottom: @grid-gutter-width;
258+
position: relative;
259+
footer {
260+
position: absolute;
261+
left: 0px;
262+
height: @grid-gutter-width;
263+
overflow: hidden;
264+
font-size: 75%;
265+
line-height: @line-height-small;
266+
padding: 3px 0;
267+
}
213268
}

docs/examples/branding.html

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
layout: default
3+
title: Branding components
4+
slug: examples/subsite-branding
5+
---
6+
7+
<h2>What if you wanted to find out more about our brand?</h2>
8+
9+
<h2>You can.</h2>
10+
11+
<div class="row">
12+
<section class="col-sm-6">
13+
<p>Have a look at our web pages where you can:</p>
14+
15+
<ul class="branded">
16+
<li>Find out more about our brand events</li>
17+
<li>Download our tone of voice guidelines</li>
18+
<li>Access our house style</li>
19+
<li>Use our brand toolkit</li>
20+
</ul>
21+
22+
<p>If you want any more information or support, contact the marketing team: <a href="mailto:marketing@warwick.ac.uk">marketing@warwick.ac.uk</a></p>
23+
</section>
24+
<section class="col-sm-6">
25+
<p>Staff can attend information sessions including:</p>
26+
27+
<ul class="branded">
28+
<li>Copywriting training</li>
29+
<li>Window on Warwick</li>
30+
<li>Warwick 365</li>
31+
<li>Brand surgeries</li>
32+
</ul>
33+
34+
<blockquote class="branded">
35+
<p>"You'll come here with lots of ideas...challenging thoughts, we'll bring focus to those thoughts and then
36+
you can take them with you into the outside world."</p>
37+
38+
<footer>
39+
<cite>
40+
<strong>Current student</strong><br>
41+
Brand development focus group
42+
</cite>
43+
</footer>
44+
</blockquote>
45+
46+
<p>Another line of text to check that the spacing is right.</p>
47+
</section>
48+
</div>

images/generate-assets.sh

+9-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,12 @@
2121
./svg-to-png.sh print-logo.svg 142 82 print-logo.png false
2222

2323
./svg-to-png.sh logo-with-descriptor-purple.svg 600 398 logo.png false
24-
./svg-to-png.sh logo-purple.svg 600 347 logo-no-descriptor.png false
24+
./svg-to-png.sh logo-purple.svg 600 347 logo-no-descriptor.png false
25+
26+
./svg-to-png.sh logo-divider-purple.svg 1130 40 logo-divider-purple.png false
27+
./svg-to-png.sh logo-divider-gray.svg 1130 40 logo-divider-gray.png false
28+
./svg-to-png.sh logo-divider-gold.svg 1130 40 logo-divider-gold.png false
29+
./svg-to-png.sh logo-divider-orange.svg 1130 40 logo-divider-orange.png false
30+
./svg-to-png.sh logo-divider-red.svg 1130 40 logo-divider-red.png false
31+
./svg-to-png.sh logo-divider-green.svg 1130 40 logo-divider-green.png false
32+
./svg-to-png.sh logo-divider-blue.svg 1130 40 logo-divider-blue.png false

images/id6a-logotype.png

0 Bytes

images/id6a-logotype@2x.png

0 Bytes

images/logo-divider-blue.png

356 Bytes

images/logo-divider-blue.svg

+15

images/logo-divider-gold.png

1.63 KB

images/logo-divider-gold.svg

+5

images/logo-divider-gray.png

1.63 KB

images/logo-divider-gray.svg

+5

images/logo-divider-green.png

1.62 KB

images/logo-divider-green.svg

+5

images/logo-divider-orange.png

1.63 KB

images/logo-divider-orange.svg

+5

images/logo-divider-purple.png

2.72 KB

images/logo-divider-purple.svg

+5

images/logo-divider-red.png

1.62 KB

images/logo-divider-red.svg

+5

0 commit comments

Comments
 (0)