1
0
mirror of https://github.com/jenil/chota.git synced 2023-08-10 21:13:07 +03:00
chota/test/components.html

432 lines
12 KiB
HTML
Raw Normal View History

2017-03-30 08:00:14 +03:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2017-04-03 06:26:56 +03:00
<title>Components</title>
2019-03-23 20:54:27 +03:00
<link rel="stylesheet" href="../dist/chota.css">
2017-04-02 22:22:13 +03:00
<style>
.nav {
border: 1px solid red;
2020-05-16 17:25:33 +03:00
}
body.dark {
--bg-color: #000;
2020-05-16 21:12:51 +03:00
--bg-secondary-color: #131316;
2020-05-16 17:25:33 +03:00
--font-color: #f5f5f5;
--color-grey: #ccc;
--color-darkGrey: #777;
2017-04-02 22:22:13 +03:00
}
</style>
2017-03-30 08:00:14 +03:00
</head>
<body>
<div class="container">
2020-05-16 17:25:33 +03:00
<h1 class="pull-right" style="margin: 0;">
<a href="javascript:void(0)" onclick="switchMode(this)">☀️</a>
</h1>
<h1>Nav</h1>
</div>
2020-05-16 17:25:33 +03:00
<div class="clearfix" ></div>
2017-03-30 08:00:14 +03:00
<nav class="nav">
<div class="container">
<div class="nav-left">
2017-04-03 06:26:56 +03:00
<a class="brand" href="#">Logo</a>
2017-03-30 08:00:14 +03:00
</div>
<div class="nav-center">
2017-04-02 22:22:13 +03:00
<a class="button outline" href="#">Centered</a>
2017-03-30 08:00:14 +03:00
</div>
<div class="nav-right">
<a href="#!1.html">Link 1</a>
<a href="#!2.html">Link 2</a>
2017-04-03 06:26:56 +03:00
<a href="#!3.html" class="active">Link 3</a>
2017-03-30 08:00:14 +03:00
</div>
</div>
</nav>
2017-04-02 22:22:13 +03:00
<br>
<hr>
<br>
2017-04-02 22:22:13 +03:00
<nav class="nav">
<div class="nav-left">
2017-04-03 06:26:56 +03:00
<a class="brand" href="#">Logo</a>
2017-04-02 22:22:13 +03:00
</div>
<div class="nav-center">
<a href="#">Centered</a>
</div>
<div class="nav-right">
<a href="#!1.html">Link 1</a>
<a href="#!2.html">Link 2</a>
<a href="#!3.html">Link 3</a>
</div>
</nav>
2017-03-30 08:00:14 +03:00
<div class="container">
<section>
<br>
<hr>
<br>
<nav class="nav">
<div class="nav-center">
2017-04-02 22:22:13 +03:00
<a href="#!1.html">Link 1</a>
<a href="#!2.html">Link 2</a>
2017-04-03 06:26:56 +03:00
<a href="#!3.html" class="active">Link 3</a>
<a href="#!" class="button primary">Button</a>
2017-04-02 22:22:13 +03:00
</div>
</nav>
<br>
<hr>
<br>
<nav class="nav">
<div class="nav-left">
<a class="brand" href="#">
2019-03-23 20:54:27 +03:00
<img src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" alt="">
Brand</a>
2017-03-30 08:00:14 +03:00
</div>
<div class="nav-right">
<div class="tabs">
<a href="#!1.html">Link 1</a>
<a href="#!2.html">Link 2</a>
<a href="#!3.html" class="active">Link 3</a>
</div>
2017-03-30 08:00:14 +03:00
</div>
</nav>
<br>
<hr>
<br>
<nav class="nav">
<div class="nav-left">
<a class="brand" href="#">
<img src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" alt="">
</a>
<div class="tabs">
<a href="#!1.html">Link 1</a>
<a href="#!2.html">Link 2</a>
<a href="#!3.html">Link 3</a>
</div>
</div>
</nav>
<br>
<hr>
<br>
</section>
<section>
<h1>Tabs</h1>
<div class="tabs">
<a class="active" href="#!1.html">Tab 1</a>
<a href="#!2.html">Tab 2</a>
<a href="#!3.html">Tab 3</a>
</div>
<br>
<hr>
<br>
<div class="tabs is-full">
<a class="active" href="#!1.html">Tab 1</a>
<a href="#!2.html">Tab 2</a>
<a href="#!3.html">Tab 3</a>
</div>
</section>
<section>
<h1>Card</h1>
<div class="row is-center">
<div class="col-4">
<div class="card">
<header>
<h4>Card title</h4>
</header>
2019-03-23 20:54:27 +03:00
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore
magna aliqua. Ut enim ad minim veniam, quis nostrud exercit.</p>
<footer class="is-right">
<a href="#!" class="button primary">Submit</a>
<a href="#!" class="button">Cancel</a>
</footer>
</div>
</div>
<div class="col-6">
<div class="card">
2019-03-23 20:54:27 +03:00
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore
magna aliqua. Ut enim ad minim veniam, quis nostrud exercit.</p>
2019-03-23 20:54:27 +03:00
<p>Ipsa magnam consequatur itaque, mollitia non quam voluptate consequuntur dignissimos recusandae ea quas,
nobis,
debitis officia iure minus et dolore, reprehenderit sapiente iste. Eligendi eveniet ut qui at, deleniti
enim!</p>
</div>
2017-03-30 08:00:14 +03:00
</div>
</div>
</section>
<section>
<h1>Tag</h1>
<p>
<span class="tag">One</span>
<span class="tag">Two</span>
<span class="tag">Three</span>
<span class="tag is-small">Small</span>
<span class="tag is-large">Large</span>
</p>
</section>
<section>
<h1>Grid</h1>
<div class="row">
<div class="col">
<div class="card is-center">.col</div>
</div>
2017-03-30 08:00:14 +03:00
</div>
<div class="row">
<div class="col">
<div class="card is-center">.col</div>
</div>
<div class="col">
<div class="card is-center">.col</div>
</div>
<div class="col">
<div class="card is-center">.col</div>
</div>
2017-03-30 08:00:14 +03:00
</div>
<div class="row">
<div class="col-1">
<div class="card is-center">.col-1</div>
</div>
<div class="col-1">
<div class="card is-center">.col-1</div>
</div>
<div class="col-1">
<div class="card is-center">.col-1</div>
</div>
<div class="col-1">
<div class="card is-center">.col-1</div>
</div>
<div class="col-1">
<div class="card is-center">.col-1</div>
</div>
<div class="col-1">
<div class="card is-center">.col-1</div>
</div>
<div class="col-1">
<div class="card is-center">.col-1</div>
</div>
<div class="col-1">
<div class="card is-center">.col-1</div>
</div>
<div class="col-1">
<div class="card is-center">.col-1</div>
</div>
<div class="col-1">
<div class="card is-center">.col-1</div>
</div>
<div class="col-1">
<div class="card is-center">.col-1</div>
</div>
<div class="col-1">
<div class="card is-center">.col-1</div>
</div>
2017-03-30 08:00:14 +03:00
</div>
<div class="row">
<div class="col-2">
<div class="card is-center">.col-2</div>
</div>
<div class="col-2">
<div class="card is-center">.col-2</div>
</div>
<div class="col-2">
<div class="card is-center">.col-2</div>
</div>
<div class="col">
<div class="card is-center">.col</div>
</div>
2017-03-30 08:00:14 +03:00
</div>
<div class="row">
<div class="col-3">
<div class="card is-center">.col-3</div>
</div>
<div class="col-3">
<div class="card is-center">.col-3</div>
</div>
<div class="col-3">
<div class="card is-center">.col-3</div>
</div>
<div class="col-3">
<div class="card is-center">.col-3</div>
</div>
2017-03-30 08:00:14 +03:00
</div>
<div class="row">
<div class="col-4">
<div class="card is-center">.col-4</div>
</div>
<div class="col-4">
<div class="card is-center">.col-4</div>
</div>
<div class="col-4">
<div class="card is-center">.col-4</div>
</div>
2017-03-30 08:00:14 +03:00
</div>
<div class="row">
<div class="col-5">
<div class="card is-center">.col-5</div>
</div>
<div class="col-5">
<div class="card is-center">.col-5</div>
</div>
<div class="col">
<div class="card is-center">.col</div>
</div>
2017-03-30 08:00:14 +03:00
</div>
<div class="row">
<div class="col-6">
<div class="card is-center">.col-6</div>
</div>
<div class="col-6">
<div class="card is-center">.col-6</div>
</div>
2017-03-30 08:00:14 +03:00
</div>
<div class="row">
<div class="col-7">
<div class="card is-center">.col-7</div>
</div>
<div class="col">
<div class="card is-center">.col</div>
</div>
<div class="col-1">
<div class="card is-center">.col-1</div>
</div>
2017-03-30 08:00:14 +03:00
</div>
<div class="row">
<div class="col-8">
<div class="card is-center">.col-8</div>
</div>
<div class="col">
<div class="card is-center">.col</div>
</div>
<div class="col-1">
<div class="card is-center">.col-1</div>
</div>
2017-03-30 08:00:14 +03:00
</div>
<div class="row">
<div class="col-9">
<div class="card is-center">.col-9</div>
</div>
<div class="col">
<div class="card is-center">.col</div>
</div>
<div class="col-1">
<div class="card is-center">.col-1</div>
</div>
2017-03-30 08:00:14 +03:00
</div>
<div class="row">
<div class="col-10">
<div class="card is-center">.col-10</div>
</div>
<div class="col">
<div class="card is-center">.col</div>
</div>
2017-03-30 08:00:14 +03:00
</div>
<div class="row">
<div class="col-11">
<div class="card is-center">.col-11</div>
</div>
<div class="col">
<div class="card is-center">.col</div>
</div>
2017-03-30 08:00:14 +03:00
</div>
<div class="row">
<div class="col-12">
<div class="card is-center">.col-12</div>
</div>
2017-03-30 08:00:14 +03:00
</div>
2019-03-23 20:54:27 +03:00
<h4>Responsive grids:</h4>
<div class="row">
<div class="col-12 col-6-md col-4-lg">
<div class="card is-center">.col-12.col-6-md.col-4-lg</div>
</div>
<div class="col-6 col-3-md col-4-lg">
<div class="card is-center">.col-6.col-3-md.col-4-lg</div>
</div>
<div class="col-6 col-3-md col-4-lg">
<div class="card is-center">.col-6.col-3-md.col-4-lg</div>
</div>
</div>
<div class="row">
<div class="col col-6-lg">
<div class="card is-center">.col.col-6-lg</div>
</div>
<div class="col col-3-lg">
<div class="card is-center">.col.col-3-lg</div>
</div>
<div class="col col-3-lg">
<div class="card is-center">.col.col-3-lg</div>
</div>
</div>
<div class="row">
<div class="col hide-sm">
<div class="card is-center">.hide-sm</div>
</div>
<div class="col hide-md">
<div class="card is-center">.hide-md</div>
</div>
<div class="col hide-lg">
<div class="card is-center">.hide-lg</div>
</div>
</div>
</section>
<section>
<h1>Helpers</h1>
<h4>Text color</h4>
<p class="text-primary">Primary</p>
<p class="text-light">Light</p>
<p class="text-grey">Grey</p>
<p class="text-dark">Dark</p>
<p class="text-error">Error</p>
<p class="text-success">Success</p>
<h4>Background color</h4>
<div class="row">
<div class="col">
<div class="card bg-primary">.bg-primary</div>
</div>
<div class="col">
<div class="card bg-light">.bg-light</div>
</div>
<div class="col">
<div class="card bg-grey">.bg-grey</div>
</div>
<div class="col">
<div class="card bg-dark">.bg-dark</div>
</div>
<div class="col">
<div class="card bg-success">.bg-success</div>
</div>
<div class="col">
<div class="card bg-error">.bg-error</div>
</div>
</div>
2019-05-12 19:49:51 +03:00
<h4>Responsive Helpers</h4>
<div class="hide-xs">.hide-xs</div>
<div class="hide-sm">.hide-sm</div>
<div class="hide-md">.hide-md</div>
<div class="hide-lg">.hide-lg</div>
</section>
<section>
<h1>Icons</h1>
2019-03-23 20:54:27 +03:00
<button type="button" class="button primary icon">New file
<img src="https://icongr.am/feather/file.svg?size=16&color=ffffff" alt="icon">
</button>
<button type="button" class="button icon">New file
<img src="https://icongr.am/feather/file.svg?size=12" alt="icon">
</button>
2019-03-23 20:54:27 +03:00
<button type="button" class="button dark icon">New file
<img src="https://icongr.am/feather/file.svg?size=32&color=ffffff" alt="icon">
</button>
<button class="button icon-only">
<img src="https://icongr.am/feather/search.svg?size=16">
</button>
<button class="button icon-only">
<img src="https://icongr.am/feather/search.svg">
</button>
</section>
2017-03-30 08:00:14 +03:00
</div>
<p>
<br>
</p>
2020-05-16 17:25:33 +03:00
<script src="../docs/main.js"></script>
2017-03-30 08:00:14 +03:00
</body>
</html>