Skip to content

Commit f703981

Browse files
author
mrmrs
committed
Update components with data-names
1 parent 231f49d commit f703981

File tree

8 files changed

+46
-52
lines changed

8 files changed

+46
-52
lines changed

build.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//require('./src/components-build')()
2-
//console.log('components build complete')
1+
require('./src/components-build')()
2+
console.log('components build complete')
33
require('./src/table-of-styles-build')()
44
console.log('table of styles build complete')
55
require('./src/table-of-properties-build')()

components/lists/slab-stat-large/index.html

+28-35
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,30 @@
2424
</head>
2525
<body class="w-100 sans-serif bg-white">
2626
<main>
27-
<article class="pa3 pa5-ns" data-component-name="slab-stat-large">
27+
<article class="pa3 pa5-ns" data-name="slab-stat-large">
2828
<h3 class="f6 ttu tracked">Today</h3>
2929
<div class="cf">
30-
<dl class="fl fn-l w-50 dib-l w-auto-l lh-title mr6-l">
30+
<dl class="db dib-l w-auto-l lh-title mr6-l">
3131
<dd class="f6 fw4 ml0">Closed Issues</dd>
32-
<dd class="f3 f2-m f-subheadline-l fw6 ml0">1,024</dd>
32+
<dd class="f2 f-subheadline-l fw6 ml0">1,024</dd>
3333
</dl>
34-
<dl class="fl fn-l w-50 dib-l w-auto-l lh-title mr6-l">
34+
<dl class="db dib-l w-auto-l lh-title mr6-l">
3535
<dd class="f6 fw4 ml0">Open Issues</dd>
3636
<dd class="f3 f2-m f-subheadline-l fw6 ml0">993</dd>
3737
</dl>
38-
<dl class="fl fn-l w-50 dib-l w-auto-l lh-title mr6-l">
38+
<dl class="db dib-l w-auto-l lh-title mr6-l">
3939
<dd class="f6 fw4 ml0">Next Release</dd>
4040
<dd class="f3 f2-m f-subheadline-l fw6 ml0">10-22</dd>
4141
</dl>
42-
<dl class="fl fn-l w-50 dib-l w-auto-l lh-title mr6-l">
42+
<dl class="db dib-l w-auto-l lh-title mr6-l">
4343
<dd class="f6 fw4 ml0">Days Left</dd>
4444
<dd class="f3 f2-m f-subheadline-l fw6 ml0">4</dd>
4545
</dl>
46-
<dl class="fl fn-l w-50 dib-l w-auto-l lh-title mr6-l">
46+
<dl class="db dib-l w-auto-l lh-title mr6-l">
4747
<dd class="f6 fw4 ml0">Favorite Cat</dd>
4848
<dd class="f3 f2-m f-subheadline-l fw6 ml0">All of Them</dd>
4949
</dl>
50-
<dl class="fl fn-l w-50 dib-l w-auto-l lh-title">
50+
<dl class="db dib-l w-auto-l lh-title">
5151
<dd class="f6 fw4 ml0">App Downloads</dd>
5252
<dd class="f3 f2-m f-subheadline-l fw6 ml0">1,200</dd>
5353
</dl>
@@ -61,30 +61,30 @@ <h1 class="f4 f3-ns mt4">Slab Stat Large</h1>
6161
<h2 class="f5">HTML</h2>
6262
<p class="f5 black-70"></p>
6363
<pre class="pa3 ba br2 b--black-10 h5 bg-white-20" id="html">
64-
&lt;article class=&quot;pa3 pa5-ns&quot; data-component-name=&quot;slab-stat-large&quot;&gt;
64+
&lt;article class=&quot;pa3 pa5-ns&quot; data-name=&quot;slab-stat-large&quot;&gt;
6565
&lt;h3 class=&quot;f6 ttu tracked&quot;&gt;Today&lt;/h3&gt;
6666
&lt;div class=&quot;cf&quot;&gt;
67-
&lt;dl class=&quot;fl fn-l w-50 dib-l w-auto-l lh-title mr6-l&quot;&gt;
67+
&lt;dl class=&quot;db dib-l w-auto-l lh-title mr6-l&quot;&gt;
6868
&lt;dd class=&quot;f6 fw4 ml0&quot;&gt;Closed Issues&lt;/dd&gt;
69-
&lt;dd class=&quot;f3 f2-m f-subheadline-l fw6 ml0&quot;&gt;1,024&lt;/dd&gt;
69+
&lt;dd class=&quot;f2 f-subheadline-l fw6 ml0&quot;&gt;1,024&lt;/dd&gt;
7070
&lt;/dl&gt;
71-
&lt;dl class=&quot;fl fn-l w-50 dib-l w-auto-l lh-title mr6-l&quot;&gt;
71+
&lt;dl class=&quot;db dib-l w-auto-l lh-title mr6-l&quot;&gt;
7272
&lt;dd class=&quot;f6 fw4 ml0&quot;&gt;Open Issues&lt;/dd&gt;
7373
&lt;dd class=&quot;f3 f2-m f-subheadline-l fw6 ml0&quot;&gt;993&lt;/dd&gt;
7474
&lt;/dl&gt;
75-
&lt;dl class=&quot;fl fn-l w-50 dib-l w-auto-l lh-title mr6-l&quot;&gt;
75+
&lt;dl class=&quot;db dib-l w-auto-l lh-title mr6-l&quot;&gt;
7676
&lt;dd class=&quot;f6 fw4 ml0&quot;&gt;Next Release&lt;/dd&gt;
7777
&lt;dd class=&quot;f3 f2-m f-subheadline-l fw6 ml0&quot;&gt;10-22&lt;/dd&gt;
7878
&lt;/dl&gt;
79-
&lt;dl class=&quot;fl fn-l w-50 dib-l w-auto-l lh-title mr6-l&quot;&gt;
79+
&lt;dl class=&quot;db dib-l w-auto-l lh-title mr6-l&quot;&gt;
8080
&lt;dd class=&quot;f6 fw4 ml0&quot;&gt;Days Left&lt;/dd&gt;
8181
&lt;dd class=&quot;f3 f2-m f-subheadline-l fw6 ml0&quot;&gt;4&lt;/dd&gt;
8282
&lt;/dl&gt;
83-
&lt;dl class=&quot;fl fn-l w-50 dib-l w-auto-l lh-title mr6-l&quot;&gt;
83+
&lt;dl class=&quot;db dib-l w-auto-l lh-title mr6-l&quot;&gt;
8484
&lt;dd class=&quot;f6 fw4 ml0&quot;&gt;Favorite Cat&lt;/dd&gt;
8585
&lt;dd class=&quot;f3 f2-m f-subheadline-l fw6 ml0&quot;&gt;All of Them&lt;/dd&gt;
8686
&lt;/dl&gt;
87-
&lt;dl class=&quot;fl fn-l w-50 dib-l w-auto-l lh-title&quot;&gt;
87+
&lt;dl class=&quot;db dib-l w-auto-l lh-title&quot;&gt;
8888
&lt;dd class=&quot;f6 fw4 ml0&quot;&gt;App Downloads&lt;/dd&gt;
8989
&lt;dd class=&quot;f3 f2-m f-subheadline-l fw6 ml0&quot;&gt;1,200&lt;/dd&gt;
9090
&lt;/dl&gt;
@@ -108,9 +108,8 @@ <h2 class="f5">css</h2>
108108
*zoom: 1;
109109
}
110110

111-
.fl {
112-
float: left;
113-
_display: inline;
111+
.db {
112+
display: block;
114113
}
115114

116115
.fw4 {
@@ -129,10 +128,6 @@ <h2 class="f5">css</h2>
129128
line-height: 1.3;
130129
}
131130

132-
.w-50 {
133-
width: 50%;
134-
}
135-
136131
.pa3 {
137132
padding: 1rem;
138133
}
@@ -145,6 +140,10 @@ <h2 class="f5">css</h2>
145140
text-transform: uppercase;
146141
}
147142

143+
.f2 {
144+
font-size: 2.25rem;
145+
}
146+
148147
.f3 {
149148
font-size: 1.5rem;
150149
}
@@ -170,10 +169,6 @@ <h2 class="f5">css</h2>
170169
display: inline-block;
171170
}
172171

173-
.fn-l {
174-
float: none;
175-
}
176-
177172
.w-auto-l {
178173
width: auto;
179174
}
@@ -195,16 +190,16 @@ <h2 class="f5">css</h2>
195190
<h2 class="f5 mb3 mt4">Css stats for this component</h2>
196191
<dl class="dib mr4 mt0">
197192
<dt class="db f6">Gzipped Size</dt>
198-
<dd class="ml0 b f3 f2-ns">399<small class="f6">B</small>
193+
<dd class="ml0 b f3 f2-ns">373<small class="f6">B</small>
199194
</dd>
200195
</dl>
201196
<dl class="dib mr4 mt0">
202197
<dt class="db f6">Selectors</dt>
203-
<dd class="ml0 b f3 f2-ns">22</dd>
198+
<dd class="ml0 b f3 f2-ns">21</dd>
204199
</dl>
205200
<dl class="dib mt0">
206201
<dt class="db f6">Declarations</dt>
207-
<dd class="ml0 b f3 f2-ns">23</dd>
202+
<dd class="ml0 b f3 f2-ns">21</dd>
208203
</dl>
209204
</div>
210205
<div class="fl w-100">
@@ -213,23 +208,21 @@ <h2 class="f5 mt4">Modules referenced</h2>
213208

214209
<li class="fl w-100 w-50-m w-33-ns"><a class="f5 link dim blue fw6" href="https://github.com/tachyons-css/tachyons-clears">tachyons-clears</a></li>
215210

216-
<li class="fl w-100 w-50-m w-33-ns"><a class="f5 link dim blue fw6" href="https://github.com/tachyons-css/tachyons-floats">tachyons-floats</a></li>
211+
<li class="fl w-100 w-50-m w-33-ns"><a class="f5 link dim blue fw6" href="https://github.com/tachyons-css/tachyons-display">tachyons-display</a></li>
217212

218213
<li class="fl w-100 w-50-m w-33-ns"><a class="f5 link dim blue fw6" href="https://github.com/tachyons-css/tachyons-font-weight">tachyons-font-weight</a></li>
219214

220215
<li class="fl w-100 w-50-m w-33-ns"><a class="f5 link dim blue fw6" href="https://github.com/tachyons-css/tachyons-letter-spacing">tachyons-letter-spacing</a></li>
221216

222217
<li class="fl w-100 w-50-m w-33-ns"><a class="f5 link dim blue fw6" href="https://github.com/tachyons-css/tachyons-line-height">tachyons-line-height</a></li>
223218

224-
<li class="fl w-100 w-50-m w-33-ns"><a class="f5 link dim blue fw6" href="https://github.com/tachyons-css/tachyons-widths">tachyons-widths</a></li>
225-
226219
<li class="fl w-100 w-50-m w-33-ns"><a class="f5 link dim blue fw6" href="https://github.com/tachyons-css/tachyons-spacing">tachyons-spacing</a></li>
227220

228221
<li class="fl w-100 w-50-m w-33-ns"><a class="f5 link dim blue fw6" href="https://github.com/tachyons-css/tachyons-text-transform">tachyons-text-transform</a></li>
229222

230223
<li class="fl w-100 w-50-m w-33-ns"><a class="f5 link dim blue fw6" href="https://github.com/tachyons-css/tachyons-type-scale">tachyons-type-scale</a></li>
231224

232-
<li class="fl w-100 w-50-m w-33-ns"><a class="f5 link dim blue fw6" href="https://github.com/tachyons-css/tachyons-display">tachyons-display</a></li>
225+
<li class="fl w-100 w-50-m w-33-ns"><a class="f5 link dim blue fw6" href="https://github.com/tachyons-css/tachyons-widths">tachyons-widths</a></li>
233226

234227
</ul>
235228
</div>
@@ -239,7 +232,7 @@ <h2 class="f5 mt4">Modules referenced</h2>
239232

240233

241234
<h4 class="mt5">Install via npm <small class="fw2 f6 db mt1">Only installs the needed tachyons-modules for this component</small></h4>
242-
<code class="f6">npm i --save tachyons-clears tachyons-floats tachyons-font-weight tachyons-letter-spacing tachyons-line-height tachyons-widths tachyons-spacing tachyons-text-transform tachyons-type-scale tachyons-display</code>
235+
<code class="f6">npm i --save tachyons-clears tachyons-display tachyons-font-weight tachyons-letter-spacing tachyons-line-height tachyons-spacing tachyons-text-transform tachyons-type-scale tachyons-widths</code>
243236
<section class="bt b--black-10 mt5 pv4">
244237
<h1 class="f6 b ttu">Other Components</h1>
245238

components/lists/slab-stat-small/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</head>
2525
<body class="w-100 sans-serif bg-white">
2626
<main>
27-
<article class="pa3 pa5-ns" data-component-name="slab-stat-small">
27+
<article class="pa3 pa5-ns" data-name="slab-stat-small">
2828
<h3 class="f6 ttu tracked">Today</h3>
2929
<div class="cf">
3030
<dl class="fl fn-l w-50 dib-l w-auto-l lh-title mr5-l">
@@ -61,7 +61,7 @@ <h1 class="f4 f3-ns mt4">Slab Stat Small</h1>
6161
<h2 class="f5">HTML</h2>
6262
<p class="f5 black-70"></p>
6363
<pre class="pa3 ba br2 b--black-10 h5 bg-white-20" id="html">
64-
&lt;article class=&quot;pa3 pa5-ns&quot; data-component-name=&quot;slab-stat-small&quot;&gt;
64+
&lt;article class=&quot;pa3 pa5-ns&quot; data-name=&quot;slab-stat-small&quot;&gt;
6565
&lt;h3 class=&quot;f6 ttu tracked&quot;&gt;Today&lt;/h3&gt;
6666
&lt;div class=&quot;cf&quot;&gt;
6767
&lt;dl class=&quot;fl fn-l w-50 dib-l w-auto-l lh-title mr5-l&quot;&gt;

components/lists/slab-stat/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</head>
2525
<body class="w-100 sans-serif bg-white">
2626
<main>
27-
<article class="pa3 pa5-ns">
27+
<article class="pa3 pa5-ns" data-name="slab-stat">
2828
<h1>Today</h1>
2929
<dl class="dib mr5">
3030
<dd class="f6 f5-ns b ml0">Closed Issues</dd>
@@ -59,7 +59,7 @@ <h1 class="f4 f3-ns mt4">Slab Stat</h1>
5959
<h2 class="f5">HTML</h2>
6060
<p class="f5 black-70"></p>
6161
<pre class="pa3 ba br2 b--black-10 h5 bg-white-20" id="html">
62-
&lt;article class=&quot;pa3 pa5-ns&quot;&gt;
62+
&lt;article class=&quot;pa3 pa5-ns&quot; data-name=&quot;slab-stat&quot;&gt;
6363
&lt;h1&gt;Today&lt;/h1&gt;
6464
&lt;dl class=&quot;dib mr5&quot;&gt;
6565
&lt;dd class=&quot;f6 f5-ns b ml0&quot;&gt;Closed Issues&lt;/dd&gt;

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tachyons-css.github.io",
3-
"version": "4.1.2",
3+
"version": "4.1.3",
44
"description": "Documentation for Tachyons -- a performant, mobile-first, and 100% responsive modular css framework.",
55
"main": "index.html",
66
"scripts": {
@@ -13,6 +13,7 @@
1313
"doc:watch": "watch 'npm run doc' src/templates/docs",
1414
"doc:lib": "watch 'npm run doc' lib",
1515
"doc:images": "watch 'node src/modules/images.js' src/templates/docs/images",
16+
"doc:bgsize": "watch 'node src/modules/background-size.js' src/templates/docs/background-size",
1617
"build:all": "node build.js && bash script.sh"
1718
},
1819
"repository": "tachyons-css/tachyons-css.github.io",

src/components/lists/slab-stat-large.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{{{
22
"bodyClass" : "bg-white"
33
}}}
4-
<article class="pa3 pa5-ns" data-component-name="slab-stat-large">
4+
<article class="pa3 pa5-ns" data-name="slab-stat-large">
55
<h3 class="f6 ttu tracked">Today</h3>
66
<div class="cf">
7-
<dl class="fl fn-l w-50 dib-l w-auto-l lh-title mr6-l">
7+
<dl class="db dib-l w-auto-l lh-title mr6-l">
88
<dd class="f6 fw4 ml0">Closed Issues</dd>
9-
<dd class="f3 f2-m f-subheadline-l fw6 ml0">1,024</dd>
9+
<dd class="f2 f-subheadline-l fw6 ml0">1,024</dd>
1010
</dl>
11-
<dl class="fl fn-l w-50 dib-l w-auto-l lh-title mr6-l">
11+
<dl class="db dib-l w-auto-l lh-title mr6-l">
1212
<dd class="f6 fw4 ml0">Open Issues</dd>
1313
<dd class="f3 f2-m f-subheadline-l fw6 ml0">993</dd>
1414
</dl>
15-
<dl class="fl fn-l w-50 dib-l w-auto-l lh-title mr6-l">
15+
<dl class="db dib-l w-auto-l lh-title mr6-l">
1616
<dd class="f6 fw4 ml0">Next Release</dd>
1717
<dd class="f3 f2-m f-subheadline-l fw6 ml0">10-22</dd>
1818
</dl>
19-
<dl class="fl fn-l w-50 dib-l w-auto-l lh-title mr6-l">
19+
<dl class="db dib-l w-auto-l lh-title mr6-l">
2020
<dd class="f6 fw4 ml0">Days Left</dd>
2121
<dd class="f3 f2-m f-subheadline-l fw6 ml0">4</dd>
2222
</dl>
23-
<dl class="fl fn-l w-50 dib-l w-auto-l lh-title mr6-l">
23+
<dl class="db dib-l w-auto-l lh-title mr6-l">
2424
<dd class="f6 fw4 ml0">Favorite Cat</dd>
2525
<dd class="f3 f2-m f-subheadline-l fw6 ml0">All of Them</dd>
2626
</dl>
27-
<dl class="fl fn-l w-50 dib-l w-auto-l lh-title">
27+
<dl class="db dib-l w-auto-l lh-title">
2828
<dd class="f6 fw4 ml0">App Downloads</dd>
2929
<dd class="f3 f2-m f-subheadline-l fw6 ml0">1,200</dd>
3030
</dl>

src/components/lists/slab-stat-small.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{{
22
"bodyClass" : "bg-white"
33
}}}
4-
<article class="pa3 pa5-ns" data-component-name="slab-stat-small">
4+
<article class="pa3 pa5-ns" data-name="slab-stat-small">
55
<h3 class="f6 ttu tracked">Today</h3>
66
<div class="cf">
77
<dl class="fl fn-l w-50 dib-l w-auto-l lh-title mr5-l">

src/components/lists/slab-stat.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{{
22
"bodyClass" : "bg-white"
33
}}}
4-
<article class="pa3 pa5-ns">
4+
<article class="pa3 pa5-ns" data-name="slab-stat">
55
<h1>Today</h1>
66
<dl class="dib mr5">
77
<dd class="f6 f5-ns b ml0">Closed Issues</dd>

0 commit comments

Comments
 (0)