Comments (19)
Yeah I know a couple people that would like this. Though I'd probably use a different config name since css guidelines includes a lot of other things than this.
—
Sent from Mailbox
On Thu, Mar 12, 2015 at 5:54 AM, Patrick [email protected] wrote:
Would you accept a Pull-Request for a config switch to support http://cssguidelin.es/ ?
$csstyle-support-guidelines: true; @import 'csstyle';Then the
options
can be used like<div class="component component--option">instead of
<div class="component --option">
Reply to this email directly or view it on GitHub:
#33
from csstyle.
Do you have any idea about a better config name?
csstyle-long-options
?
from csstyle.
from csstyle.
Ping @geddski :-)
I'm preparing a PR for that. If you have a better suggestiion for the config-switch let me know.
from csstyle.
Could go with $csstyle-verbose-options or $csstyle-long-options
—
Sent from Mailbox
On Sun, Mar 22, 2015 at 6:43 AM, Patrick [email protected] wrote:
Ping @geddski :-)
I'm preparing a PR for that. If you have a better suggestiion for the config-switch let me know.
Reply to this email directly or view it on GitHub:
#33 (comment)
from csstyle.
Any news on this front? Would love to use an option like this.
from csstyle.
Sorry for the delay. i must have missed your answer regarding the variable namings.
Here the link to http://cssguidelin.es/#starting-context for reading / documentation.
Please read the message. Postcss is missing in the tests at the moment because i don't
know how it's working. Maybe you have a hint for me.
from csstyle.
I in general think that the .component--option
is a bit better for the following reason
<div class="person --male"></div>
<div class="monkey --male"></div
--male
is not unique so one style affects each other.
And the specitifity is a little lower with the guildline.es way.
from csstyle.
Agreed. The .component--option
naming convention also keeps components more isolated, which is especially helpful when debugging.
from csstyle.
As long as you're using csstyle to create your selectors the options will never collide because it includes both the component and the option name in the selector.
from csstyle.
The main win of this PR is to make grepping for selectors in your html slightly easier.
from csstyle.
True, but I can also see a use case for wanting to use csstyle with an already existing codebase that has an established library of components. Depending on the scale and complexity of the project, refactoring all components to use csstyle may not be practical. With that said, you're probably right that easier grepping is the main allure for this.
from csstyle.
Good point. This makes csstyle that much easier to configure to an existing convention like many big projects would already have. +1
@psren Are you ready for me to review and merge?
from csstyle.
Yes. Would be nice if you could look at the missing postcss test.
from csstyle.
Will do
from csstyle.
Is there any news here?
from csstyle.
Ping
from csstyle.
Pong
from csstyle.
ding dong
from csstyle.
Related Issues (20)
- Responsive component HOT 1
- Part nested under an option prints all components hierarchy HOT 1
- Part nested into pseudo selector HOT 1
- Discussion: Convert PostCSS to use @rules instead of custom selectors HOT 2
- How to use in Gulp? HOT 3
- make / the default parts symbol HOT 2
- Sass structure
- Warning for duplicate components feature? HOT 2
- Why is this plugin useful...? HOT 1
- Yeoman generator HOT 2
- iOS HOT 11
- Stylus version HOT 2
- Rendering differences with node-sass 3.3 and 3.4 HOT 2
- BEM Comparison HOT 1
- Framework with Csstyle HOT 1
- Use PostCSS 5.0
- csstyle.io links broken HOT 2
- Add Stylus support
- CSStyle incompatible with Sass 3.4.22 HOT 4
- Website is down
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csstyle.