Skip to content

Commit a11cb3b

Browse files
author
Joe Crick
committed
(master): Namespace alert
1 parent 68ec32b commit a11cb3b

File tree

4 files changed

+32
-23
lines changed

4 files changed

+32
-23
lines changed

index.html

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,14 @@ <h2 class="content-subhead">Alert</h2>
271271
<em>NOTE: A few styles have been applied here for illustrative purposes. The actual
272272
styling of an alert is, in keeping with the spirit of Pure, up to you.</em>
273273
</p>
274-
<input type="checkbox" id="close-alert" class="alert-toggle pcssc-invisible"/>
275-
<div class="alert alert-success alert-dismissible" role="alert">
276-
<span><strong>Uh oh...</strong> Something happened...</span>
277-
<label for="close-alert" class="close-alert" aria-label="Close">
278-
<span aria-invisible="true">&times;</span>
279-
</label>
274+
<div class="pcssc-alert">
275+
<input type="checkbox" id="close-alert" class="alert-toggle pcssc-invisible"/>
276+
<div class="alert alert-success alert-dismissible" role="alert">
277+
<span><strong>Uh oh...</strong> Something happened...</span>
278+
<label for="close-alert" class="close-alert" aria-label="Close">
279+
<span aria-invisible="true">&times;</span>
280+
</label>
281+
</div>
280282
</div>
281283

282284
<div style="background: #ffffff; margin-top: 50px; overflow:auto;width:auto;border:solid gray;margin-top: 50px;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><pre
@@ -470,18 +472,21 @@ <h3>Basic Collapse</h3>
470472
</div>
471473

472474

473-
<div style="background: #ffffff; margin-top: 50px; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><pre style="margin: 0; line-height: 125%">
475+
<div style="background: #ffffff; margin-top: 50px; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><pre
476+
style="margin: 0; line-height: 125%">
474477
&lt;div class=<span style="color: #a31515">&quot;pcssc-collapse&quot;</span>&gt;
475-
&lt;label for=<span style="color: #a31515">&quot;collapse-toggle&quot;</span> class=<span style="color: #a31515">&quot;collapse-button pure-button&quot;</span> aria-label=<span style="color: #a31515">&quot;Toggle&quot;</span>&gt;
478+
&lt;label for=<span style="color: #a31515">&quot;collapse-toggle&quot;</span> class=<span style="color: #a31515">&quot;collapse-button pure-button&quot;</span> aria-label=<span
479+
style="color: #a31515">&quot;Toggle&quot;</span>&gt;
476480
&lt;span&gt;Toggle&lt;/span&gt;
477481
&lt;/label&gt;
478-
&lt;input type=<span style="color: #a31515">&quot;checkbox&quot;</span> id=<span style="color: #a31515">&quot;collapse-toggle&quot;</span> class=<span style="color: #a31515">&quot;collapse-toggle pcssc-invisible&quot;</span>/&gt;
482+
&lt;input type=<span style="color: #a31515">&quot;checkbox&quot;</span> id=<span style="color: #a31515">&quot;collapse-toggle&quot;</span> class=<span
483+
style="color: #a31515">&quot;collapse-toggle pcssc-invisible&quot;</span>/&gt;
479484
&lt;div class=<span style="color: #a31515">&quot;collapse-content pcssc-invisible&quot;</span>&gt;
480485
Pooka pooka!
481486
&lt;/div&gt;
482487
&lt;/div&gt;
483-
</pre></div>
484-
488+
</pre>
489+
</div>
485490

486491

487492
<h3>Toggling Button Label Collapse</h3>

main.css

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

main.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/inline-alert.less

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
.alert-toggle:checked + .alert {
2-
display: none;
3-
}
1+
.pcssc-alert {
2+
3+
.alert-toggle:checked + .alert {
4+
display: none;
5+
}
6+
7+
.alert {
8+
display: flex;
9+
justify-content: space-between;
410

5-
.alert {
6-
display: flex;
7-
justify-content: space-between;
11+
.close-alert {
12+
cursor: pointer;
13+
}
814

9-
.close-alert {
10-
cursor: pointer;
1115
}
1216

1317
}

0 commit comments

Comments
 (0)