atomify icon indicating copy to clipboard operation
atomify copied to clipboard

Media queries

Open chrisjames-work opened this issue 9 years ago • 1 comments

My first immediate concern is how do you handle media queries?

e.g.

.container {
  width: 100%;
  padding: 3rem;

  @media (min-width: 800px) {
    width: 50%;
  }
}

.full-width {
  width: 100%;

  @media (min-width: 800px) {
    width: 90%;
  }
}

.half-width {
  width: 50%;

  @media (min-width: 800px) {
    width: 90%;
  }
}

I guess you could compile to something like:

._15QFk {
  width: 100% !important;
}

._15QFk_800 {
  @media (min-width: 800px) {
    width: 90%;
  }
}

etc

But yeah, media queries...

chrisjames-work avatar Jun 02 '16 17:06 chrisjames-work

Media queries could sit at the global level e.g.

.w7 { width: 100%; }
.w3 { width: 50%; } 

@media (min-width: 800px) {
  .w7 { width: 90%; }
  .w3 { width: 90%; }
}

Rather use unique IDs I think we should use the CSS property name and value in the same way http://tachyons.io does?

Anyway, I'll create a separated issue with some thoughts.

H.

riqswe avatar Jun 02 '16 19:06 riqswe