From 08a41bf0938e8cf5ad70534482130ae74c29d406 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Fri, 1 Apr 2016 02:16:29 +0100 Subject: [PATCH] improve layout for LinkPreviewWidget --- .../views/rooms/UrlPreviewWidget.css | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/skins/vector/css/matrix-react-sdk/views/rooms/UrlPreviewWidget.css diff --git a/src/skins/vector/css/matrix-react-sdk/views/rooms/UrlPreviewWidget.css b/src/skins/vector/css/matrix-react-sdk/views/rooms/UrlPreviewWidget.css new file mode 100644 index 0000000000..e8ef26b77e --- /dev/null +++ b/src/skins/vector/css/matrix-react-sdk/views/rooms/UrlPreviewWidget.css @@ -0,0 +1,49 @@ +/* +Copyright 2015, 2016 OpenMarket 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_LinkPreviewWidget { + padding-left: 15px; + margin-top: 15px; + margin-right: 15px; + margin-bottom: 15px; + display: -webkit-flex; + display: flex; + border-left: 5px solid #ddd; + color: #888; +} + +.mx_LinkPreviewWidget_image { + -webkit-flex: 0 0 100px; + flex: 0 0 100px; + text-align: center; +} + +.mx_LinkPreviewWidget_caption { + margin-left: 15px; +} + +.mx_LinkPreviewWidget_title { + display: inline; + font-weight: bold; +} + +.mx_LinkPreviewWidget_siteName { + display: inline; +} + +.mx_LinkPreviewWidget_description { + margin-top: 8px; +}