Skip to content
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

Multiplicating elements #9

Open
joaomilho opened this issue Dec 24, 2013 · 0 comments
Open

Multiplicating elements #9

joaomilho opened this issue Dec 24, 2013 · 0 comments

Comments

@joaomilho
Copy link

I'm having the following problem: elements are being multiplied Nx for each class defined.

This is my CSS:

/*
 * Buttons (.button):
 *
 *
 * positive - For submiting forms.
 * negative - For cancelations.
 * osdfg - For cancelations.

 *
 * Styleguide 5.1
 */

button,
.button {
  border: none;
  @include border-radius($global-radius);
  font-family: helvetica neue;
  font-size: 16px;
  font-weight: normal;
  @include box-shadow(none);
  background: $color-gray;

  &.negative{
    background: $color-orange;
  }

  &.positive{
    background: $color-dark-blue;
    @extend .small-12;
  }

  @include breakpoint($small) {
    padding-left: 2em !important;
    padding-right: 2em !important;
    width: auto !important;
  }
}

This is the view (slim):

-# This is an example markup for a KSS section.
-# The definition for `1.1` can be found in your app/assets/stylesheets/ folder.

= kss_block '5.1' do |mod|
  a.button[href='#' class=mod] Click 

This is the result:
result-styleguide

I was expecting only one button on each row, not 1, then 2, then 3 (if I add another class in the comments I get 4 and so on...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant