forked from tachyons-css/tachyons-display-verbose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
115 lines (107 loc) · 4.2 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<title>
tachyons display
</title>
<meta name="author" content="">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>tachyons display</h1>
<h2>Examples</h2>
<div class="dn">.dn { display: none; }</div>
<div class="di">.di { display: inline; }</div>
<div class="db">.db { display: block; }</div>
<div class="dib">.dib { display: inline-block; }</div>
<div class="dit">.dit { display: inline-table; }</div>
<div class="dt">.dt { display: table; }</div>
<div class="dtc">.dtc { display: table-cell; }</div>
<div class="dtcol">.dtcol { display: table-column; }</div>
<div class="dtcolg">.dtcolg { display: table-column-group; }</div>
<div class="dn-ns">.dn-ns { display: none; }</div>
<div class="di-ns">.di-ns { display: inline; }</div>
<div class="db-ns">.db-ns { display: block; }</div>
<div class="dib-ns">.dib-ns { display: inline-block; }</div>
<div class="dit-ns">.dit-ns { display: inline-table; }</div>
<div class="dt-ns">.dt-ns { display: table; }</div>
<div class="dtc-ns">.dtc-ns { display: table-cell; }</div>
<div class="dtcol-ns">.dtcol-ns { display: table-column; }</div>
<div class="dtcolg-ns">.dtcolg-ns { display: table-column-group; }</div>
<div class="dn-m">.dn-m { display: none; }</div>
<div class="di-m">.di-m { display: inline; }</div>
<div class="db-m">.db-m { display: block; }</div>
<div class="dib-m">.dib-m { display: inline-block; }</div>
<div class="dit-m">.dit-m { display: inline-table; }</div>
<div class="dt-m">.dt-m { display: table; }</div>
<div class="dtc-m">.dtc-m { display: table-cell; }</div>
<div class="dtcol-m">.dtcol-m { display: table-column; }</div>
<div class="dtcolg-m">.dtcolg-m { display: table-column-group; }</div>
<div class="dn-l">.dn-l { display: none; }</div>
<div class="di-l">.di-l { display: inline; }</div>
<div class="db-l">.db-l { display: block; }</div>
<div class="dib-l">.dib-l { display: inline-block; }</div>
<div class="dit-l">.dit-l { display: inline-table; }</div>
<div class="dt-l">.dt-l { display: table; }</div>
<div class="dtc-l">.dtc-l { display: table-cell; }</div>
<div class="dtcol-l">.dtcol-l { display: table-column; }</div>
<div class="dtcolg-l">.dtcolg-l { display: table-column-group; }</div>
<pre>
<code>
/*
DISPLAY
- Mobile First
- Breakpoint: not-small
- Breakpoint: medium
- Breakpoint: large
*/
.dn { display: none; }
.di { display: inline; }
.db { display: block; }
.dib { display: inline-block; }
.dit { display: inline-table; }
.dt { display: table; }
.dtc { display: table-cell; }
.dtcol { display: table-column; }
.dtcolg { display: table-column-group; }
@include break(not-small) {
.dn-ns { display: none; }
.di-ns { display: inline; }
.db-ns { display: block; }
.dib-ns { display: inline-block; }
.dit-ns { display: inline-table; }
.dt-ns { display: table; }
.dtc-ns { display: table-cell; }
.dtcol-ns { display: table-column; }
.dtcolg-ns { display: table-column-group; }
}
@include break(medium) {
.dn-m { display: none; }
.di-m { display: inline; }
.db-m { display: block; }
.dib-m { display: inline-block; }
.dit-m { display: inline-table; }
.dt-m { display: table; }
.dtc-m { display: table-cell; }
.dtcol-m { display: table-column; }
.dtcolg-m { display: table-column-group; }
}
@include break(large) {
.dn-l { display: none; }
.di-l { display: inline; }
.db-l { display: block; }
.dib-l { display: inline-block; }
.dit-l { display: inline-table; }
.dt-l { display: table; }
.dtc-l { display: table-cell; }
.dtcol-l { display: table-column; }
.dtcolg-l { display: table-column-group; }
}
</code>
</pre>
<a href="http://npmjs.org/package/tachyons-display" title="tachyons-display">View package on npm</a>
</body>
</html>