1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/// Used for the text label before form fields.
pub const CSS_CLASS_LABEL: &'static str = "form_label";

/// Used for single-column inputs (text entry, checkbox). Exclusive with other
/// `form_input_` classes.
pub const CSS_CLASS_SMALL_INPUT: &'static str = "form_input_small";

/// Used for two-column inputs like text area. Exclusive with other `form_input_`
/// classes.
pub const CSS_CLASS_BIG_INPUT: &'static str = "form_input_big";

/// Used by the checkbox for options. Exclusive with other `form_input_` classes.
pub const CSS_CLASS_OPTION_ENABLE: &'static str = "form_input_option";

/// Used for validation errors, appears before the input (also before the
/// associated label, if there is one).
pub const CSS_CLASS_ERROR: &'static str = "form_error";

/// Used for nested struct/enum fields, namely within variants or options.
pub const CSS_CLASS_SUBFORM: &'static str = "subform";

/// Used to hide disabled variants - hidden to keep user input in case they
/// re-enable later.
pub const CSS_CLASS_HIDDEN: &'static str = "disable_hide";
pub const CSS_CLASS_VEC: &'static str = "form_vec";
pub const CSS_CLASS_VEC_ITEM: &'static str = "form_vec_item";
pub const CSS_CLASS_VEC_ITEM_HEADER: &'static str = "form_vec_item_header";
pub const CSS_CLASS_VEC_DELETE: &'static str = "form_vec_item_delete";
pub const CSS_CLASS_VEC_ADD: &'static str = "form_vec_item_add";
pub const CSS_CLASS_VEC_MOVE_DOWN: &'static str = "form_vec_move_up";
pub const CSS_CLASS_VEC_MOVE_UP: &'static str = "form_vec_move_down";

/// This should be used on all inputs, since `<label>` isn't used.
pub const ATTR_LABEL: &'static str = "aria-label";