gilbox / css-bliss Goto Github PK
View Code? Open in Web Editor NEWA CSS style guide that puts the Clean, Smart, and Simple back into CSS
License: MIT License
A CSS style guide that puts the Clean, Smart, and Simple back into CSS
License: MIT License
Should we allow parentless modules? To a very limited degree, I've allowed it in one of my projects. It's a little confusing to look for the root Module class and then realize that there isn't one. For example, consider (a rather contrived example):
<h2 class="Title">
<i class="Title-iconBefore"></i>
Hello World
<i class="Title-iconAfter"></i>
</h2>
versus:
<i class="Title-iconBefore"></i>
<h2 class="Title-copy">Hello World</h2>
<i class="Title-iconAfter"></i>
@MyModule-mixinDescription
%MyModule-placeholderDescriptor
Should we apply multiple Module Modifiers to an element?
I'm thinking use this sparingly.
Should we apply multiple Element Modifiers to an element?
I'm thinking use this sparingly as well.
What are the use cases?
Is there any reason we shouldn't do the following?
<i class="Ico Ico-clientResponseTimes"></i>
or is it preferred to use a module modifier?
<i class="Ico Ico--clientResponseTimes"></i>
Hey Gil ๐
what do you think about +
?
Is there a better way of doing this ? (assuming the sibling selector is needed)
.FlightLeg {
&-row {
& + & {
// some styles
}
}
}
FAQ
I think it'd very convenient to have a comparison table which compares Bliss to BEM, OOCSS, etc.
Hi! Thanks for sharing your model, this looks great!
I was going through the walkthrough and saw that your CSS example is missing a space between the state class and the module class.
<body ng-class="{isLoggedIn:userIsLoggedIn}">
<div class="Header">...</div>
<div class="Hero">...</div>
<div class="FeatureGrid">...</div>
</body>
/* modules/_Header.scss */
.Header {
...
}
.isLoggedIn.Header {
...
}
.isLoggedIn.Header
should be .isLoggedIn .Header
(or the DOM elements must be have both classes).
If you want a PR for this or if I'm missing something, let me know!
Thanks.
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.