Using tachyons css library:
I don't understand how the ns
breakpoint works. According to the docs the breakpoints are defined as:
Media Query Extensions:
-ns = not-small [ @media screen and (min-width: 30em) ]
-m = medium [ @media screen and (min-width: 30em) and (max-width: 60em) ]
-l = large [ @media screen and (min-width: 60em) ]
Thought the following code will ensure only a single div's visibility depending on the width.
<div class="dn-ns dn-m dn-l">Mobile</div>
<div class="dn db-ns">Small</div>
<div class="dn db-m">Medium</div>
<div class="dn db-l">Large</div>
However, the ns
breakpoint also appears to kicks in at medium
and large
breakpoints.
mobile breakpoint, it's default
ns and medium, both kicking in
Is it because the ns
breakpoint does not specify an upper bound and so covers anything not mobile?