2019-09-20 18:45:14 +03:00
|
|
|
/*
|
2024-09-09 16:57:16 +03:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2019-09-20 18:45:14 +03:00
|
|
|
Copyright 2019 The Matrix.org Foundation C.I.C.
|
|
|
|
|
2024-09-09 16:57:16 +03:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2019-09-20 18:45:14 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_RoomAliasField {
|
2022-07-27 16:39:29 +03:00
|
|
|
/* if parent is a flex container, this allows the */
|
|
|
|
/* width to be as wide as needed, and not 100% */
|
2019-09-20 18:45:14 +03:00
|
|
|
flex: 0 1 auto;
|
|
|
|
display: flex;
|
|
|
|
align-items: stretch;
|
|
|
|
min-width: 0;
|
|
|
|
max-width: 100%;
|
|
|
|
|
|
|
|
input {
|
|
|
|
width: 150px;
|
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
input::placeholder {
|
2021-11-29 15:52:09 +03:00
|
|
|
color: $info-plinth-fg-color;
|
2019-09-20 18:45:14 +03:00
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
2022-12-12 14:24:14 +03:00
|
|
|
.mx_Field_prefix,
|
|
|
|
.mx_Field_postfix {
|
2021-11-29 15:52:09 +03:00
|
|
|
color: $info-plinth-fg-color;
|
2019-09-20 18:45:14 +03:00
|
|
|
border-left: none;
|
|
|
|
border-right: none;
|
2023-06-29 13:30:25 +03:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2019-09-20 18:45:14 +03:00
|
|
|
padding: 9px 10px;
|
|
|
|
flex: 0 0 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Field_postfix {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
2022-07-27 16:39:29 +03:00
|
|
|
/* this allows the domain name to show */
|
|
|
|
/* as long as it doesn't make the input shrink */
|
|
|
|
/* if it's too big, it shows an ellipsis */
|
|
|
|
/* 180: 28 for prefix, 152 for input */
|
2019-09-20 18:45:14 +03:00
|
|
|
max-width: calc(100% - 180px);
|
|
|
|
}
|
|
|
|
}
|