wgoodall01/wikipath

View on GitHub
web/wikipath-web/src/PathDisplay.css

Summary

Maintainability
Test Coverage
.PathDisplay {
  margin: 20px 0;
  list-style: none;
  list-style-position: inside;
  padding: 0;

  counter-reset: PathDisply_items;
}

.PathDisplay_item:before {
  content: counter(PathDisply_items);
  display: inline-block;
  width: 10px;
  height: 10px;
  line-height: inherit;
  color: white;
  background-color: var(--color-primary);
  opacity: 0.8;
  border-radius: 100%;
  padding: 8px;
  text-align: center;
}

.PathDisplay_item > * {
  padding: 8px;
}

.PathDisplay_item {
  line-height: 10px;
  counter-increment: PathDisply_items;
  margin: 8px 0;
  border-radius: 5px;
}

.PathDisplay_link {
  color: inherit;
  text-decoration: none;
}

.PathDisplay_link:hover {
  text-decoration: underline;
  color: blue;
}