add install

This commit is contained in:
Nicolas Cusan
2019-01-10 22:21:54 +01:00
parent 973587ddd6
commit 92e57f2ebb
2 changed files with 78 additions and 22 deletions

View File

@@ -38,27 +38,49 @@
</li> </li>
</ul> </ul>
<a class="btn" href="compare.html">See it in action</a> <div class="install">
<a <code>
class="btn btn-outline" <a href="https://www.npmjs.com/package/destyle.css">npm</a> install
href="https://github.com/nicolas-cusan/destyle.css/blob/master/Readme.md" --save destyle.css
> </code>
Docs
</a>
<div class="social">
<a href="https://github.com/nicolas-cusan/destyle.css/">
<img src="github.svg" alt="View on Github" />
</a>
<a <a
href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="install-link"
class="twitter-share-button" href="https://yarnpkg.com/en/package/destyle.css"
data-size="large" >CDN</a
data-text="Destyle.css - a clean slate for writing CSS without user agent styles"
data-url="https://nicolas-cusan.github.io/destyle.css/"
data-show-count="false"
>Tweet</a
> >
<span></span>
<a
class="install-link"
href="https://raw.githubusercontent.com/nicolas-cusan/destyle.css/master/destyle.css"
>
Download
</a>
</div>
<div class="actions">
<a class="btn" href="compare.html">See it in action</a>
<a
class="btn btn-outline"
href="https://github.com/nicolas-cusan/destyle.css/blob/master/Readme.md"
>
Docs
</a>
<div class="social">
<a href="https://github.com/nicolas-cusan/destyle.css/">
<img src="github.svg" alt="View on Github" />
</a>
<a
href="https://twitter.com/share?ref_src=twsrc%5Etfw"
class="twitter-share-button"
data-size="large"
data-text="Destyle.css - a clean slate for writing CSS without user agent styles"
data-url="https://nicolas-cusan.github.io/destyle.css/"
data-show-count="false"
>Tweet</a
>
</div>
</div> </div>
</main> </main>

View File

@@ -47,7 +47,7 @@ body {
} }
.features { .features {
margin-bottom: 60px; margin-bottom: 50px;
} }
.features li { .features li {
@@ -67,6 +67,42 @@ body {
text-decoration: underline; text-decoration: underline;
} }
.install {
margin-bottom: 50px;
text-align: right;
}
.install code {
display: block;
background-color: #f4f4f4;
padding: 10px 15px;
margin-bottom: 10px;
text-align: left;
}
.install span,
.install a {
color: dodgerblue;
}
.install a:active,
.install a:focus,
.install a:hover {
text-decoration: underline;
}
.install span,
.install-link {
font-size: 90%;
}
@media (min-width: 500px) {
.actions {
display: flex;
align-items: center;
}
}
.btn { .btn {
background-color: dodgerblue; background-color: dodgerblue;
color: #fff; color: #fff;
@@ -101,9 +137,7 @@ body {
@media (min-width: 500px) { @media (min-width: 500px) {
.social { .social {
display: inline-block; margin-left: auto;
vertical-align: middle;
margin-left: 40px;
padding-top: 0; padding-top: 0;
} }
} }