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

negative breakpoints #11

Closed
chharvey opened this issue Oct 17, 2016 · 2 comments
Closed

negative breakpoints #11

chharvey opened this issue Oct 17, 2016 · 2 comments

Comments

@chharvey
Copy link
Owner

@media not all and (min-width: 30em) {
  ./**/-nsK {} /* same as (max-width: 29.999em) */
}

@media not all and (min-width: 45em) { ./**/-nsM {} } /* (max-width: 44.999em) */
@media not all and (min-width: 60em) { ./**/-nsG {} } /* (max-width: 59.999em) */
@media not all and (min-width: 75em) { ./**/-nsT {} } /* (max-width: 74.999em) */
@media not all and (min-width: 90em) { ./**/-nsP {} } /* (max-width: 89.999em) */
@chharvey
Copy link
Owner Author

add to docs

div
  section
    h2 h-Clearfix-nsM
    p Item acts as the #[a Clearfix Helper] only in the not-sM breakpoint (smaller tan 45em / 720px).
    figure.docs-figure
      p.c-Hero__Detail
        span.c-Hero__Place.h-Clearfix-nsM Denver, CO
        span.c-Hero__Dates Jun 4–Jun 7
      pre.docs-pre.
        <p class="c-Hero__Detail">
          <span class="c-Hero__Place  #[u h-Clearfix-nsM]">Denver, CO</span>
          <span class="c-Hero__Dates">Jun 4–Jun 7</span>
        </p>

@chharvey
Copy link
Owner Author

chharvey commented Feb 9, 2017

IMPORTANT

rename breakpoint suffixes as per the following:

@media not all and (min-width: 30em) {
  ./**/-nK {} /* same as (max-width: 29.999em) */
}

@media not all and (min-width: 45em) { ./**/-nM {} } /* (max-width: 44.999em) */
@media not all and (min-width: 60em) { ./**/-nG {} } /* (max-width: 59.999em) */
@media not all and (min-width: 75em) { ./**/-nT {} } /* (max-width: 74.999em) */
@media not all and (min-width: 90em) { ./**/-nP {} } /* (max-width: 89.999em) */

chharvey pushed a commit that referenced this issue Feb 9, 2017
suffix -ns* renamed to suffix -n*
e.g.: .o-List-nsK -> .o-List-nK

old namings are kept for backwards-compatibility,
** will be OBSOLETE in v6+ **

see #11
chharvey pushed a commit that referenced this issue Feb 9, 2017
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