12 Column Grid
Note how classes now never have underscores '_
' but only hyphens '-
' instead.
To get any of the following classses to work on mobile
only, add -mobile
to the end of the class name.
The grid is wrapped with 'skycom-container
' which should be used to contain all your contents, or to contain modules individually .
The container is made up of up 12 columns 'skycom-1
' through to 'skycom-12
'. By default these float on the left.
To float a column on the right, add the class 'right
'.
If too many floats have caused you container to have zero height, add the class 'clearfix
'.
For older browsers, the first column in a row should also have the class 'alpha
'.
To 'stick' headers to the top of the page when scrolling, use the class 'sticky
'.
When links don't go to a new page, i.e. changing tabs please, use the class 'internal-link
'.
To make some text for screen readers only, use the class 'speak
'.
To hide an element, use the class 'hidden
'.
To show an element, use the class 'visible
'.
When the text shouldn't touch the edges of the columns (i.e. when they have a distinct background colour) use 'cushioned
' class for padding.
Grid (974)
By default the grid is 974px
wide.
Wide Grid (1140)
Add class grid-1140
to the parent of your containers i.e. to the body
.
lightbox Grid
the 'skycom-offset1
' class is used to centre the lightbox.
We also use another 'skycom-container
' to create a new 12 column grid.
Grid on a Tablet (Portrait: 696)
Colours
These colours are for designer reference only. For accessibility reasons, please also note the colour of the text being used.
The classes used here, starting with 'demo-' are NOT part of the toolkit.
Typography
Buttons + Icons
Backgrounds + Key Line
Channel Colours
V3 Brand Colours
Shop Colours
All text to be above 18px
Icons
Sprite
These are not likely to look good on Retina devices
Icon |
CSS Class |
How it looks |
watch-now | icon-watch-now | |
curved-arrow-bottom-left | icon-curved-arrow-bottom-left | |
curved-arrow-down | icon-curved-arrow-down | |
curved-arrow-right | icon-curved-arrow-right | |
curved-arrow-top-right | icon-curved-arrow-top-right | |
video-play | icon-video-play | |
Skycons
These icons will look good on Retina devices and can be any size or (single) colour.
Dont forget to include http://web-toolkit.global.sky.com/2.0.0alpha.rc1/fonts/skycons.css
Ensure aria-hidden
is used on your skycon
tags.
To make the icon have a colour, add the class colour
to the icon.
To make the icon have a colour on hover, add the class colour-hover
to the parent.
To Create Fonts:
• save font into /static/font-svgs folder
• Run `grunt fonts
`
• copy the icons JS from the skycons.css over the icons var in skycons.js
• Run `grunt
`
CSS Class |
How it looks |
with .colour |
with .hover-colour |
for designers |
skycon-arrow-down-left | | | | view |
skycon-arrow-left | | | | view |
skycon-arrow-right | | | | view |
skycon-at | | | | view |
skycon-carousel-pause | | | | view |
skycon-carousel-play | | | | view |
skycon-chevron-down | | | | view |
skycon-chevron-left | | | | view |
skycon-chevron-up | | | | view |
skycon-chevron | | | | view |
skycon-close | | | | view |
skycon-cloud | | | | view |
skycon-expand | | | | view |
skycon-facebook | | | | view |
skycon-google-plus | | | | view |
skycon-info | | | | view |
skycon-mail | | | | view |
skycon-menu | | | | view |
skycon-minify | | | | view |
skycon-mouse | | | | view |
skycon-never-miss | | | | view |
skycon-on-demand | | | | view |
skycon-pending | | | | view |
skycon-phone | | | | view |
skycon-plus-circle | | | | view |
skycon-remote-record | | | | view |
skycon-search | | | | view |
skycon-share | | | | view |
skycon-sky-go | | | | view |
skycon-sky-plus | | | | view |
skycon-sky | | | | view |
skycon-tick | | | | view |
skycon-tv | | | | view |
skycon-twitter-favourite | | | | view |
skycon-twitter-follow | | | | view |
skycon-twitter-reply | | | | view |
skycon-twitter-retweet | | | | view |
skycon-twitter | | | | view |
skycon-user-profile | | | | view |
skycon-video-play | | | | view |
skycon-volume | | | | view |
skycon-warning | | | | view |
Multi-Coloured SVGs
While there are only a few separate SVGs, we will serve these up separately
TBC