diff --git a/examples/trivial/fonts b/examples/trivial/fonts new file mode 120000 index 0000000000..27f04cad54 --- /dev/null +++ b/examples/trivial/fonts @@ -0,0 +1 @@ +../../skins/base/fonts/ \ No newline at end of file diff --git a/skins/base/css/molecules/RoomHeader.css b/skins/base/css/molecules/RoomHeader.css index e13a21df6f..6774387726 100644 --- a/skins/base/css/molecules/RoomHeader.css +++ b/skins/base/css/molecules/RoomHeader.css @@ -86,6 +86,15 @@ limitations under the License. vertical-align: middle; } +.mx_RoomHeader_simpleHeader { + line-height: 88px; + color: #80cef4; + font-weight: 400; + font-size: 20px; + overflow: scroll; + text-overflow: ellipsis; +} + .mx_RoomHeader_name { vertical-align: middle; height: 28px; diff --git a/skins/base/css/organisms/LeftPanel.css b/skins/base/css/organisms/LeftPanel.css index ac10942d2a..bfc4302655 100644 --- a/skins/base/css/organisms/LeftPanel.css +++ b/skins/base/css/organisms/LeftPanel.css @@ -43,7 +43,7 @@ limitations under the License. overflow-y: scroll; } -.mx_LeftPanel .mx_DirectoryMenu { +.mx_LeftPanel .mx_BottomLeftMenu { -webkit-box-ordinal-group: 3; -moz-box-ordinal-group: 3; -ms-flex-order: 3; @@ -56,15 +56,15 @@ limitations under the License. border-top: 1px solid #f3f8fa; } -.mx_LeftPanel .mx_DirectoryMenu .mx_RoomTile { +.mx_LeftPanel .mx_BottomLeftMenu .mx_RoomTile { color: #378bb4; } -.mx_LeftPanel .mx_DirectoryMenu .mx_RoomTile_avatar { +.mx_LeftPanel .mx_BottomLeftMenu .mx_RoomTile_avatar { padding-left: 14px; } -.mx_LeftPanel .mx_DirectoryMenu .mx_DirectoryMenu_options { +.mx_LeftPanel .mx_BottomLeftMenu .mx_BottomLeftMenu_options { margin-top: 12px; width: 100%; } \ No newline at end of file diff --git a/skins/base/css/organisms/RoomDirectory.css b/skins/base/css/organisms/RoomDirectory.css new file mode 100644 index 0000000000..9ca7811f21 --- /dev/null +++ b/skins/base/css/organisms/RoomDirectory.css @@ -0,0 +1,40 @@ +/* +Copyright 2015 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_RoomDirectory { + max-width: 720px; + margin: auto; +} + +.mx_RoomDirectory_input { + margin: auto; + border-radius: 3px; + border: 1px solid #c7c7c7; + font-weight: 300; + font-size: 14px; + padding: 9px; + margin-top: 12px; + margin-bottom: 12px; +} + +.mx_RoomDirectory_table { + width: 100%; +} + +.mx_RoomDirectory_table td, +.mx_RoomDirectory_table th, { + padding: 6px; +} \ No newline at end of file diff --git a/skins/base/views/molecules/DirectoryMenu.js b/skins/base/views/molecules/BottomLeftMenu.js similarity index 83% rename from skins/base/views/molecules/DirectoryMenu.js rename to skins/base/views/molecules/BottomLeftMenu.js index 8ffb418014..d2340d7bfa 100644 --- a/skins/base/views/molecules/DirectoryMenu.js +++ b/skins/base/views/molecules/BottomLeftMenu.js @@ -21,34 +21,34 @@ var classNames = require('classnames'); var dis = require("../../../../src/dispatcher"); -//var DirectoryMenuController = require("../../../../src/controllers/molecules/DirectoryMenuController"); - var MatrixClientPeg = require("../../../../src/MatrixClientPeg"); module.exports = React.createClass({ - displayName: 'DirectoryMenu', - // mixins: [DirectoryMenuController], + displayName: 'BottomLeftMenu', - // FIXME: should these onClicks be in the controller instead? onSettingsClick: function() { dis.dispatch({action: 'view_user_settings'}); }, + onRoomDirectoryClick: function() { + dis.dispatch({action: 'view_room_directory'}); + }, + onCreateRoomClick: function() { dis.dispatch({action: 'view_create_room'}); }, render: function() { return ( -
Room | Topic | Users |
---|