_recorder.scss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. .capture-audio {
  2. text-align: center;
  3. .microphone {
  4. height: 36px;
  5. width: 36px;
  6. text-align: center;
  7. opacity: 0.5;
  8. background: transparent;
  9. padding: 0;
  10. border: none;
  11. &:focus, &:hover {
  12. opacity: 1.0;
  13. }
  14. &:before {
  15. content: '';
  16. display: inline-block;
  17. height: 24px;
  18. width: 24px;
  19. @include color-svg('/images/microphone.svg', $grey);
  20. }
  21. }
  22. }
  23. .recorder {
  24. background: $grey_l;
  25. button {
  26. float: right;
  27. width: 36px;
  28. height: 36px;
  29. border-radius: 36px;
  30. margin-left: 5px;
  31. opacity: 0.5;
  32. text-align: center;
  33. padding: 0;
  34. &:focus, &:hover {
  35. opacity: 1.0;
  36. }
  37. .icon {
  38. display: inline-block;
  39. width: $button-height;
  40. height: $button-height;
  41. }
  42. }
  43. .finish {
  44. background: lighten($green, 20%);
  45. border: 1px solid $green;
  46. .icon { @include color-svg('/images/check.svg', $green); }
  47. }
  48. .close {
  49. background: lighten($red, 20%);
  50. border: 1px solid $red;
  51. .icon { @include color-svg('/images/x.svg', $red); }
  52. }
  53. .time {
  54. color: $grey;
  55. float: right;
  56. line-height: 36px;
  57. padding: 0 10px;
  58. @keyframes pulse {
  59. 0% { opacity:0; }
  60. 50% { opacity:1; }
  61. 100% { opacity:0; }
  62. }
  63. &::before {
  64. content: '';
  65. display: inline-block;
  66. border-radius: 10px;
  67. width: 10px;
  68. height: 10px;
  69. background: #f00;
  70. margin-right: 10px;
  71. opacity: 0;
  72. animation: pulse 2s infinite;
  73. }
  74. }
  75. }