djgrant / chameleon Goto Github PK
View Code? Open in Web Editor NEWBuild highly expressive and efficient CSS grids
Build highly expressive and efficient CSS grids
The code
@include placeholders('myHelper') {
color: red;
}
for example, generates a placeholder %myHelper.
It should also generate a mixin with the same name.
This allows developers to include style rules directly to a selector rather than just being able to select them.
Allow the custom @content to be passed into the classes mixin:
@include classes('my-selector', $on: 'tablet') {
padding: 20px;
}
If a placeholder exists with the same selector name, both the styles of @content and %placeholder will be used.
(It's not possible to test if @content is passed so whether it's ideal or not this is the behaviour we're getting).
It seems daft that developers can create many versions of class for different breakpoints but it is not possible to do the same for JS/non-JS states.
Propose adding the ability to generate conditional "if" classes.
@include classes('hidden', $on: ('base', 'mobile', 'no-js', 'js'));
// generates
.hidden {}
.no-js .hidden-if-no-js {}
.js .hidden-if-js {}
@media [mobile media expression] {
.hidden-on-mobile {}
}
If classes
encounters a string not in the breakpoint config it generates a conditional "if" class for the value of that string.
Missing a few expressions e.g. desktop-down
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.