2018-04-12 02:23:35 +03:00
|
|
|
/*
|
|
|
|
Copyright 2017 Travis Ralston
|
|
|
|
|
|
|
|
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_PinnedEventTile {
|
|
|
|
min-height: 40px;
|
|
|
|
width: 100%;
|
2021-05-26 15:51:17 +03:00
|
|
|
padding: 0 4px 12px;
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-05-26 15:51:17 +03:00
|
|
|
display: grid;
|
2021-05-26 16:00:53 +03:00
|
|
|
grid-template-areas:
|
|
|
|
"avatar name remove"
|
|
|
|
"content content content"
|
|
|
|
"footer footer footer";
|
2021-05-26 15:51:17 +03:00
|
|
|
grid-template-rows: max-content auto max-content;
|
|
|
|
grid-template-columns: 24px auto 24px;
|
|
|
|
grid-row-gap: 12px;
|
|
|
|
grid-column-gap: 8px;
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-05-26 15:51:17 +03:00
|
|
|
& + .mx_PinnedEventTile {
|
|
|
|
padding: 12px 4px;
|
|
|
|
border-top: 1px solid $menu-border-color;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2022-06-17 09:34:33 +03:00
|
|
|
.mx_PinnedEventTile_senderAvatar,
|
|
|
|
.mx_PinnedEventTile_sender,
|
|
|
|
.mx_PinnedEventTile_unpinButton,
|
|
|
|
.mx_PinnedEventTile_message,
|
|
|
|
.mx_PinnedEventTile_footer {
|
2022-07-27 16:39:29 +03:00
|
|
|
min-width: 0; /* Prevent a grid blowout */
|
2022-06-17 09:34:33 +03:00
|
|
|
}
|
|
|
|
|
2021-05-26 15:51:17 +03:00
|
|
|
.mx_PinnedEventTile_senderAvatar {
|
|
|
|
grid-area: avatar;
|
|
|
|
}
|
2018-05-27 04:42:09 +03:00
|
|
|
|
2021-05-26 15:51:17 +03:00
|
|
|
.mx_PinnedEventTile_sender {
|
|
|
|
grid-area: name;
|
2023-04-21 17:16:00 +03:00
|
|
|
font-weight: var(--font-semi-bold);
|
2021-05-26 15:51:17 +03:00
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-05-26 15:51:17 +03:00
|
|
|
.mx_PinnedEventTile_unpinButton {
|
|
|
|
visibility: hidden;
|
|
|
|
grid-area: remove;
|
|
|
|
position: relative;
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
border-radius: 8px;
|
2019-07-10 18:55:03 +03:00
|
|
|
|
2021-05-26 15:51:17 +03:00
|
|
|
&:hover {
|
|
|
|
background-color: $roomheader-addroom-bg-color;
|
|
|
|
}
|
2018-05-27 04:42:09 +03:00
|
|
|
|
2021-05-26 15:51:17 +03:00
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
height: inherit;
|
|
|
|
width: inherit;
|
2021-08-12 12:30:35 +03:00
|
|
|
background: $secondary-content;
|
2021-05-26 15:51:17 +03:00
|
|
|
mask-position: center;
|
|
|
|
mask-size: 8px;
|
|
|
|
mask-repeat: no-repeat;
|
2022-12-12 14:24:14 +03:00
|
|
|
mask-image: url("$(res)/img/image-view/close.svg");
|
2021-05-26 15:51:17 +03:00
|
|
|
}
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-05-26 15:51:17 +03:00
|
|
|
.mx_PinnedEventTile_message {
|
|
|
|
grid-area: content;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-05-26 15:51:17 +03:00
|
|
|
.mx_PinnedEventTile_footer {
|
|
|
|
grid-area: footer;
|
2022-06-30 14:37:43 +03:00
|
|
|
font-size: $font-10px;
|
2021-05-26 15:51:17 +03:00
|
|
|
line-height: 12px;
|
|
|
|
|
|
|
|
.mx_PinnedEventTile_timestamp {
|
2021-08-12 12:30:35 +03:00
|
|
|
color: $secondary-content;
|
2022-06-30 14:37:43 +03:00
|
|
|
display: unset;
|
2022-07-27 16:39:29 +03:00
|
|
|
width: unset; /* Cancel the default width value */
|
2021-05-26 15:51:17 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AccessibleButton_kind_link {
|
|
|
|
margin-left: 12px;
|
|
|
|
}
|
|
|
|
}
|
2018-05-27 03:40:48 +03:00
|
|
|
|
2021-05-26 15:51:17 +03:00
|
|
|
&:hover {
|
|
|
|
.mx_PinnedEventTile_unpinButton {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
2019-07-09 20:15:10 +03:00
|
|
|
}
|