Skip to content

Add a components index page with nav, improve css display #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 9, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
164 changes: 120 additions & 44 deletions components/articles/title-text-image/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h1 class="f2">Title Text with Image</h1>
<h2 class="f5">Module CSS Stats</h2>
<dl class="dib mr4">
<dt class="db f6">Size (Gzipped)</dt>
<dd class="ml0 b f3 f2-ns">327</dd>
<dd class="ml0 b f3 f2-ns">293</dd>
</dl>
<dl class="dib mr4">
<dt class="db f6">Selectors</dt>
Expand Down Expand Up @@ -71,44 +71,127 @@ <h2 class="f5">HTML</h2>

</pre>
<h4>CSS</h4>
<pre class="pa3 ba br2 b--black-05">
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
.lh-copy{ line-height:1.6; }
.w-100{ width:100%; }
.pa3{ padding:1rem; }
.f2{ font-size:2.25rem; }
.f5{ font-size:1rem; }
.measure{
max-width:30em;
<pre class="pa3 ba br2 b--black-05">.lh-copy {
line-height: 1.6;
}
.measure-narrow{
max-width:20em;

.w-100 {
width: 100%;
}

.pa3 {
padding: 1rem;
}

.f2 {
font-size: 2.25rem;
}

.f5 {
font-size: 1rem;
}

.measure {
max-width: 30em;
}

.measure-narrow {
max-width: 20em;
}

@media screen and (min-width: 48em) {
.lh-copy-ns {
line-height: 1.6;
}

.w-100-ns {
width: 100%;
}

.pa3-ns {
padding: 1rem;
}

.pa5-ns {
padding: 4rem;
}

.f2-ns {
font-size: 2.25rem;
}

.f5-ns {
font-size: 1rem;
}

.measure-ns {
max-width: 30em;
}

.measure-narrow-ns {
max-width: 20em;
}
}

@media screen and (min-width: 48em) and (max-width: 64em) {
.lh-copy-m {
line-height: 1.6;
}

.w-100-m {
width: 100%;
}

.pa3-m {
padding: 1rem;
}

.f2-m {
font-size: 2.25rem;
}

.f5-m {
font-size: 1rem;
}

.measure-m {
max-width: 30em;
}

.measure-narrow-m {
max-width: 20em;
}
}

@media screen and (min-width: 64em) {
.lh-copy-l {
line-height: 1.6;
}

.w-100-l {
width: 100%;
}

.pa3-l {
padding: 1rem;
}

.f2-l {
font-size: 2.25rem;
}

.f5-l {
font-size: 1rem;
}

.measure-l {
max-width: 30em;
}

.measure-narrow-l {
max-width: 20em;
}
}
@media screen and (min-width: 48em){
.lh-copy-ns{ line-height:1.6; }
.w-100-ns{ width:100%; }
.pa3-ns{ padding:1rem; }
.pa5-ns{ padding:4rem; }
.f2-ns{ font-size:2.25rem; }
.f5-ns{ font-size:1rem; }
.measure-ns{ max-width:30em; }
.measure-narrow-ns{ max-width:20em; } }
@media screen and (min-width: 48em) and (max-width: 64em){
.lh-copy-m{ line-height:1.6; }
.w-100-m{ width:100%; }
.pa3-m{ padding:1rem; }
.f2-m{ font-size:2.25rem; }
.f5-m{ font-size:1rem; }
.measure-m{ max-width:30em; }
.measure-narrow-m{ max-width:20em; } }
@media screen and (min-width: 64em){
.lh-copy-l{ line-height:1.6; }
.w-100-l{ width:100%; }
.pa3-l{ padding:1rem; }
.f2-l{ font-size:2.25rem; }
.f5-l{ font-size:1rem; }
.measure-l{ max-width:30em; }
.measure-narrow-l{ max-width:20em; } }

</pre>

Expand Down Expand Up @@ -146,13 +229,6 @@ <h2 class="f5 mb2 ttc mid-gray">articles</h2>

</div>

<div>
<h2 class="f5 mb2 ttc mid-gray">grids</h2>

<a class="f5 dib mr3 blue link dim fw6" href="/components/grids/two-column/index.html">Grids Two Column</a>

</div>

<div>
<h2 class="f5 mb2 ttc mid-gray">layout</h2>

Expand Down
104 changes: 72 additions & 32 deletions components/articles/title-text/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h1 class="">Title</h1>
<h2 class="f5">Module CSS Stats</h2>
<dl class="dib mr4">
<dt class="db f6">Size (Gzipped)</dt>
<dd class="ml0 b f3 f2-ns">263</dd>
<dd class="ml0 b f3 f2-ns">222</dd>
</dl>
<dl class="dib mr4">
<dt class="db f6">Selectors</dt>
Expand Down Expand Up @@ -69,32 +69,79 @@ <h2 class="f5">HTML</h2>

</pre>
<h4>CSS</h4>
<pre class="pa3 ba br2 b--black-05">
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
.lh-copy{ line-height:1.6; }
.pa3{ padding:1rem; }
.measure{
max-width:30em;
<pre class="pa3 ba br2 b--black-05">.lh-copy {
line-height: 1.6;
}
.measure-narrow{
max-width:20em;

.pa3 {
padding: 1rem;
}

.measure {
max-width: 30em;
}

.measure-narrow {
max-width: 20em;
}

@media screen and (min-width: 48em) {
.lh-copy-ns {
line-height: 1.6;
}

.pa3-ns {
padding: 1rem;
}

.pa5-ns {
padding: 4rem;
}

.measure-ns {
max-width: 30em;
}

.measure-narrow-ns {
max-width: 20em;
}
}

@media screen and (min-width: 48em) and (max-width: 64em) {
.lh-copy-m {
line-height: 1.6;
}

.pa3-m {
padding: 1rem;
}

.measure-m {
max-width: 30em;
}

.measure-narrow-m {
max-width: 20em;
}
}

@media screen and (min-width: 64em) {
.lh-copy-l {
line-height: 1.6;
}

.pa3-l {
padding: 1rem;
}

.measure-l {
max-width: 30em;
}

.measure-narrow-l {
max-width: 20em;
}
}
@media screen and (min-width: 48em){
.lh-copy-ns{ line-height:1.6; }
.pa3-ns{ padding:1rem; }
.pa5-ns{ padding:4rem; }
.measure-ns{ max-width:30em; }
.measure-narrow-ns{ max-width:20em; } }
@media screen and (min-width: 48em) and (max-width: 64em){
.lh-copy-m{ line-height:1.6; }
.pa3-m{ padding:1rem; }
.measure-m{ max-width:30em; }
.measure-narrow-m{ max-width:20em; } }
@media screen and (min-width: 64em){
.lh-copy-l{ line-height:1.6; }
.pa3-l{ padding:1rem; }
.measure-l{ max-width:30em; }
.measure-narrow-l{ max-width:20em; } }

</pre>

Expand Down Expand Up @@ -128,13 +175,6 @@ <h2 class="f5 mb2 ttc mid-gray">articles</h2>

</div>

<div>
<h2 class="f5 mb2 ttc mid-gray">grids</h2>

<a class="f5 dib mr3 blue link dim fw6" href="/components/grids/two-column/index.html">Grids Two Column</a>

</div>

<div>
<h2 class="f5 mb2 ttc mid-gray">layout</h2>

Expand Down
Loading