kanidm/kanidmd_web_ui/src/constants.rs
James Hodgkinson 5c5b2d6c94
Initial admin UI things (#1044)
* wireframed up the admin menu and components
* banner-shaped yak shaving
* making some nicer messages in the cert script
* removing wee_alloc
* adding admin_groups ui
* adding oauth2 basics
* added group view page
* changing to expect_throw
* serde-wasm-bindgen fixes
* adding view person and view service account basics
* adding basic testy things
* dropping breadcrumbs all over the place
* minor changes to oauth2 admin interface, adding automation around wasm testing
2022-09-20 14:23:54 +10:00

33 lines
1.4 KiB
Rust

///! Constants
// CSS classes that get applied to full-page forms
pub const CSS_CLASSES_BODY_FORM: &[&str] = &["flex-column", "d-flex", "h-100"];
// when you want to put big text at the top of the page
pub const CSS_PAGE_HEADER: &str = "d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-0 pb-0 mb-3 border-bottom";
// the HTML element ID that the signout modal dialogue box has
pub const ID_SIGNOUTMODAL: &str = "signoutModal";
// the HTML element ID that the unix password dialog box has
pub const ID_UNIX_PASSWORDCHANGE: &str = "unixPasswordModal";
// classes for buttons
pub const CLASS_BUTTON_DARK: &str = "btn btn-dark";
pub const CLASS_BUTTON_SUCCESS: &str = "btn btn-success";
// the CSS classes to apply to the div which a login field sits inside
pub const CLASS_DIV_LOGIN_FIELD: &str = "input-group mb-3";
// the CSS classes to apply to the div which a login button sits inside
pub const CLASS_DIV_LOGIN_BUTTON: &str = "input-group mb-3 justify-content-md-center";
pub const CSS_LINK_DARK_STRETCHED: &str = "link-dark stretched-link";
// default table classes
pub const CSS_TABLE: &str = "table table-striped table-hover";
// default table cell class
pub const CSS_CELL: &str = "p-1";
pub const CSS_DT: &str = "col-6";
pub const CSS_BREADCRUMB_ITEM: &str = "breadcrumb-item";
pub const CSS_BREADCRUMB_ITEM_ACTIVE: &str = "breadcrumb-item active";