#ifndef __BULMATHEME_H__ #define __BULMATHEME_H__ #include /** * @brief * Animate.css * https://bulma.io/ */ class BulmaTheme : public Wt::WTheme { public: BulmaTheme(const std::string &name, bool global = true); std::string name() const final; void init(Wt::WApplication *app) const final; std::string disabledClass() const final; std::string activeClass() const final; std::string utilityCssClass(int utilityCssClassRole) const final; std::vector styleSheets() const final; bool canStyleAnchorAsButton() const final; void apply(Wt::WWidget *widget, Wt::WWidget *child, int widgetRole) const final; void apply(Wt::WWidget *widget, Wt::DomElement &element, int elementRole) const final; void applyValidationStyle(Wt::WWidget *widget, const Wt::WValidator::Result &validation, Wt::WFlags flags) const final; bool canBorderBoxElement(const Wt::DomElement &element) const final; private: std::string m_name; bool m_global = true; }; #endif // __BULMATHEME_H__