/
joomla-alert.scss
72 lines (60 loc) · 1.35 KB
/
joomla-alert.scss
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
@import "../../variables";
@import "../../../../../../node_modules/joomla-ui-custom-elements/dist/css/joomla-alert";
// The following is a restyle for the system alerts
#system-message-container joomla-alert {
position: relative;
display: block;
width: 50vw;
min-width: 16rem;
padding: 0;
margin-bottom: 1rem;
color: var(--atum-text-dark);
background-color: var(--white);
border: 1px solid var(--alert-accent-color, transparent);
border-radius: 0;
transition: opacity .15s linear;
.alert-heading {
display: block;
padding: 1rem;
color: rgba(255, 255, 255, .95);
background: var(--alert-accent-color, transparent);
}
.alert-link {
color: var(--success, inherit);
}
&[type="success"] {
--alert-accent-color: var(--success);
}
&[type="info"] {
--alert-accent-color: var(--info);
}
&[type="warning"] {
--alert-accent-color: var(--warning);
}
&[type="danger"] {
--alert-accent-color: var(--danger);
}
.joomla-alert--close,
.joomla-alert-button--close {
position: absolute;
top: .7rem;
right: 1rem;
font-size: 2rem;
color: var(--white);
background: none;
border: 0;
&:hover,
&:focus {
text-decoration: none;
cursor: pointer;
opacity: .75;
}
[dir=rtl] & {
right: auto;
left: 0;
}
}
div {
padding: 1rem;
}
}