-
Notifications
You must be signed in to change notification settings - Fork 404
Expand file tree
/
Copy path_shared.scss
More file actions
61 lines (54 loc) · 1.41 KB
/
_shared.scss
File metadata and controls
61 lines (54 loc) · 1.41 KB
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
/*------------------------------------*\
$SHARED
\*------------------------------------*/
/**
* Where `margin-bottom` is concerned, this value will be the same as the
* base line-height. This allows us to keep a consistent vertical rhythm.
* As per: csswizardry.com/2012/06/single-direction-margin-declarations
*/
/**
* Base elements
*/
h1,h2,h3,h4,h5,h6,
ul,ol,dl,
blockquote,p,address,
table,
fieldset,figure,
pre,
/**
* Objects and abstractions
*/
%sass-margin-bottom,
.media,
.island,
.islet{
margin-bottom:$base-spacing-unit;
margin-bottom:($base-spacing-unit / $base-font-size)*1rem;
.islet &{
margin-bottom:$base-spacing-unit / 2;
margin-bottom:(($base-spacing-unit / $base-font-size) / 2)*1rem;
}
}
/**
* Doubled up `margin-bottom` helper class.
*/
.landmark{
margin-bottom:2 * $base-spacing-unit;
margin-bottom:(2 * $base-spacing-unit / $base-font-size)*1rem;
}
/**
* `hr` elements only take up a few pixels, so we need to give them special
* treatment regarding vertical rhythm.
*/
hr{
margin-bottom:$base-spacing-unit - 2px;
margin-bottom:(($base-spacing-unit - 2px) / $base-font-size)*1rem;
}
/**
* Where `margin-left` is concerned we want to try and indent certain elements
* by a consistent amount. Define that amount once, here.
*/
ul,ol,dd{
margin-left:2 * $base-spacing-unit;
margin-left:(2 * $base-spacing-unit / $base-font-size)*1rem;
}