diff --git a/res/css/structures/_GroupView.scss b/res/css/structures/_GroupView.scss index 542d9d293b..398c51ba91 100644 --- a/res/css/structures/_GroupView.scss +++ b/res/css/structures/_GroupView.scss @@ -34,6 +34,8 @@ limitations under the License. .mx_GroupView_header_view { border-bottom: 1px solid $primary-hairline-color; padding-bottom: 0px; + padding-left: 8px; + padding-right: 8px; } .mx_GroupView_header_avatar, .mx_GroupView_header_info { diff --git a/res/css/structures/_MyGroups.scss b/res/css/structures/_MyGroups.scss index 6d140721c8..f9433909a5 100644 --- a/res/css/structures/_MyGroups.scss +++ b/res/css/structures/_MyGroups.scss @@ -15,10 +15,6 @@ limitations under the License. */ .mx_MyGroups { - max-width: 960px; - margin-left: auto; - margin-right: auto; - display: flex; flex-direction: column; } @@ -34,6 +30,11 @@ limitations under the License. flex-wrap: wrap; } +.mx_MyGroups > :not(.mx_RoomHeader) { + max-width: 960px; + margin: 40px; +} + .mx_MyGroups_headerCard { flex: 1 0 50%; margin-bottom: 30px; @@ -43,14 +44,31 @@ limitations under the License. } .mx_MyGroups_headerCard .mx_MyGroups_headerCard_button { + flex: 0 0 auto; margin-right: 13px; - height: 50px; + height: 40px; + width: 40px; + border-radius: 20px; + background-color: $roomheader-addroom-color; + position: relative; + + &:before { + background-color: $accent-fg-color; + mask: url('../../img/icons-create-room.svg'); + mask-repeat: no-repeat; + mask-position: center; + mask-size: 80%; + content: ''; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + } } -.mx_MyGroups_headerCard_button object { - /* Otherwise the SVG object absorbs clicks and the button doesn't work */ - pointer-events: none; -} + + .mx_MyGroups_headerCard_header { font-weight: bold; diff --git a/res/css/structures/_TagPanel.scss b/res/css/structures/_TagPanel.scss index 83e7d46524..85e5c1742f 100644 --- a/res/css/structures/_TagPanel.scss +++ b/res/css/structures/_TagPanel.scss @@ -124,13 +124,28 @@ limitations under the License. padding-right: 4px; } -.mx_TagPanel_groupsButton { +.mx_TagPanel_groupsButton > .mx_AccessibleButton { + flex: auto; margin-bottom: 17px; margin-top: 18px; - height: 25px; - display: none; -} + height: 40px; + width: 40px; + border-radius: 20px; + background-color: $roomheader-addroom-color; + position: relative; + /* overwrite mx_RoleButton inline-block */ + display: block !important; -.mx_TagPanel_groupsButton object { - pointer-events: none; + &:before { + background-color: $tagpanel-bg-color; + mask: url('../../img/icons-groups-nobg.svg'); + mask-repeat: no-repeat; + mask-position: center 8px; + content: ''; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + } } diff --git a/res/css/views/groups/_GroupRoomList.scss b/res/css/views/groups/_GroupRoomList.scss index fb41ebaa9e..fefd17849c 100644 --- a/res/css/views/groups/_GroupRoomList.scss +++ b/res/css/views/groups/_GroupRoomList.scss @@ -18,4 +18,10 @@ limitations under the License. position: relative; color: $primary-fg-color; cursor: pointer; + display: flex; + align-items: center; +} + +.mx_GroupRoomList_wrapper { + padding: 10px; } diff --git a/res/css/views/rooms/_MemberList.scss b/res/css/views/rooms/_MemberList.scss index e21bc22f2e..2695ebcf31 100644 --- a/res/css/views/rooms/_MemberList.scss +++ b/res/css/views/rooms/_MemberList.scss @@ -20,10 +20,21 @@ limitations under the License. flex: 1; display: flex; flex-direction: column; -} -.mx_MemberList .mx_Spinner { - flex: 1 0 auto; + .mx_Spinner { + flex: 1 0 auto; + } + + h2 { + text-transform: uppercase; + color: $h3-color; + font-weight: 600; + font-size: 13px; + padding-left: 3px; + padding-right: 12px; + margin-top: 8px; + margin-bottom: 4px; + } } .mx_MemberList_chevron { @@ -45,23 +56,15 @@ limitations under the License. flex: 1 1 0; } -.mx_MemberList h2, .mx_GroupMemberList h2 { - text-transform: uppercase; - color: $h3-color; - font-weight: 600; - font-size: 13px; - padding-left: 3px; - padding-right: 12px; - margin-top: 8px; - margin-bottom: 4px; -} + .mx_MemberList_wrapper { padding: 10px; } -.mx_MemberList_invite { +.mx_MemberList_invite, +.mx_RightPanel_invite { flex: 0 0 auto; position: relative; background-color: $button-bg-color; @@ -69,15 +72,20 @@ limitations under the License. padding: 8px; margin: 9px; display: flex; + color: $button-fg-color; + font-weight: 600; - span { - margin: 0 auto; - background-image: url('../../img/icon-invite-people.svg'); - background-repeat: no-repeat; - background-position: center left; - padding-left: 25px; - - font-weight: 600; - color: $button-fg-color; + .mx_RightPanel_icon { + padding-right: 5px; + padding-top: 2px; } } + +.mx_MemberList_invite span { + margin: 0 auto; + background-image: url('../../img/icon-invite-people.svg'); + background-repeat: no-repeat; + background-position: center left; + padding-left: 25px; + +} diff --git a/res/img/icons-groups-nobg.svg b/res/img/icons-groups-nobg.svg new file mode 100644 index 0000000000..a3d223b76d --- /dev/null +++ b/res/img/icons-groups-nobg.svg @@ -0,0 +1,60 @@ + + \ No newline at end of file diff --git a/res/img/icons-room-nobg.svg b/res/img/icons-room-nobg.svg new file mode 100644 index 0000000000..8ca7ab272b --- /dev/null +++ b/res/img/icons-room-nobg.svg @@ -0,0 +1,28 @@ + + \ No newline at end of file diff --git a/src/components/structures/MainSplit.js b/src/components/structures/MainSplit.js index ea3a97e161..6fd0274f1a 100644 --- a/src/components/structures/MainSplit.js +++ b/src/components/structures/MainSplit.js @@ -19,7 +19,6 @@ import ResizeHandle from '../views/elements/ResizeHandle'; import {Resizer, FixedDistributor} from '../../resizer'; export default class MainSplit extends React.Component { - constructor(props) { super(props); this._setResizeContainerRef = this._setResizeContainerRef.bind(this); diff --git a/src/components/structures/MyGroups.js b/src/components/structures/MyGroups.js index edb50fcedb..c5bf74d561 100644 --- a/src/components/structures/MyGroups.js +++ b/src/components/structures/MyGroups.js @@ -60,7 +60,6 @@ export default withMatrixClient(React.createClass({ render: function() { const Loader = sdk.getComponent("elements.Spinner"); const SimpleRoomHeader = sdk.getComponent('rooms.SimpleRoomHeader'); - const TintableSvg = sdk.getComponent("elements.TintableSvg"); const GroupTile = sdk.getComponent("groups.GroupTile"); const GeminiScrollbarWrapper = sdk.getComponent("elements.GeminiScrollbarWrapper"); @@ -112,7 +111,6 @@ export default withMatrixClient(React.createClass({