Custom styles
June 28, 2017 · View on GitHub
General appearance
You can use your own notifications design by rewriting the following classes
Wrappers
cdx-notifies— wrapper for all notificationscdx-notify__btns-wrapper— wrapper for buttons using in confirm and prompt types
Notification
cdx-notify__notification— notification blockcdx-notify__cross— notification cross button
Buttons and input
cdx-notify__button— general rules for buttonscdx-notify__button--confirm— confirm button rulescdx-notify__button--cancel— cancel button rulescdx-notify__input— prompt input rules
Animation
cdx-notify--bounce-in
Notification modifiers
Passing style property to show method adds 'cdx-notifies__notification--' + style class.
Using that feature you can create custom notification styles. We provide two styles example: error and success
Example
This is rules for our default success notification
.cdx-notify--success {
background: #fafffe;
}
.cdx-notify__notification--success::before {
background: #41ffb1;
}
