You are here

length-indicator.css in Length Indicator 8

.length-indicator__indicator {
  background: #ddd;
  width: 100%;
  height: 10px;
  opacity: 0.2;
}

.length-indicator__indicator--bad {
  background: red;
}
.length-indicator__indicator--ok {
  background: orange;
}
.length-indicator__indicator--good {
  background: green;
}

.length-indicator {
  display: flex;
  position: relative;
}

.length-indicator__indicator.is-active {
  opacity: 1;
}

.length-indicator__cursor {
  position: absolute;
  left: 0;
  top: 10px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid black;
  margin-left: -4px;
  margin-right: -4px;
}

File

css/length-indicator.css
View source
  1. .length-indicator__indicator {
  2. background: #ddd;
  3. width: 100%;
  4. height: 10px;
  5. opacity: 0.2;
  6. }
  7. .length-indicator__indicator--bad {
  8. background: red;
  9. }
  10. .length-indicator__indicator--ok {
  11. background: orange;
  12. }
  13. .length-indicator__indicator--good {
  14. background: green;
  15. }
  16. .length-indicator {
  17. display: flex;
  18. position: relative;
  19. }
  20. .length-indicator__indicator.is-active {
  21. opacity: 1;
  22. }
  23. .length-indicator__cursor {
  24. position: absolute;
  25. left: 0;
  26. top: 10px;
  27. width: 0;
  28. height: 0;
  29. border-left: 5px solid transparent;
  30. border-right: 5px solid transparent;
  31. border-bottom: 8px solid black;
  32. margin-left: -4px;
  33. margin-right: -4px;
  34. }