Skip to content

Releases: abishekatp/stylers

`v0.3.1`

29 Mar 18:33
6f9f294
Compare
Choose a tag to compare
  • Adding deep selector to add the feature described in this issue.
  • Fixing the issue when there is newline charactor follwing comma(,) in selector. PR is here.

Thank you @luoxiaozero for make this PR.

`v0.3.0`

05 Mar 07:54
efea057
Compare
Choose a tag to compare
  • As mentioned in this issue to support modularized css adding new macros namely style_str and style_sheet_str.
  • These macros return the style value instead of writing them into separate css files.

Thank you @gbj, @WafflePersonThing for helping me out to fix this issue. Since we introduced backward compatible new features based on semantic versioning guidelines switching to new minor version.

v0.2.2

28 Feb 11:03
Compare
Choose a tag to compare

Fixing the issue #11
Improvements in v0.2.2

  • Build process is more clean now. moved everything to ./target/stylers directoy. which also solved the re-render problem while using Trunk.

v0.2.0

22 Feb 09:27
Compare
Choose a tag to compare
  • Adding new feature to the stylers namely style_sheet! macro. Now users can write css in external file and include them inside their component using this macro. This way we can add full css IDE support for big projects.
    #8

v0.1.1

05 Feb 14:44
Compare
Choose a tag to compare

Fixing this issue #6
Now we can add any valid custom css selectors in stylers macro.

v0.1.0

22 Jan 07:50
Compare
Choose a tag to compare

Thanks for the support from @ekanna, @gbj and @abishekatp
This is the first release of scoped CSS solution for rust web frameworks which follows component like architecture.

Features

This version onle provide one macro namely style macro. It is now supported in the leptos framework. You can use this style macro as given below.

let styler_class = style! {"Hello",
        div.one{
            color: red;
        }
        @media only screen and (max-width: 1000px) {
              h3 {
                  background-color: lightblue;
                  color: blue
              }
         }
}

Currently it supports most of commonly used style rules and at rules which you can write in style sheet.
This version does not check for any errors in the css. It just parses whatever is given as input.