Skip to content

Commit 00d2d82

Browse files
committed
new style badges, hr, notices
1 parent 4ded747 commit 00d2d82

6 files changed

Lines changed: 40 additions & 5 deletions

File tree

‎skins/base/css/molecules/MNoticeTile.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
.mx_MNoticeTile .mx_MessageTile_content {
17+
.mx_MNoticeTile {
1818
opacity: 0.5;
1919
}

‎skins/base/css/molecules/MessageTile.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ limitations under the License.
5959
display: block;
6060
}
6161

62-
.mx_MessageTile_notice {
62+
.mx_MessageTile_notice .mx_MessageTile_content {
6363
opacity: 0.5;
6464
}
6565

‎skins/base/css/molecules/RoomTile.css‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ limitations under the License.
2929
vertical-align: middle;
3030
width: 40px;
3131
height: 40px;
32+
position: relative;
3233
}
3334

3435
.mx_RoomTile_avatar img {
@@ -70,6 +71,17 @@ limitations under the License.
7071
}
7172
*/
7273

74+
.mx_RoomTile_badge {
75+
background-color: #ff0064;
76+
border: 3px solid #fff;
77+
border-radius: 16px;
78+
width: 9px;
79+
height: 9px;
80+
position: absolute;
81+
right: 10px;
82+
bottom: 4px;
83+
}
84+
7385
.mx_RoomTile_unread {
7486
font-weight: bold;
7587
}

‎skins/base/css/organisms/RoomView.css‎

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ limitations under the License.
6262

6363
width: 100%;
6464
height: 100%;
65-
margin-bottom: 60px;
65+
margin-top: 1px;
66+
margin-bottom: 18px;
6667

6768
overflow-y: scroll;
6869
}
@@ -87,13 +88,31 @@ limitations under the License.
8788
.mx_RoomView_invitePrompt {
8889
}
8990

90-
.mx_RoomView .mx_MessageComposer {
91+
.mx_RoomView_statusArea {
9192
-webkit-box-ordinal-group: 4;
9293
-moz-box-ordinal-group: 4;
9394
-ms-flex-order: 4;
9495
-webkit-order: 4;
9596
order: 4;
9697

98+
width: 100%;
99+
-webkit-flex: 0 0 58px;
100+
flex: 0 0 58px;
101+
}
102+
103+
.mx_RoomView_statusAreaBox {
104+
max-width: 720px;
105+
margin: auto;
106+
border-top: 1px solid #a8dbf3;
107+
}
108+
109+
.mx_RoomView .mx_MessageComposer {
110+
-webkit-box-ordinal-group: 5;
111+
-moz-box-ordinal-group: 5;
112+
-ms-flex-order: 5;
113+
-webkit-order: 5;
114+
order: 5;
115+
97116
width: 100%;
98117
-webkit-flex: 0 0 63px;
99118
flex: 0 0 63px;

‎skins/base/views/molecules/RoomTile.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = React.createClass({
3838
var name = this.props.room.name.replace(":", ":\u200b");
3939
var badge;
4040
if (this.props.highlight) {
41-
badge = <img src="/img/badge.png" width="15" height="15" alt=""/>;
41+
badge = <div className="mx_RoomTile_badge"/>;
4242
}
4343
/*
4444
if (this.props.highlight) {

‎skins/base/views/organisms/RoomView.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ module.exports = React.createClass({
8686
</div>
8787
</div>
8888
</div>
89+
<div className="mx_RoomView_statusArea">
90+
<div className="mx_RoomView_statusAreaBox">
91+
</div>
92+
</div>
8993
<MessageComposer room={this.state.room} />
9094
</div>
9195
);

0 commit comments

Comments
 (0)