2
0

style.css 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. .kana {
  2. display: inline-block;
  3. position: relative;
  4. }
  5. .kana::after {
  6. display: inline-block;
  7. content: attr(data-text);
  8. position: absolute;
  9. left: 0;
  10. top: 0;
  11. color: red;
  12. font-weight: bold;
  13. overflow: hidden;
  14. width: 0px;
  15. transition: width 0.1s;
  16. }
  17. .kana.half::after {
  18. width: 50%;
  19. }
  20. .kana.full::after {
  21. width: 100%;
  22. }
  23. .romaji {
  24. display: inline-block;
  25. }
  26. .romaji.error {
  27. animation-name: pulse;
  28. animation-duration: 0.5s;
  29. animation-iteration-count: 1;
  30. }
  31. @keyframes pulse {
  32. 0% {
  33. transform: scale(1, 1)
  34. }
  35. 50% {
  36. transform: scale(2, 2)
  37. }
  38. 100% {
  39. transform: scale(1, 1)
  40. }
  41. }
  42. .progress-bar {
  43. position: relative;
  44. height: 5px;
  45. background-color: lightgrey;
  46. }
  47. .progress-bar .shade {
  48. position: absolute;
  49. height: 5px;
  50. background-color: red;
  51. animation-timing-function: linear;
  52. animation-play-state: paused;
  53. }
  54. @keyframes progress {
  55. from {
  56. width: 0%;
  57. }
  58. to {
  59. width: 100%;
  60. }
  61. }
  62. .level-control.waiting {
  63. color: grey;
  64. }
  65. .level-control.waiting .romaji {
  66. color: transparent;
  67. }