ESPTrainer built with Meteor and React

Score.scss 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. @import "gradient";
  2. .score {
  3. display: flex;
  4. flex-direction: column;
  5. margin-bottom: 50px;
  6. .current-score {
  7. background: #fff;
  8. height: 3px;
  9. margin-top: 3px;
  10. }
  11. .scale {
  12. display: flex;
  13. flex: 1;
  14. height: 3px;
  15. justify-content: space-between;
  16. margin-top: 1em;
  17. position: relative;
  18. @include rainbow-gradient();
  19. .grade {
  20. position: relative;
  21. &:after {
  22. background: white;
  23. content: ' ';
  24. display: block;
  25. height: 5px;
  26. position: absolute;
  27. top: -1px;
  28. width: 1px;
  29. }
  30. @mixin grade-label($number) {
  31. content: quote(inspect($number));
  32. position: absolute;
  33. top: -20px;
  34. @if($number > 10) { left: -8px; }
  35. @else { left: -4px; }
  36. color: white;
  37. }
  38. @mixin grade-labels($numbers...) {
  39. @each $number in $numbers {
  40. &:nth-child(#{$number + 1}):before { @include grade-label($number); }
  41. }
  42. }
  43. @include grade-labels(0, 6, 12, 18, 24);
  44. }
  45. }
  46. }