-
Notifications
You must be signed in to change notification settings - Fork 1
/
mixins.css
118 lines (118 loc) · 2.43 KB
/
mixins.css
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
106
107
108
109
110
111
112
113
114
115
116
117
118
/* collapse the top margin of the first child and the bottom margin of the second */
/* inline-block fix for older browsers, in function and declaration form */
.inlineblock {
zoom: 1;
display: inline;
display: -moz-inline-stack;
display: inline-block;
}
/* universal clearfix, in function and declaration form */
.cf,
.clearfix {
zoom: 1;
}
.cf:before,
.clearfix:before,
.cf:after,
.clearfix:after {
content: "";
display: table;
}
.cf:after,
.clearfix:after {
clear: both;
}
/* clearfix lite, for modern browsers */
.cflite,
.clearfixlite {
overflow: hidden;
}
/* shade the border as if there's a light shining on it */
/* create a pushbutton effect */
.pushbutton {
position: relative;
top: 0.0625em;
left: 0;
}
/* replace the text in an element with an image */
/* IE7-friendly border-box sizing -- doesn't do checking of units or anything,
* so make sure all your amounts are either the same unit or auto or 0 */
/* Alignment */
.alignleft {
float: left;
margin-right: baselinesize;
}
.alignright {
float: right;
margin-left: baselinesize;
}
.aligncenter {
clear: both;
display: block;
margin: 0 auto;
}
/* Text meant only for screen readers and crappy feature phones */
.assistive-text {
position: absolute;
clip: rect(1px 1px 1px 1px);
/* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
}
/* text that's hidden temporarily from the UI but available to screen readers */
.accessible-hidden {
position: absolute;
clip: rect(1px 1px 1px 1px);
/* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
}
/** Lists **/
/* list without formatting */
.list-nostyle,
.list-float,
.list-inlineblock,
.list-inline {
list-style: none;
padding-left: 0;
margin-left: 0;
}
.list-float > li {
float: left;
}
/* inline-block list */
.list-inlineblock > li {
zoom: 1;
display: inline;
display: -moz-inline-stack;
display: inline-block;
vertical-align: top;
margin-right: -0.25em;
}
.list-inlineblock > li:last-child {
margin-right: 0;
}
/* inline list with comma separation */
.list-inline > li {
display: inline;
}
.list-inline > li:after {
content: ', ';
}
.list-inline > li:last-child:after {
content: none;
}
/* list with extra-beefy margins */
.list-extra-margins li {
margin-bottom: baselinesize;
}
/* island */
.island {
background-color: aside-color;
margin: baselinesize baseindentsize;
padding: baselinesize baselindentsize;
}
.island > :first-child {
margin-top: 0;
}
.island > :last-child {
margin-bottom: 0;
}