blob: 5566013c7ca84874f94253bebdf36277f596fa43 [file] [log] [blame]
Sean Condon83775682018-05-27 18:59:59 +01001<!--
2~ Copyright 2018-present Open Networking Foundation
3~
4~ Licensed under the Apache License, Version 2.0 (the "License");
5~ you may not use this file except in compliance with the License.
6~ You may obtain a copy of the License at
7~
8~ http://www.apache.org/licenses/LICENSE-2.0
9~
10~ Unless required by applicable law or agreed to in writing, software
11~ distributed under the License is distributed on an "AS IS" BASIS,
12~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13~ See the License for the specific language governing permissions and
14~ limitations under the License.
15-->
16<div id="flash">
17 <svg *ngIf="enabled" [attr.width]="width" [attr.height]="height" [attr.viewBox]="vbox" >
18 <g class="flashItem" [@flashState]="enabled?'active':'inactive'">
19 <text #flashtext>{{ message }}</text>
20 <rect [attr.opacity]="0.5" [attr.rx]="rx"
21 [attr.x]="-flashtext.getBBox().width/2-xpad"
22 [attr.y]="flashtext.getBBox().y-ypad"
23 [attr.height]="flashtext.getBBox().height+ypad*2"
24 [attr.width]="flashtext.getBBox().width+xpad*2"></rect>
25 </g>
26 </svg>
27</div>