Skip to navigation Skip to search

Hailsham Town Council Pattern Library

Coding Style

CSS

The CSS for this website is written using SCSS for preprocessing. Gulp sass handles the compiling, check out the Gulpfile.js within the theme for more information.

Using ITCSS as a methodology, the CSS is designed to be as passive and non-specific as possible. It is broken down into the following chunks with each section becoming more specific as you head down the list:

  1. Settings
  2. Tools
  3. Generic
  4. Elements
  5. Objects
  6. Components
  7. Trumps

When expanding the site, try to analyse the element to ensure the CSS is placed in the correct area(s).

  • Only use classes, no IDs please
  • Use tabs for indentation
  • Mobile-up media queries
  • Class naming conventions (BEM like):
    • module
    • module-sub-element
    • module modifier or module module-modifier

Example

.class {
	text-transform: uppercase;
	border-radius: 0;
	@include bold;
	padding: 1rem 3.3rem 1rem 1.5rem;
	margin: 0;
	border: 0;
}

HTML

The site has been built using the Atomic Design concepts put forward by Brad Frost. Individual elements are atoms, they group together to become molecules, organisms, templates and finally pages. Each element is modular, therefore it should not be assumed that the element will appear on one page or in one place only.

Color - Hex and Sass variables

  • #005386 - $blue
  • #2B9749 - $green
  • #237D3C - $greenDark
  • #990000 - $red
  • #E5711A - $orange
  • #7D0066 - $purple
  • #545454 - $grey
  • #333333 - $greyDeep
  • #DCDCDC - $greyLine
  • #EAEAEA - $greyLight

Atom - Headings

Primary-Level Heading Linked

The h1 element is used as the main heading and should only be used once per page.

Second-Level Heading Linked

The h2 element is used as the secondary heading, which may be used for any form of important page-level header.

Third-Level Heading Linked

The h3 element can be used as a heading that falls below the h2 heading in the document hierarchy.

Fourth-Level Heading Linked

The h4 element can be used as a heading that falls below the h3 heading in the document hierarchy.

Fifth-Level Heading Linked

The h5 element can be used as a heading that falls below the h4 heading in the document hierarchy.

Sixth-Level Heading Linked

The h6 element can be used as a heading that falls below the h5 heading in the document hierarchy.

Atom - Content (with .content parent class)

Second-Level Heading Linked

Third-Level Heading Linked

Fourth-Level Heading Linked

Fifth-Level Heading Linked
Sixth-Level Heading Linked

Paragraphs

Paragraphs are wrapped in p tags and will usually make up the majority of website content.

Horizontal rule

The hr element represents a thematic break between paragraph-level elements, e.g. a scene change in a story, or a topic-shift within a section. This example from Alice's Adventures in Wonderland. Lewis Carroll, 1832-98, demonstrates this element.

As they walked off together, Alice heard the King say in a low voice, to the company generally, "You are all pardoned."
"Come, that's a good thing!" she said to herself, for she had felt quite unhappy at the number of executions the Queen had ordered.


They very soon came upon a Gryphon, lying fast asleep in the sun.

Blockquotes

The blockquote element represents a section that is being quoted from another source.

Many forms of Government have been tried, and will be tried in this world of sin and woe. No one pretends that democracy is perfect or all-wise. Indeed, it has been said that democracy is the worst form of government except all those other forms that have been tried from time to time.

Winston Churchill, in a speech to the House of Commons. 11th November 1947

Ordered list

The ol element denotes an ordered list, and various numbering schemes are available through the CSS (including 1,2,3… a,b,c… i,ii,iii… and so on). Each item requires a surrounding <li> and </li> tag, to denote individual items within the list (as you may have guessed, li stands for list item).

  1. This is an ordered list.
  2. This is the second item, which contains a sub list
    1. This is the sub list, which is also ordered.
    2. It has two items.
  3. This is the final item on this list.

Unordered list

The ul element denotes an unordered list (ie. a list of loose items that don’t require numbering, or a bulleted list). Again, each item requires a surrounding <li> and </li> tag, to denote individual items. Here is an example list showing the constituent parts of the British Isles:

  • United Kingdom of Great Britain and Northern Ireland:
    • England
    • Scotland
    • Wales
    • Northern Ireland
  • Republic of Ireland
  • Isle of Man
  • Channel Islands:
    • Bailiwick of Guernsey
    • Bailiwick of Jersey

Definition list

The dl element is for another type of list called a definition list. Instead of list items, the content of a dl consists of dt (Definition Term) and dd (Definition description) pairs. Though it may be called a “definition list”, dl can apply to other scenarios where a parent/child relationship is applicable. For example, it may be used for marking up dialogues, with each dt naming a speaker, and each dd containing his or her words.

This is a term.
This is the definition of that term, which both live in a dl.
Here is another term.
And it gets a definition too, which is this line.
Here is term that shares a definition with the term below.
Here is a defined term.
dt terms may stand on their own without an accompanying dd, but in that case they share descriptions with the next available dt. You may not have a dd without a parent dt.

Quotes

The blockquote element should be used to denote quotations. The cite element can be used in conjunction to denote the quote author:

Many forms of Government have been tried, and will be tried in this world of sin and woe. No one pretends that democracy is perfect or all-wise. Indeed, it has been said that democracy is the worst form of government except all those other forms that have been tried from time to time.

Winston Churchill, in a speech to the House of Commons. 11th November 1947

Atoms - Text-level Semantics

There are a number of inline HTML elements you may use anywhere within other elements.

Links and anchors

The a element is used to hyperlink text, be that to another page, a named fragment on the current page or any other location on the web. Example:

Stressed emphasis

The em element is used to denote text with stressed emphasis, i.e., something you’d pronounce differently. Where italicizing is required for stylistic differentiation, the i element may be preferable. Example:

You simply must try the negitoro maki!

Strong importance

The strong element is used to denote text with strong importance. Where bolding is used for stylistic differentiation, the b element may be preferable. Example:

Don’t stick nails in the electrical outlet.

Small print

The small element is used to represent disclaimers, caveats, legal restrictions, or copyrights (commonly referred to as ‘small print’). It can also be used for attributions or satisfying licensing requirements. Example:

Copyright © 1922-2011 Acme Corporation. All Rights Reserved.

Strikethrough

The s element is used to represent content that is no longer accurate or relevant. When indicating document edits i.e., marking a span of text as having been removed from a document, use the del element instead. Example:

Recommended retail price: £3.99 per bottle
Now selling for just £2.99 a bottle!

Citations

The cite element is used to represent the title of a work (e.g. a book, essay, poem, song, film, TV show, sculpture, painting, musical, exhibition, etc). This can be a work that is being quoted or referenced in detail (i.e. a citation), or it can just be a work that is mentioned in passing. Example:

Universal Declaration of Human Rights, United Nations, December 1948. Adopted by General Assembly resolution 217 A (III).

Inline quotes

The q element is used for quoting text inline. Example showing nested quotations:

John said, I saw Lucy at lunch, she told me Mary wants you to get some ice cream on your way home. I think I will get some at Ben and Jerry’s, on Gloucester Road.

Definition

The dfn element is used to highlight the first use of a term. The title attribute can be used to describe the term. Example:

Bob’s canine mother and equine father sat him down and carefully explained that he was an allopolyploid organism.

Abbreviation

The abbr element is used for any abbreviated text, whether it be acronym, initialism, or otherwise. Generally, it’s less work and useful (enough) to mark up only the first occurrence of any particular abbreviation on a page, and ignore the rest. Any text in the title attribute will appear when the user’s mouse hovers the abbreviation (although notably, this does not work in Internet Explorer for Windows). Example abbreviations:

BBC, HTML, and Staffs.

Time

The time element is used to represent either a time on a 24 hour clock, or a precise date in the proleptic Gregorian calendar, optionally with a time and a time-zone offset. Example:

Queen Elizabeth II was proclaimed sovereign of each of the Commonwealth realms on and , after the death of her father, King George VI.

Code

The code element is used to represent fragments of computer code. Useful for technology-oriented sites, not so useful otherwise. Example:

When you call the activate() method on the robotSnowman object, the eyes glow.

Used in conjunction with the pre element:

function getJelly() {
    echo $aDeliciousSnack;
}

Sample output

The samp element is used to represent (sample) output from a program or computing system. Useful for technology-oriented sites, not so useful otherwise. Example:

The computer said Too much cheese in tray two but I didn’t know what that meant.

Keyboard entry

The kbd element is used to denote user input (typically via a keyboard, although it may also be used to represent other input methods, such as voice commands). Example:

To take a screenshot on your Mac, press ⌘ Cmd + ⇧ Shift + 3.

Superscript and subscript text

The sup element represents a superscript and the sub element represents a sub. These elements must be used only to mark up typographical conventions with specific meanings, not for typographical presentation. As a guide, only use these elements if their absence would change the meaning of the content. Example:

The coordinate of the ith point is (xi, yi). For example, the 10th point has coordinate (x10, y10).

f(x, n) = log4xn

Italicised

The i element is used for text in an alternate voice or mood, or otherwise offset from the normal prose. Examples include taxonomic designations, technical terms, idiomatic phrases from another language, the name of a ship or other spans of text whose typographic presentation is typically italicised. Example:

There is a certain je ne sais quoi in the air.

Emboldened

The b element is used for text stylistically offset from normal prose without conveying extra importance, such as key words in a document abstract, product names in a review, or other spans of text whose typographic presentation is typically emboldened. Example:

You enter a small room. Your sword glows brighter. A rat scurries past the corner wall.

Marked or highlighted text

The mark element is used to represent a run of text marked or highlighted for reference purposes. When used in a quotation it indicates a highlight not originally present but added to bring the reader’s attention to that part of the text. When used in the main prose of a document, it indicates a part of the document that has been highlighted due to its relevance to the user’s current activity. Example:

I also have some kittens who are visiting me these days. They’re really cute. I think they like my garden! Maybe I should adopt a kitten.

Edits

The del element is used to represent deleted or retracted text which still must remain on the page for some reason. Meanwhile its counterpart, the ins element, is used to represent inserted text. Both del and ins have a datetime attribute which allows you to include a timestamp directly in the element. Example inserted text and usage:

She bought two five pairs of shoes.

Atoms - Tabular data

Tables should be used when displaying tabular data. The thead, tfoot and tbody elements enable you to group rows within each a table.

If you use these elements, you must use every element. They should appear in this order: thead, tfoot and tbody, so that browsers can render the foot before receiving all the data. You must use these tags within the table element.

The Very Best Eggnog
Ingredients Serves 12 Serves 24
Milk 1 quart 2 quart
Cinnamon Sticks 2 1
Vanilla Bean, Split 1 2
Cloves 5 10
Mace 10 blades 20 blades
Egg Yolks 12 24
Cups Sugar 1 ½ cups 3 cups
Dark Rum 1 ½ cups 3 cups
Brandy 1 ½ cups 3 cups
Vanilla 1 tbsp 2 tbsp
Half-and-half or Light Cream 1 quart 2 quart
Freshly grated nutmeg to taste

Atoms - Forms

Legend

Required fields are marked *

Checkbox *
Radio *

Molecule - Post Snippets

Molecule - Post

Molecule - Event Preview

Hailsham Farmers’ Market

Start time: 07:00 End time: 15:00

Hellingly Church

Enjoy the street market and its vibrant atmosphere! Fresh fruit and veg, homemade pies, smoked fish...

Hailsham Farmers’ Market

Hailsham Farmers’ Market

Start time: 07:00 End time: 15:00

Hellingly Church

Enjoy the street market and its vibrant atmosphere! Fresh fruit and veg, homemade pies, smoked fish...

Molecule - Page Preview

A group of high-visibilty jacket wearing individuals brandishing paintbrushes

Community

Duis commodo lacus quis quam sodales vitae molestie libero sagittis commodo lacus.

A group of high-visibilty jacket wearing individuals brandishing paintbrushes

Community

Duis commodo lacus quis quam sodales vitae molestie libero sagittis commodo lacus.

Molecule - Councillor Preview

Molecule - Sidebar Navigation

Molecule - CTA

Molecule - Stay Connected

Molecule - Breadcrumbs

Molecule - Files

File Size
Mission Statement.pdf 43 KB
Hailsham Town Council Land Summary.pdf 24 KB

Molecule - Tabs

Molecule - Filter

Molecule - Filter Footer

Molecule - Post Header

Next Round of Friday Activities for Young People In Hailsham

Business

Molecule - Share

Molecule - Press release

Enquiries relating to this media release

Terry Hall, Public Information Officer
Telephone: 01323 841702 terry.hall@hailsham-tc.gov.uk
Hailsham Town Council, Market Street, Hailsham, East Sussex, BN27 2AE

Molecule - Opening Hours

Monday 09:00 — 16:00
Tuesday 09:00 — 16:00
Wednesday 09:00 — 16:00
Thursday 09:00 — 16:00
Friday 09:00 — 16:00
Saturday Closed
Sunday Closed

Molecule - Search

Organism - Next Meeting

Next Meeting

Organism - Latest News

Latest news

See all news articles

Organism - What's On

What's On

Hailsham Farmers’ Market

Hailsham Farmers’ Market

Start time: 07:00 End time: 15:00

Hellingly Church

Enjoy the street market and its vibrant atmosphere! Fresh fruit and veg, homemade pies, smoked fish...

Hailsham Farmers’ Market

Hailsham Farmers’ Market

Start time: 07:00 End time: 15:00

Hellingly Church

Enjoy the street market and its vibrant atmosphere! Fresh fruit and veg, homemade pies, smoked fish...

See all events

Organism - Popular Pages

A group of high-visibilty jacket wearing individuals brandishing paintbrushes

Community

Duis commodo lacus quis quam sodales vitae molestie libero sagittis commodo lacus.

A group of high-visibilty jacket wearing individuals brandishing paintbrushes

Community

Duis commodo lacus quis quam sodales vitae molestie libero sagittis commodo lacus.

Organism - Page Content

About Hailsham Town Council

Parish and town councils are democratically elected local authorities with duties and privileges conferred by Act of Parliament.

In England and Wales, a parish council can resolve to call itself a ‘town council’ and its chairman the ‘town mayor’. Parish and town councils are known collectively as ‘local councils’. Hailsham Town Council came into being in 1974 as a result of local government reorganisation.

A Town Council holds sole responsibility for the services it provides. Through its committees, it formulates policies for action and decides how to raise and spend money on behalf of the local community. The Town Council is the tier of local government closest to the people and consists of individual councillors who contribute to the work of the whole Town Council by:

  • Putting forward ideas and engaging in constructive debate
  • Representing their constituents and responding to the needs of the community
  • Acting in an ethical way and being open about interests
  • Voting to enable the Town Council to make decisions
  • Ensuring the delivery of cost-effective quality services for residents
File Size
Mission Statement.pdf 43 KB
Hailsham Town Council Land Summary.pdf 24 KB

Committees, Sub-Committees & Consultative Panels

View Agendas, Appendices and Reports (Minutes) of Hailsham Town Council and Committee meetings.

View meetings

Organism - Related Content

 

Organism - Content List

 

Council Services & Facilities

Lorem ipsum dolor sit amet consectetur adipiscing elit.

Town & Community

Looking for a hall to hire?

Ideal venues for weddings, civil ceremonies, baby welcoming, business meetings, conferences, seminars, healthy and safety workshops, staff parties, playgroups...

Need to hire a minibus?

Available to individuals, businesses, schools, community groups and voluntary organisations. Competitive hire fees. Copy of valid driving licence required...


Recreation & Leisure

Do you have an allotment?

A significant service facilitated by the Town Council is the provision of allotments. At present, the Council manages 74 plots on two sites in Hailsham...

Organism - Content List

 

Halls & Meeting Rooms For Hire

Lorem ipsum dolor sit amet consectetur adipiscing elit.

Fleur De Lys council chamber/meeting room

Town Council Offices, Inglenook, Market Street, Hailsham, BN27 2AE

View map

  • Ideal for weddings, meetings, conferences and playgroups...
  • Seating available for up to 30 guests.
  • Small fitted kitchen (cutlery, crockery, kettle, coffee perculator and fridge included); toilet.
  • Access via garden at the rear of the Town
  • Council offices. Limited free car parking available.

Organism - Councillor

 

Hailsham Town Councillors

Nunc ornare lacus orci, eu bibendum magna porttitor eget. In eget tortor convallis, dapibus sapien ac, ornare lacus. Suspendisse pharetra viverra dui in luctus.

Cllr Bentley, Bill

Conservative for Hailsham Central & North Ward Leader
Hailsham Conservative Group

Telephone: 01323 847685 cllr.bill.bentley@eastsussex.gov.uk

Address

Swallow Brook House, 15 Sandbanks Close, Hailsham, East Sussex, BN27 3TJ


Committee/Panel Member for:

Council Projects & Assets (chairman)

External Body Representation:


Other councillors in this ward

Organism - Community

Community & Residents

Phasellus quis sapien augue maecenas scelerisque mauris fringilla elementum tempus nunc vitae fermentum.

Our Community

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse euismod eget tellus eu tempor. Praesent eget lacinia metus, imperdiet interdum diam. Sed eu tincidunt nisl, sed congue massa. Phasellus quis sapien augue. Maecenas scelerisque mauris fringilla elementum tempus. Nunc vitae fermentum tortor. Pellentesque faucibus magna ut turpis rhoncus, at tempus leo maximus. Nam dictum, sem auctor dignissim gravida, ipsum ex mollis justo, et iaculis felis justo hendrerit metus.

Many forms of Government have been tried, and will be tried in this world of sin and woe. No one pretends that democracy is perfect or all-wise. Indeed, it has been said that democracy is the worst form of government except all those other forms that have been tried from time to time.

Winston Churchill, in a speech to the House of Commons.

Phasellus commodo euismod nisi sit amet hendrerit. Sed id diam nisi. Praesent id maximus mauris. Nam viverra non massa vitae luctus. Aliquam auctor risus metus, sed ultrices enim elementum sed. Cras facilisis sem vitae facilisis porttitor. Nullam eu venenatis justo. Suspendisse a turpis et nunc placerat suscipit. Pellentesque habitant

Organism - About

About Hailsham

Phasellus quis sapien augue maecenas scelerisque mauris fringilla elementum tempus nunc vitae fermentum.

Our Community

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse euismod eget tellus eu tempor. Praesent eget lacinia metus, imperdiet interdum diam. Sed eu tincidunt nisl, sed congue massa. Phasellus quis sapien augue. Maecenas scelerisque mauris fringilla elementum tempus. Nunc vitae fermentum tortor. Pellentesque faucibus magna ut turpis rhoncus, at tempus leo maximus. Nam dictum, sem auctor dignissim gravida, ipsum ex mollis justo, et iaculis felis justo hendrerit metus.

Many forms of Government have been tried, and will be tried in this world of sin and woe. No one pretends that democracy is perfect or all-wise. Indeed, it has been said that democracy is the worst form of government except all those other forms that have been tried from time to time.

Winston Churchill, in a speech to the House of Commons.

Phasellus commodo euismod nisi sit amet hendrerit. Sed id diam nisi. Praesent id maximus mauris. Nam viverra non massa vitae luctus. Aliquam auctor risus metus, sed ultrices enim elementum sed. Cras facilisis sem vitae facilisis porttitor. Nullam eu venenatis justo. Suspendisse a turpis et nunc placerat suscipit. Pellentesque habitant