Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Sass media query output variable

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #149767
    sBowers
    Participant

    Currently we have our sass components divided into separate files based on generalized media queries. E.g. sass/components/nav/_nav1.scss or _nav2.scss etc. In this way we can set the media queries in the sites theme file and import the segmented sass.
    @media only screen and (min-width: 48em) {
    @import '../compontents/nav/_nav-3.scss';
    //another import
    etc.

    We do this so we can export both a media query rich theme file and a IE style sheet without the media queries using the same baseline styles.

    Recently I heard Chris taking on Shop Talk about using a variable to remove the media queries from the rendered css. Can anyone speak to this technique?

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.