JSFiddle - React, Tailwind, and code Playground

by zacwasielewski

HTML

<div class="one">
    Visible on small screens
</div>

<div class="two">
    Visible on large screens
</div>

<div class="three">
    Hidden on small screens
</div>

<h2><a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/less/responsive-utilities.less">responsive-utilities.less</a> (original):</h2>

<pre>
// Visibility utilities

// For Phones
.visible-sm {
  .responsive-visibility();
}
.visible-md {
  .responsive-invisibility();
}
.visible-lg {
  .responsive-invisibility();
}

.hidden-sm {
  .responsive-invisibility();
}
.hidden-md {
  .responsive-visibility();
}
.hidden-lg {
  .responsive-visibility();
}


// Tablets & small desktops only
@media (min-width: @screen-tablet) and (max-width: @screen-tablet-max) {
  .visible-sm {
    .responsive-invisibility();
  }
  .visible-md {
    .responsive-visibility();
  }
  .visible-lg {
    .responsive-invisibility();
  }

  .hidden-sm {
    .responsive-visibility();
  }
  .hidden-md {
    .responsive-invisibility();
  }
  .hidden-lg {
    .responsive-visibility();
  }
}

// For desktops
@media (min-width: @screen-desktop) {
  .visible-sm {
    .responsive-invisibility();
  }
  .visible-md {
    .responsive-invisibility();
  }
  .visible-lg {
    .responsive-visibility();
  }

  .hidden-sm {
    .responsive-visibility();
  }
  .hidden-md {
    .responsive-visibility();
  }
  .hidden-lg {
    .responsive-invisibility();
  }
}
    </pre>

   
<h2>Custom LESS:</h2>
<pre>
.one {
  .visible-sm;
}

.two {
  .visible-lg;
}

.three {
  .hidden-sm;
}
</pre>

CSS

/*!
 * Bootstrap v3.0.0
 *
 * Copyright 2013 Twitter, Inc
 * Licensed under the Apache License v2.0
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Designed and built with all the love in the world by @mdo and @fat.
 */

/*! normalize.css v2.1.0 | MIT License | git.io/normalize */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}

audio,
canvas,
video {
  display: inline-block;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

[hidden] {
  display: none;
}

html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
      -ms-text-size-adjust: 100%;
}

body {
  margin: 0;
}

a:focus {
  outline: thin dotted;
}

a:active,
a:hover {
  outline: 0;
}

h1 {
  margin: 0.67em 0;
  font-size: 2em;
}

abbr[title] {
  border-bottom: 1px dotted;
}

b,
strong {
  font-weight: bold;
}

dfn {
  font-style: italic;
}

hr {
  height: 0;
  -moz-box-sizing: content-box;
       box-sizing: content-box;
}

mark {
  color: #000;
  background: #ff0;
}

code,
kbd,
pre,
samp {
  font-family: monospace, serif;
  font-size: 1em;
}

pre {
  white-space: pre-wrap;
}

q {
  quotes: "\201C" "\201D" "\2018" "\2019";
}

small {
  font-size: 80%;
}

sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

img {
  border: 0;
}

svg:not(:root) {
  overflow: hidden;
}

figure {
  margin: 0;
}

fieldset {
  padding: 0.35em 0.625em 0.75em;
  margin: 0 2px;
  border: 1px solid #c0c0c0;
}

legend {
  padding: 0;
  border: 0;
}

button,
input,
select,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: 100%;
}

button,
input {
  line-height: normal;
}

button,
select {
  text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  cursor: pointer;
  -webkit-appearance: button;
}

button[disabled],
html input[disabled] {
  cursor:...