diff --git a/pagetop-admin/src/lib.rs b/pagetop-admin/src/lib.rs index bf7f5ca0..db70f468 100644 --- a/pagetop-admin/src/lib.rs +++ b/pagetop-admin/src/lib.rs @@ -19,8 +19,8 @@ impl ModuleTrait for Admin { fn actions(&self) -> Vec { actions![ - action::page::BeforePrepareBody::with(before_prepare_body), - action::component::BeforePrepareComponent::::with(before_prepare_menu) + action::page::BeforePrepareBody::new(before_prepare_body), + action::component::BeforePrepareComponent::::new(before_prepare_menu) .filter_by_referer_id("admin-menu-test"), ] } diff --git a/pagetop-bootsier/src/lib.rs b/pagetop-bootsier/src/lib.rs index 40e837ad..543bca46 100644 --- a/pagetop-bootsier/src/lib.rs +++ b/pagetop-bootsier/src/lib.rs @@ -124,16 +124,16 @@ impl ThemeTrait for Bootsier { } _ => {} }; - match a.anchor_type() { + match a.button_type() { ButtonType::Link => { a.alter_classes( - ClassesOp::Replace(a.anchor_type().to_string()), + ClassesOp::Replace(a.button_type().to_string()), "btn btn-link", ); } ButtonType::Primary => { a.alter_classes( - ClassesOp::Replace(a.anchor_type().to_string()), + ClassesOp::Replace(a.button_type().to_string()), "btn btn-primary", ); } diff --git a/pagetop-bootsier/static/css/styles.css b/pagetop-bootsier/static/css/styles.css index a26bdd57..9f458863 100644 --- a/pagetop-bootsier/static/css/styles.css +++ b/pagetop-bootsier/static/css/styles.css @@ -3,5 +3,11 @@ /* Heading component */ .pt-heading__subtitle { - margin-top: calc(-1 * var(--pt-gap-0-5)); + margin-top: calc(-1 * var(--pt-gap-0-35)); +} + +/* Button component */ + +.btn-link { + text-decoration: none; } diff --git a/pagetop-bulmix/src/lib.rs b/pagetop-bulmix/src/lib.rs index 272f83b2..ba50dd68 100644 --- a/pagetop-bulmix/src/lib.rs +++ b/pagetop-bulmix/src/lib.rs @@ -24,7 +24,10 @@ impl ThemeTrait for Bulmix { .with_version("0.9.4") .with_weight(-99), )) - .alter_context(ContextOp::AddBaseAssets); + .alter_context(ContextOp::AddBaseAssets) + .alter_context(ContextOp::AddStyleSheet( + StyleSheet::at("/bulmix/css/styles.css").with_version("0.0.1"), + )); } fn before_prepare_component(&self, component: &mut dyn ComponentTrait, _cx: &mut Context) { @@ -50,8 +53,8 @@ impl ThemeTrait for Bulmix { _ => {} }; } - COMPONENT_BASE_ANCHOR => { - let a = component_as_mut::(component); + COMPONENT_BASE_BUTTON => { + let a = component_as_mut::