Giter Club home page Giter Club logo

Comments (3)

leejordan avatar leejordan commented on August 29, 2024 2

Thanks for explaining it. I agree with your proposal and your reasons. I think we can follow the majority and use @media (min-width: 1200px)

from reflex.

Yoann-M avatar Yoann-M commented on August 29, 2024 1

Personally, I don't think there is a risk of not specifying screen.
Using print is only for very specific cases that can be taken into account in the CSS of the project in which Reflex is imported.

I took a look at

  • Foundation (for sites) : @media print, screen and (min-width: 40em) { -> print, screen are always declared
  • Bootstrap : @media (min-width: 1200px) { -> nothing specific is declared
  • UiKit : @media (min-width: 1200px) { -> nothing specific is declared
  • MaterialiseCSS : @media only screen and (min-width: 1200px) { -> only screen and are always declared

After some research W3C Media Types and W3C Media Queries

media (max-width:1200px) -> Is for a window with a max-width of 1200px.

@media screen and (max-width:1200px)-> Is for a device with a screen and a window with a max-width of 1200px.

@media only screen and (max-width:1200px) -> For only, there is a quote from W3C :

The keyword โ€˜onlyโ€™ can also be used to hide style sheets from older user agents. User agents must process media queries starting with โ€˜onlyโ€™ as if the โ€˜onlyโ€™ keyword was not present. (W3C Recommendation 19 June 2012)

The idea behind my proposal is to homogenize all the @media.
So we can use for all @media (min-width: 1200px) { or @media screen and (max-width:1200px)

Tell me what you think about.
Best Regards
Yoann

from reflex.

leejordan avatar leejordan commented on August 29, 2024

I think my intention here was not to apply the grid to any other media type such as print for example. Is there any risk involved in not specifying screen ?

from reflex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.