* Remove duplicate declarations and add height and overflow properties Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Move mx_TimelineCard__header under mx_BaseCard_header for normalization Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Normalize mx_BaseCard_close position Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Normalize className of header - mx_BaseCard_header__ThreadPanel - mx_BaseCard_header__TimelineCard Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Normalize header's button size Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Normalize inline start header margin Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * normalize header bottom margin for PinnedMessagesCard and TimelineCard Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Normalize header declarations Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Add mixin RightPanelCard Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Move common declarations - top level Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Move common declarations - mx_BaseCard_header Remove specific declarations on PinnedMessagesCard Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Move common declarations - mx_BaseCard_back and mx_BaseCard_close Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Create a common class name - mx_BaseCard_header_title Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Create a common class name - mx_BaseCard_header_title - ThreadPanel Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Move common declarations - mx_BaseCard_header_title Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Move common declarations - span:first-of-type Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove redundant declarations Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Rename a variable to remove --ThreadPanel_header-button-size Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove class name - mx_BaseCard_header_title Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove mx_BaseCard_header_title--ThreadPanel and h2 declarations from PinnedMessagesCard Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Headers need Heading Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use spacing variables Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Move common style rules of mx_ContextualMenu inside mx_BaseCard_header_title to BaseCard leaving style rules specific to ThreadPanel. Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Hide long header title with ellipsis Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Merge style rules - BaseCard_header-button-size Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Merge style rules - BaseCard_header margin-bottom Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Merge style rules - BaseCard back and close margin Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Merge style rules - BaseCard back ~ mx_BaseCard_header_title Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Merge style rules - mx_BaseCard_header_title Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Return special declarations to _ThreadPanel.scss Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove the mixin Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Add mx_BaseCard_header_title_button--option Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove redundant margin from AppTileFullWidth Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Header on mx_RoomSummaryCard - remove default declarations Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove default declarations from mx_UserInfo Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use variables - _BaseCard.scss Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
161 lines
4.8 KiB
SCSS
161 lines
4.8 KiB
SCSS
/*
|
|
Copyright 2021 - 2022 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_TimelineCard {
|
|
.mx_TimelineCard_timeline {
|
|
overflow: hidden;
|
|
position: relative; // offset parent for jump to bottom button
|
|
flex: 1;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.mx_NewRoomIntro {
|
|
margin-inline-start: var(--BaseCard_EventTile-spacing-inline);
|
|
margin-inline-end: var(--BaseCard_EventTile-spacing-inline);
|
|
}
|
|
|
|
.mx_EventTile_content {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.mx_EventTile {
|
|
&[data-layout=bubble] {
|
|
&::before {
|
|
z-index: auto; // enable background color on hover
|
|
}
|
|
|
|
.mx_ReactionsRow {
|
|
position: relative; // display on hover
|
|
}
|
|
}
|
|
|
|
&:not([data-layout="bubble"]) {
|
|
&.mx_EventTile_info .mx_EventTile_line,
|
|
.mx_EventTile_line {
|
|
padding: var(--BaseCard_EventTile_line-padding-block) var(--BaseCard_EventTile-spacing-inline);
|
|
padding-inline-end: $MessageTimestamp_width; // ensure timestamp is not hidden
|
|
|
|
.mx_EventTile_e2eIcon {
|
|
inset-inline-start: 8px;
|
|
}
|
|
}
|
|
|
|
.mx_DisambiguatedProfile,
|
|
.mx_ReactionsRow,
|
|
.mx_ThreadSummary {
|
|
margin-inline-start: var(--BaseCard_EventTile-spacing-inline);
|
|
}
|
|
|
|
.mx_ReactionsRow {
|
|
padding: 0;
|
|
|
|
// See margin setting of ReactionsRow on _EventTile.scss
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.mx_ThreadSummary {
|
|
margin-right: 0;
|
|
max-width: min(calc(100% - 36px), 600px);
|
|
}
|
|
|
|
.mx_EventTile_avatar {
|
|
position: absolute; // for IRC layout
|
|
top: 12px;
|
|
left: -3px;
|
|
}
|
|
|
|
.mx_MessageTimestamp {
|
|
position: absolute; // for modern layout and IRC layout
|
|
inset-inline-start: auto;
|
|
inset-inline-end: 0;
|
|
}
|
|
|
|
.mx_EventTile_msgOption {
|
|
// Override mx_EventTile_msgOption of mx_EventTile:not([data-layout="bubble"])
|
|
margin-inline-end: 0;
|
|
}
|
|
|
|
&.mx_EventTile_info {
|
|
.mx_EventTile_avatar {
|
|
left: 18px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.mx_EventTile,
|
|
.mx_GenericEventListSummary {
|
|
.mx_ThreadSummary {
|
|
position: relative;
|
|
padding-right: 11px;
|
|
|
|
&::after {
|
|
content: '';
|
|
display: block;
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: -16px;
|
|
height: 1px;
|
|
width: 100%;
|
|
border-bottom: 1px solid $message-action-bar-border-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
.mx_CallEvent_wrapper {
|
|
justify-content: center;
|
|
margin: auto 5px;
|
|
.mx_CallEvent {
|
|
margin: 4px;
|
|
}
|
|
}
|
|
|
|
.mx_GenericEventListSummary:not([data-layout=bubble]) {
|
|
.mx_EventTile_line,
|
|
> .mx_GenericEventListSummary_unstyledList > .mx_EventTile_info .mx_EventTile_avatar ~ .mx_EventTile_line {
|
|
padding-inline-start: var(--BaseCard_EventTile-spacing-inline);
|
|
padding-inline-end: var(--BaseCard_EventTile-spacing-inline);
|
|
}
|
|
}
|
|
|
|
.mx_ReadReceiptGroup {
|
|
top: -6px;
|
|
}
|
|
|
|
.mx_WhoIsTypingTile {
|
|
margin-left: -12px; // undo padding on the message list
|
|
}
|
|
|
|
.mx_WhoIsTypingTile_avatars {
|
|
flex-basis: 48px; // 12 (padding on message list) + 36 (padding on event lines)
|
|
}
|
|
|
|
.mx_GenericEventListSummary_unstyledList, // RR next to a message on the event list summary
|
|
.mx_RoomView_MessageList { // RR next to a message on the messsge list
|
|
.mx_EventTile[data-layout=bubble] {
|
|
.mx_ReadReceiptGroup {
|
|
// 6px: scroll bar width (magic number)
|
|
inset-inline-end: calc(-1 * var(--ReadReceiptGroup_EventBubbleTile-spacing-end) + $container-gap-width + 6px);
|
|
}
|
|
|
|
&.mx_EventTile_info {
|
|
.mx_ReadReceiptGroup {
|
|
inset-inline-end: -4px; // align with RR outside of info tile
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|