Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

118 lines
3.0 KiB
Plaintext
Raw Permalink Normal View History

2022-05-04 17:02:06 -04:00
/*
2024-09-09 14:57:16 +01:00
Copyright 2024 New Vector Ltd.
2022-05-04 17:02:06 -04:00
Copyright 2022 The Matrix.org Foundation C.I.C.
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
2024-09-09 14:57:16 +01:00
Please see LICENSE files in the repository root for full details.
2022-05-04 17:02:06 -04:00
*/
.mx_RoomPreviewCard {
padding: var(--cpd-space-8x) var(--cpd-space-6x) !important; /* Override SpaceRoomView's default padding */
2022-05-04 17:02:06 -04:00
margin: auto;
flex-grow: 1;
max-width: 480px;
box-sizing: border-box;
background-color: $system;
border-radius: 8px;
position: relative;
2023-06-29 11:30:25 +01:00
font: var(--cpd-font-body-md-regular);
2022-05-04 17:02:06 -04:00
.mx_RoomPreviewCard_notice {
2023-06-29 11:30:25 +01:00
font-weight: var(--cpd-font-weight-semibold);
2022-05-04 17:02:06 -04:00
line-height: $font-24px;
color: $primary-content;
margin-top: var(--cpd-space-6x);
2022-05-04 17:02:06 -04:00
svg {
height: 1em;
width: 1em;
margin-right: var(--cpd-space-2x);
color: $secondary-content;
vertical-align: -2px;
2022-05-04 17:02:06 -04:00
}
}
.mx_RoomPreviewCard_inviter {
display: flex;
align-items: center;
margin-bottom: var(--cpd-space-5x);
2022-05-04 17:02:06 -04:00
font-size: $font-15px;
> div {
margin-left: var(--cpd-space-2x);
2022-05-04 17:02:06 -04:00
.mx_RoomPreviewCard_inviter_name {
line-height: $font-18px;
}
.mx_RoomPreviewCard_inviter_mxid {
color: $secondary-content;
}
}
}
.mx_RoomPreviewCard_avatar {
display: flex;
align-items: center;
.mx_RoomPreviewCard_video {
width: 22px;
height: 22px;
padding: 14px;
2022-05-04 17:02:06 -04:00
border-radius: calc((50px + 2 * 3px) / 2);
background-color: $accent;
border: 3px solid $system;
left: calc(-50px / 4 - 3px);
svg {
width: inherit;
height: inherit;
color: $button-primary-fg-color;
2022-05-04 17:02:06 -04:00
}
}
2022-09-16 11:12:27 -04:00
/* XXX Remove this when video rooms leave beta */
.mx_BetaCard_betaPill {
position: absolute;
inset-block-start: var(--cpd-space-8x);
inset-inline-end: var(--cpd-space-6x);
2022-09-16 11:12:27 -04:00
}
2022-05-04 17:02:06 -04:00
}
h1.mx_RoomPreviewCard_name {
margin: var(--cpd-space-4x) 0 !important; /* Override SpaceRoomView's default margins */
2022-05-04 17:02:06 -04:00
}
.mx_RoomPreviewCard_topic {
line-height: $font-22px;
margin-top: var(--cpd-space-4x);
2022-05-04 17:02:06 -04:00
max-height: 160px;
overflow-y: auto;
}
.mx_FacePile {
2026-01-02 11:09:08 +00:00
display: flex;
align-items: center;
margin-top: var(--cpd-space-4x);
/* For enhanced visibility under contrast control */
outline: 1px solid transparent;
2026-01-02 11:09:08 +00:00
:first-child {
flex-shrink: 0;
}
2022-05-04 17:02:06 -04:00
}
.mx_RoomPreviewCard_joinButtons {
margin-top: var(--cpd-space-5x);
2022-05-04 17:02:06 -04:00
display: flex;
gap: var(--cpd-space-5x);
2022-05-04 17:02:06 -04:00
.mx_AccessibleButton {
max-width: 200px;
padding: 14px 0;
flex-grow: 1;
}
}
}