-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.scss
105 lines (94 loc) · 1.82 KB
/
style.scss
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// Max width of content container. This must be a fixed width (em or px)
$gliss-max-width: 80rem;
// Gutter width, must be same units as $max-width.
$gliss-gutter: 1rem;
// Margins on either side of the content container.
$gliss-margin: 4%;
// Number of columns the grid is divided into.
$gliss-cols: 12;
// Chose to write gliss classes.
$gliss-modules: true;
// Choose what classes to write for your elements:
$gliss-wrapper: 'section';
$gliss-text: '.text';
$gliss-figure: 'figure';
@import url('http://fonts.googleapis.com/css?family=Source+Sans+Pro:600,300,400');
body {
font-family: 'Source Sans Pro', sans-serif;
font-weight: 400;
line-height: 1.5;
}
body,
section,
article,
h1,
h2,
h3,
h4 {
margin: 0;
padding: 0;
}
img {
width: 100%;
}
@import 'gliss';
.lede {
color: white;
text-align: center;
background-size: cover;
background-position: center;
padding: 16% 5vw;
text-shadow: 0 .1em .6em rgba(#000,.6);
margin-bottom: 2em;
line-height: 1.1;
h1 {
font-weight: 600;
font-size: 10vw;
}
h2 {
font-weight: 300;
font-size: 5vw;
padding: 0 10%;
@media (min-width: 60em) {
font-size: 3em;
}
}
}
article {
padding-bottom: 40%;
}
a:link,
a:visited {
color: #74A4D1;
}
a:hover,
a:focus {
color: darken(#74A4D1,10%);
}
.grid {
position: fixed;
top: 0;
bottom: 0;
left: $gliss-margin;
right: $gliss-margin;
z-index: -1;
}
.grid-inner {
position: absolute;
top: 0;
bottom: 0;
width: 100%;
margin: 0 0 0 50%;
transform: translateX(-50%);
max-width: $gliss-max-width;
div {
height: 100vh;
background-color: #FAFAFA;
width: calc(#{percentage(1/12)} - #{$gliss-gutter * 11 / 12});
float: left;
margin-left: $gliss-gutter;
&:first-child {
margin-left: 0;
}
}
}