forked from matrix-org/matrix-react-sdk
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add _EventTile.pcss for setting text color in general way
- Loading branch information
Showing
4 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
res/css/_sc/feature-improvement/consistency__TextEvent/views/rooms/_EventTile.pcss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
Copyright 2019 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. | ||
*/ | ||
|
||
/* Specify text color with color property instead of opacity. Note this mixin is | ||
applied to GELS as well */ | ||
@define-mixin EventTile_color { | ||
:where(.mx_EventTile_info, .mx_GenericEventListSummary) { | ||
/* Get rid of opacity values for coloring from CSS files as it is very | ||
confusing and makes it difficult to maintain consistency. | ||
See: https://github.com/SchildiChat/schildichat-desktop/issues/241 */ | ||
.mx_EventTile_line * { | ||
opacity: unset; | ||
} | ||
|
||
/* Then specify the color */ | ||
.mx_EventTile_line { | ||
color: $tertiary-content; | ||
|
||
/* Set the same color to the element directly below it */ | ||
> * { | ||
color: $tertiary-content; | ||
} | ||
|
||
/* Revert the color value of call event */ | ||
.mx_CallEvent_wrapper { | ||
color: initial; | ||
} | ||
} | ||
} | ||
} |