-
Notifications
You must be signed in to change notification settings - Fork 104
/
Copy path_shims.scss
55 lines (42 loc) · 854 Bytes
/
_shims.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
// Cross-browser shims
// Ways of normalising properties across browsers.
@import "conditionals";
// From: https://blog.mozilla.org/webdev/2009/02/20/cross-browser-inline-block/
// Usage:
//
// @include inline-block
// or
// @include inline-block("250px")
//
// which gives a min-height to the inline-block elements.
@mixin inline-block($min-height: "") {
display: -moz-inline-stack;
display: inline-block;
@if $min-height != "" {
min-height: $min-height;
}
@include ie-lte(7) {
zoom: 1;
display: inline;
}
@include ie(6) {
@if $min-height != "" {
height: $min-height;
}
}
}
// Contain floats usage:
//
// .this-has-floated-children {
// @extend %contain-floats;
// }
%contain-floats {
&:after {
content: "";
display: block;
clear: both;
}
@include ie-lte(7) {
zoom: 1;
}
}