This site contains some re-usable elements that can provide some commonality between our various EA-branded data.gov.uk web sites. In particular, a common top navigation bar and common footer. Other common elements may be added in future.
-
sass/_ea-brand.scss
Common brand elements as re-usable SASS variables, including colour palette. -
sass/_page-top-bar.scss
Styling for a common page top bar, including logo as SVG (with PNG fallback for older browsers), proposition title and menu -
sass/_page-footer.scss
Styling for a common page footer, including support links and linked data logo. -
sass/_service-phase.scss
Syling for the alpha- or beta- phase banner -
css/ea-common.css
Plain CSS file for use in non-Sass projects. See note below about Bootstrap. -
html/page-top-bar.hbs
Example markup for page top bar as a Handlebars template -
html/page-top-bar.html
Plain HTML example of page top bar markup -
html/page-footer.html
Plain HTML example markup for page footer -
html/service-phase.html
Example plain HTML markup for the service phase -
html/*.html.haml
Example markup suitable for a Rails environment -
images
Contains common brand images as.svg
and.png
files
In a Sass-based project, the .scss
files can be imported as-is. For projects
using plain CSS, use css/ea-common.css
. This file is auto-generated from the Sass sources, but requires Bootstrap to be installed via bower first:
bower install
sass -I bower_components sass/ea-common.scss > css/ea-common.css
Note: if using the pre-generated ea-common.css
, be aware that it has already imported all of the Bootstrap styles, so there is no need to import Bootstrap separately.