@@ -69,25 +69,25 @@ Add an icon to the left of the flash message to give it some funky fresh attenti
69
69
``` html live
70
70
<div class =" flash" >
71
71
<!-- <%= octicon "info" %> -->
72
- <svg xmlns =" http://www.w3.org/2000/svg" viewBox =" 0 0 16 16" width =" 16" height =" 16" ><path fill-rule =" evenodd" d =" M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8zm6.5-.25A.75.75 0 017.25 7h1a.75.75 0 01.75.75v2.75h.25a.75.75 0 010 1.5h-2a.75.75 0 010-1.5h.25v-2h-.25a.75.75 0 01-.75-.75zM8 6a1 1 0 100-2 1 1 0 000 2z" ></path ></svg >
72
+ <svg class = " octicon " xmlns =" http://www.w3.org/2000/svg" viewBox =" 0 0 16 16" width =" 16" height =" 16" ><path fill-rule =" evenodd" d =" M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8zm6.5-.25A.75.75 0 017.25 7h1a.75.75 0 01.75.75v2.75h.25a.75.75 0 010 1.5h-2a.75.75 0 010-1.5h.25v-2h-.25a.75.75 0 01-.75-.75zM8 6a1 1 0 100-2 1 1 0 000 2z" ></path ></svg >
73
73
Flash message with an icon
74
74
</div >
75
75
76
76
<div class =" flash mt-3 flash-warn" >
77
77
<!-- <%= octicon "alert" %> -->
78
- <svg xmlns =" http://www.w3.org/2000/svg" viewBox =" 0 0 16 16" width =" 16" height =" 16" ><path fill-rule =" evenodd" d =" M8.22 1.754a.25.25 0 00-.44 0L1.698 13.132a.25.25 0 00.22.368h12.164a.25.25 0 00.22-.368L8.22 1.754zm-1.763-.707c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0114.082 15H1.918a1.75 1.75 0 01-1.543-2.575L6.457 1.047zM9 11a1 1 0 11-2 0 1 1 0 012 0zm-.25-5.25a.75.75 0 00-1.5 0v2.5a.75.75 0 001.5 0v-2.5z" ></path ></svg >
78
+ <svg class = " octicon " xmlns =" http://www.w3.org/2000/svg" viewBox =" 0 0 16 16" width =" 16" height =" 16" ><path fill-rule =" evenodd" d =" M8.22 1.754a.25.25 0 00-.44 0L1.698 13.132a.25.25 0 00.22.368h12.164a.25.25 0 00.22-.368L8.22 1.754zm-1.763-.707c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0114.082 15H1.918a1.75 1.75 0 01-1.543-2.575L6.457 1.047zM9 11a1 1 0 11-2 0 1 1 0 012 0zm-.25-5.25a.75.75 0 00-1.5 0v2.5a.75.75 0 001.5 0v-2.5z" ></path ></svg >
79
79
Flash message with an icon
80
80
</div >
81
81
82
82
<div class =" flash mt-3 flash-error" >
83
83
<!-- <%= octicon "stop" %> -->
84
- <svg xmlns =" http://www.w3.org/2000/svg" viewBox =" 0 0 16 16" width =" 16" height =" 16" ><path fill-rule =" evenodd" d =" M4.47.22A.75.75 0 015 0h6a.75.75 0 01.53.22l4.25 4.25c.141.14.22.331.22.53v6a.75.75 0 01-.22.53l-4.25 4.25A.75.75 0 0111 16H5a.75.75 0 01-.53-.22L.22 11.53A.75.75 0 010 11V5a.75.75 0 01.22-.53L4.47.22zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5H5.31zM8 4a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 018 4zm0 8a1 1 0 100-2 1 1 0 000 2z" ></path ></svg >
84
+ <svg class = " octicon " xmlns =" http://www.w3.org/2000/svg" viewBox =" 0 0 16 16" width =" 16" height =" 16" ><path fill-rule =" evenodd" d =" M4.47.22A.75.75 0 015 0h6a.75.75 0 01.53.22l4.25 4.25c.141.14.22.331.22.53v6a.75.75 0 01-.22.53l-4.25 4.25A.75.75 0 0111 16H5a.75.75 0 01-.53-.22L.22 11.53A.75.75 0 010 11V5a.75.75 0 01.22-.53L4.47.22zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5H5.31zM8 4a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 018 4zm0 8a1 1 0 100-2 1 1 0 000 2z" ></path ></svg >
85
85
Flash message with an icon
86
86
</div >
87
87
88
88
<div class =" flash mt-3 flash-success" >
89
89
<!-- <%= octicon "check" %> -->
90
- <svg xmlns =" http://www.w3.org/2000/svg" viewBox =" 0 0 16 16" width =" 16" height =" 16" ><path fill-rule =" evenodd" d =" M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z" ></path ></svg >
90
+ <svg class = " octicon " xmlns =" http://www.w3.org/2000/svg" viewBox =" 0 0 16 16" width =" 16" height =" 16" ><path fill-rule =" evenodd" d =" M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z" ></path ></svg >
91
91
Flash message with an icon
92
92
</div >
93
93
```
@@ -147,22 +147,29 @@ A flash message with an action button.
147
147
``` html live
148
148
<div class =" flash" >
149
149
Flash message with action here.
150
- <button type =" submit" class =" btn btn-sm primary flash-action" >Complete action</button >
150
+ <button type =" submit" class =" btn btn-sm flash-action" >Complete action</button >
151
151
</div >
152
152
153
153
<div class =" flash mt-3 flash-warn" >
154
154
Flash message with action here.
155
- <button class =" btn btn-sm primary flash-action" type =" submit" >Complete action</button >
155
+ <button class =" btn btn-sm flash-action" type =" submit" >Complete action</button >
156
156
</div >
157
157
158
158
<div class =" flash mt-3 flash-error" >
159
159
Flash message with action here.
160
- <button class =" btn btn-sm primary flash-action" type =" submit" >Complete action</button >
160
+ <button class =" btn btn-sm flash-action" type =" submit" >
161
+ <svg class =" octicon" xmlns =" http://www.w3.org/2000/svg" viewBox =" 0 0 16 16" width =" 16" height =" 16" ><path fill-rule =" evenodd" d =" M6.5 1.75a.25.25 0 01.25-.25h2.5a.25.25 0 01.25.25V3h-3V1.75zm4.5 0V3h2.25a.75.75 0 010 1.5H2.75a.75.75 0 010-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75zM4.496 6.675a.75.75 0 10-1.492.15l.66 6.6A1.75 1.75 0 005.405 15h5.19c.9 0 1.652-.681 1.741-1.576l.66-6.6a.75.75 0 00-1.492-.149l-.66 6.6a.25.25 0 01-.249.225h-5.19a.25.25 0 01-.249-.225l-.66-6.6z" ></path ></svg >
162
+ Complete action
163
+ </button >
161
164
</div >
162
165
163
166
<div class =" flash mt-3 flash-success" >
167
+ <svg class =" octicon" xmlns =" http://www.w3.org/2000/svg" viewBox =" 0 0 16 16" width =" 16" height =" 16" ><path d =" M5.75 7.5a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5a.75.75 0 01.75-.75zm5.25.75a.75.75 0 00-1.5 0v1.5a.75.75 0 001.5 0v-1.5z" ></path ><path fill-rule =" evenodd" d =" M6.25 0a.75.75 0 000 1.5H7.5v2H3.75A2.25 2.25 0 001.5 5.75V8H.75a.75.75 0 000 1.5h.75v2.75a2.25 2.25 0 002.25 2.25h8.5a2.25 2.25 0 002.25-2.25V9.5h.75a.75.75 0 000-1.5h-.75V5.75a2.25 2.25 0 00-2.25-2.25H9V.75A.75.75 0 008.25 0h-2zM3 5.75A.75.75 0 013.75 5h8.5a.75.75 0 01.75.75v6.5a.75.75 0 01-.75.75h-8.5a.75.75 0 01-.75-.75v-6.5z" ></path ></svg >
164
168
Flash message with action here.
165
- <button class =" btn btn-sm primary flash-action" type =" submit" >Complete action</button >
169
+ <button class =" btn btn-sm flash-action" type =" submit" >
170
+ <svg class =" octicon" xmlns =" http://www.w3.org/2000/svg" viewBox =" 0 0 16 16" width =" 16" height =" 16" ><path fill-rule =" evenodd" d =" M2 2.75C2 1.784 2.784 1 3.75 1h2.5a.75.75 0 010 1.5h-2.5a.25.25 0 00-.25.25v10.5c0 .138.112.25.25.25h2.5a.75.75 0 010 1.5h-2.5A1.75 1.75 0 012 13.25V2.75zm10.44 4.5H6.75a.75.75 0 000 1.5h5.69l-1.97 1.97a.75.75 0 101.06 1.06l3.25-3.25a.75.75 0 000-1.06l-3.25-3.25a.75.75 0 10-1.06 1.06l1.97 1.97z" ></path ></svg >
171
+ Complete action
172
+ </button >
166
173
</div >
167
174
```
168
175
0 commit comments