2019-02-06 01:03:03 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2019-11-22 22:04:03 +01:00
|
|
|
<meta charset="utf-8" />
|
2019-02-06 01:03:03 +01:00
|
|
|
<title>Components by LBRY</title>
|
|
|
|
|
2019-11-22 22:04:03 +01:00
|
|
|
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
|
2020-03-05 23:54:17 +01:00
|
|
|
<!-- <link rel="stylesheet" href="../dist/index.css" /> -->
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/lbryio/components@master/dist/index.css"/>
|
2019-02-06 01:03:03 +01:00
|
|
|
|
|
|
|
<style>
|
|
|
|
body {
|
2019-11-22 22:04:03 +01:00
|
|
|
padding: 5rem;
|
|
|
|
max-width: 110rem;
|
|
|
|
margin: auto;
|
2019-02-06 01:03:03 +01:00
|
|
|
}
|
|
|
|
|
2019-11-22 22:04:03 +01:00
|
|
|
li {
|
|
|
|
font-size: 1.3em;
|
2019-02-06 01:03:03 +01:00
|
|
|
}
|
|
|
|
|
2019-11-22 22:04:03 +01:00
|
|
|
.docs__color-row {
|
|
|
|
margin-bottom: var(--spacing-s);
|
2019-02-08 00:55:31 +01:00
|
|
|
}
|
|
|
|
|
2019-11-22 22:04:03 +01:00
|
|
|
.docs__color {
|
|
|
|
display: inline-block;
|
|
|
|
height: 100px;
|
|
|
|
width: 250px;
|
|
|
|
border-radius: 5px;
|
|
|
|
padding: var(--spacing-s);
|
|
|
|
margin-right: var(--spacing-s);
|
|
|
|
color: var(--color-text-inverse);
|
2019-02-08 00:55:31 +01:00
|
|
|
}
|
|
|
|
|
2019-11-22 22:04:03 +01:00
|
|
|
.docs__color h3 {
|
|
|
|
margin-bottom: var(--spacing-s);
|
2019-02-06 01:03:03 +01:00
|
|
|
}
|
|
|
|
|
2019-11-22 22:04:03 +01:00
|
|
|
.docs__color.docs__color--primary {
|
|
|
|
background-color: var(--color-primary);
|
|
|
|
color: var(--color-primary-alt);
|
2019-11-20 05:40:28 +01:00
|
|
|
}
|
2019-11-22 22:04:03 +01:00
|
|
|
.docs__color.docs__color--primary-alt {
|
|
|
|
color: var(--color-primary);
|
|
|
|
background-color: var(--color-primary-alt);
|
2019-02-06 01:03:03 +01:00
|
|
|
}
|
2019-11-22 22:04:03 +01:00
|
|
|
.docs__color.docs__color--secondary {
|
|
|
|
background-color: var(--color-secondary);
|
2019-02-06 01:03:03 +01:00
|
|
|
}
|
2019-11-22 22:04:03 +01:00
|
|
|
.docs__color.docs__color--secondary-alt {
|
|
|
|
background-color: var(--color-secondary-alt);
|
|
|
|
color: var(--color-secondary);
|
|
|
|
}
|
|
|
|
.docs__color.docs__color--tertiary {
|
|
|
|
background-color: var(--color-tertiary);
|
|
|
|
}
|
|
|
|
.docs__color.docs__color--tertiary-alt {
|
|
|
|
background-color: var(--color-tertiary-alt);
|
|
|
|
color: var(--color-tertiary);
|
|
|
|
}
|
|
|
|
.docs__color.docs__color--danger {
|
|
|
|
background-color: var(--color-danger);
|
|
|
|
}
|
|
|
|
.docs__color.docs__color--danger-alt {
|
|
|
|
background-color: var(--color-danger-alt);
|
|
|
|
color: var(--color-danger);
|
|
|
|
}
|
|
|
|
.docs__color.docs__color--warning {
|
|
|
|
background-color: var(--color-warning);
|
|
|
|
color: var(--color-text);
|
2019-02-06 01:03:03 +01:00
|
|
|
}
|
|
|
|
|
2019-11-22 22:04:03 +01:00
|
|
|
.title {
|
|
|
|
font-size: 2rem;
|
2019-02-06 01:03:03 +01:00
|
|
|
}
|
2019-02-08 21:17:21 +01:00
|
|
|
|
2019-11-22 22:04:03 +01:00
|
|
|
.title--large {
|
|
|
|
font-size: 3rem;
|
2019-11-20 05:40:28 +01:00
|
|
|
}
|
2019-02-08 21:17:21 +01:00
|
|
|
|
2019-11-22 22:04:03 +01:00
|
|
|
.title--section {
|
|
|
|
font-weight: 700;
|
|
|
|
font-size: 2rem;
|
2019-02-08 21:17:21 +01:00
|
|
|
}
|
|
|
|
|
2019-11-22 22:04:03 +01:00
|
|
|
.card--inline {
|
|
|
|
border-radius: 5px;
|
|
|
|
border: 1px solid var(--color-gray-3);
|
|
|
|
margin-top: var(--spacing-s);
|
|
|
|
}
|
2019-11-20 19:52:13 +01:00
|
|
|
|
2019-11-22 22:04:03 +01:00
|
|
|
.card__header {
|
|
|
|
border-bottom: 1px solid #ddd;
|
2019-11-20 19:52:13 +01:00
|
|
|
}
|
|
|
|
|
2019-11-22 22:04:03 +01:00
|
|
|
.card__header,
|
|
|
|
.card__body {
|
|
|
|
padding: var(--spacing-l);
|
2019-02-08 21:17:21 +01:00
|
|
|
}
|
2019-02-06 01:03:03 +01:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<header>
|
2019-11-22 22:04:03 +01:00
|
|
|
<h1 class="title--large">@lbry/components</h1>
|
|
|
|
<p class="section__subtitle">
|
|
|
|
Styling for shared components across LBRY properties
|
|
|
|
</p>
|
2019-02-06 01:03:03 +01:00
|
|
|
</header>
|
|
|
|
|
2019-11-22 22:04:03 +01:00
|
|
|
<section class="section">
|
|
|
|
<h2 class="title--section">Font</h2>
|
|
|
|
<div class="card--inline">
|
|
|
|
<div class="card__header">
|
|
|
|
<h3 class="title">Inter</h3>
|
|
|
|
<p class="subtitle">
|
|
|
|
<a href="https://github.com/rsms/inter" class="button--link"
|
|
|
|
>https://github.com/rsms/inter</a
|
|
|
|
>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="card__body">
|
|
|
|
<ul>
|
|
|
|
<li style="font-weight: 300;">Inter Light - 300</li>
|
|
|
|
<li style="font-weight: 400;">Inter Regular - 400</li>
|
|
|
|
<li style="font-weight: 700;">Inter Bold - 700</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section class="section">
|
|
|
|
<h2 class="title--section">Color</h2>
|
|
|
|
<div class="card--inline">
|
|
|
|
<div class="card__body">
|
|
|
|
<div class="docs__color-row">
|
|
|
|
<div class="docs__color docs__color--primary">
|
|
|
|
<h3>Primary</h3>
|
|
|
|
<code>#xxx</code><br />
|
|
|
|
<code>--color-primary</code>
|
|
|
|
</div>
|
|
|
|
<div class="docs__color docs__color--primary-alt">
|
|
|
|
<h3>Primary Alt</h3>
|
|
|
|
<code>#xxx</code><br />
|
|
|
|
<code>--color-primary-alt</code>
|
|
|
|
</div>
|
|
|
|
<div class="docs__color docs__color--secondary">
|
|
|
|
<h3>Secondary</h3>
|
|
|
|
<code>#xxx</code><br />
|
|
|
|
<code>--color-secondary</code>
|
|
|
|
</div>
|
|
|
|
<div class="docs__color docs__color--secondary-alt">
|
|
|
|
<h3>Secondary Alt</h3>
|
|
|
|
<code>#xxx</code><br />
|
|
|
|
<code>--color-secondary-alt</code>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="docs__color-row">
|
|
|
|
<div class="docs__color docs__color--tertiary">
|
|
|
|
<h3>Tertiary</h3>
|
|
|
|
<code>#xxx</code><br />
|
|
|
|
<code>--color-tertiary</code>
|
|
|
|
</div>
|
|
|
|
<div class="docs__color docs__color--tertiary-alt">
|
|
|
|
<h3>Tertiary Alt</h3>
|
|
|
|
<code>#xxx</code><br />
|
|
|
|
<code>--color-tertiary-alt</code>
|
|
|
|
</div>
|
|
|
|
<div class="docs__color docs__color--danger">
|
|
|
|
<h3>Danger</h3>
|
|
|
|
<code>#xxx</code><br />
|
|
|
|
<code>--color-danger</code>
|
|
|
|
</div>
|
|
|
|
<div class="docs__color docs__color--danger-alt">
|
|
|
|
<h3>Danger Alt</h3>
|
|
|
|
<code>#xxx</code><br />
|
|
|
|
<code>--color-danger-alt</code>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div class="docs__color docs__color--warning">
|
|
|
|
<h3>Warning</h3>
|
|
|
|
<code>#xxx</code><br />
|
|
|
|
<code>--color-warning</code>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section class="section">
|
|
|
|
<h2 class="title--section">Buttons</h2>
|
|
|
|
<div class="card--inline">
|
|
|
|
<div class="card__body">
|
|
|
|
<button class="button button--primary">Primary</button>
|
|
|
|
<button class="button button--secondary">Secondary</button>
|
|
|
|
<button class="button button--link">A Link</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section class="section">
|
|
|
|
<h2 class="title--section">Badges</h2>
|
|
|
|
<div class="card--inline">
|
|
|
|
<div class="card__body">
|
|
|
|
<button class="button badge--tag">gaming</button>
|
|
|
|
<button class="button badge--tag-mature">pr0n</button>
|
|
|
|
<button class="button badge--cost">12 LBC</button>
|
|
|
|
<button class="button badge--alert">Warning</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section class="section">
|
|
|
|
<h2 class="title--section">Form Elements</h2>
|
|
|
|
<div class="card--inline">
|
|
|
|
<div class="card__body">
|
|
|
|
<fieldset-section>
|
|
|
|
<label for="name">Name</label>
|
|
|
|
<input id="name" placeholder="Cool guy Sean" type="text" />
|
|
|
|
</fieldset-section>
|
|
|
|
|
|
|
|
<fieldset-section>
|
|
|
|
<label for="emailAddress">Subscribe to our newsletter</label>
|
2019-02-06 01:03:03 +01:00
|
|
|
|
|
|
|
<input-submit>
|
2019-11-22 22:04:03 +01:00
|
|
|
<input
|
|
|
|
id="emailAddress"
|
|
|
|
placeholder="you@domain.tld"
|
|
|
|
type="text"
|
|
|
|
/>
|
|
|
|
<button
|
|
|
|
class="button button--secondary"
|
|
|
|
title="Subscribe to our technical newsletter"
|
|
|
|
>
|
|
|
|
Subscribe
|
|
|
|
</button>
|
2019-02-06 01:03:03 +01:00
|
|
|
</input-submit>
|
2019-11-22 22:04:03 +01:00
|
|
|
</fieldset-section>
|
|
|
|
|
|
|
|
<fieldset-section>
|
|
|
|
<label for="starter">Pokémon</label>
|
|
|
|
<select id="starter">
|
|
|
|
<option disabled selected>Choose a Pokémon</option>
|
|
|
|
<option>Bulbasaur</option>
|
|
|
|
<option>Charmander</option>
|
|
|
|
<option>Squirtle</option>
|
|
|
|
</select>
|
|
|
|
</fieldset-section>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card--inline">
|
|
|
|
<div class="card__body">
|
|
|
|
<fieldset-section>
|
|
|
|
<fieldset-section class="checkbox">
|
2019-11-20 19:52:13 +01:00
|
|
|
<label for="test-checkbox-1">Checkbox</label>
|
2019-11-22 22:04:03 +01:00
|
|
|
<input id="test-checkbox-1" name="check" type="checkbox" />
|
|
|
|
</fieldset-section>
|
|
|
|
<fieldset-section class="checkbox">
|
|
|
|
<label for="test-checkbox-2">Another</label>
|
|
|
|
<input id="test-checkbox-2" name="check-2" type="checkbox" />
|
|
|
|
</fieldset-section>
|
|
|
|
</fieldset-section>
|
|
|
|
<fieldset-section class="radio">
|
|
|
|
<label for="test-radio-1">Radio</label>
|
|
|
|
<input id="test-radio-1" name="check" type="radio" />
|
|
|
|
</fieldset-section>
|
|
|
|
<fieldset-section class="radio">
|
|
|
|
<label for="test-radio-2">Another Radio</label>
|
|
|
|
<input id="test-radio-2" name="check-2" type="radio" />
|
|
|
|
</fieldset-section>
|
|
|
|
<fieldset-section class="radio">
|
|
|
|
<label for="test-radio-2">Another Radio</label>
|
|
|
|
<input id="test-radio-2" name="check-2" type="radio" />
|
|
|
|
</fieldset-section>
|
|
|
|
<fieldset-section class="radio">
|
|
|
|
<label for="test-radio-2">Another Radio</label>
|
|
|
|
<input id="test-radio-2" name="check-2" type="radio" />
|
|
|
|
</fieldset-section>
|
|
|
|
<fieldset-section class="radio">
|
|
|
|
<label for="test-radio-1">Radio</label>
|
|
|
|
<input id="test-radio-1" name="check" type="radio" />
|
|
|
|
</fieldset-section>
|
|
|
|
<fieldset-section class="radio">
|
|
|
|
<label for="test-radio-2">Another Radio</label>
|
|
|
|
<input id="test-radio-2" name="check-2" type="radio" />
|
|
|
|
</fieldset-section>
|
|
|
|
<fieldset-section class="radio">
|
|
|
|
<label for="test-radio-2">Another Radio</label>
|
|
|
|
<input id="test-radio-2" name="check-2" type="radio" />
|
|
|
|
</fieldset-section>
|
|
|
|
<fieldset-section class="radio">
|
|
|
|
<label for="test-radio-2">Another Radio</label>
|
|
|
|
<input id="test-radio-2" name="check-2" type="radio" />
|
|
|
|
</fieldset-section>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2019-02-06 01:03:03 +01:00
|
|
|
</body>
|
|
|
|
</html>
|