-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
_base.scss
89 lines (75 loc) · 2.12 KB
/
_base.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
body {
margin: 0;
font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
color: $text-color;
word-wrap: break-word;
}
h1, h2, h3, h4, h5, h6 {
margin: 0 0 $spacing-unit/2;
}
// set h1, h2, ... font sizes by scaling base font size
$heading-sizes: 3.0, 2.0, 1.5, 1.25, 1.0, 1.0;
@mixin heading-size($heading) {
font-size: nth($heading-sizes, $heading) * $base-font-size;
}
h1 { @include heading-size(1); color: $text-color-light; font-weight: $bold-font-weight; }
h2 { @include heading-size(2); color: $text-color-light; font-weight: $bold-font-weight; }
h3 { @include heading-size(3); color: $text-color; font-weight: $base-font-weight; }
h4 { @include heading-size(4); color: $text-color; font-weight: $base-font-weight; }
h5 { @include heading-size(5); color: $text-color; font-weight: $bold-font-weight; }
h6 { @include heading-size(6); color: $text-color; font-weight: $bold-font-weight; font-style: italic }
a {
color: $primary-color;
transition: opacity .2s;
text-decoration: none;
&:visited {
color: darken($primary-color, 15%);
}
&:hover {
opacity: .65;
text-decoration: underline;
}
&:active {
opacity: .5;
}
}
pre {
white-space: pre-wrap;
}
@mixin button-dark($background-color) {
line-height: $spacing-unit*1.5;
padding: 0 $spacing-unit/2;
background-color: $background-color;
color: #fff !important;
font-weight: $bold-font-weight;
font-size: $small-font-size;
text-transform: uppercase;
text-decoration: none;
transition: background-color .2s;
&:hover {
opacity: 1;
background-color: lighten($background-color, 10%);
text-decoration: none;
}
&:active {
opacity: 1;
background-color: lighten($background-color, 20%);
}
}
/** Remove default list styles from UL elements. */
@mixin reset-ul {
list-style: none;
padding: 0;
margin: 0;
}
%shadow {
box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
position: relative;
}
%clearfix {
&:after {
content: "";
display: table;
clear: both;
}
}