mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-29 16:59:58 +02:00
fix(index.html): fix conflicts with develop and add alt to sample code.
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
**/*.html
|
||||
**/*.md
|
||||
demo/lib/*
|
||||
|
115
demo/lib/highlight-theme.css
Normal file
115
demo/lib/highlight-theme.css
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Visual Studio 2015 dark style
|
||||
* Author: Nicolas LLOBERA <nllobera@gmail.com>
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #1E1E1E;
|
||||
color: #DCDCDC;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-literal,
|
||||
.hljs-symbol,
|
||||
.hljs-name {
|
||||
color: #569CD6;
|
||||
}
|
||||
.hljs-link {
|
||||
color: #569CD6;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.hljs-built_in,
|
||||
.hljs-type {
|
||||
color: #4EC9B0;
|
||||
}
|
||||
|
||||
.hljs-number,
|
||||
.hljs-class {
|
||||
color: #B8D7A3;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-meta-string {
|
||||
color: #D69D85;
|
||||
}
|
||||
|
||||
.hljs-regexp,
|
||||
.hljs-template-tag {
|
||||
color: #9A5334;
|
||||
}
|
||||
|
||||
.hljs-subst,
|
||||
.hljs-function,
|
||||
.hljs-title,
|
||||
.hljs-params,
|
||||
.hljs-formula {
|
||||
color: #DCDCDC;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #57A64A;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-doctag {
|
||||
color: #608B4E;
|
||||
}
|
||||
|
||||
.hljs-meta,
|
||||
.hljs-meta-keyword,
|
||||
.hljs-tag {
|
||||
color: #9B9B9B;
|
||||
}
|
||||
|
||||
.hljs-variable,
|
||||
.hljs-template-variable {
|
||||
color: #BD63C5;
|
||||
}
|
||||
|
||||
.hljs-attr,
|
||||
.hljs-attribute,
|
||||
.hljs-builtin-name {
|
||||
color: #9CDCFE;
|
||||
}
|
||||
|
||||
.hljs-section {
|
||||
color: gold;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/*.hljs-code {
|
||||
font-family:'Monospace';
|
||||
}*/
|
||||
|
||||
.hljs-bullet,
|
||||
.hljs-selector-tag,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class,
|
||||
.hljs-selector-attr,
|
||||
.hljs-selector-pseudo {
|
||||
color: #D7BA7D;
|
||||
}
|
||||
|
||||
.hljs-addition {
|
||||
background-color: #144212;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.hljs-deletion {
|
||||
background-color: #600;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
2
demo/lib/highlight.js
Normal file
2
demo/lib/highlight.js
Normal file
File diff suppressed because one or more lines are too long
@@ -56,6 +56,14 @@ div.containers > .nes-container {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
#table {
|
||||
margin: 35px auto;
|
||||
}
|
||||
|
||||
#progress {
|
||||
margin-top: 35px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
text-align: center;
|
||||
}
|
||||
@@ -87,6 +95,65 @@ div.containers > .nes-container {
|
||||
align-self: flex-end;
|
||||
}
|
||||
|
||||
.show-code {
|
||||
position: absolute;
|
||||
top: -4px;
|
||||
right: -4px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
width: 40px;
|
||||
height: 34px;
|
||||
font-size: 0.7em;
|
||||
}
|
||||
|
||||
.sample-code {
|
||||
margin: 0;
|
||||
}
|
||||
.sample-code > code {
|
||||
padding: 1em 2em;
|
||||
line-height: 2em;
|
||||
}
|
||||
|
||||
.code {
|
||||
display: none;
|
||||
padding: 0;
|
||||
margin-top: -20px;
|
||||
font-size: 0.85em;
|
||||
}
|
||||
|
||||
.copy {
|
||||
width: 58px;
|
||||
height: 34px;
|
||||
}
|
||||
|
||||
#form .nes-field,
|
||||
#form .field {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.copied {
|
||||
position: absolute;
|
||||
right: 35px;
|
||||
bottom: 25px;
|
||||
z-index: 2;
|
||||
display: none;
|
||||
padding: 10px;
|
||||
font-size: 0.7em;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.balloon .copied {
|
||||
right: 10px;
|
||||
bottom: -4px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1280px) {
|
||||
.code p:first-child {
|
||||
width: 99%;
|
||||
padding-top: 2.7em;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
body {
|
||||
padding: 0;
|
||||
@@ -99,4 +166,14 @@ div.containers > .nes-container {
|
||||
.github-link {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.code p {
|
||||
width: 100%;
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
#code-avatars p {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
475
index.html
475
index.html
@@ -14,8 +14,11 @@
|
||||
<title>NES.css - NES-style CSS Framework</title>
|
||||
|
||||
<link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
|
||||
<link href="https://unpkg.com/nes.css/css/nes.min.css" rel="stylesheet" />
|
||||
<link href="./style.css" rel="stylesheet" />
|
||||
<link href="./css/nes.min.css" rel="stylesheet" />
|
||||
<link href="./demo/style.css" rel="stylesheet" />
|
||||
<script async src="./demo/lib/highlight.js"></script>
|
||||
<link async href="./demo/lib/highlight-theme.css" rel="stylesheet" />
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="NES.css" />
|
||||
@@ -44,7 +47,7 @@
|
||||
|
||||
<section class="nes-container with-title">
|
||||
<h2 class="title">Buttons</h2>
|
||||
<div>
|
||||
<div id="buttons">
|
||||
<button type="button" class="nes-btn">Normal</button>
|
||||
<button type="button" class="nes-btn is-primary">Primary</button>
|
||||
<button type="button" class="nes-btn is-success">Success</button>
|
||||
@@ -52,11 +55,22 @@
|
||||
<button type="button" class="nes-btn is-error">Error</button>
|
||||
<button type="button" class="nes-btn is-disabled">Disabled</button>
|
||||
</div>
|
||||
<button type="button" class="nes-btn is-error show-code" id="show-buttons-code"><></button>
|
||||
<span class="nes-balloon from-right copied" id="copied-buttons">Copied!</span>
|
||||
</section>
|
||||
<section class="nes-container code" id="code-buttons">
|
||||
<pre class="sample-code"><code class="html"><button type="button" class="nes-btn">Normal</button>
|
||||
<button type="button" class="nes-btn is-primary">Primary</button>
|
||||
<button type="button" class="nes-btn is-success">Success</button>
|
||||
<button type="button" class="nes-btn is-warning">Warning</button>
|
||||
<button type="button" class="nes-btn is-error">Error</button>
|
||||
<button type="button" class="nes-btn is-disabled">Disabled</button></code></pre>
|
||||
<button type="button" class="nes-btn show-code copy" onClick="copyToClipboard('buttons')">Copy</button>
|
||||
</section>
|
||||
|
||||
<section class="nes-container with-title">
|
||||
<h2 class="title">Containers</h2>
|
||||
<div class="containers">
|
||||
<div class="containers" id="containers">
|
||||
<div class="nes-container with-title is-centered">
|
||||
<p class="title">Container.is-centered</p>
|
||||
<p>Good morning. Thou hast had a good night's sleep, I hope.</p>
|
||||
@@ -72,11 +86,29 @@
|
||||
<p>Good morning. Thou hast had a good night's sleep, I hope.</p>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="nes-btn is-error show-code" id="show-containers-code"><></button>
|
||||
<span class="nes-balloon from-right copied" id="copied-containers">Copied!</span>
|
||||
</section>
|
||||
<section class="nes-container code" id="code-containers">
|
||||
<pre class="sample-code"><code class="html"><div class="nes-container with-title is-centered">
|
||||
<p class="title">Container.is-centered</p>
|
||||
<p>Good morning. Thou hast had a good night's sleep, I hope.</p>
|
||||
</div>
|
||||
<div class="nes-container is-dark with-title">
|
||||
<p class="title">Container.is-dark</p>
|
||||
<p>Good morning. Thou hast had a good night's sleep, I hope.</p>
|
||||
</div>
|
||||
<div class="nes-container is-rounded">
|
||||
<p>Good morning. Thou hast had a good night's sleep, I hope.</p>
|
||||
</div>
|
||||
<div class="nes-container is-rounded is-dark">
|
||||
<p>Good morning. Thou hast had a good night's sleep, I hope.</p>
|
||||
</div></code></pre>
|
||||
<button type="button" class="nes-btn show-code copy" onClick="copyToClipboard('containers')">Copy</button>
|
||||
</section>
|
||||
|
||||
<section class="nes-container with-title">
|
||||
<h2 class="title">Radios</h2>
|
||||
<div>
|
||||
<div id="radios">
|
||||
<label>
|
||||
<input type="radio" class="nes-radio" name="answer" checked />
|
||||
<span>Yes</span>
|
||||
@@ -86,19 +118,51 @@
|
||||
<span>No</span>
|
||||
</label>
|
||||
</div>
|
||||
<button type="button" class="nes-btn is-error show-code" id="show-radios-code"><></button>
|
||||
<span class="nes-balloon from-right copied" id="copied-radios">Copied!</span>
|
||||
</section>
|
||||
<section class="nes-container code" id="code-radios">
|
||||
<pre class="sample-code"><code class="html"><label>
|
||||
<input type="radio" class="nes-radio" name="answer" checked />
|
||||
<span>Yes</span>
|
||||
</label>
|
||||
<label>
|
||||
<input type="radio" class="nes-radio" name="answer" />
|
||||
<span>No</span>
|
||||
</label></code></pre>
|
||||
<button type="button" class="nes-btn show-code copy" onClick="copyToClipboard('radios')">Copy</button>
|
||||
</section>
|
||||
|
||||
<section class="nes-container with-title">
|
||||
<h2 class="title">Checkboxes</h2>
|
||||
<div id="checkboxes">
|
||||
<label>
|
||||
<input type="checkbox" class="nes-checkbox" checked />
|
||||
<span>Enable</span>
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" class="nes-checkbox is-dark" checked />
|
||||
<span>Dark</span>
|
||||
</label>
|
||||
</div>
|
||||
<button type="button" class="nes-btn is-error show-code" id="show-checkboxes-code"><></button>
|
||||
<span class="nes-balloon from-right copied" id="copied-checkboxes">Copied!</span>
|
||||
</section>
|
||||
<section class="nes-container code" id="code-checkboxes">
|
||||
<pre class="sample-code"><code class="html"><label>
|
||||
<input type="checkbox" class="nes-checkbox" checked />
|
||||
<span>Enable</span>
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" class="nes-checkbox is-dark" checked />
|
||||
<span>Dark</span>
|
||||
</label></code></pre>
|
||||
<button type="button" class="nes-btn show-code copy" onClick="copyToClipboard('checkboxes')">Copy</button>
|
||||
</section>
|
||||
|
||||
<section class="nes-container with-title">
|
||||
<h2 class="title">Avatars</h2>
|
||||
<div>
|
||||
<div id="avatars">
|
||||
<img src="https://ik.imagekit.io/6xhf1gnexgdgk/avatar_Hku4rzo4N.png" class="nes-avatar is-small" alt="8bit Avatar Example">
|
||||
<img src="https://ik.imagekit.io/6xhf1gnexgdgk/avatar_Hku4rzo4N.png" class="nes-avatar" alt="8bit Avatar Example">
|
||||
<img src="https://ik.imagekit.io/6xhf1gnexgdgk/avatar_Hku4rzo4N.png" class="nes-avatar is-medium" alt="8bit Avatar Example">
|
||||
@@ -108,10 +172,24 @@
|
||||
<img src="https://ik.imagekit.io/6xhf1gnexgdgk/avatar_Hku4rzo4N.png" class="nes-avatar is-medium is-rounded" alt="8bit Avatar Example">
|
||||
<img src="https://ik.imagekit.io/6xhf1gnexgdgk/avatar_Hku4rzo4N.png" class="nes-avatar is-large is-rounded" alt="8bit Avatar Example">
|
||||
</div>
|
||||
<button type="button" class="nes-btn is-error show-code" id="show-avatars-code"><></button>
|
||||
<span class="nes-balloon from-right copied" id="copied-avatars">Copied!</span>
|
||||
</section>
|
||||
<section class="nes-container code" id="code-avatars">
|
||||
<pre class="sample-code"><code class="html"><img src="https://www.gravatar.com/avatar" class="nes-avatar is-small" alt="8bit Avatar Example">
|
||||
<img src="https://www.gravatar.com/avatar" class="nes-avatar" alt="8bit Avatar Example">
|
||||
<img src="https://www.gravatar.com/avatar" class="nes-avatar is-medium" alt="8bit Avatar Example">
|
||||
<img src="https://www.gravatar.com/avatar" class="nes-avatar is-large" alt="8bit Avatar Example">
|
||||
<img src="https://www.gravatar.com/avatar" class="nes-avatar is-rounded" alt="8bit Avatar Example">
|
||||
<img src="https://www.gravatar.com/avatar" class="nes-avatar is-small is-rounded" alt="8bit Avatar Example">
|
||||
<img src="https://www.gravatar.com/avatar" class="nes-avatar is-medium is-rounded" alt="8bit Avatar Example">
|
||||
<img src="https://www.gravatar.com/avatar" class="nes-avatar is-large is-rounded" alt="8bit Avatar Example"></code></pre>
|
||||
<button type="button" class="nes-btn show-code copy" onClick="copyToClipboard('avatars')">Copy</button>
|
||||
</section>
|
||||
|
||||
<section class="form nes-container with-title">
|
||||
<h2 class="title">Form</h2>
|
||||
<div id="form">
|
||||
<div class="nes-field">
|
||||
<label for="name_field">Your name</label>
|
||||
<input type="text" id="name_field" class="nes-input">
|
||||
@@ -165,11 +243,68 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="nes-btn is-error show-code" id="show-form-code"><></button>
|
||||
<span class="nes-balloon from-right copied" id="copied-form">Copied!</span>
|
||||
</section>
|
||||
<section class="nes-container code" id="code-form">
|
||||
<pre class="sample-code"><code class="html"><div class="nes-field">
|
||||
<label for="name_field">Your name</label>
|
||||
<input type="text" id="name_field" class="nes-input">
|
||||
</div>
|
||||
<div class="nes-field is-inline">
|
||||
<label for="inline_field">.input.is-success</label>
|
||||
<input type="text" id="inline_field" class="nes-input is-success" placeholder="NES.css">
|
||||
</div>
|
||||
<div class="nes-field is-inline">
|
||||
<label for="warning_field">.input.is-warning</label>
|
||||
<input type="text" id="warning_field" class="nes-input is-warning" placeholder="8bit.css">
|
||||
</div>
|
||||
<div class="nes-field is-inline">
|
||||
<label for="error_field">.input.is-error</label>
|
||||
<input type="text" id="error_field" class="nes-input is-error" placeholder="awesome.css">
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="textarea_field">Textarea</label>
|
||||
<textarea id="textarea_field" class="nes-textarea"></textarea>
|
||||
</div>
|
||||
|
||||
<div id="selects" class="selects">
|
||||
<div class="nes-select">
|
||||
<select required>
|
||||
<option value="" disabled selected hidden>Select...</option>
|
||||
<option value="0">To be</option>
|
||||
<option value="1">Not to be</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="nes-select is-success">
|
||||
<select required>
|
||||
<option value="" disabled selected hidden>Select...</option>
|
||||
<option value="0">To be</option>
|
||||
<option value="1">Not to be</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="nes-select is-warning">
|
||||
<select required>
|
||||
<option value="" disabled selected hidden>Select...</option>
|
||||
<option value="0">To be</option>
|
||||
<option value="1">Not to be</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="nes-select is-error">
|
||||
<select required>
|
||||
<option value="" disabled selected hidden>Select...</option>
|
||||
<option value="0">To be</option>
|
||||
<option value="1">Not to be</option>
|
||||
</select>
|
||||
</div>
|
||||
</div></code></pre>
|
||||
<button type="button" class="nes-btn show-code copy" onClick="copyToClipboard('form')">Copy</button>
|
||||
</section>
|
||||
|
||||
<section class="balloon nes-container with-title">
|
||||
<h2 class="title">Balloons</h2>
|
||||
<div class="messages">
|
||||
<div class="messages" id="balloons">
|
||||
<div class="message -left">
|
||||
<i class="nes-bcrikko"></i>
|
||||
<div class="nes-balloon from-left">
|
||||
@@ -183,10 +318,28 @@
|
||||
<i class="nes-bcrikko"></i>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="nes-btn is-error show-code" id="show-balloons-code"><></button>
|
||||
<span class="nes-balloon from-right copied" id="copied-balloons">Copied!</span>
|
||||
</section>
|
||||
<section class="nes-container code" id="code-balloons">
|
||||
<pre class="sample-code"><code class="html"><div class="message -left">
|
||||
<i class="nes-bcrikko"></i>
|
||||
<div class="nes-balloon from-left">
|
||||
<p>Hello NES.css</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="message -right">
|
||||
<div class="nes-balloon from-right">
|
||||
<p>Good morning. Thou hast had a good night's sleep, I hope.</p>
|
||||
</div>
|
||||
<i class="nes-bcrikko"></i>
|
||||
</div></code></pre>
|
||||
<button type="button" class="nes-btn show-code copy" onClick="copyToClipboard('balloons')">Copy</button>
|
||||
</section>
|
||||
|
||||
<section class="nes-container with-title">
|
||||
<h2 class="title">Lists</h2>
|
||||
<div id="lists">
|
||||
<div class="lists">
|
||||
<ul class="nes-list is-disc">
|
||||
<li>Good morning.</li>
|
||||
@@ -204,11 +357,34 @@
|
||||
<li>Good night.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="nes-btn is-error show-code" id="show-lists-code"><></button>
|
||||
<span class="nes-balloon from-right copied" id="copied-lists">Copied!</span>
|
||||
</section>
|
||||
<section class="nes-container code" id="code-lists">
|
||||
<pre class="sample-code"><code class="html"><div class="lists">
|
||||
<ul class="nes-list is-disc">
|
||||
<li>Good morning.</li>
|
||||
<li>Thou hast had a good night's sleep, I hope.</li>
|
||||
<li>Thou hast had a good afternoon</li>
|
||||
<li>Good night.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="lists">
|
||||
<ul class="nes-list is-circle">
|
||||
<li>Good morning.</li>
|
||||
<li>Thou hast had a good night's sleep, I hope.</li>
|
||||
<li>Thou hast had a good afternoon</li>
|
||||
<li>Good night.</li>
|
||||
</ul>
|
||||
</div></code></pre>
|
||||
<button type="button" class="nes-btn show-code copy" onClick="copyToClipboard('lists')">Copy</button>
|
||||
</section>
|
||||
|
||||
<section class="nes-container with-title">
|
||||
<h2 class="title">Table</h2>
|
||||
<div class="nes-table-responsive">
|
||||
<div class="nes-table-responsive" id="table">
|
||||
<table class="nes-table is-bordered is-centered">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -260,20 +436,91 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<button type="button" class="nes-btn is-error show-code" id="show-table-code"><></button>
|
||||
<span class="nes-balloon from-right copied" id="copied-table">Copied!</span>
|
||||
</section>
|
||||
<section class="nes-container code" id="code-table">
|
||||
<pre class="sample-code"><code class="html"><div class="nes-table-responsive">
|
||||
<table class="nes-table is-bordered is-centered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Table.is-bordered</th>
|
||||
<th>Table.is-centered</th>
|
||||
<th>Table.is-centered</th>
|
||||
<th>Table.is-centered</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Thou hast had a good morning</td>
|
||||
<td>Thou hast had a good afternoon</td>
|
||||
<td>Thou hast had a good evening</td>
|
||||
<td>Thou hast had a good night</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Thou hast had a good morning</td>
|
||||
<td>Thou hast had a good afternoon</td>
|
||||
<td>Thou hast had a good evening</td>
|
||||
<td>Thou hast had a good night</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="nes-table-responsive">
|
||||
<table class="nes-table is-bordered is-dark">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Table.is-dark</th>
|
||||
<th>Table.is-bordered</th>
|
||||
<th>Table.is-bordered</th>
|
||||
<th>Table.is-bordered</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Thou hast had a good morning</td>
|
||||
<td>Thou hast had a good afternon</td>
|
||||
<td>Thou hast had a good evening</td>
|
||||
<td>Thou hast had a good night</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Thou hast had a good morning</td>
|
||||
<td>Thou hast had a good afternoon</td>
|
||||
<td>Thou hast had a good afternoon</td>
|
||||
<td>Thou hast had a good afternoon</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div></code></pre>
|
||||
<button type="button" class="nes-btn show-code copy" onClick="copyToClipboard('table')">Copy</button>
|
||||
</section>
|
||||
|
||||
<section class="nes-container with-title">
|
||||
<h2 class="title">Progress</h2>
|
||||
<div id="progress">
|
||||
<progress class="nes-progress" value="90" max="100"></progress>
|
||||
<progress class="nes-progress is-primary" value="80" max="100"></progress>
|
||||
<progress class="nes-progress is-success" value="50" max="100"></progress>
|
||||
<progress class="nes-progress is-warning" value="30" max="100"></progress>
|
||||
<progress class="nes-progress is-error" value="10" max="100"></progress>
|
||||
<progress class="nes-progress is-pattern" value="50" max="100"></progress>
|
||||
</div>
|
||||
<button type="button" class="nes-btn is-error show-code" id="show-progress-code"><></button>
|
||||
<span class="nes-balloon from-right copied" id="copied-progress">Copied!</span>
|
||||
</section>
|
||||
<section class="nes-container code" id="code-progress">
|
||||
<pre class="sample-code"><code class="html"><progress class="nes-progress" value="90" max="100"></progress>
|
||||
<progress class="nes-progress is-primary" value="80" max="100"></progress>
|
||||
<progress class="nes-progress is-success" value="50" max="100"></progress>
|
||||
<progress class="nes-progress is-warning" value="30" max="100"></progress>
|
||||
<progress class="nes-progress is-error" value="10" max="100"></progress>
|
||||
<progress class="nes-progress is-pattern" value="50" max="100"></progress></code></pre>
|
||||
<button type="button" class="nes-btn show-code copy" onClick="copyToClipboard('progress')">Copy</button>
|
||||
</section>
|
||||
|
||||
<section class="nes-container with-title">
|
||||
<section class="nes-container with-title" class="badges">
|
||||
<h2 class="title">Badges</h2>
|
||||
<div id="badges">
|
||||
<a href="#" class="nes-badge">
|
||||
<span class="is-dark">NES.css</span>
|
||||
</a>
|
||||
@@ -307,13 +554,52 @@
|
||||
<span class="is-dark">hi</span>
|
||||
<span class="is-warning">Text</span>
|
||||
</a>
|
||||
</div>
|
||||
<button type="button" class="nes-btn is-error show-code" id="show-badges-code"><></button>
|
||||
<span class="nes-balloon from-right copied" id="copied-badges">Copied!</span>
|
||||
</section>
|
||||
<section class="nes-container code" id="code-badges">
|
||||
<pre class="sample-code"><code class="html"><a href="#" class="nes-badge">
|
||||
<span class="is-dark">NES.css</span>
|
||||
</a>
|
||||
<a href="#" class="nes-badge">
|
||||
<span class="is-primary">is</span>
|
||||
</a>
|
||||
<a href="#" class="nes-badge">
|
||||
<span class="is-success">a</span>
|
||||
</a>
|
||||
<a href="#" class="nes-badge">
|
||||
<span class="is-warning">great</span>
|
||||
</a>
|
||||
<a href="#" class="nes-badge">
|
||||
<span class="is-error">framework!</span>
|
||||
</a>
|
||||
<a href="#" class="nes-badge is-splited">
|
||||
<span class="is-dark">npm</span>
|
||||
<span class="is-primary">1.1.0</span>
|
||||
</a>
|
||||
<a href="#" class="nes-badge is-splited">
|
||||
<span class="is-dark">test</span>
|
||||
<span class="is-success">100%</span>
|
||||
</a>
|
||||
<a href="#" class="nes-badge is-icon">
|
||||
<span class="is-warning">
|
||||
<i class="nes-icon star is-small"></i>
|
||||
</span>
|
||||
<span class="is-primary">Icons</span>
|
||||
</a>
|
||||
<a href="#" class="nes-badge is-icon">
|
||||
<span class="is-dark">hi</span>
|
||||
<span class="is-warning">Text</span>
|
||||
</a></code></pre>
|
||||
<button type="button" class="nes-btn show-code copy" onClick="copyToClipboard('badges')">Copy</button>
|
||||
</section>
|
||||
|
||||
<section class="nes-container with-title">
|
||||
<h2 class="title">Icons</h2>
|
||||
<section class="nes-container with-title">
|
||||
<h3 class="title">Reaction</h3>
|
||||
<div>
|
||||
<div id="reaction">
|
||||
<i class="nes-icon heart is-small"></i>
|
||||
<i class="nes-icon heart"></i>
|
||||
<i class="nes-icon heart is-medium"></i>
|
||||
@@ -343,10 +629,44 @@
|
||||
<i class="nes-icon like is-large"></i>
|
||||
<i class="nes-icon like is-empty"></i>
|
||||
</div>
|
||||
<button type="button" class="nes-btn is-error show-code" id="show-reaction-code"><></button>
|
||||
<span class="nes-balloon from-right copied" id="copied-reaction">Copied!</span>
|
||||
</section>
|
||||
<section class="nes-container code" id="code-reaction">
|
||||
<pre class="sample-code"><code class="html"><i class="nes-icon heart is-small"></i>
|
||||
<i class="nes-icon heart"></i>
|
||||
<i class="nes-icon heart is-medium"></i>
|
||||
<i class="nes-icon heart is-large"></i>
|
||||
<i class="nes-icon heart is-empty"></i>
|
||||
|
||||
<i class="nes-icon star is-small"></i>
|
||||
<i class="nes-icon star"></i>
|
||||
<i class="nes-icon star is-medium"></i>
|
||||
<i class="nes-icon star is-large"></i>
|
||||
|
||||
<i class="nes-icon star is-half is-small"></i>
|
||||
<i class="nes-icon star is-half"></i>
|
||||
<i class="nes-icon star is-half is-medium"></i>
|
||||
<i class="nes-icon star is-half is-large"></i>
|
||||
|
||||
<i class="nes-icon star is-transparent is-small"></i>
|
||||
<i class="nes-icon star is-transparent"></i>
|
||||
<i class="nes-icon star is-transparent is-medium"></i>
|
||||
<i class="nes-icon star is-transparent is-large"></i>
|
||||
|
||||
<i class="nes-icon star is-empty"></i>
|
||||
|
||||
<i class="nes-icon like is-small"></i>
|
||||
<i class="nes-icon like"></i>
|
||||
<i class="nes-icon like is-medium"></i>
|
||||
<i class="nes-icon like is-large"></i>
|
||||
<i class="nes-icon like is-empty"></i></code></pre>
|
||||
<button type="button" class="nes-btn show-code copy" onClick="copyToClipboard('reaction')">Copy</button>
|
||||
</section>
|
||||
|
||||
<section class="nes-container with-title">
|
||||
<h3 class="title">SNS</h3>
|
||||
<div>
|
||||
<div id="sns">
|
||||
<i class="nes-icon twitter is-small"></i>
|
||||
<i class="nes-icon twitter"></i>
|
||||
<i class="nes-icon twitter is-medium"></i>
|
||||
@@ -402,11 +722,70 @@
|
||||
<i class="nes-icon linkedin is-medium"></i>
|
||||
<i class="nes-icon linkedin is-large"></i>
|
||||
</div>
|
||||
<button type="button" class="nes-btn is-error show-code" id="show-sns-code"><></button>
|
||||
<span class="nes-balloon from-right copied" id="copied-sns">Copied!</span>
|
||||
</section>
|
||||
<section class="nes-container code" id="code-sns">
|
||||
<pre class="sample-code"><code class="html"><i class="nes-icon twitter is-small"></i>
|
||||
<i class="nes-icon twitter"></i>
|
||||
<i class="nes-icon twitter is-medium"></i>
|
||||
<i class="nes-icon twitter is-large"></i>
|
||||
|
||||
<i class="nes-icon facebook is-small"></i>
|
||||
<i class="nes-icon facebook"></i>
|
||||
<i class="nes-icon facebook is-medium"></i>
|
||||
<i class="nes-icon facebook is-large"></i>
|
||||
|
||||
<i class="nes-icon github is-small"></i>
|
||||
<i class="nes-icon github"></i>
|
||||
<i class="nes-icon github is-medium"></i>
|
||||
<i class="nes-icon github is-large"></i>
|
||||
|
||||
<i class="nes-icon youtube is-small"></i>
|
||||
<i class="nes-icon youtube"></i>
|
||||
<i class="nes-icon youtube is-medium"></i>
|
||||
<i class="nes-icon youtube is-large"></i>
|
||||
|
||||
<i class="nes-icon google is-small"></i>
|
||||
<i class="nes-icon google"></i>
|
||||
<i class="nes-icon google is-medium"></i>
|
||||
<i class="nes-icon google is-large"></i>
|
||||
|
||||
<i class="nes-icon medium is-small"></i>
|
||||
<i class="nes-icon medium"></i>
|
||||
<i class="nes-icon medium is-medium"></i>
|
||||
<i class="nes-icon medium is-large"></i>
|
||||
|
||||
<i class="nes-icon twitch is-small"></i>
|
||||
<i class="nes-icon twitch"></i>
|
||||
<i class="nes-icon twitch is-medium"></i>
|
||||
<i class="nes-icon twitch is-large"></i>
|
||||
|
||||
<i class="nes-icon reddit is-small"></i>
|
||||
<i class="nes-icon reddit"></i>
|
||||
<i class="nes-icon reddit is-medium"></i>
|
||||
<i class="nes-icon reddit is-large"></i>
|
||||
|
||||
<i class="nes-icon whatsapp is-small"></i>
|
||||
<i class="nes-icon whatsapp"></i>
|
||||
<i class="nes-icon whatsapp is-medium"></i>
|
||||
<i class="nes-icon whatsapp is-large"></i>
|
||||
|
||||
<i class="nes-icon gmail is-small"></i>
|
||||
<i class="nes-icon gmail"></i>
|
||||
<i class="nes-icon gmail is-medium"></i>
|
||||
<i class="nes-icon gmail is-large"></i>
|
||||
|
||||
<i class="nes-icon linkedin is-small"></i>
|
||||
<i class="nes-icon linkedin"></i>
|
||||
<i class="nes-icon linkedin is-medium"></i>
|
||||
<i class="nes-icon linkedin is-large"></i></code></pre>
|
||||
<button type="button" class="nes-btn show-code copy" onClick="copyToClipboard('sns')">Copy</button>
|
||||
</section>
|
||||
|
||||
<section class="nes-container with-title">
|
||||
<h3 class="title">Others</h3>
|
||||
<div>
|
||||
<div id="others">
|
||||
<i class="nes-icon close is-small"></i>
|
||||
<i class="nes-icon close"></i>
|
||||
<i class="nes-icon close is-medium"></i>
|
||||
@@ -431,20 +810,56 @@
|
||||
<i class="nes-phone"></i>
|
||||
<i class="nes-kirby"></i>
|
||||
</div>
|
||||
<button type="button" class="nes-btn is-error show-code" id="show-others-code"><></button>
|
||||
<span class="nes-balloon from-right copied" id="copied-others">Copied!</span>
|
||||
</section>
|
||||
<section class="nes-container code" id="code-others">
|
||||
<pre class="sample-code"><code class="html"><i class="nes-icon close is-small"></i>
|
||||
<i class="nes-icon close"></i>
|
||||
<i class="nes-icon close is-medium"></i>
|
||||
<i class="nes-icon close is-large"></i>
|
||||
|
||||
<i class="nes-octocat animate"></i>
|
||||
|
||||
<i class="nes-icon trophy is-small"></i>
|
||||
<i class="nes-icon trophy"></i>
|
||||
<i class="nes-icon trophy is-medium"></i>
|
||||
<i class="nes-icon trophy is-large"></i>
|
||||
|
||||
<i class="nes-mario"></i>
|
||||
<i class="nes-ash"></i>
|
||||
<i class="nes-pokeball"></i>
|
||||
|
||||
<i class="nes-bulbasaur"></i>
|
||||
<i class="nes-charmander"></i>
|
||||
<i class="nes-squirtle"></i>
|
||||
|
||||
<i class="nes-smartphone"></i>
|
||||
<i class="nes-phone"></i>
|
||||
<i class="nes-kirby"></i></code></pre>
|
||||
<button type="button" class="nes-btn show-code copy" onClick="copyToClipboard('others')">Copy</button>
|
||||
</section>
|
||||
|
||||
<section class="nes-container with-title">
|
||||
<h3 class="title">Controllers</h3>
|
||||
<div>
|
||||
<div id="controllers">
|
||||
<i class="nes-logo"></i>
|
||||
<i class="nes-jp-logo"></i>
|
||||
<i class="snes-logo"></i>
|
||||
<i class="snes-jp-logo"></i>
|
||||
</div>
|
||||
<button type="button" class="nes-btn is-error show-code" id="show-controllers-code"><></button>
|
||||
<span class="nes-balloon from-right copied" id="copied-controllers">Copied!</span>
|
||||
</section>
|
||||
<section class="nes-container code" id="code-controllers">
|
||||
<pre class="sample-code"><code class="html"><i class="nes-logo"></i>
|
||||
<i class="nes-jp-logo"></i>
|
||||
<i class="snes-logo"></i>
|
||||
<i class="snes-jp-logo"></i></code></pre>
|
||||
<button type="button" class="nes-btn show-code copy" onClick="copyToClipboard('controllers')">Copy</button>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
<footer class="footer">
|
||||
<p>
|
||||
<a href="https://kuroeveryday.blogspot.com/" target="_blank">Black Everyday Company</a>
|
||||
@@ -454,6 +869,25 @@
|
||||
</footer>
|
||||
</body>
|
||||
<script>
|
||||
function copyToClipboard(element) {
|
||||
var divToClipboard = document.querySelector('#' + element);
|
||||
var el = document.createElement('textarea');
|
||||
el.value = divToClipboard.innerHTML;
|
||||
el.setAttribute('readonly', '');
|
||||
el.style.position = 'absolute';
|
||||
el.style.left = '-9999px';
|
||||
document.body.appendChild(el);
|
||||
el.select();
|
||||
document.execCommand('copy');
|
||||
document.body.removeChild(el);
|
||||
let copiedEl = document.querySelector("#copied-" + element);
|
||||
copiedEl.style.display = 'block'
|
||||
setTimeout(function() {
|
||||
copiedEl.style.display = 'none'
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
window.onload = function() {
|
||||
var link = document.querySelector("a.github-link");
|
||||
var octocat = document.querySelector("a.github-link > i.nes-octocat");
|
||||
link.addEventListener("mouseover", function() {
|
||||
@@ -462,5 +896,16 @@
|
||||
link.addEventListener("mouseout", function() {
|
||||
octocat.classList.remove("animate");
|
||||
});
|
||||
|
||||
var elements = ['buttons', 'containers', 'radios', 'checkboxes', 'avatars', 'form',
|
||||
'balloons', 'lists', 'table', 'progress', 'badges', 'reaction', 'sns', 'others', 'controllers'];
|
||||
for (var i = 0; i < elements.length; i++) {
|
||||
let showEl = document.querySelector("#show-" + elements[i] + "-code");
|
||||
let codeEl = document.querySelector("#code-" + elements[i]);
|
||||
showEl.addEventListener("click", function() {
|
||||
codeEl.style.display = codeEl.style.display === 'block' ? 'none' : 'block';
|
||||
}, false);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
|
@@ -146,11 +146,17 @@
|
||||
"string-quotes": "double",
|
||||
"at-rule-no-unknown": null,
|
||||
"scss/at-rule-no-unknown": true
|
||||
}
|
||||
},
|
||||
"ignoreFiles": [
|
||||
"demo/lib/*"
|
||||
]
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "airbnb-base"
|
||||
},
|
||||
"eslintIgnore": [
|
||||
"demo/lib/*"
|
||||
],
|
||||
"config": {
|
||||
"commitizen": {
|
||||
"path": "./node_modules/cz-conventional-changelog"
|
||||
|
Reference in New Issue
Block a user