Replace $timeline-image-border-radius with a CSS custom property (#10792)
* Use CSS custom property: --timeline-image-border-radius Remove the same variable from _MImageBody.pcss * Rename the property The property is neither limited to a timeline nor image, but applied to M.*?Body components as well, such as MLocationBody and MVideoBody.
This commit is contained in:
@@ -290,7 +290,7 @@ limitations under the License.
|
||||
/* we put the timestamps for media (other than stickers) atop the media */
|
||||
&.mx_EventTile_image {
|
||||
.mx_MessageTimestamp {
|
||||
border-radius: $timeline-image-border-radius;
|
||||
border-radius: var(--MBody-border-radius);
|
||||
/* Hardcoded colours because it's the same on all themes */
|
||||
background-color: rgba(0, 0, 0, 0.6);
|
||||
color: #ffffff;
|
||||
|
||||
Reference in New Issue
Block a user