Skip to content

Commit

Permalink
Remove some obsolete CSS rules (#10754)
Browse files Browse the repository at this point in the history
* Remove `mx_MImageReplyBody_info` from `_MImageReplyBody.pcss`

Edited by 866a11d
Deprecated by 6b3098d

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Remove `mx_WidgetCard_maxPinnedTooltip` from `_WidgetCard.pcss`

Added by ef0843d
Deprecated by ada6d1a

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Remove `mx_AliasSettings_editable` from `_AliasSettings.pcss`

Added by eac50aa
Deprecated by 2903a0e

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Remove `mx_AliasSettings_localAliasHeader` from `_AliasSettings.pcss`

Added by 3253d0b
Deprecated by 2e3f225

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Remove `mx_RoomList_explorePrompt` from `_RoomList.pcss`

Added by e20b375
Deprecated by 328d7ea

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Remove `mx_Stickers_hideStickers` from `_Stickers.pcss`

Added by 79d3cca
Deprecated by 31b3b2e

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

---------

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
  • Loading branch information
luixxiul committed May 3, 2023
1 parent af3a0e3 commit f5d7989
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 84 deletions.
17 changes: 1 addition & 16 deletions res/css/views/messages/_MImageReplyBody.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,8 @@ limitations under the License.
display: flex;
column-gap: $spacing-4;

.mx_MImageBody_thumbnail_container,
.mx_MImageReplyBody_info {
.mx_MImageBody_thumbnail_container {
flex: 1;
min-width: 0; /* Prevent a blowout */
}

.mx_MImageReplyBody_info {
.mx_MImageReplyBody_sender {
grid-area: sender;

.mx_DisambiguatedProfile {
max-width: 100%;
}
}

.mx_MImageReplyBody_filename {
grid-area: filename;
}
}
}
5 changes: 0 additions & 5 deletions res/css/views/right_panel/_WidgetCard.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,3 @@ limitations under the License.
border: 0;
}
}

.mx_WidgetCard_maxPinnedTooltip {
background-color: $alert;
color: #ffffff;
}
13 changes: 0 additions & 13 deletions res/css/views/room_settings/_AliasSettings.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

.mx_AliasSettings_editable {
border: 0px;
border-bottom: 1px solid $strong-input-border-color;
padding: 0px;
min-width: 240px;
}

.mx_AliasSettings_editable:focus {
border-bottom: 1px solid $accent;
outline: none;
box-shadow: none;
}

.mx_AliasSettings_localAddresses {
cursor: pointer;
color: $accent;
Expand Down
46 changes: 0 additions & 46 deletions res/css/views/rooms/_RoomList.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -42,49 +42,3 @@ limitations under the License.
.mx_RoomList_iconInvite::before {
mask-image: url("$(res)/img/element-icons/room/share.svg");
}

.mx_RoomList_explorePrompt {
margin: 4px 12px 4px;
padding-top: 12px;
border-top: 1px solid $input-border-color;
font-size: $font-14px;

div:first-child {
font-weight: var(--font-semi-bold);
line-height: $font-18px;
color: $primary-content;
}

.mx_AccessibleButton {
color: $primary-content;
position: relative;
padding: 8px 8px 8px 32px;
font-size: inherit;
margin-top: 12px;
display: block;
text-align: start;
background-color: $panel-actions;
border-radius: 4px;

&::before {
content: "";
width: 16px;
height: 16px;
position: absolute;
top: 8px;
left: 8px;
background: $secondary-content;
mask-position: center;
mask-size: contain;
mask-repeat: no-repeat;
}

&.mx_RoomList_explorePrompt_startChat::before {
mask-image: url("$(res)/img/element-icons/feedback.svg");
}

&.mx_RoomList_explorePrompt_explore::before {
mask-image: url("$(res)/img/element-icons/roomlist/explore.svg");
}
}
}
4 changes: 0 additions & 4 deletions res/css/views/rooms/_Stickers.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,3 @@
cursor: pointer;
color: $accent;
}

.mx_Stickers_hideStickers {
z-index: 2001;
}

0 comments on commit f5d7989

Please sign in to comment.