298 lines
9.6 KiB
HTML
298 lines
9.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Components by LBRY</title>
|
|
|
|
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
|
|
<link rel="stylesheet" href="../dist/index.css" />
|
|
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/lbryio/components@master/dist/index.css"/> -->
|
|
|
|
<style>
|
|
body {
|
|
padding: 5rem;
|
|
max-width: 110rem;
|
|
margin: auto;
|
|
}
|
|
|
|
li {
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
.docs__color-row {
|
|
margin-bottom: var(--spacing-s);
|
|
}
|
|
|
|
.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);
|
|
}
|
|
|
|
.docs__color h3 {
|
|
margin-bottom: var(--spacing-s);
|
|
}
|
|
|
|
.docs__color.docs__color--primary {
|
|
background-color: var(--color-primary);
|
|
color: var(--color-primary-alt);
|
|
}
|
|
.docs__color.docs__color--primary-alt {
|
|
color: var(--color-primary);
|
|
background-color: var(--color-primary-alt);
|
|
}
|
|
.docs__color.docs__color--secondary {
|
|
background-color: var(--color-secondary);
|
|
}
|
|
.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);
|
|
}
|
|
|
|
.title {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.title--large {
|
|
font-size: 3rem;
|
|
}
|
|
|
|
.title--section {
|
|
font-weight: 700;
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.card--inline {
|
|
border-radius: 5px;
|
|
border: 1px solid var(--color-gray-3);
|
|
margin-top: var(--spacing-s);
|
|
}
|
|
|
|
.card__header {
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
.card__header,
|
|
.card__body {
|
|
padding: var(--spacing-l);
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<header>
|
|
<h1 class="title--large">@lbry/components</h1>
|
|
<p class="section__subtitle">
|
|
Styling for shared components across LBRY properties
|
|
</p>
|
|
</header>
|
|
|
|
<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>
|
|
|
|
<input-submit>
|
|
<input
|
|
id="emailAddress"
|
|
placeholder="you@domain.tld"
|
|
type="text"
|
|
/>
|
|
<button
|
|
class="button button--secondary"
|
|
title="Subscribe to our technical newsletter"
|
|
>
|
|
Subscribe
|
|
</button>
|
|
</input-submit>
|
|
</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">
|
|
<label for="test-checkbox-1">Checkbox</label>
|
|
<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>
|
|
</body>
|
|
</html>
|