-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KSS Modifiers Section #2
Comments
How does your HTML/HAML look like? |
Try this. (Notice the absence of dots before /*
... (snip) ...
heading-a - Another Heading
heading-b - Another Heading
heading-c - Another Heading
Styleguide 1.1
*/
.heading-a { ... }
.heading-b { ... }
.heading-c { ... } ...then try this for your markup. The param passed onto the KSS block ( = kss_block '1.1' do |mod|
%div{class: mod}
This is a heading |
I had to modify _block.html.haml line:32, this is originaly from kss gem %div{style: inner_style}= html.sub('$modifier_class', " #{modifier.class_name}").html_safe |
@rstacruz that worked perfect, thanks! Maybe something worth adding to the documentation? |
Ah, perhaps so. The KSS docs mentions a |
…orrectly クラス名が正しく出力されない問題を修正
I'm able to get the modifier classes working, but the pseudo states are not working for me. I was looking at the following issue for reference: kss-node/kss-node#51 It looks like kss.js handles the pseudo classes? But aside from adding it to the layout file, I'm not sure what else needs done. Suggestions? |
nkss-rails is unmaintained at the moment, sorry. Any help would be appreciated. |
We're attempting to get nkss up-and-running on a project and we're running into some issues where standard KSS syntax doesn't seem to work and it's unclear from your documentation whether it should work or not.
One example is for KSS Modifiers, typically used as such:
An attempt to do this with nkss results in this:
Obviously not what we're looking for. Should this work? We're using the following documentation to create this:
The text was updated successfully, but these errors were encountered: