2021-11-10 15:44:57 +00:00
|
|
|
/*
|
2024-09-09 14:57:16 +01:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2021-11-10 15:44:57 +00:00
|
|
|
Copyright 2021 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
2025-01-06 11:18:54 +00:00
|
|
|
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.
|
2021-11-10 15:44:57 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
.mx_MPollBody {
|
|
|
|
|
margin-top: 8px;
|
2025-11-04 09:55:35 +00:00
|
|
|
min-width: 0; /* Override fieldset default min-width: min-content */
|
|
|
|
|
width: 100%; /* Ensure fieldset takes full available width */
|
|
|
|
|
border: none; /* Remove default fieldset border */
|
|
|
|
|
padding: 0; /* Remove default fieldset padding */
|
2021-11-10 15:44:57 +00:00
|
|
|
|
2025-11-04 09:55:35 +00:00
|
|
|
legend {
|
2023-06-29 11:30:25 +01:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2021-11-10 15:44:57 +00:00
|
|
|
font-size: $font-15px;
|
|
|
|
|
line-height: $font-24px;
|
|
|
|
|
margin-top: 0;
|
|
|
|
|
margin-bottom: 8px;
|
2025-11-04 09:55:35 +00:00
|
|
|
letter-spacing: var(--cpd-font-letter-spacing-heading-lg);
|
2022-02-15 08:52:51 +00:00
|
|
|
|
|
|
|
|
.mx_MPollBody_edited {
|
|
|
|
|
color: $roomtopic-color;
|
|
|
|
|
font-size: $font-12px;
|
|
|
|
|
opacity: 0.6;
|
|
|
|
|
}
|
2021-11-10 15:44:57 +00:00
|
|
|
}
|
|
|
|
|
|
2025-11-04 09:55:35 +00:00
|
|
|
legend::before {
|
2021-11-10 15:44:57 +00:00
|
|
|
content: "";
|
|
|
|
|
position: relative;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
margin-right: 12px;
|
|
|
|
|
top: 3px;
|
|
|
|
|
left: 3px;
|
|
|
|
|
height: 20px;
|
|
|
|
|
width: 20px;
|
|
|
|
|
background-color: $secondary-content;
|
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
|
mask-size: contain;
|
|
|
|
|
mask-position: center;
|
2025-12-01 13:16:08 +00:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/polls.svg");
|
2021-11-10 15:44:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_MPollBody_totalVotes {
|
2023-02-03 09:22:26 +13:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: inline;
|
|
|
|
|
justify-content: start;
|
2021-11-10 15:44:57 +00:00
|
|
|
color: $secondary-content;
|
|
|
|
|
font-size: $font-12px;
|
2023-02-03 09:22:26 +13:00
|
|
|
|
|
|
|
|
.mx_Spinner {
|
|
|
|
|
flex: 0;
|
|
|
|
|
margin-left: $spacing-8;
|
|
|
|
|
}
|
2021-11-10 15:44:57 +00:00
|
|
|
}
|
|
|
|
|
}
|
2021-12-09 12:54:31 +00:00
|
|
|
|
2022-07-27 14:39:29 +01:00
|
|
|
/* Prevent clicking a poll within a reply */
|
2021-12-09 12:54:31 +00:00
|
|
|
.mx_ReplyTile .mx_MPollBody {
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
2022-02-18 11:43:07 +01:00
|
|
|
|
2023-02-13 15:55:39 +13:00
|
|
|
.mx_MPollBody_allOptions {
|
|
|
|
|
display: grid;
|
2025-08-06 13:59:04 +01:00
|
|
|
gap: $spacing-16;
|
2023-02-13 15:55:39 +13:00
|
|
|
margin-bottom: $spacing-8;
|
2023-02-21 07:19:50 +13:00
|
|
|
max-width: 550px;
|
2022-02-18 11:43:07 +01:00
|
|
|
}
|