mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
feat(kaak): match KOOK audio device picker
This commit is contained in:
1 parent
70cc6c3bbf
commit
8e580e7e18
15 files changed
+408
-59
No files matched your search
@@ -3183,7 +3183,6 @@
|
||||
display: block;
|
||||
width: 100%;
|
||||
min-height: 42px;
|
||||
margin-bottom: 19px;
|
||||
padding: 0 13px;
|
||||
color: #394742;
|
||||
border: 1px solid #e0eae6;
|
||||
@@ -3194,13 +3193,93 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
:deep(.settings-device-select) {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-bottom: 19px;
|
||||
}
|
||||
|
||||
:deep(.settings-device-select > .settings-select) {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
:deep(.settings-select-label) {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
:deep(.settings-select-chevron) {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
flex: 0 0 auto;
|
||||
margin: -3px 3px 0 12px;
|
||||
border: solid currentColor;
|
||||
border-width: 0 1.5px 1.5px 0;
|
||||
transform: rotate(45deg);
|
||||
transition: transform .2s ease;
|
||||
}
|
||||
|
||||
:deep(.settings-select[aria-expanded="true"] .settings-select-chevron) {
|
||||
transform: rotate(225deg);
|
||||
}
|
||||
|
||||
:deep(.settings-select-menu) {
|
||||
position: fixed;
|
||||
z-index: 24;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 4px 0;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
color: #394742;
|
||||
border: 1px solid #dfe7e3;
|
||||
border-radius: 8px;
|
||||
background: #f4f7f6;
|
||||
box-shadow: 0 10px 28px rgba(16, 30, 26, .22);
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
:deep(.settings-select-option) {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-height: 32px;
|
||||
padding: 0 12px;
|
||||
cursor: pointer;
|
||||
transition: background-color .12s ease;
|
||||
}
|
||||
|
||||
:deep(.settings-select-option:hover),
|
||||
:deep(.settings-select-option.active),
|
||||
:deep(.settings-select-option[aria-selected="true"]) {
|
||||
background: rgba(0, 106, 100, .1);
|
||||
}
|
||||
|
||||
:deep(.settings-select-menu-enter-active),
|
||||
:deep(.settings-select-menu-leave-active) {
|
||||
transition: opacity .14s ease, transform .14s ease;
|
||||
}
|
||||
|
||||
:deep(.settings-select-menu-enter-from),
|
||||
:deep(.settings-select-menu-leave-to) {
|
||||
opacity: 0;
|
||||
transform: translateY(-3px);
|
||||
}
|
||||
|
||||
:deep(.settings-select:focus) {
|
||||
border-color: #81d8d0;
|
||||
box-shadow: 0 0 0 2px rgba(129,216,208,.2);
|
||||
}
|
||||
|
||||
:deep(.settings-select:disabled) {
|
||||
cursor: wait;
|
||||
cursor: not-allowed;
|
||||
opacity: .65;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user