From 8317bcbb9f6088ea6f0ca944457c702079df83a4 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 19 Oct 2017 17:27:10 +0100 Subject: [PATCH] CSS for improved MyGroups page --- .../structures/_MyGroups.scss | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/src/skins/vector/css/matrix-react-sdk/structures/_MyGroups.scss b/src/skins/vector/css/matrix-react-sdk/structures/_MyGroups.scss index 3a363744b0..d2a51c71cc 100644 --- a/src/skins/vector/css/matrix-react-sdk/structures/_MyGroups.scss +++ b/src/skins/vector/css/matrix-react-sdk/structures/_MyGroups.scss @@ -57,3 +57,49 @@ limitations under the License. .mx_MyGroups_content { clear: left; } + +.mx_MyGroups_joinedGroups { + display: flex; + flex-direction: row; + flex-flow: wrap; + justify-content: space-between; +} + +.mx_MyGroups_joinedGroups .mx_GroupTile { + width: 300px; + height: 75px; + margin-bottom: 15px; + margin-right: 10px; + display: flex; + align-items: flex-start; + cursor: pointer; +} + +.mx_GroupTile_profile { + margin-left: 10px; + display: flex; + flex-direction: column; + justify-content: center; +} + +.mx_GroupTile_profile h3.mx_GroupTile_name { + margin: 0px; + font-size: 15px; +} + +.mx_GroupTile_profile .mx_GroupTile_groupId { + font-size: 13px; +} + +.mx_GroupTile_profile .mx_GroupTile_desc { + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + font-size: 13px; + max-height: 36px; + overflow: hidden; +} + +.mx_GroupTile_profile .mx_GroupTile_groupId { + opacity: 0.7; +}