Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

Commit

Permalink
Created component that makes it easy for the user to know when they h…
Browse files Browse the repository at this point in the history
…ave new notifications. (#8)
  • Loading branch information
hjdesigner authored and mazipan committed Oct 23, 2017
1 parent b8fc5ca commit 3a4f8f2
Show file tree
Hide file tree
Showing 10 changed files with 7,583 additions and 23 deletions.
20 changes: 20 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ <h1>BEM KIT
<li class="tabs__itemv" data-target="#table" onclick="_trackLink('tab vertical table', 'demo bem-kit', 'click')">
<a href="#table">Table</a>
</li>
<li class="tabs__itemv" data-target="#badge" onclick="_trackLink('tab vertical badge', 'demo bem-kit', 'click')">
<a href="#badge">Badge</a>
</li>
</ul>
</nav>

Expand Down Expand Up @@ -1274,6 +1277,23 @@ <h4>Pagination</h4>
</div>
</section>

<section class="content--badge" id="badge">
<h2 class="content__title">Badge</h2>
<div class="content__wrapper">
<div class="badge">
<a href="javascript:void(0)" class="badge__item">Mazipan <span class="badge__info ">1</span></a>
<a href="javascript:void(0)" class="badge__item">Mazipan <span class="badge__info badge--state-new">1 new</span></a>
</div>
</div>
<pre><code class="language-markup">
&lt;!-- snippet code for Badge --&gt;
&lt;div class="badge"&gt;
&lt;a href="javascript:void(0)" class="badge__item"&gt;Mazipan &lt;span class="badge__info "&gt;1&lt;/span&gt;&lt;/a&gt;
&lt;a href="javascript:void(0)" class="badge__item"&gt;Mazipan &lt;span class="badge__info badge--state-new"&gt;1 new&lt;/span&gt;&lt;/a&gt;
&lt;/div&gt;
</code></pre>
</section>

</article>

</div>
Expand Down
20 changes: 15 additions & 5 deletions dist/bem-kit.css
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ textarea { resize: none; }

.checkbox + label:before { position: absolute; top: 4px; left: 0; width: 18px; height: 18px; border: 1px solid #CCC; border-radius: 1px; background-color: #fff; content: ''; }

.checkbox + label:after { position: absolute; color: #fff; content: ''; border-top: 2px solid transparent; border-left: 2px solid transparent; border-right: 2px solid #fff; border-bottom: 2px solid #fff; -webkit-transform: rotate(37deg); transform: rotate(37deg); -webkit-transition: border 0.25s, background-color 0.25s; transition: border 0.25s, background-color 0.25s; -webkit-transform-origin: 100% 100%; transform-origin: 100% 100%; }
.checkbox + label:after { position: absolute; color: #fff; content: ''; border-top: 2px solid transparent; border-left: 2px solid transparent; border-right: 2px solid #fff; border-bottom: 2px solid #fff; -webkit-transform: rotate(37deg); transform: rotate(37deg); transition: border 0.25s, background-color 0.25s; -webkit-transform-origin: 100% 100%; transform-origin: 100% 100%; }

.checkbox:not(:checked) + label:after { width: 0; height: 0; top: 6px; left: 1px; }

Expand All @@ -308,9 +308,9 @@ textarea { resize: none; }

.radio + label { position: relative; display: inline-block; padding: 2px 30px; cursor: pointer; }

.radio + label:before, .radio + label:after { position: absolute; top: 0; content: ''; -webkit-transition: all .2s; transition: all .2s; }
.radio + label:before, .radio + label:after { position: absolute; top: 0; content: ''; transition: all .2s; }

.radio + label:before { left: 3px; width: 12px; height: 12px; margin-top: 3px; border: 1px solid #000; border-radius: 50%; -webkit-transition: background-color 0.25s; transition: background-color 0.25s; }
.radio + label:before { left: 3px; width: 12px; height: 12px; margin-top: 3px; border: 1px solid #000; border-radius: 50%; transition: background-color 0.25s; }

.radio + label:after { left: 0; width: 18px; height: 18px; border: 1px solid #000; border-radius: 50%; }

Expand Down Expand Up @@ -472,7 +472,7 @@ textarea { resize: none; }

.alert--white .alert__close:hover { text-decoration: none; }

.card { box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); -webkit-transition: 0.3s; transition: 0.3s; }
.card { box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); transition: 0.3s; }

.card:hover { box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2); }

Expand Down Expand Up @@ -510,7 +510,7 @@ textarea { resize: none; }

.popover { position: relative; cursor: pointer; }

.popover__content { visibility: hidden; background-color: #1a1a1a; color: #fff; text-align: center; border-radius: 6px; padding: 1em; position: absolute; z-index: 1; bottom: 125%; left: 50%; margin-left: -60px; opacity: 0; -webkit-transition: opacity 1s; transition: opacity 1s; }
.popover__content { visibility: hidden; background-color: #1a1a1a; color: #fff; text-align: center; border-radius: 6px; padding: 1em; position: absolute; z-index: 1; bottom: 125%; left: 50%; margin-left: -60px; opacity: 0; transition: opacity 1s; }

.popover__content:after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #1a1a1a transparent transparent transparent; }

Expand Down Expand Up @@ -589,3 +589,13 @@ textarea { resize: none; }
.label-outline--white { border: 1px solid #fff; color: #fff; }

.label--radius { border-radius: 2em; padding: .1em .8em .2em .8em; }

.badge { border-radius: 0.25em; border: 1px solid #CCC; }

.badge__item { line-height: 1.5rem; padding: 10px 20px; display: block; margin: 0; border-bottom: 1px solid #CCC; }

.badge__item:last-child { border: 0; }

.badge__info { min-width: 3rem; padding: 0 6px; text-align: center; font-size: 1.2rem; line-height: 22px; height: 22px; color: #757575; float: right; margin-top: calc(.75rem - 11px); }

.badge--state-new { background-color: #89C747; color: #fff; font-size: .8rem; }
1 change: 0 additions & 1 deletion dist/bem-kit.js

This file was deleted.

5 changes: 0 additions & 5 deletions dist/bem-kit.min.css

This file was deleted.

1 change: 0 additions & 1 deletion dist/bem-kit.min.js

This file was deleted.

6 changes: 1 addition & 5 deletions dist/demo.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@
to { top: 0;
opacity: 1; } }

/*
-- SITE BLOCK --
* every block should in seperate file
* for demo I combine into one file
*/
/* -- SITE BLOCK -- every block should in seperate file for demo I combine into one file */
.site { margin: 0; }

.site__main { margin-top: 60px; }
Expand Down
5 changes: 0 additions & 5 deletions dist/demo.min.css

This file was deleted.

Loading

0 comments on commit 3a4f8f2

Please sign in to comment.