Pages

No matching results.

x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!-- Default -->
<div class="alert flex items-start" role="alert">
<span class="icon icon--circle-check" aria-hidden="true"></span>
<div class="flex flex-col mis-3">
<h5 class="font-medium leading-none mbe-1">Success! Your changes have been saved</h5>
<p class="text-subtle">This is an alert with icon, title and description.</p>
</div>
</div>
<!-- No Description -->
<div class="alert flex items-start" role="alert">
<span class="icon icon--circle-check" aria-hidden="true"></span>
<h5 class="font-medium leading-none mis-3">
This Alert has a title and an icon. No description.
</h5>
</div>
<!-- Negative -->
<div class="alert alert--negative flex items-start" role="alert">
<span class="icon icon--circle-alert" aria-hidden="true"></span>
<div class="flex flex-col mis-3">
<h5 class="font-medium leading-none mbe-1">Unable to process your payment.</h5>
<div class="flex flex-col text-sm">
<p class="mbe-2">Please verify your billing information and try again.</p>
<ul class="mis-3" style="list-style: disc">
<li>Check your card details</li>
<li>Ensure sufficient funds</li>
<li>Verify billing address</li>
</ul>
</div>
</div>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<%# Default %>
<div class="alert flex items-start" role="alert">
<span class="icon icon--circle-check" aria-hidden="true"></span>
<div class="flex flex-col mis-3">
<h5 class="font-medium leading-none mbe-1">Success! Your changes have been saved</h5>
<p class="text-subtle">This is an alert with icon, title and description.</p>
</div>
</div>
<%# No Description %>
<div class="alert flex items-start" role="alert">
<span class="icon icon--circle-check" aria-hidden="true"></span>
<h5 class="font-medium leading-none mis-3">
This Alert has a title and an icon. No description.
</h5>
</div>
<%# Negative %>
<div class="alert alert--negative flex items-start" role="alert">
<span class="icon icon--circle-alert" aria-hidden="true"></span>
<div class="flex flex-col mis-3">
<h5 class="font-medium leading-none mbe-1">Unable to process your payment.</h5>
<div class="flex flex-col text-sm">
<p class="mbe-2">Please verify your billing information and try again.</p>
<ul class="mis-3" style="list-style: disc">
<li>Check your card details</li>
<li>Ensure sufficient funds</li>
<li>Verify billing address</li>
</ul>
</div>
</div>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.alert {
background-color: var(--alert-background, var(--color-bg));
border-radius: var(--rounded-lg);
border: 1px solid var(--alert-border-color, var(--color-border));
color: var(--alert-color, var(--color-text));
font-size: var(--text-sm);
inline-size: var(--size-full);
padding: var(--size-4);
}
.alert--positive {
--alert-background: var(--color-positive);
--alert-border-color: transparent;
--alert-color: white;
}
.alert--negative {
--alert-background: var(--color-negative);
--alert-border-color: transparent;
--alert-color: white;
}
Java Script is not required or multiple files are needed, check the notes.