You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_audio-preview.scss 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. .audio-preview {
  2. display: inline-block;
  3. &-content {
  4. background: $menuBG;
  5. border-radius: 3px;
  6. font-size: 14px;
  7. line-height: 24px;
  8. max-height: 456px;
  9. overflow: auto;
  10. width: 300px;
  11. &-ul {
  12. margin:0;
  13. padding:0;
  14. list-style-type: none;
  15. }
  16. }
  17. &-header {
  18. color: #fff;
  19. align-items: center;
  20. display: flex;
  21. margin-top: 8px;
  22. padding: 8px 16px;
  23. &-icon {
  24. display: inline-block;
  25. svg {
  26. fill: #fff;
  27. }
  28. }
  29. &--bordered {
  30. border-bottom: 1px solid #4C4D50;
  31. }
  32. &-text {
  33. margin-left: 12px;
  34. }
  35. }
  36. &-entry {
  37. align-items: center;
  38. color: #fff;
  39. cursor: pointer;
  40. display: flex;
  41. padding: 8px 0;
  42. margin-left: 48px;
  43. &--selected {
  44. background: #131519;
  45. cursor: initial;
  46. margin-left: 0;
  47. padding-left: 18px;
  48. }
  49. &-text {
  50. color: #fff;
  51. display: inline-block;
  52. line-height: 24px;
  53. text-overflow: ellipsis;
  54. max-width: 213px;
  55. overflow: hidden;
  56. white-space: nowrap;
  57. }
  58. }
  59. &-speaker {
  60. position: relative;
  61. &-ul {
  62. margin:0;
  63. padding:0;
  64. list-style-type: none;
  65. }
  66. &:hover, &:focus-within, &:focus {
  67. .audio-preview-entry {
  68. background: #36383C;
  69. margin-left: 0;
  70. padding-left: 48px;
  71. &--selected {
  72. padding-left: 18px;
  73. background: $newToolbarBackgroundColor;
  74. }
  75. }
  76. .audio-preview-test-button {
  77. display: inline-block;
  78. }
  79. .audio-preview-entry-text {
  80. max-width: 178px;
  81. }
  82. }
  83. &:last-child {
  84. padding-bottom: 8px;
  85. }
  86. .audio-preview-entry-text {
  87. max-width: 238px;
  88. }
  89. }
  90. &-microphone {
  91. position: relative;
  92. &:hover {
  93. .audio-preview-entry {
  94. background: #36383C;
  95. margin-left: 0;
  96. padding-left: 48px;
  97. &--selected {
  98. background: $newToolbarBackgroundColor;
  99. padding-left: 18px;
  100. }
  101. }
  102. }
  103. .audio-preview-entry-text {
  104. max-width: 178px;
  105. }
  106. }
  107. &-icon {
  108. border-radius: 50%;
  109. display: inline-block;
  110. width: 14px;
  111. & svg {
  112. fill: #1C2025;
  113. }
  114. &--check {
  115. background: #31B76A;
  116. margin-right: 16px;
  117. }
  118. &--exclamation {
  119. margin-left: 6px;
  120. & svg {
  121. fill: #E54B4B;
  122. }
  123. }
  124. }
  125. &-hr {
  126. border-top: 1px solid #4C4D50;
  127. border-bottom: 0;
  128. }
  129. &-test-button {
  130. display: none;
  131. background: #FFF;
  132. border: 1px solid #D1DBE8;
  133. border-radius: 3px;
  134. color: #1C2025;
  135. cursor: pointer;
  136. font-weight: 600;
  137. font-size: 0.8rem;
  138. line-height: 24px;
  139. padding: 2px 8px;
  140. position: absolute;
  141. right: 16px;
  142. top: 5px;
  143. }
  144. &-meter-mic {
  145. position: absolute;
  146. right: 16px;
  147. top: 14px;
  148. }
  149. // Override @atlaskit/InlineDialog container which is made with styled components
  150. & > div:nth-child(2) {
  151. outline: none;
  152. padding: 0;
  153. }
  154. }