Browse Source

Apply theme colors to :invalid <input> elements

merge-requests/75/head
Deimos 5 years ago
parent
commit
2502750a08
  1. 13
      tildes/scss/themes/_theme_base.scss

13
tildes/scss/themes/_theme_base.scss

@ -345,6 +345,19 @@
border-color: map-get($theme, "border");
}
// error colors for :invalid inputs, using same approach as Spectre
.form-input:not(:placeholder-shown):invalid {
border-color: map-get($theme, "error");
&:focus {
box-shadow: 0 0 0 1px map-get($theme, "error");
}
+ .form-input-hint {
color: map-get($theme, "error");
}
}
.form-markdown-preview {
border-color: map-get($theme, "border");
}

Loading…
Cancel
Save