diff --git a/WebApplication/BulmaTheme.cpp b/WebApplication/BulmaTheme.cpp index 03dff5b..3c5fffa 100644 --- a/WebApplication/BulmaTheme.cpp +++ b/WebApplication/BulmaTheme.cpp @@ -122,6 +122,10 @@ void BulmaTheme::apply(Wt::WWidget *widget, Wt::DomElement &element, int element void BulmaTheme::applyValidationStyle(Wt::WWidget *widget, const Wt::WValidator::Result &validation, Wt::WFlags flags) const { + using namespace Wt; + if (flags.test(ValidationStyleFlag::InvalidStyle)) { + widget->addStyleClass("bulma-is-danger"); + } } bool BulmaTheme::canBorderBoxElement(const Wt::DomElement &element) const { diff --git a/resources/app.css b/resources/app.css index 9dae004..4b65405 100644 --- a/resources/app.css +++ b/resources/app.css @@ -29,7 +29,7 @@ .Wt-itemview th, .Wt-itemview th .Wt-tv-br { - overflow: hidden + overflow: hidden } @@ -56,19 +56,19 @@ .Wt-hrh2, .Wt-vsh2 { - cursor: row-resize + cursor: row-resize } .Wt-hsh2, .Wt-vrh2 { - cursor: col-resize + cursor: col-resize } .Wt-hrh2:hover, .Wt-hsh2, .Wt-vrh2:hover, .Wt-vsh2 { - background-color: #999 + background-color: #999 } @@ -101,4 +101,8 @@ .Wt-itemview .Wt-tv-sh-down { background: url(icons/sort-arrow-down.gif) no-repeat 0 6px +} + +.Wt-error { + color: hsl(var(--bulma-danger-h), var(--bulma-danger-s), var(--bulma-danger-on-scheme-l)); } \ No newline at end of file diff --git a/resources/auth_css_theme.xml b/resources/auth_css_theme.xml index 78b374b..27b44fc 100644 --- a/resources/auth_css_theme.xml +++ b/resources/auth_css_theme.xml @@ -3,8 +3,8 @@ } - -