2021-11-02 08:44:42 +03:00
|
|
|
/*
|
2024-09-09 16:57:16 +03:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2021-11-02 08:44:42 +03:00
|
|
|
Copyright 2021 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.
|
2021-11-02 08:44:42 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_PollCreateDialog {
|
2021-11-23 17:19:48 +03:00
|
|
|
.mx_PollCreateDialog_busy {
|
|
|
|
position: absolute;
|
2023-05-09 13:02:12 +03:00
|
|
|
inset: 0;
|
2023-07-12 20:46:49 +03:00
|
|
|
background-color: $overlay-background;
|
2021-11-23 17:19:48 +03:00
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
2021-11-02 08:44:42 +03:00
|
|
|
h2 {
|
2023-06-29 13:30:25 +03:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2021-11-02 08:44:42 +03:00
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
|
|
|
&:nth-child(n + 2) {
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-21 13:21:35 +03:00
|
|
|
p {
|
|
|
|
color: $secondary-content;
|
|
|
|
}
|
|
|
|
|
2021-11-02 08:44:42 +03:00
|
|
|
.mx_PollCreateDialog_option {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin-top: 11px;
|
2022-07-27 16:39:29 +03:00
|
|
|
margin-bottom: 16px; /* 11px from the top will collapse, so this creates a 16px gap between options */
|
2021-11-02 08:44:42 +03:00
|
|
|
|
|
|
|
.mx_Field {
|
|
|
|
flex: 1;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_PollCreateDialog_removeOption {
|
|
|
|
margin-left: 12px;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
border-radius: 50%;
|
|
|
|
background-color: $quinary-content;
|
|
|
|
cursor: pointer;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
2024-10-02 13:06:17 +03:00
|
|
|
mask: url("@vector-im/compound-design-tokens/icons/close.svg");
|
2021-11-02 08:44:42 +03:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
2024-10-02 13:06:17 +03:00
|
|
|
mask-size: 16px;
|
|
|
|
width: inherit;
|
|
|
|
height: inherit;
|
2021-11-02 08:44:42 +03:00
|
|
|
position: absolute;
|
|
|
|
background-color: $secondary-content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_PollCreateDialog_addOption {
|
|
|
|
padding: 0;
|
2022-07-27 16:39:29 +03:00
|
|
|
margin-bottom: 40px; /* arbitrary to create scrollable area under the poll */
|
2021-11-02 08:44:42 +03:00
|
|
|
}
|
2021-11-19 17:19:53 +03:00
|
|
|
|
|
|
|
.mx_AccessibleButton_disabled {
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
2021-11-02 08:44:42 +03:00
|
|
|
}
|