Debian Codegraph @

node/@patternfly/react-styles/css/components/Alert/alert.css

raw
1 .pf-v6-c-alert {
2 --pf-v6-c-alert--BoxShadow: var(--pf-t--global--box-shadow--lg);
3 --pf-v6-c-alert--BackgroundColor: var(--pf-t--global--background--color--floating--default);
4 --pf-v6-c-alert--GridTemplateColumns: max-content 1fr max-content;
5 --pf-v6-c-alert--GridTemplateAreas:
6 "icon title action"
7 ". description description"
8 ". actiongroup actiongroup";
9 --pf-v6-c-alert--BorderWidth: var(--pf-t--global--border--width--box--status--default);
10 --pf-v6-c-alert--BorderColor: transparent;
11 --pf-v6-c-alert--BorderRadius: var(--pf-t--global--border--radius--medium);
12 --pf-v6-c-alert--PaddingBlockStart: var(--pf-t--global--spacer--md);
13 --pf-v6-c-alert--PaddingInlineEnd: var(--pf-t--global--spacer--md);
14 --pf-v6-c-alert--PaddingBlockEnd: var(--pf-t--global--spacer--md);
15 --pf-v6-c-alert--PaddingInlineStart: var(--pf-t--global--spacer--md);
16 --pf-v6-c-alert--FontSize: var(--pf-t--global--font--size--body--default);
17 --pf-v6-c-alert__toggle--MarginBlockStart: calc(var(--pf-t--global--spacer--control--vertical--plain) * -1);
18 --pf-v6-c-alert__toggle--MarginBlockEnd: calc(var(--pf-t--global--spacer--control--vertical--plain) * -1);
19 --pf-v6-c-alert__toggle--MarginInlineStart: calc(var(--pf-t--global--spacer--action--horizontal--plain--default) * -1);
20 --pf-v6-c-alert__toggle--MarginInlineEnd: var(--pf-t--global--spacer--sm);
21 --pf-v6-c-alert__toggle-icon--Rotate: 0;
22 --pf-v6-c-alert__toggle-icon--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
23 --pf-v6-c-alert__toggle-icon--TransitionDuration: var(--pf-t--global--motion--duration--icon--long);
24 --pf-v6-c-alert__icon--Color: var(--pf-t--global--icon--color--regular);
25 --pf-v6-c-alert__icon--MarginBlockStart: 0.25rem;
26 --pf-v6-c-alert__icon--MarginInlineEnd: var(--pf-t--global--spacer--gap--text-to-element--default);
27 --pf-v6-c-alert__icon--FontSize: var(--pf-t--global--icon--size--md);
28 --pf-v6-c-alert__title--FontWeight: var(--pf-t--global--font--weight--body--bold);
29 --pf-v6-c-alert__title--Color: var(--pf-t--global--text--color--regular);
30 --pf-v6-c-alert__title--max-lines: 1;
31 --pf-v6-c-alert__action--MarginBlockStart: calc(var(--pf-t--global--spacer--control--vertical--plain) * -1);
32 --pf-v6-c-alert__action--MarginBlockEnd: calc(var(--pf-t--global--spacer--control--vertical--plain) * -1);
33 --pf-v6-c-alert__action--TranslateY: 0.125rem;
34 --pf-v6-c-alert__action--MarginInlineEnd: calc(var(--pf-t--global--spacer--sm) * -1);
35 --pf-v6-c-alert__description--PaddingBlockStart: var(--pf-t--global--spacer--xs);
36 --pf-v6-c-alert__action-group--PaddingBlockStart-base: var(--pf-t--global--spacer--sm);
37 --pf-v6-c-alert__action-group--PaddingBlockStart: var(--pf-v6-c-alert__action-group--PaddingBlockStart-base);
38 --pf-v6-c-alert__description--action-group--PaddingBlockStart-base: var(--pf-t--global--spacer--sm);
39 --pf-v6-c-alert__description--action-group--PaddingBlockStart: var(--pf-v6-c-alert__description--action-group--PaddingBlockStart-base);
40 --pf-v6-c-alert__action-group__c-button--not-last-child--MarginInlineEnd: var(--pf-t--global--spacer--gap--action-to-action--default);
41 --pf-v6-c-alert--m-custom--BorderColor: var(--pf-t--global--border--color--status--custom--default);
42 --pf-v6-c-alert--m-custom__icon--Color: var(--pf-t--global--icon--color--status--custom--default);
43 --pf-v6-c-alert--m-custom__title--Color: var(--pf-t--global--text--color--regular);
44 --pf-v6-c-alert--m-success--BorderColor: var(--pf-t--global--border--color--status--success--default);
45 --pf-v6-c-alert--m-success__icon--Color: var(--pf-t--global--icon--color--status--success--default);
46 --pf-v6-c-alert--m-success__title--Color: var(--pf-t--global--text--color--regular);
47 --pf-v6-c-alert--m-danger--BorderColor: var(--pf-t--global--border--color--status--danger--default);
48 --pf-v6-c-alert--m-danger__icon--Color: var(--pf-t--global--icon--color--status--danger--default);
49 --pf-v6-c-alert--m-danger__title--Color: var(--pf-t--global--text--color--regular);
50 --pf-v6-c-alert--m-warning--BorderColor: var(--pf-t--global--border--color--status--warning--default);
51 --pf-v6-c-alert--m-warning__icon--Color: var(--pf-t--global--icon--color--status--warning--default);
52 --pf-v6-c-alert--m-warning__title--Color: var(--pf-t--global--text--color--regular);
53 --pf-v6-c-alert--m-info--BorderColor: var(--pf-t--global--border--color--status--info--default);
54 --pf-v6-c-alert--m-info__icon--Color: var(--pf-t--global--icon--color--status--info--default);
55 --pf-v6-c-alert--m-info__title--Color: var(--pf-t--global--text--color--regular);
56 --pf-v6-c-alert--m-inline--BackgroundColor: var(--pf-t--global--background--color--primary--default);
57 --pf-v6-c-alert--m-inline--BoxShadow: none;
58 --pf-v6-c-alert--m-inline--m-plain--BorderWidth: 0;
59 --pf-v6-c-alert--m-inline--m-plain--BackgroundColor: transparent;
60 --pf-v6-c-alert--m-inline--m-plain--PaddingBlockStart: 0;
61 --pf-v6-c-alert--m-inline--m-plain--PaddingInlineEnd: 0;
62 --pf-v6-c-alert--m-inline--m-plain--PaddingBlockEnd: 0;
63 --pf-v6-c-alert--m-inline--m-plain--PaddingInlineStart: 0;
64 --pf-v6-c-alert--m-expandable--GridTemplateColumns: auto max-content 1fr max-content;
65 --pf-v6-c-alert--m-expandable--GridTemplateAreas:
66 "toggle icon title action"
67 ". . description description"
68 ". . actiongroup actiongroup";
69 --pf-v6-c-alert--m-expandable__description--action-group--PaddingBlockStart: var(--pf-v6-c-alert__action-group--PaddingBlockStart-base);
70 --pf-v6-c-alert--m-expanded__toggle-icon--Rotate: -180deg;
71 --pf-v6-c-alert--m-expanded__description--action-group--PaddingBlockStart: var(--pf-v6-c-alert__description--action-group--PaddingBlockStart-base);
72 }
73
74 .pf-v6-c-alert {
75 position: relative;
76 display: grid;
77 grid-template-areas: var(--pf-v6-c-alert--GridTemplateAreas);
78 grid-template-columns: var(--pf-v6-c-alert--GridTemplateColumns);
79 padding-block-start: var(--pf-v6-c-alert--PaddingBlockStart);
80 padding-block-end: var(--pf-v6-c-alert--PaddingBlockEnd);
81 padding-inline-start: var(--pf-v6-c-alert--PaddingInlineStart);
82 padding-inline-end: var(--pf-v6-c-alert--PaddingInlineEnd);
83 font-size: var(--pf-v6-c-alert--FontSize);
84 background-color: var(--pf-v6-c-alert--BackgroundColor);
85 border: var(--pf-v6-c-alert--BorderWidth) solid var(--pf-v6-c-alert--BorderColor);
86 border-radius: var(--pf-v6-c-alert--BorderRadius);
87 box-shadow: var(--pf-v6-c-alert--BoxShadow);
88 }
89 .pf-v6-c-alert.pf-m-custom {
90 --pf-v6-c-alert--BorderColor: var(--pf-v6-c-alert--m-custom--BorderColor);
91 --pf-v6-c-alert__icon--Color: var(--pf-v6-c-alert--m-custom__icon--Color);
92 --pf-v6-c-alert__title--Color: var(--pf-v6-c-alert--m-custom__title--Color);
93 }
94 .pf-v6-c-alert.pf-m-success {
95 --pf-v6-c-alert--BorderColor: var(--pf-v6-c-alert--m-success--BorderColor);
96 --pf-v6-c-alert__icon--Color: var(--pf-v6-c-alert--m-success__icon--Color);
97 --pf-v6-c-alert__title--Color: var(--pf-v6-c-alert--m-success__title--Color);
98 }
99 .pf-v6-c-alert.pf-m-danger {
100 --pf-v6-c-alert--BorderColor: var(--pf-v6-c-alert--m-danger--BorderColor);
101 --pf-v6-c-alert__icon--Color: var(--pf-v6-c-alert--m-danger__icon--Color);
102 --pf-v6-c-alert__title--Color: var(--pf-v6-c-alert--m-danger__title--Color);
103 }
104 .pf-v6-c-alert.pf-m-warning {
105 --pf-v6-c-alert--BorderColor: var(--pf-v6-c-alert--m-warning--BorderColor);
106 --pf-v6-c-alert__icon--Color: var(--pf-v6-c-alert--m-warning__icon--Color);
107 --pf-v6-c-alert__title--Color: var(--pf-v6-c-alert--m-warning__title--Color);
108 }
109 .pf-v6-c-alert.pf-m-info {
110 --pf-v6-c-alert--BorderColor: var(--pf-v6-c-alert--m-info--BorderColor);
111 --pf-v6-c-alert__icon--Color: var(--pf-v6-c-alert--m-info__icon--Color);
112 --pf-v6-c-alert__title--Color: var(--pf-v6-c-alert--m-info__title--Color);
113 }
114 .pf-v6-c-alert.pf-m-inline {
115 --pf-v6-c-alert--BoxShadow: var(--pf-v6-c-alert--m-inline--BoxShadow);
116 --pf-v6-c-alert--BackgroundColor: var(--pf-v6-c-alert--m-inline--BackgroundColor);
117 }
118 .pf-v6-c-alert.pf-m-plain {
119 --pf-v6-c-alert--BorderWidth: var(--pf-v6-c-alert--m-inline--m-plain--BorderWidth);
120 --pf-v6-c-alert--BackgroundColor: var(--pf-v6-c-alert--m-inline--m-plain--BackgroundColor);
121 --pf-v6-c-alert--PaddingBlockStart: var(--pf-v6-c-alert--m-inline--m-plain--PaddingBlockStart);
122 --pf-v6-c-alert--PaddingInlineEnd: var(--pf-v6-c-alert--m-inline--m-plain--PaddingInlineEnd);
123 --pf-v6-c-alert--PaddingBlockEnd: var(--pf-v6-c-alert--m-inline--m-plain--PaddingBlockEnd);
124 --pf-v6-c-alert--PaddingInlineStart: var(--pf-v6-c-alert--m-inline--m-plain--PaddingInlineStart);
125 }
126 .pf-v6-c-alert.pf-m-expandable {
127 --pf-v6-c-alert--GridTemplateColumns: var(--pf-v6-c-alert--m-expandable--GridTemplateColumns);
128 --pf-v6-c-alert--GridTemplateAreas: var(--pf-v6-c-alert--m-expandable--GridTemplateAreas);
129 --pf-v6-c-alert__description--action-group--PaddingBlockStart: var(--pf-v6-c-alert--m-expandable__description--action-group--PaddingBlockStart);
130 }
131 .pf-v6-c-alert.pf-m-expanded {
132 --pf-v6-c-alert__toggle-icon--Rotate: var(--pf-v6-c-alert--m-expanded__toggle-icon--Rotate);
133 --pf-v6-c-alert__description--action-group--PaddingBlockStart: var(--pf-v6-c-alert--m-expanded__description--action-group--PaddingBlockStart);
134 }
135
136 .pf-v6-c-alert__toggle {
137 margin-block-start: var(--pf-v6-c-alert__toggle--MarginBlockStart);
138 margin-block-end: var(--pf-v6-c-alert__toggle--MarginBlockEnd);
139 margin-inline-start: var(--pf-v6-c-alert__toggle--MarginInlineStart);
140 margin-inline-end: var(--pf-v6-c-alert__toggle--MarginInlineEnd);
141 }
142
143 :where(.pf-v6-m-dir-rtl, [dir=rtl]) .pf-v6-c-alert__toggle-icon {
144 scale: -1 1;
145 }
146
147 .pf-v6-c-alert__toggle-icon {
148 display: inline-block;
149 transform: rotate(var(--pf-v6-c-alert__toggle-icon--Rotate));
150 transition: transform var(--pf-v6-c-alert__toggle-icon--TransitionDuration) var(--pf-v6-c-alert__toggle-icon--TransitionTimingFunction);
151 }
152
153 .pf-v6-c-alert__icon {
154 grid-area: icon;
155 align-self: baseline;
156 margin-inline-end: var(--pf-v6-c-alert__icon--MarginInlineEnd);
157 font-size: var(--pf-v6-c-alert__icon--FontSize);
158 color: var(--pf-v6-c-alert__icon--Color);
159 scale: 1.14;
160 }
161
162 .pf-v6-c-alert__title {
163 grid-area: title;
164 font-weight: var(--pf-v6-c-alert__title--FontWeight);
165 color: var(--pf-v6-c-alert__title--Color);
166 overflow-wrap: anywhere;
167 }
168 .pf-v6-c-alert__title.pf-m-truncate {
169 display: -webkit-box;
170 overflow: hidden;
171 -webkit-box-orient: vertical;
172 -webkit-line-clamp: var(--pf-v6-c-alert__title--max-lines);
173 }
174
175 .pf-v6-c-alert__description {
176 grid-area: description;
177 padding-block-start: var(--pf-v6-c-alert__description--PaddingBlockStart);
178 overflow-wrap: anywhere;
179 }
180 .pf-v6-c-alert__description + .pf-v6-c-alert__action-group {
181 --pf-v6-c-alert__action-group--PaddingBlockStart: var(--pf-v6-c-alert__description--action-group--PaddingBlockStart);
182 }
183
184 .pf-v6-c-alert__action {
185 grid-area: action;
186 margin-block-start: var(--pf-v6-c-alert__action--MarginBlockStart);
187 margin-block-end: var(--pf-v6-c-alert__action--MarginBlockEnd);
188 margin-inline-end: var(--pf-v6-c-alert__action--MarginInlineEnd);
189 }
190
191 .pf-v6-c-alert__action-group {
192 grid-area: actiongroup;
193 padding-block-start: var(--pf-v6-c-alert__action-group--PaddingBlockStart);
194 }
195 .pf-v6-c-alert__action-group > .pf-v6-c-button:not(:last-child) {
196 margin-inline-end: var(--pf-v6-c-alert__action-group__c-button--not-last-child--MarginInlineEnd);
197 }