A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
/* SPDX-License-Identifier: AGPL-3.0-or-later */
.field {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--spacing-1);
min-width: 0;
width: 100%;
}
.fieldLabel {
min-width: 0;
font-size: 0.75rem;
letter-spacing: 0;
font-weight: 500;
color: var(--text-primary-muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.fieldInline {
flex-direction: row;
align-items: center;
justify-content: space-between;
gap: var(--spacing-3);
}
.fieldInline .fieldLabel {
flex: 1 1 auto;
font-size: 0.8125rem;
line-height: 1.25rem;
color: var(--text-primary);
}
.recorder {
box-sizing: border-box;
display: inline-flex;
align-items: center;
border: 0.0625rem solid var(--background-modifier-accent);
border-radius: var(--radius-md);
min-height: 2.125rem;
min-width: 0;
width: max-content;
max-width: min(100%, 18rem);
cursor: pointer;
background-color: var(--form-surface-background);
font-family: var(--font-sans);
text-align: start;
transition:
border-color 0.15s ease,
box-shadow 0.15s ease;
}
.recorder:not(.disabled):hover,
.recorder[aria-expanded='true']:not(.disabled) {
border-color: var(--background-modifier-accent-focus);
}
.recorder * {
cursor: pointer;
}
.layout {
display: flex;
align-items: center;
min-width: 0;
width: 100%;
}
.editIconLeft {
display: flex;
align-items: center;
justify-content: center;
width: 1.75rem;
flex-shrink: 0;
color: var(--text-primary-muted);
transition: color 0.15s ease;
}
.recorder:hover:not(.disabled) .editIconLeft,
.recorder[aria-expanded='true']:not(.disabled) .editIconLeft {
color: var(--text-primary);
}
.inputWrapper {
flex: 0 1 auto;
min-width: 0;
position: relative;
z-index: 1;
font-family: var(--font-keybind);
font-weight: 600;
font-size: 0.8125rem;
user-select: none;
-webkit-user-select: none;
}
.input {
display: block;
width: auto;
max-width: 14rem;
box-sizing: border-box;
padding-block: 0.375rem;
padding-inline: 0 0.75rem;
font-family: inherit;
font-weight: inherit;
font-size: inherit;
line-height: 1.15rem;
color: var(--text-primary);
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.hasValue .input {
color: var(--text-primary);
}
.recorder:not(.hasValue) .input {
color: var(--text-primary-muted);
font-weight: 400;
}
.disabled {
opacity: 0.5;
cursor: not-allowed;
}
.disabled * {
cursor: not-allowed;
}
.popout {
display: flex;
flex-direction: column;
gap: 0.75rem;
padding: 0.875rem;
border-radius: 0.5rem;
background-color: var(--form-surface-background);
border: 0.0625rem solid var(--background-modifier-accent);
box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 0.24);
width: min(22.5rem, calc(100vw - 2rem));
max-width: calc(100vw - 2rem);
}
:global(.theme-light) .popout {
box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 0.14);
}
.popoutHeader {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.popoutTitle {
font-weight: 700;
font-size: 0.95rem;
color: var(--text-primary);
}
.popoutHint {
color: var(--text-primary-muted);
font-size: 0.8125rem;
line-height: 1.4;
}
.recorderBox {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
min-height: 3.5rem;
padding: 0.75rem 1rem;
border: 0.125rem dashed var(--background-modifier-accent);
border-radius: var(--radius-lg);
background-color: var(--background-tertiary);
color: var(--text-primary);
cursor: pointer;
transition:
border-color 0.15s ease,
background-color 0.15s ease,
color 0.15s ease;
}
.recorderBox:hover {
border-color: var(--background-modifier-accent-focus);
background-color: var(--background-secondary-alt);
}
.recorderBoxRecording {
border-style: solid;
border-color: var(--status-danger);
background-color: var(--control-button-danger-hover-bg);
color: var(--status-danger);
animation: pulse 1s ease-in-out infinite;
}
.recorderBoxRecording:hover {
border-color: var(--status-danger);
background-color: var(--control-button-danger-hover-bg);
}
.recorderIcon {
flex-shrink: 0;
opacity: 0.7;
}
.recorderText {
font-weight: 600;
font-size: 0.9375rem;
}
.defaultRow {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
border-radius: var(--radius-md);
background-color: var(--background-secondary);
font-size: 0.8125rem;
}
.defaultLabel {
color: var(--text-primary-muted);
flex-shrink: 0;
}
.defaultValue {
font-family: var(--font-keybind);
font-weight: 600;
color: var(--text-primary);
}
.popoutActions {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
}
.popoutActionsLeft {
display: flex;
align-items: center;
gap: 0.25rem;
}
@keyframes pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}