amcss / amcss.github.io Goto Github PK
View Code? Open in Web Editor NEWAMCSS documentation & examples
Home Page: http://amcss.github.io
AMCSS documentation & examples
Home Page: http://amcss.github.io
I'm a big fan of this concept but I want to point something out re: @geelen's original post, even though it was 18 months ago:
It's argued there that 'single-class' BEM is difficult to override because there's no effective way to select the base class. However, given the example of wanting to select all btn
base-classed elements, the selector .btn, [class*='btn--']
actually does the trick. The attribute-selector pattern mentioned, [class^='btn']
, is a 'starts-with' pattern; but the fact that BEM uses a --
after every base class means you can actually use a 'substring' pattern with accuracy, and not be affected by the order of the classes. In Sass, I write a lot of styles like this (one of the few real use-cases for @extend
imo):
[class*='base--'] { @extend .base; ]
.base { /* base styles */ }
.base--mod { /* mod styles */ }
How about a neat SASS version of amcss? I think this would be pretty nice ๐
I thought that class selectors are faster than attribute selectors with matching. Can you make any benchmarks about rendering speed? I think that this issue will be interest to potential users of the methodology
[am-Code~="removed"]
is there a sass way to nest that '~=' ?
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.