JSFiddle - React, Tailwind, and code Playground

by Riskbreaker

HTML

<aside class="sidebar col-xs-3 pull-right">
        <div class="box-with-header queries">
          <div class="header-fixed">
            <h5 class="headline">Headline</h5>
          </div>
          <div class="content">
            <ul class="item no-bullets red">
              <li>Text Content</li>
              <li>Text Content</li>
              <li>Text Content</li>
            </ul>
            <hr />

            <ul class="item no-bullets blue">
              <li>Text Content</li>
              <li>Text Content</li>
              <li>Text Content</li>
            </ul>
            <hr />

            <ul class="item no-bullets yellow">
              <li>Text Content</li>
              <li>Text Content</li>
              <li>Text Content</li>
            </ul>
            <hr />
          </div>
        </div>
    </aside>

CSS

body {
padding: 0;
margin: 0;
}

hr {
  margin: 10px 0;
}

.header-fixed {position: fixed; width: 100%; top: 0}
aside.sidebar {
  background: #EDEDED;
  position: relative;
  z-index: 1;
}
.no-bullets {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.box-with-header {
  background: #FFFFFF;
  margin: 10px 0;
  overflow-y: auto;
  border-bottom: 2px solid #e0e0e0;
}
.box-with-header.queries {
  max-height: 250px;
  height: 250px;
  margin-top: 3em;
}
.border-bottom {
  border-bottom: 2px solid #e0e0e0;
}
.headline {
  background: #f6f6f6;
  padding: 10px;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  font-size: 13px;
}
.item {
  padding: 0 5px;
  font-size: 13px;
  margin: 0 5px 5px;
  color: #6c6c6c;
}
.item.red {
  border-left: 3px solid #ef5a52;
}
.item.blue {
  border-left: 3px solid #56b3ed;
}
.item.yellow {
  border-left: 3px solid #efdb52;
}
.item .inline li {
  display: inline;
}