From e825a66e1f3b265ba11d8ffee221f0846c949db1 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Thu, 1 Jun 2017 13:09:16 +0100 Subject: [PATCH] add CSS for RoomAvatarEvent and always make AccessibleButtons have a cursor pointer --- src/skins/vector/css/_components.scss | 1 + .../views/elements/_AccessibleButton.scss | 3 +++ .../views/messages/_RoomAvatarEvent.scss | 24 +++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 src/skins/vector/css/matrix-react-sdk/views/messages/_RoomAvatarEvent.scss diff --git a/src/skins/vector/css/_components.scss b/src/skins/vector/css/_components.scss index df3c4600e..5f4b35ace 100644 --- a/src/skins/vector/css/_components.scss +++ b/src/skins/vector/css/_components.scss @@ -33,6 +33,7 @@ @import "./matrix-react-sdk/views/messages/_MImageBody.scss"; @import "./matrix-react-sdk/views/messages/_MNoticeBody.scss"; @import "./matrix-react-sdk/views/messages/_MTextBody.scss"; +@import "./matrix-react-sdk/views/messages/_RoomAvatarEvent.scss"; @import "./matrix-react-sdk/views/messages/_TextualEvent.scss"; @import "./matrix-react-sdk/views/messages/_UnknownBody.scss"; @import "./matrix-react-sdk/views/rooms/_Autocomplete.scss"; diff --git a/src/skins/vector/css/matrix-react-sdk/views/elements/_AccessibleButton.scss b/src/skins/vector/css/matrix-react-sdk/views/elements/_AccessibleButton.scss index 41dd97696..edf455049 100644 --- a/src/skins/vector/css/matrix-react-sdk/views/elements/_AccessibleButton.scss +++ b/src/skins/vector/css/matrix-react-sdk/views/elements/_AccessibleButton.scss @@ -19,3 +19,6 @@ limitations under the License. filter: brightness($focus-brightness); } +.mx_AccessibleButton { + cursor: pointer; +} \ No newline at end of file diff --git a/src/skins/vector/css/matrix-react-sdk/views/messages/_RoomAvatarEvent.scss b/src/skins/vector/css/matrix-react-sdk/views/messages/_RoomAvatarEvent.scss new file mode 100644 index 000000000..1d9116499 --- /dev/null +++ b/src/skins/vector/css/matrix-react-sdk/views/messages/_RoomAvatarEvent.scss @@ -0,0 +1,24 @@ +/* +Copyright 2017 Vector Creations Ltd + +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_RoomAvatarEvent { + opacity: 0.5; + overflow-y: hidden; +} + +.mx_RoomAvatarEvent_avatar { + display: inline; +} \ No newline at end of file