css.html 71.1 KB
Newer Older
2001
    <p>Use on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation. Responsive utilities are currently only available for block-level toggling, meaning <code>display: none;</code> or <code>display: block;</code>. Use with inline and table elements is currently not supported.</p>
Mark Otto's avatar
Mark Otto committed
2002
2003

    <h3>Test case</h3>
2004
    <p>Resize your browser or load on different devices to test the responsive utility classes.</p>
Mark Otto's avatar
Mark Otto committed
2005
    <h4>Visible on...</h4>
2006
    <p>Green checkmarks indicate the element <strong>is visible</strong> in your current viewport.</p>
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
    <ul class="responsive-utilities-test visible-on">
      <li>
        <span class="hidden-sm">Small</span>
        <span class="visible-sm">&#10004; Visible on small</span>
      </li>
      <li>
        <span class="hidden-md">Medium</span>
        <span class="visible-md">&#10004; Visible on medium</span>
      </li>
      <li>
        <span class="hidden-lg">Large</span>
        <span class="visible-lg">&#10004; Visible on large</span>
      </li>
Mark Otto's avatar
Mark Otto committed
2020
2021
    </ul>
    <h4>Hidden on...</h4>
2022
    <p>Here, green checkmarks indicate the element <strong>is hidden</strong> in your current viewport.</p>
Mark Otto's avatar
Mark Otto committed
2023
    <ul class="responsive-utilities-test hidden-on">
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
      <li>
        <span class="visible-sm">Small</span>
        <span class="hidden-sm">&#10004; Hidden on small</span>
      </li>
      <li>
        <span class="visible-md">Medium</span>
        <span class="hidden-md">&#10004; Hidden on medium</span>
      </li>
      <li>
        <span class="visible-lg">Large</span>
        <span class="hidden-lg">&#10004; Hidden on desktop</span>
      </li>
Mark Otto's avatar
Mark Otto committed
2036
2037
2038
    </ul>

  </div>
For faster browsing, not all history is shown. View entire blame