Skip to content

Commit 05e963d

Browse files
committed
make the UI fadable to help with decluttering
1 parent 34bdd40 commit 05e963d

4 files changed

Lines changed: 14 additions & 5 deletions

File tree

‎src/components/structures/LeftPanel.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ var LeftPanel = React.createClass({
8989
var BottomLeftMenu = sdk.getComponent('structures.BottomLeftMenu');
9090

9191
var collapseButton;
92-
var classes = "mx_LeftPanel";
92+
var classes = "mx_LeftPanel mx_fadable";
9393
if (this.props.collapsed) {
9494
classes += " collapsed";
9595
}
@@ -109,7 +109,7 @@ var LeftPanel = React.createClass({
109109
}
110110

111111
return (
112-
<aside className={classes}>
112+
<aside className={classes} style={{ opacity: this.props.opacity }}>
113113
{ collapseButton }
114114
{ callPreview }
115115
<RoomList

‎src/components/structures/RightPanel.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,13 @@ module.exports = React.createClass({
158158

159159
}
160160

161-
var classes = "mx_RightPanel";
161+
var classes = "mx_RightPanel mx_fadable";
162162
if (this.props.collapsed) {
163163
classes += " collapsed";
164164
}
165165

166166
return (
167-
<aside className={classes}>
167+
<aside className={classes} style={{ opacity: this.props.opacity }}>
168168
<div className="mx_RightPanel_header">
169169
{ buttonGroup }
170170
</div>

‎src/skins/vector/css/common.css‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ input[type=text]:focus, textarea:focus {
5858
box-shadow: none;
5959
}
6060

61+
/* applied to side-panels and messagepanel when in RoomSettings */
62+
.mx_fadable {
63+
opacity: 1;
64+
-webkit-transition: opacity 0.2s ease-in-out;
65+
-moz-transition: opacity 0.2s ease-in-out;
66+
-ms-transition: opacity 0.2s ease-in-out;
67+
-o-transition: opacity 0.2s ease-in-out;
68+
}
69+
6170
/* XXX: critical hack to GeminiScrollbar to allow them to work in FF 42 and Chrome 48.
6271
Stop the scrollbar view from pushing out the container's overall sizing, which causes
6372
flexbox to adapt to the new size and cause the view to keep growing.

‎src/skins/vector/css/matrix-react-sdk/structures/RoomView.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ limitations under the License.
8989
margin: auto;
9090

9191
overflow: auto;
92-
border-bottom: 1px solid #eee;
92+
border-bottom: 1px solid #ccc;
9393

9494
-webkit-flex: 0 0 auto;
9595
flex: 0 0 auto;

0 commit comments

Comments
 (0)