summaryrefslogtreecommitdiff
path: root/src/compiler/optimize/styles.ts (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-04-09Parse inner JSX as Astro (#67)Gravatar Matthew Phillips 1-285/+0
* Parse inner JSX as Astro This completes the compiler changes, updating the parser so that it parses inner "JSX" as Astro. It does this by finding the start and end of HTML tags and feeds that back into the parser. The result is a structure like this: ``` { type: 'MustacheTag', expression: [ { type: 'Expression', codeStart: 'colors.map(color => (', codeEnd: '}}' children: [ { type: 'Fragment', children: [ { type: 'Element', name: 'div' } ] } ] } ] } ``` There is a new Node type, `Expression`. Note that `MustacheTag` remains in the tree, all it contains is an Expression though. I could spend some time trying to remove it, there's just a few places that expect it to exist. * Update import to the transform * Transform prism components into expressions
2021-04-02Fix scoping issues (#58)Gravatar Drew Powers 1-4/+11
2021-04-02Add Tailwind support (#57)Gravatar Drew Powers 1-15/+63
2021-04-02Fix body from being scoped (#56)Gravatar Drew Powers 1-9/+21
2021-04-01Annoying Lint PR #2 (#47)Gravatar Drew Powers 1-1/+1
2021-04-01Add runtime mode (#48)Gravatar Drew Powers 1-7/+20
2021-03-31Extract Astro styles to external stylesheets (#43)Gravatar Drew Powers 1-27/+9
* Extract Astro styles to external stylesheets * Require relative URLs in Markdown layouts
2021-03-30Fix nested parens bug (#39)Gravatar Drew Powers 1-1/+0
2021-03-30Convert CSS Modules to scoped styles (#38)Gravatar Drew Powers 1-68/+38
* Convert CSS Modules to scoped styles * Update README * Move class scoping into HTML walker * Fix SSR styles test * Fix mustache tags * Update PostCSS plugin name * Add JSDoc comment * Update test
2021-03-26Fix JSX CSS Modules classes (#31)Gravatar Drew Powers 1-12/+17
2021-03-25Improve styles (#30)Gravatar Drew Powers 1-12/+48
2021-03-25add component state, top-level await support (#26)Gravatar Fred K. Schott 1-0/+213