ul.references {
  margin-left: 1px;
  margin-right: 1px;
}
ul.references li {
  position: relative;
  float: left;
  display: inline;
  list-style-type: none;
  margin-left: 140px;
  font-size: 10px;
  border: 1px solid black;
  line-height: 1.2em;
}

ul.references li.active {
  border: 1px solid #1dc2e5;
}

ul.references li.first {
  margin-left: 0;
}

ul.references li a span {
  position: absolute;
  bottom: 0;
  left: 0;
  color: white;
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding-bottom:2px;
  padding-left:4px;
  padding-right:5px;
  padding-top:3px;
  font-weight: bold;
}