mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 09:46:09 +03:00
78a98415eb
* Add mx_MessageTimestamp to mx_PinnedEventTile_timestamp Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Apply display: block globally to enable the width declaration - Unset display and width value of timestamp on pinned messages card Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Apply nowrap globally Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * MessageTimestamp on ThreadsList - Remove width setting and add font-size setting Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove redundant font-size declaration from Threadview Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Fix timestamp position of timestamp on ThreadView in IRC layout - GroupLayout is modern layout, not IRC layout Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove redundant font-size declaration from IRC layout Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove redundant color setting from timestamp on file panel Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Cancel the default width to set a gap between the event tile line Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Apply user-select: none globally Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
111 lines
2.8 KiB
SCSS
111 lines
2.8 KiB
SCSS
/*
|
|
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%;
|
|
padding: 0 4px 12px;
|
|
|
|
display: grid;
|
|
grid-template-areas:
|
|
"avatar name remove"
|
|
"content content content"
|
|
"footer footer footer";
|
|
grid-template-rows: max-content auto max-content;
|
|
grid-template-columns: 24px auto 24px;
|
|
grid-row-gap: 12px;
|
|
grid-column-gap: 8px;
|
|
|
|
& + .mx_PinnedEventTile {
|
|
padding: 12px 4px;
|
|
border-top: 1px solid $menu-border-color;
|
|
}
|
|
|
|
.mx_PinnedEventTile_senderAvatar,
|
|
.mx_PinnedEventTile_sender,
|
|
.mx_PinnedEventTile_unpinButton,
|
|
.mx_PinnedEventTile_message,
|
|
.mx_PinnedEventTile_footer {
|
|
min-width: 0; // Prevent a grid blowout
|
|
}
|
|
|
|
.mx_PinnedEventTile_senderAvatar {
|
|
grid-area: avatar;
|
|
}
|
|
|
|
.mx_PinnedEventTile_sender {
|
|
grid-area: name;
|
|
font-weight: $font-semi-bold;
|
|
font-size: $font-15px;
|
|
line-height: $font-24px;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.mx_PinnedEventTile_unpinButton {
|
|
visibility: hidden;
|
|
grid-area: remove;
|
|
position: relative;
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 8px;
|
|
|
|
&:hover {
|
|
background-color: $roomheader-addroom-bg-color;
|
|
}
|
|
|
|
&::before {
|
|
content: "";
|
|
position: absolute;
|
|
//top: 0;
|
|
//left: 0;
|
|
height: inherit;
|
|
width: inherit;
|
|
background: $secondary-content;
|
|
mask-position: center;
|
|
mask-size: 8px;
|
|
mask-repeat: no-repeat;
|
|
mask-image: url('$(res)/img/image-view/close.svg');
|
|
}
|
|
}
|
|
|
|
.mx_PinnedEventTile_message {
|
|
grid-area: content;
|
|
}
|
|
|
|
.mx_PinnedEventTile_footer {
|
|
grid-area: footer;
|
|
font-size: $font-10px;
|
|
line-height: 12px;
|
|
|
|
.mx_PinnedEventTile_timestamp {
|
|
color: $secondary-content;
|
|
display: unset;
|
|
width: unset; // Cancel the default width value
|
|
}
|
|
|
|
.mx_AccessibleButton_kind_link {
|
|
margin-left: 12px;
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
.mx_PinnedEventTile_unpinButton {
|
|
visibility: visible;
|
|
}
|
|
}
|
|
}
|