-
Notifications
You must be signed in to change notification settings - Fork 1
/
mixins.scss
97 lines (83 loc) · 1.98 KB
/
mixins.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
// Custom mixins
// Do not put anything other than mixins into this file, since it is included from many other stylesheets.
@import 'settings';
@mixin font-heading {
font-family: $header-font-family;
font-weight: bold;
letter-spacing: .05em;
text-transform: uppercase;
}
@mixin font-subheading {
font-family: $header-font-family;
font-weight: bold;
color: scale-color($color: $subheader-color, $lightness: -10%);
letter-spacing: .05em;
text-transform: uppercase;
}
@mixin font-subsubheading {
font-family: $body-font-family;
font-weight: normal;
color: scale-color($color: $subsubheader-color, $lightness: -10%);
letter-spacing: .05em;
text-transform: uppercase;
}
@mixin font-body {
font-family: $body-font-family;
}
@mixin full-height {
min-height: calc(100vh - #{$topbar-height});
}
@mixin hover-color($property, $color) {
#{$property}: $color;
transition: $property 200ms ease-out;
&:hover,
&:focus,
&.disabled,
&[disabled] {
#{$property}: scale-color($color, $lightness: -20%);
}
}
@mixin animate-fade($property) {
transition: $property 0.25s ease-out;
}
@mixin floating-panel {
background-color: $hp-black;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
overflow-x: auto;
position: fixed;
white-space: nowrap;
z-index: 1001;
}
@mixin style-placeholder {
// http://css-tricks.com/snippets/css/style-placeholder-text/
&::-webkit-input-placeholder {
@content;
}
&:-moz-placeholder {
@content;
}
&::-moz-placeholder {
@content;
}
&:-ms-input-placeholder {
@content;
}
}
// Force element to have the correct top bar height
@mixin topbar-height {
line-height: $topbar-height;
padding-bottom: 0;
padding-top: 0;
}
@mixin fa-button {
// .fa
display: inline-block;
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
// adjust positioning
letter-spacing: normal;
margin-right: 10px;
}