Giter VIP home page Giter VIP logo

renoirst's Introduction

RenoirSt

Logo

A DSL enabling programmatic cascading style sheet generation for Pharo Smalltalk

Unit Tests Coverage Status Group loading check Markdown Lint

GitHub release Pharo 7.0 Pharo 8.0 Pharo 9.0 Pharo 10 Pharo 11

Quick links

Goals

  • Improve CSS integration with existing Web Frameworks
  • Write & refactor in Smalltalk, deploy to CSS

Benefits

  • Keep in sync your code changes with the changes in the CSS
  • Use your favorite browsing and refactoring tools inside the same Pharo image to handle CSS

License

  • The code is licensed under MIT.
  • The documentation is licensed under CC BY-SA 4.0.

Installation

To load the project in a Pharo image follow these instructions.


Now you can try the Hello World:

CascadingStyleSheetBuilder new
  declareRuleSetFor: [:selector | selector body before]
  with: [:style | style content: '"Hello World"'];
  build

you should see something like this:

body::before
{
  content: "Hello World";
}

Contributing

Check the Contribution Guidelines

renoirst's People

Contributors

fortizpenaloza avatar gcotelli avatar hurrellt avatar matiasgiorda1999 avatar mtabacman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

renoirst's Issues

Strict mode for constants

Allow the library user to configure the strictness of the constants lookup. So when the library is in strict mode it will fail if you try to use a constant not defined in the namespaces. The "liberal" mode will work as it's now, allowing to use anything for the cases you want some new property value unsupported in the library.

Add relative longitude unit rem to Float

Currently the relative longitude unit rem is only defined in the class Integer, therefore only can be applied in a html element this unit with a value integer. But the browsers can interpret a rem float value so should be added.

Update Boardwalk dependency to 5.0.0 and rename base package to RenoirSt-Core

Rename the base package from RenoirStto RenoirSt-Core. This is to ease importing into VA Smalltalk, where the name of a package is used to create a class, and classes can't have the same name as pool dictionaries. We already have a pool dictionary named RenoirSt.
Also, update the dependency to Boardwalk to use release 5.0.0.

Testing corrections

Improvements to make the tests compatible with other projects that require more standardized protocols

Load instructions for Pharo 7.0.4

After some experimentation, the following works and all tests pass. Other variations resulted in load error.

Metacello new
	baseline: 'Seaside3';
	repository: 'github://SeasideSt/Seaside/repository';
	load.

Metacello new
	baseline: 'RenoirSt';
	repository: 'github://ba-st/RenoirSt/source';
	onConflictUseLoaded;
	load: 'Development-Seaside-Extensions'.

Add CssMediaQuery abstraction

Currently, CSS media queries are embedded in media query rules, but they can be abstracted away so they became useful in other contexts. For example, a proper media query abstraction can be used as a parameter in many others IETF contexts like HTTP Link Headers.

The proposal is to have something like CssMediaQuery containing the media type and a list of media query expressions. It can be extracted by looking at CssMediaQueryExpression , CssMediaQueryRule and CssMediaQueryRuleBuilder.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.