🎨 (basic): Organiza estilos de Basic e Intro

Divide `basic.css` en parciales SCSS bajo `assets/scss/basic/`, integra
`normalize.css` en `basic.min.css` y compila `intro.scss` por separado a
`intro.min.css`.
This commit is contained in:
Manuel Cillero 2026-10-03 11:15:10 +02:00
parent b5da11777a
commit c848b97450
30 changed files with 1612 additions and 1812 deletions

View file

@ -107,7 +107,9 @@ impl Component for Intro {
}
async fn prepare(&self, cx: &mut Context) -> Result<Markup, ComponentError> {
cx.alter_assets(StyleSheet::from("/pagetop/css/intro.css").with_version(PAGETOP_VERSION));
cx.alter_assets(
StyleSheet::from("/pagetop/css/intro.min.css").with_version(PAGETOP_VERSION),
);
if *self.kind() == intro::Kind::PageTop {
cx.alter_assets(JavaScript::on_load_async("intro-js", |cx|
util::indoc!(r#"

View file

@ -15,11 +15,6 @@ impl Extension for Basic {
impl Theme for Basic {
fn before_render_page_body(&self, page: &mut Page) {
page.alter_assets(
StyleSheet::from("/pagetop/css/normalize.css")
.with_version("8.0.1")
.with_weight(-99),
)
.alter_assets(
StyleSheet::from("/pagetop/css/basic.min.css")
.with_version(PAGETOP_VERSION)
.with_weight(-99),

View file

@ -110,10 +110,7 @@ use std::ops::Deref;
/// fn before_render_page_body(&self, page: &mut Page) {
/// page
/// .alter_assets(
/// StyleSheet::from("/pagetop/css/normalize.css").with_version("8.0.1")
/// )
/// .alter_assets(
/// StyleSheet::from("/pagetop/css/basic.css").with_version(PAGETOP_VERSION),
/// StyleSheet::from("/pagetop/css/basic.min.css").with_version(PAGETOP_VERSION),
/// )
/// .alter_assets(
/// StyleSheet::from("/mytheme/styles.css").with_version(env!("CARGO_PKG_VERSION")),