mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-20 00:31:49 +03:00
1c6b06bb58
* wip * remove dupe * use poll model relations in all cases * update mpollbody tests to use poll instance * update poll fetching login in pinned messages card * add pinned polls to room polls state * add spinner while relations are still loading * handle no poll in end poll dialog * strict errors * render a poll body that errors for poll end events * add fetching logic to pollend tile * extract poll testing utilities * test mpollend * strict fix * more strict fix * strict fix for forwardref * add filter component * update poll test utils * add unstyled filter tab group * filtertabgroup snapshot * lint * update test util setupRoomWithPollEvents to allow testing multiple polls in one room * style filter tabs * test error message for past polls * sort polls list by latest * extract poll option display components * strict fixes
73 lines
1.8 KiB
Text
73 lines
1.8 KiB
Text
/*
|
|
Copyright 2021 The Matrix.org Foundation C.I.C.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
.mx_MPollBody {
|
|
margin-top: 8px;
|
|
|
|
h2 {
|
|
font-weight: 600;
|
|
font-size: $font-15px;
|
|
line-height: $font-24px;
|
|
margin-top: 0;
|
|
margin-bottom: 8px;
|
|
|
|
.mx_MPollBody_edited {
|
|
color: $roomtopic-color;
|
|
font-size: $font-12px;
|
|
opacity: 0.6;
|
|
}
|
|
}
|
|
|
|
h2::before {
|
|
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;
|
|
mask-image: url("$(res)/img/element-icons/room/composer/poll.svg");
|
|
}
|
|
|
|
.mx_MPollBody_totalVotes {
|
|
display: flex;
|
|
flex-direction: inline;
|
|
justify-content: start;
|
|
color: $secondary-content;
|
|
font-size: $font-12px;
|
|
|
|
.mx_Spinner {
|
|
flex: 0;
|
|
margin-left: $spacing-8;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Prevent clicking a poll within a reply */
|
|
.mx_ReplyTile .mx_MPollBody {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.mx_MPollBody_allOptions {
|
|
display: grid;
|
|
grid-gap: $spacing-16;
|
|
margin-bottom: $spacing-8;
|
|
}
|