Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'upstream/develop' into SimonBrandner/fe…
Browse files Browse the repository at this point in the history
…at/current-avatar
  • Loading branch information
SimonBrandner committed Jun 27, 2022
2 parents 545c4d8 + a9a97d1 commit 97b4d2b
Show file tree
Hide file tree
Showing 23 changed files with 245 additions and 388 deletions.
1 change: 0 additions & 1 deletion res/css/_components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
@import "./views/avatars/_DecoratedRoomAvatar.scss";
@import "./views/avatars/_WidgetAvatar.scss";
@import "./views/beta/_BetaCard.scss";
@import "./views/buttons/_Cancel.scss";
@import "./views/context_menus/_CallContextMenu.scss";
@import "./views/context_menus/_DeviceContextMenu.scss";
@import "./views/context_menus/_IconizedContextMenu.scss";
Expand Down
8 changes: 1 addition & 7 deletions res/css/structures/_RoomView.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ limitations under the License.
position: relative;
}

.mx_MainSplit_timeline {
.mx_MessageComposer_wrapper {
margin: $spacing-8 $spacing-16;
}
}

.mx_RoomView_auxPanel {
min-width: 0px;
width: 100%;
Expand Down Expand Up @@ -161,7 +155,7 @@ limitations under the License.
.mx_RoomView_messageListWrapper {
justify-content: flex-start;

> .mx_RoomView_MessageList > li > ol {
>.mx_RoomView_MessageList > li > ol {
list-style-type: none;
}
}
Expand Down
32 changes: 0 additions & 32 deletions res/css/views/buttons/_Cancel.scss

This file was deleted.

5 changes: 5 additions & 0 deletions res/css/views/right_panel/_TimelineCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,13 @@ limitations under the License.
margin-inline-start: var(--BaseCard_EventTile-spacing-inline);
}

.mx_DisambiguatedProfile {
max-width: calc(100% - var(--BaseCard_EventTile-spacing-inline)); // instead of $left-gutter
}

.mx_ReplyTile .mx_DisambiguatedProfile {
margin-inline-start: 0;
max-width: unset;
}

.mx_ReactionsRow {
Expand Down
110 changes: 52 additions & 58 deletions res/css/views/rooms/_EventTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,11 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
padding-left: 2px;
padding-right: 2px;
cursor: pointer;
}

.mx_EventTile_searchHighlight a {
background-color: $accent;
color: $accent-fg-color;
a {
background-color: $accent;
color: $accent-fg-color;
}
}

&.mx_EventTile_contextual {
Expand All @@ -264,10 +264,10 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
Replaces margin-top: -6px. This interacts better with a read
marker being in between. Content overflows. */
height: 1px;
}

.mx_EventTile_msgOption a {
text-decoration: none;
a {
text-decoration: none;
}
}

/* De-zalgoing */
Expand Down Expand Up @@ -538,32 +538,69 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
}
}

/* Various markdown overrides */

.mx_EventTile_body {
a:hover {
text-decoration: underline;
}

pre {
border: 1px solid transparent;

.mx_EventTile:hover &,
.mx_EventTile.focus-visible:focus-within & {
border: 1px solid $tertiary-content;
}
}

// selector wrongly applies to pill avatars but those have explicit width/height passed at a higher specificity
&.markdown-body img {
object-fit: contain;
object-position: left top;
}
}

.mx_EventTile_clamp {
.mx_EventTile_body {
.mx_EventTile_clamp & {
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
}

.mx_EventTile_pre_container {
// For correct positioning of _copyButton (See TextualBody)
position: relative;

&:focus-within,
&:hover {
.mx_EventTile_button {
visibility: visible;
}
}

.mx_EventTile_collapsedCodeBlock {
max-height: 30vh;
}

// Inserted adjacent to <pre> blocks, (See TextualBody)
.mx_EventTile_button {
position: absolute;
top: $spacing-8;
right: $spacing-8;
width: 19px;
height: 19px;
visibility: hidden;
background-color: $message-action-bar-fg-color;

&.mx_EventTile_buttonBottom {
top: 33px;
}

&.mx_EventTile_collapseButton,
&.mx_EventTile_expandButton {
mask-size: 75%;
}
}
}
}

.mx_EventTile_lineNumbers {
Expand All @@ -578,11 +615,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
}
}

.mx_EventTile:hover .mx_EventTile_body pre,
.mx_EventTile.focus-visible:focus-within .mx_EventTile_body pre {
border: 1px solid $tertiary-content;
}

.mx_EventTile_button {
display: inline-block;
cursor: pointer;
Expand All @@ -606,44 +638,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
mask-image: url("$(res)/img/element-icons/maximise-expand.svg");
}

.mx_EventTile_body .mx_EventTile_pre_container {
// For correct positioning of _copyButton (See TextualBody)
position: relative;

&:focus-within,
&:hover {
.mx_EventTile_button {
visibility: visible;
}
}

.mx_EventTile_collapsedCodeBlock {
max-height: 30vh;
}

// Inserted adjacent to <pre> blocks, (See TextualBody)
.mx_EventTile_button {
position: absolute;
top: 8px;
right: 8px;
width: 19px;
height: 19px;
visibility: hidden;
background-color: $message-action-bar-fg-color;

&.mx_EventTile_buttonBottom {
top: 33px;
}

&.mx_EventTile_collapseButton,
&.mx_EventTile_expandButton {
mask-size: 75%;
}
}
}

/* end of overrides */

.mx_EventTile_keyRequestInfo {
font-size: $font-12px;

Expand Down Expand Up @@ -685,10 +679,10 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
.mx_EventTile_line {
padding-left: 0;
margin-right: 0;
}

.mx_EventTile_line span {
padding: 4px 8px;
span {
padding: $spacing-4 $spacing-8;
}
}

a {
Expand Down
Loading

0 comments on commit 97b4d2b

Please sign in to comment.