# Grid System
# Colours
# Headings
@import url('https://fonts.googleapis.com/css?family=Poppins:300,400,700');
h1 - (36px/44px) h1 - (48px/56px) h1 - (60px/68px)
h2 - (30px/38px) h2 - (36px/44px) h2 - (48px/56px)
h3 - (30px/38px) h3 - (30px/38px) h3 - (36px/44px)
h4 - (24px/32px) h4 - (24px/32px) h4 - (30px/38px)
h5 - (20px/28px) h5 - (22px/30px) h5 - (24px/32px)
h6 - (18px/26px) h6 - (20px/28px) h6 - (20px/28px)
.h-upTitle
ex consectetur magnam
.h-lead
Lorem ipsum dolor sit amet consectetur adipisicing elit. Est inventore esse, ex consectetur magnam.
.h-uppercase
Sit amet consectetur adipisicing elit.
# Icons webfont
FoN webfont is built using Icomoon (opens new window).
Upload downloaded webfont to ./site/src/assets/fonts
and builder files into ./site/src/assets/fonts/builder
.
TIP
Import ./site/src/assets/fonts/builder/selection.json
to Icomoon (opens new window) to retrieve existing project.
Copy and paste the content of style.css
into ./site/src/assets/styles/common/_typos.scss
WARNING
Keep first @import
used to import Popins (opens new window) from Google Fonts (opens new window)
To use icons in page, use as follow
<span class="icon icon-NAME"></span>
Hover icon to get name
# Images
Images are lazy loaded using bLazy (opens new window)
import Blazy from "blazy";
new Blazy({
selector: ".h-lazy",
successClass: "is-loaded"
});
Load image via webpack (opens new window) by using require()
Using IMG tags
<img :data-src="require('PATH_TO_IMG')" class="h-lazy">
Using responsive CSS backgrounds with Retina support
<div class="h-lazyContainer">
<div
class="h-lazyContainer--inner"
:data-src-xs="`${imgSrc.xs} | ${imgSrc.md}`"
:data-src-md="`${imgSrc.md} | ${imgSrc.lg}`"
:data-src-lg="`${imgSrc.lg} | ${imgSrc.full}`"
:data-src="imgSrc.full">
</div>
</div>
<script>
export default {
computed: {
...mapState({
imgSrc: state => state.post.img
})
},
mounted() {
new Blazy({
selector: '.h-lazyContainer--inner',
successClass: 'is-loaded',
breakpoints: [
{
width: 425,
src: 'data-src-xs'
},
{
width: 768,
src: 'data-src-md'
},
{
width: 1200,
src: 'data-src-lg'
}
]
})
}
}
</script>