Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 1ef14f2

Browse files
committed
Merge branch 'develop' into release-v1.0.0
2 parents e98bcf9 + 53ead43 commit 1ef14f2

File tree

123 files changed

+2822
-1153
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+2822
-1153
lines changed

res/css/_common.scss

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,54 @@ a:visited {
5050
color: $accent-color-alt;
5151
}
5252

53+
input[type=text],
54+
input[type=search],
55+
input[type=password] {
56+
padding: 9px;
57+
font-family: $font-family;
58+
font-size: 14px;
59+
font-weight: 600;
60+
min-width: 0;
61+
}
62+
63+
input[type=text].mx_textinput_icon,
64+
input[type=search].mx_textinput_icon {
65+
padding-left: 36px;
66+
background-repeat: no-repeat;
67+
background-position: 10px center;
68+
}
69+
70+
// FIXME THEME - Tint by CSS rather than referencing a duplicate asset
71+
input[type=text].mx_textinput_icon.mx_textinput_search,
72+
input[type=search].mx_textinput_icon.mx_textinput_search {
73+
background-image: url('$(res)/img/feather-icons/search-input.svg');
74+
}
75+
76+
// dont search UI as not all browsers support it,
77+
// we implement it ourselves where needed instead
78+
input[type=search]::-webkit-search-decoration,
79+
input[type=search]::-webkit-search-cancel-button,
80+
input[type=search]::-webkit-search-results-button,
81+
input[type=search]::-webkit-search-results-decoration {
82+
display: none;
83+
}
84+
85+
.input[type=text]::-webkit-input-placeholder,
86+
.input[type=text]::-moz-placeholder,
87+
.input[type=search]::-webkit-input-placeholder,
88+
.input[type=search]::-moz-placeholder {
89+
color: #a5aab2;
90+
}
91+
92+
// Override Firefox's UA style so we get a consistent look across browsers
93+
input::placeholder,
94+
textarea::placeholder {
95+
opacity: initial;
96+
}
97+
5398
input[type=text], input[type=password], textarea {
5499
background-color: transparent;
100+
color: $primary-fg-color;
55101
}
56102

57103
input[type=text]:focus, input[type=password]:focus, textarea:focus {
@@ -62,6 +108,7 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
62108
/* Required by Firefox */
63109
textarea {
64110
font-family: $font-family;
111+
color: $primary-fg-color;
65112
}
66113

67114
/* Prevent ugly dotted highlight around selected elements in Firefox */
@@ -242,7 +289,7 @@ textarea {
242289
font-weight: 600;
243290
border: 1px solid $accent-color ! important;
244291
color: $accent-color;
245-
background-color: $accent-fg-color;
292+
background-color: $button-secondary-bg-color;
246293
}
247294

248295
.mx_Dialog button:hover, .mx_Dialog input[type="submit"]:hover {

res/css/_components.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
@import "./structures/_CustomRoomTagPanel.scss";
88
@import "./structures/_FilePanel.scss";
99
@import "./structures/_GroupView.scss";
10+
@import "./structures/_HeaderButtons.scss";
1011
@import "./structures/_HomePage.scss";
1112
@import "./structures/_LeftPanel.scss";
1213
@import "./structures/_MatrixChat.scss";
@@ -57,6 +58,7 @@
5758
@import "./views/dialogs/_DevtoolsDialog.scss";
5859
@import "./views/dialogs/_EncryptedEventDialog.scss";
5960
@import "./views/dialogs/_GroupAddressPicker.scss";
61+
@import "./views/dialogs/_IncomingSasDialog.scss";
6062
@import "./views/dialogs/_RestoreKeyBackupDialog.scss";
6163
@import "./views/dialogs/_RoomSettingsDialog.scss";
6264
@import "./views/dialogs/_RoomUpgradeDialog.scss";
@@ -126,6 +128,7 @@
126128
@import "./views/rooms/_PinnedEventsPanel.scss";
127129
@import "./views/rooms/_PresenceLabel.scss";
128130
@import "./views/rooms/_ReplyPreview.scss";
131+
@import "./views/rooms/_RoomBreadcrumbs.scss";
129132
@import "./views/rooms/_RoomDropTarget.scss";
130133
@import "./views/rooms/_RoomHeader.scss";
131134
@import "./views/rooms/_RoomList.scss";

res/css/structures/_AutoHideScrollbar.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ body.mx_scrollbar_nooverlay {
7474
// or fallback for webkit browsers
7575
::-webkit-scrollbar {
7676
width: 6px;
77+
height: 6px;
7778
background-color: $scrollbar-track-color;
7879
}
7980

res/css/structures/_ContextualMenu.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ limitations under the License.
3131

3232
.mx_ContextualMenu {
3333
border-radius: 4px;
34-
box-shadow: 4px 4px 12px 0 rgba(118, 131, 156, 0.6);;
34+
box-shadow: 4px 4px 12px 0 $menu-box-shadow-color;
3535
background-color: $menu-bg-color;
3636
color: $primary-fg-color;
3737
position: absolute;

res/css/structures/_GroupView.scss

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,22 @@ limitations under the License.
4444
}
4545

4646
.mx_GroupHeader_button {
47-
margin-left: 12px;
47+
margin-left: 5px;
48+
margin-right: 5px;
4849
cursor: pointer;
50+
height: 20px;
51+
width: 20px;
52+
background-color: $groupheader-button-color;
53+
mask-repeat: no-repeat;
54+
mask-size: contain;
4955
}
5056

51-
.mx_GroupHeader_button object {
52-
// prevents clicks from being swallowed by svg in 'object' tag
53-
pointer-events: none;
57+
.mx_GroupHeader_editButton {
58+
mask-image: url('$(res)/img/icons-settings-room.svg');
59+
}
60+
61+
.mx_GroupHeader_shareButton {
62+
mask-image: url('$(res)/img/icons-share.svg');
5463
}
5564

5665
.mx_GroupView_editable {
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
Copyright 2019 New Vector Ltd
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
.mx_HeaderButtons {
18+
display: flex;
19+
}
20+
21+
.mx_HeaderButtons::before {
22+
content: "";
23+
background-color: $header-divider-color;
24+
opacity: 0.5;
25+
margin: 0 15px;
26+
border-radius: 1px;
27+
width: 1px;
28+
}

res/css/structures/_RightPanel.scss

Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ limitations under the License.
2525

2626
.mx_RightPanel_header {
2727
order: 1;
28-
2928
border-bottom: 1px solid $primary-hairline-color;
30-
3129
flex: 0 0 52px;
3230
}
3331

@@ -45,20 +43,55 @@ limitations under the License.
4543
cursor: pointer;
4644
flex: 0 0 auto;
4745
vertical-align: top;
48-
margin-top: 4px;
49-
padding-left: 5px;
50-
padding-right: 5px;
46+
margin-left: 5px;
47+
margin-right: 5px;
5148
text-align: center;
52-
position: relative;
5349
border-bottom: 2px solid transparent;
50+
height: 20px;
51+
width: 20px;
52+
position: relative;
53+
}
54+
55+
.mx_RightPanel_headerButton::before {
56+
content: '';
57+
position: absolute;
58+
top: 0;
59+
left: 0;
60+
height: 20px;
61+
width: 20px;
62+
background-color: $rightpanel-button-color;
63+
mask-repeat: no-repeat;
64+
mask-size: contain;
65+
}
66+
67+
.mx_RightPanel_membersButton::before {
68+
mask-image: url('$(res)/img/feather-icons/user.svg');
69+
}
70+
71+
.mx_RightPanel_filesButton::before {
72+
mask-image: url('$(res)/img/feather-icons/files.svg');
73+
}
74+
75+
.mx_RightPanel_notifsButton::before {
76+
mask-image: url('$(res)/img/feather-icons/notifications.svg');
77+
}
78+
79+
.mx_RightPanel_groupMembersButton::before {
80+
mask-image: url('$(res)/img/icons-people.svg');
5481
}
5582

56-
.mx_RightPanel_headerButton object {
57-
pointer-events: none;
83+
.mx_RightPanel_roomsButton::before {
84+
mask-image: url('$(res)/img/icons-room-nobg.svg');
5885
}
5986

60-
.mx_RightPanel_headerButton_highlight {
61-
border-color: $button-bg-color;
87+
.mx_RightPanel_headerButton_highlight::after {
88+
content: '';
89+
position: absolute;
90+
bottom: -6px;
91+
left: 0;
92+
right: 0;
93+
height: 2px;
94+
background-color: $button-bg-color;
6295
}
6396

6497
.mx_RightPanel_headerButton_badge {

res/css/structures/_RoomSubList.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ limitations under the License.
152152
&.mx_IndicatorScrollbar_topOverflow::before {
153153
top: 0;
154154
transition: background-image 0.1s ease-in;
155-
background: linear-gradient(to top, rgba(242,245,248,0), rgba(242,245,248,1));
155+
background: linear-gradient(to top, $panel-gradient);
156156
}
157157

158158
/*

res/css/structures/_TabbedView.scss

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ limitations under the License.
2828
}
2929

3030
.mx_TabbedView_tabLabels {
31-
width: 150px;
32-
max-width: 150px;
31+
width: 170px;
32+
max-width: 170px;
3333
color: $tab-label-fg-color;
3434
position: fixed;
3535
}
@@ -39,9 +39,8 @@ limitations under the License.
3939
cursor: pointer;
4040
display: block;
4141
border-radius: 3px;
42-
font-size: 12px;
43-
font-weight: 600;
44-
min-height: 20px; // use min-height instead of height to allow the label to overflow a bit
42+
font-size: 14px;
43+
min-height: 24px; // use min-height instead of height to allow the label to overflow a bit
4544
margin-bottom: 6px;
4645
position: relative;
4746
}
@@ -55,18 +54,18 @@ limitations under the License.
5554
margin-left: 6px;
5655
margin-right: 9px;
5756
margin-top: 1px;
58-
width: 14px;
59-
height: 14px;
57+
width: 16px;
58+
height: 16px;
6059
display: inline-block;
6160
}
6261

6362
.mx_TabbedView_maskedIcon:before {
6463
display: inline-block;
6564
background-color: $tab-label-icon-bg-color;
6665
mask-repeat: no-repeat;
67-
mask-size: 14px;
66+
mask-size: 16px;
6867
width: 14px;
69-
height: 18px;
68+
height: 22px;
7069
mask-position: center;
7170
content: '';
7271
vertical-align: middle;
@@ -81,7 +80,7 @@ limitations under the License.
8180
}
8281

8382
.mx_TabbedView_tabPanel {
84-
margin-left: 220px; // 150px sidebar + 70px padding
83+
margin-left: 240px; // 170px sidebar + 70px padding
8584
flex-grow: 1;
8685
display: flex;
8786
flex-direction: column;

res/css/structures/_TagPanelButtons.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ limitations under the License.
3838
height: 40px;
3939
width: 40px;
4040
border-radius: 20px;
41-
background-color: $roomheader-addroom-color;
41+
background-color: $tagpanel-button-color;
4242
position: relative;
4343
/* overwrite mx_RoleButton inline-block */
4444
display: block !important;

0 commit comments

Comments
 (0)