✨ (pagetop): Añade Flex/FlexItem para usar Flexbox
Container y Navbar lo adoptan vía `with_flex()`/`PropsOp::flex_item()`. Y se elimina `ButtonSet` porque su funcionalidad queda cubierta por este mecanismo más general. Incluye el ejemplo `examples/intro-flex.rs` con los patrones de uso.
This commit is contained in:
parent
4e4fdf7b10
commit
17e16652e4
26 changed files with 2023 additions and 193 deletions
|
|
@ -21,7 +21,7 @@ pub use pagetop::base::component::breadcrumb;
|
|||
|
||||
// Button.
|
||||
pub mod button;
|
||||
pub use button::{Button, ButtonBootsier, ButtonSet};
|
||||
pub use button::{Button, ButtonBootsier};
|
||||
|
||||
// Container.
|
||||
pub mod container;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
//! Definiciones para crear botones ([`Button`]) y conjuntos de botones ([`ButtonSet`]).
|
||||
//! Definiciones para crear botones ([`Button`]).
|
||||
|
||||
use pagetop::prelude::*;
|
||||
|
||||
use crate::theme::BootsierColors;
|
||||
|
||||
pub use pagetop::base::component::button::{Button, ButtonSet, Kind, Size, Style};
|
||||
pub use pagetop::base::component::button::{Button, Kind, Size, Style};
|
||||
|
||||
const EXTRA_ACTIVE: &str = "bootsier.button.active";
|
||||
const EXTRA_FULL_WIDTH: &str = "bootsier.button.full_width";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue