This repository has been archived by the owner on Apr 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.haml
67 lines (64 loc) · 2.21 KB
/
index.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
!!!
%html
%head
%title Offline Pattern Library
%meta{:content => "width=device-width", :name => "viewport"}
%link{:href => "styles/style.css", :rel => "stylesheet"}
%body
#sw-alert
This page is now available offline
.hero
.row
%h1 Offline pattern library
%h2 A collection of layout components built using flexbox, which gracefully fallback in unsupported browsers
.row.example-container
.col-3
%h3 Cards
%p Cards that will display at a uniform height regardless of how much content they contain.
.col-9
.card-container
.card-outer
.card
.card__photo
.card__inner
.card__content
.card__content.card__content--short
.card-outer
.card
.card__photo
.card__inner
.card__content
.card__content
.card__content
.card__content.card__content--short
.card-outer
.card
.card__photo
.card__inner
.card__content
.card__content
.card__content.card__content--short
.card-outer
.card
.card__photo
.card__inner
.card__content
.card__content.card__content--short
.row.example-container
.col-3
%h3 Media object
%p Used for displaying an image to one side, with descriptive content to the other.
.col-9
.media
%a{href: '#', class: 'media__object media__object--left'}
%img{src: 'http://placehold.it/60x60'}
.media__body
Nullam quis risus eget urna mollis ornare vel eu leo. Cras mattis consectetur purus sit amet fermentum. Etiam porta sem malesuada magna mollis euismod. Donec id elit non mi porta gravida at eget metus. Donec sed odio dui. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.
//Scripts
%script{:src => "scripts/script.js"}
:javascript
// Register ServiceWorker
navigator.serviceWorker.register('sw.js', {
scope: './'
});
%script{:src => "logging.js"}