Skip to content

Commit e55737c

Browse files
author
mrmrs
committed
Add new components
1 parent ab6004d commit e55737c

File tree

1 file changed

+10
-21
lines changed

1 file changed

+10
-21
lines changed

components/cards/basic-text-card/index.html

+10-21
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
</head>
2525
<body class="w-100 sans-serif bg-white">
2626
<main>
27-
<article class="center mw5 mw6-ns br3 hidden ba mv4">
28-
<h1 class="f4 bg-near-black br3 br--top white-80 mv0 pv2 ph3">Title of card</h1>
27+
<article class="center mw5 mw6-ns hidden ba mv4">
28+
<h1 class="f4 bg-near-black white mv0 pv2 ph3">Title of card</h1>
2929
<div class="pa3 bt">
3030
<p class="f6 f5-ns lh-copy measure pv0">
3131
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
@@ -42,8 +42,8 @@ <h1 class="f4 f3-ns mt4">Basic Text Card</h1>
4242
<h2 class="f5">HTML</h2>
4343
<p class="f5 black-70"></p>
4444
<pre class="pa3 ba br2 b--black-10 h5 bg-white-20" id="html">
45-
&lt;article class=&quot;center mw5 mw6-ns br3 hidden ba mv4&quot;&gt;
46-
&lt;h1 class=&quot;f4 bg-near-black br3 br--top white-80 mv0 pv2 ph3&quot;&gt;Title of card&lt;/h1&gt;
45+
&lt;article class=&quot;center mw5 mw6-ns hidden ba mv4&quot;&gt;
46+
&lt;h1 class=&quot;f4 bg-near-black white mv0 pv2 ph3&quot;&gt;Title of card&lt;/h1&gt;
4747
&lt;div class=&quot;pa3 bt&quot;&gt;
4848
&lt;p class=&quot;f6 f5-ns lh-copy measure pv0&quot;&gt;
4949
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
@@ -67,15 +67,6 @@ <h2 class="f5">css</h2>
6767
border-top-width: 1px;
6868
}
6969

70-
.br3 {
71-
border-radius: .5rem;
72-
}
73-
74-
.br--top {
75-
border-bottom-left-radius: 0;
76-
border-bottom-right-radius: 0;
77-
}
78-
7970
.lh-copy {
8071
line-height: 1.5;
8172
}
@@ -84,8 +75,8 @@ <h2 class="f5">css</h2>
8475
max-width: 16rem;
8576
}
8677

87-
.white-80 {
88-
color: rgba(255, 255, 255, .8);
78+
.white {
79+
color: #fff;
8980
}
9081

9182
.bg-near-black {
@@ -156,16 +147,16 @@ <h2 class="f5">css</h2>
156147
<h2 class="f5 mb3 mt4">Css stats for this component</h2>
157148
<dl class="dib mr4 mt0">
158149
<dt class="db f6">Gzipped Size</dt>
159-
<dd class="ml0 b f3 f2-ns">383<small class="f6">B</small>
150+
<dd class="ml0 b f3 f2-ns">342<small class="f6">B</small>
160151
</dd>
161152
</dl>
162153
<dl class="dib mr4 mt0">
163154
<dt class="db f6">Selectors</dt>
164-
<dd class="ml0 b f3 f2-ns">20</dd>
155+
<dd class="ml0 b f3 f2-ns">18</dd>
165156
</dl>
166157
<dl class="dib mt0">
167158
<dt class="db f6">Declarations</dt>
168-
<dd class="ml0 b f3 f2-ns">29</dd>
159+
<dd class="ml0 b f3 f2-ns">26</dd>
169160
</dl>
170161
</div>
171162
<div class="fl w-100">
@@ -174,8 +165,6 @@ <h2 class="f5 mt4">Modules referenced</h2>
174165

175166
<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-borders">tachyons-borders</a></li>
176167

177-
<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-border-radius">tachyons-border-radius</a></li>
178-
179168
<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>
180169

181170
<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-max-widths">tachyons-max-widths</a></li>
@@ -198,7 +187,7 @@ <h2 class="f5 mt4">Modules referenced</h2>
198187

199188

200189
<h4 class="mt5">Install via npm <small class="fw2 f6 db mt1">Only installs the needed tachyons-modules for this component</small></h4>
201-
<code class="f6">npm i --save tachyons-borders tachyons-border-radius tachyons-line-height tachyons-max-widths tachyons-skins tachyons-spacing tachyons-type-scale tachyons-typography tachyons-utilities</code>
190+
<code class="f6">npm i --save tachyons-borders tachyons-line-height tachyons-max-widths tachyons-skins tachyons-spacing tachyons-type-scale tachyons-typography tachyons-utilities</code>
202191
<section class="bt b--black-10 mt5 pv4">
203192
<h1 class="f6 b ttu">Other Components</h1>
204193

0 commit comments

Comments
 (0)