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.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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. &--nometer {
  104. .audio-preview-entry-text {
  105. max-width: 238px;
  106. }
  107. }
  108. &--withmeter {
  109. .audio-preview-entry-text {
  110. max-width: 178px;
  111. }
  112. }
  113. }
  114. &-icon {
  115. border-radius: 50%;
  116. display: inline-block;
  117. width: 14px;
  118. & svg {
  119. fill: #1C2025;
  120. }
  121. &--check {
  122. background: #31B76A;
  123. margin-right: 16px;
  124. }
  125. &--exclamation {
  126. margin-left: 6px;
  127. & svg {
  128. fill: #E54B4B;
  129. }
  130. }
  131. }
  132. &-hr {
  133. border-top: 1px solid #4C4D50;
  134. border-bottom: 0;
  135. }
  136. &-test-button {
  137. display: none;
  138. background: #FFF;
  139. border: 1px solid #D1DBE8;
  140. border-radius: 3px;
  141. color: #1C2025;
  142. cursor: pointer;
  143. font-weight: 600;
  144. font-size: 0.8rem;
  145. line-height: 24px;
  146. padding: 2px 8px;
  147. position: absolute;
  148. right: 16px;
  149. top: 5px;
  150. }
  151. &-meter-mic {
  152. position: absolute;
  153. right: 16px;
  154. top: 14px;
  155. }
  156. // Override @atlaskit/InlineDialog container which is made with styled components
  157. & > div:nth-child(2) {
  158. outline: none;
  159. padding: 0;
  160. }
  161. }