File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 147147 <div class='message %s'>
148148 <h3>%s</h3>
149149 <p>%s</p>
150- <button onclick= \"this.parentElement.style.display='none'; \">X </button>
151- </div> \n
150+ <button onclick= \"this.parentElement.style.display='none'; \">× </button>
151+ </div>
152152 " ,
153153 $ level ->value ,
154154 strip_tags ($ title ),
Original file line number Diff line number Diff line change 11.message {
22 border-radius : 10px ;
3- padding : 10px 40px 10px 40px ;
3+ /* extra padding on right to make room for button */
4+ padding : 10px 80px 10px 40px ;
5+ /* needed for button position: absolute */
6+ position : relative;
47 text-align : center;
58 width : fit-content;
69 margin-left : auto;
3639 color : # 721c24 ;
3740 background-color : # f8d7da ;
3841}
42+
43+ .message button {
44+ position : absolute;
45+ top : 0 ;
46+ right : 0 ;
47+ background-color : inherit;
48+ color : inherit;
49+ font-size : 2rem ;
50+ }
You can’t perform that action at this time.
0 commit comments