The notification is a simple colored block meant to draw the attention to the user about something. As such, it can be used as a pinned notification in the corner of the viewport. That's why it supports the use of the delete
element.
Notification
Bold notification blocks, to alert your users of something
示例
Lorem ipsum dolor sit amet, consectetur
adipiscing elit lorem ipsum dolor. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur.
HTML
Colors #
The notification element is available in all the different colors defined by the $colors
Sass map.
示例
Primar lorem ipsum dolor sit amet, consectetur
adipiscing elit lorem ipsum dolor. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur.
HTML
示例
Primar lorem ipsum dolor sit amet, consectetur
adipiscing elit lorem ipsum dolor. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur.
HTML
示例
Primar lorem ipsum dolor sit amet, consectetur
adipiscing elit lorem ipsum dolor. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur.
HTML
示例
Primar lorem ipsum dolor sit amet, consectetur
adipiscing elit lorem ipsum dolor. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur.
HTML
示例
Primar lorem ipsum dolor sit amet, consectetur
adipiscing elit lorem ipsum dolor. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur.
HTML
示例
Primar lorem ipsum dolor sit amet, consectetur
adipiscing elit lorem ipsum dolor. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur.
HTML
Light colors #
Each color also comes in its light version. Simply append the
is-light
modifier to obtain the light version of the notification.
示例
Primar lorem ipsum dolor sit amet, consectetur
adipiscing elit lorem ipsum dolor. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur.
HTML
示例
Primar lorem ipsum dolor sit amet, consectetur
adipiscing elit lorem ipsum dolor. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur.
HTML
示例
Primar lorem ipsum dolor sit amet, consectetur
adipiscing elit lorem ipsum dolor. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur.
HTML
示例
Primar lorem ipsum dolor sit amet, consectetur
adipiscing elit lorem ipsum dolor. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur.
HTML
示例
Primar lorem ipsum dolor sit amet, consectetur
adipiscing elit lorem ipsum dolor. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur.
HTML
示例
Primar lorem ipsum dolor sit amet, consectetur
adipiscing elit lorem ipsum dolor. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur.
HTML
JavaScript example #
The Bulma package does not come with any JavaScript. Here is however an implementation example, which sets the click
handler for Bulma delete
elements, anywhere on the page, in vanilla JavaScript.
Variables #
Name
Type
Value
Computed Value
Computed Type
variable
color
variable
color
variable
size
size
size
size
variable
map