Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 79ef812

Browse files
committed
update alert
1 parent 2daf0ea commit 79ef812

File tree

1 file changed

+11
-35
lines changed

1 file changed

+11
-35
lines changed

components/alerts.html

Lines changed: 11 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -33,28 +33,12 @@
3333
</div>
3434
</div>
3535
</div>
36-
<div class="o-grid__cell o-grid__cell--width-50 u-letter-box--small"><pre class="c-pre html"><code class="c-code c-code--multiline">&lt;div class="c-alerts">
37-
&lt;div class="c-alerts__alert">
38-
&lt;button class="c-button c-button--close">&times;&lt;/button>
39-
Default
40-
&lt;/div>
41-
&lt;div class="c-alerts__alert c-alerts__alert--primary">
42-
&lt;button class="c-button c-button--close">&times;&lt;/button>
43-
Primary
44-
&lt;/div>
45-
&lt;div class="c-alerts__alert c-alerts__alert--secondary">
46-
&lt;button class="c-button c-button--close">&times;&lt;/button>
47-
Secondary
48-
&lt;/div>
49-
&lt;div class="c-alerts__alert c-alerts__alert--success">
50-
&lt;button class="c-button c-button--close">&times;&lt;/button>
51-
Success
52-
&lt;/div>
53-
&lt;div class="c-alerts__alert c-alerts__alert--error">
54-
&lt;button class="c-button c-button--close">&times;&lt;/button>
55-
Error
56-
&lt;/div>
57-
&lt;/div></code></pre></div>
36+
<div class="o-grid__cell o-grid__cell--width-50 u-letter-box--small"><pre class="c-pre html"><code class="c-code c-code--multiline">&lt;Alert closable>Alert&lt;/Alert>
37+
&lt;Alert primary closable>Alert&lt;/Alert>
38+
&lt;Alert secondary closable>Alert&lt;/Alert>
39+
&lt;Alert success closable>Alert&lt;/Alert>
40+
&lt;Alert error closable>Alert&lt;/Alert>
41+
</code></pre></div>
5842
</div>
5943

6044
<h2 id="animation" class="c-heading c-heading--medium">Animation</h2>
@@ -68,6 +52,9 @@ <h2 id="animation" class="c-heading c-heading--medium">Animation</h2>
6852

6953
<button class="c-button c-button--ghost-secondary" type="button" onclick="demo()">Animate</button>
7054

55+
<div class="o-grid__cell o-grid__cell--width-50 u-letter-box--small"><pre class="c-pre html"><code class="c-code c-code--multiline">&lt;Alert animation="slow" closable>Alert&lt;/Alert>
56+
</code></pre></div>
57+
7158
<script>
7259
function demo() {
7360
document.getElementById('animate').classList.remove('a-alerts');
@@ -77,23 +64,12 @@ <h2 id="animation" class="c-heading c-heading--medium">Animation</h2>
7764
}
7865
</script>
7966

80-
<h3 class="c-heading c-heading--small c-text--mono">.a-alerts</h3>
81-
<p class="c-paragraph">
82-
Apply the <code class="c-code">.a-alerts</code> class to enable animation on all alerts within the block.
83-
</p>
84-
85-
<h3 class="c-heading c-heading--small c-text--mono">.a-alerts__alert</h3>
67+
<h3 class="c-heading c-heading--small c-text--mono">animaton</h3>
8668
<p class="c-paragraph">
8769
Will turn on animation per alert.
8870
</p>
8971

90-
<h3 class="c-heading c-heading--small"><span class="c-text--mono">--slow, --fast</span></h3>
72+
<h3 class="c-heading c-heading--small"><span class="c-text--mono">slow, fast</span></h3>
9173
<p class="c-paragraph">
9274
Every animation comes with slow and fast modifiers.
9375
</p>
94-
95-
<h3 class="c-heading c-heading--small c-text--mono">--top, --bottom, --left, --right</h3>
96-
<p class="c-paragraph">
97-
Add one of these modifiers to change the origin of the animation. Top will make the animations appear to start from
98-
the top of the alert and so on. Default is from the center of the element.
99-
</p>

0 commit comments

Comments
 (0)