Improved table styling, made buttons descriptive, and improved line-height with paragraphs

This commit is contained in:
ポール ウェッブ 2018-05-23 17:19:09 -05:00
parent 4846d8ebe6
commit 955bd36894
4 changed files with 79 additions and 16 deletions

View file

@ -0,0 +1,11 @@
.contributing {
table th {
&:first-of-type {
width: 30%;
}
&:nth-of-type(2) {
width: 20%;
}
}
}

View file

@ -88,6 +88,11 @@
letter-spacing: 0.05rem; letter-spacing: 0.05rem;
padding: 0.3rem 0.5rem; padding: 0.3rem 0.5rem;
vertical-align: middle; vertical-align: middle;
@media (max-width: 900px) {
position: relative;
top: -1px;
}
} }
} }
@ -96,12 +101,12 @@
@media (min-width: 901px) { @media (min-width: 901px) {
font-size: 1.25rem; font-size: 1.25rem;
line-height: 1.55; line-height: 1.6;
} }
@media (max-width: 900px) { @media (max-width: 900px) {
font-size: 1.05rem; font-size: 1.05rem;
line-height: 1.33; line-height: 1.55;
} }
} }
@ -201,27 +206,72 @@
table { table {
background-color: $white; background-color: $white;
border: 1px solid rgba($gray, 0.3); border: 1px solid rgba($gray, 0.3);
border-spacing: 0;
margin-bottom: 2rem; margin-bottom: 2rem;
width: 100%;
@media (max-width: 1030px) {
display: inline-grid;
thead {
display: none;
}
tbody, tr, td {
display: block;
}
tbody tr:last-of-type td:not(:last-of-type) {
border-bottom: 1px solid rgba($gray, 0.3);
}
}
thead {
background-color: $black;
color: $white;
cursor: default;
position: relative;
tr {
position: relative;
z-index: 1;
}
&::after {
width: calc(100% + 2px); height: calc(100% + 2px);
top: -1px; left: -1px;
background-color: $black;
content: "";
position: absolute;
z-index: 0;
}
}
tbody {
line-height: 1.55;
}
tr:nth-of-type(even) {
background-color: rgba($black, 0.025);
}
th, td { th, td {
padding: 1rem; padding: 0.5rem 1rem;
} }
th { th {
border-bottom: 1px solid rgba($gray, 0.3);
font-size: 0.8rem; font-size: 0.8rem;
letter-spacing: 0.1rem; letter-spacing: 0.1rem;
text-transform: uppercase; text-transform: uppercase;
} }
tbody tr:not(:last-of-type) td {
border-bottom: 1px solid rgba($gray, 0.3);
}
td { td {
font-size: 1rem; font-size: 1rem;
} }
tbody {
tr:not(:last-of-type) td {
border-bottom: 1px solid rgba($gray, 0.3);
}
}
} }
} }

View file

@ -1,5 +1,5 @@
<template> <template>
<main v-bind:class="{ 'home': $page.frontmatter.home, 'documentation': $page.frontmatter.documentation }"> <main v-bind:class="{ 'home': $page.frontmatter.home, 'documentation': $page.frontmatter.documentation, 'contributing': $page.frontmatter.contributing }">
<nav class="navigation"> <nav class="navigation">
<div class="inner-wrap"> <div class="inner-wrap">
<router-link class="navigation__item" to="/" title="Go back home">LBRY</router-link> <router-link class="navigation__item" to="/" title="Go back home">LBRY</router-link>
@ -28,13 +28,13 @@
<li class="home__feature"> <li class="home__feature">
<p class="home__feature__title"><strong>New to LBRY?</strong></p> <p class="home__feature__title"><strong>New to LBRY?</strong></p>
<p class="home__feature__description">Learn how LBRY works in 3 easy steps</p> <p class="home__feature__description">Learn how LBRY works in 3 easy steps</p>
<a class="home__feature__cta" href="/hook.html">Check it out</a> <a class="home__feature__cta" href="/hook.html">Try the welcome guide</a>
</li> </li>
<li class="home__feature"> <li class="home__feature">
<p class="home__feature__title"><strong>Want to contribute?</strong></p> <p class="home__feature__title"><strong>Want to contribute?</strong></p>
<p class="home__feature__description">Start exploring our API and help make LBRY better</p> <p class="home__feature__description">Help make LBRY better!</p>
<a class="home__feature__cta" href="/contribute">Jump in</a> <a class="home__feature__cta" href="/contribute">Explore our repos</a>
</li> </li>
</ul> </ul>
</section> </section>
@ -46,7 +46,7 @@
<p>That's the idea behind LBRY. To create a market for accessing and publishing information that is global, decentralized, robust, optimal and complete.</p> <p>That's the idea behind LBRY. To create a market for accessing and publishing information that is global, decentralized, robust, optimal and complete.</p>
<a class="cta" href="">Learn more</a> <a class="cta" href="/overview">Learn more about our mission</a>
</div> </div>
</section> </section>
@ -55,7 +55,7 @@
<h3>Documentation</h3> <h3>Documentation</h3>
<p>LBRY has enough moving parts to warrant comprehensive documentation. Whether you are interested in learning the technical details of our technology stack or you want to integrate LBRY into your life, you will find everything you need in our docs.</p> <p>LBRY has enough moving parts to warrant comprehensive documentation. Whether you are interested in learning the technical details of our technology stack or you want to integrate LBRY into your life, you will find everything you need in our docs.</p>
<a class="cta" href="">Go deeper</a> <a class="cta" href="/resources">Explore our documentation</a>
</div> </div>
</section> </section>
@ -326,6 +326,7 @@ function updateMetaTags (meta, current) {
@import "../scss/layout"; @import "../scss/layout";
@import "../scss/pages/home"; @import "../scss/pages/home";
@import "../scss/pages/page"; @import "../scss/pages/page";
@import "../scss/pages/contributing";
@import "../scss/pages/documentation"; @import "../scss/pages/documentation";
@import "../scss/partials/navigation"; @import "../scss/partials/navigation";
@import "../scss/partials/footer"; @import "../scss/partials/footer";

View file

@ -1,4 +1,5 @@
--- ---
contributing: true
title: Contributing title: Contributing
--- ---