Skip to content

Commit 2345624

Browse files
committed
switch to Open Sans, juggling font-size appropriately (as Open Sans is physically larger for the same point size as Myriad Pro, irritatingly), and fix some really weird baseline CSS bugs in read receipts that were introduced. Hopefully this doesn't re-introduce the intermittent baseline offset bug for the initials on Chrome & FF
1 parent 4409f07 commit 2345624

20 files changed

Lines changed: 54 additions & 51 deletions

‎src/skins/vector/css/atoms/ImageView.css‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ limitations under the License.
8787
}
8888

8989
.mx_ImageView_name {
90-
font-size: 20px;
90+
font-size: 18px;
9191
margin-bottom: 6px;
9292
pointer-events: all;
9393
}
9494

9595
.mx_ImageView_metadata {
96-
font-size: 16px;
96+
font-size: 15px;
9797
opacity: 0.5;
9898
pointer-events: all;
9999
}
@@ -105,13 +105,13 @@ limitations under the License.
105105
margin-bottom: 6px;
106106
border-radius: 5px;
107107
background-color: #454545;
108-
font-size: 16px;
108+
font-size: 14px;
109109
padding: 9px;
110110
border: 1px solid #fff;
111111
}
112112

113113
.mx_ImageView_size {
114-
font-size: 12px;
114+
font-size: 11px;
115115
}
116116

117117
.mx_ImageView_link {
@@ -121,7 +121,7 @@ limitations under the License.
121121

122122
.mx_ImageView_button {
123123
pointer-events: all;
124-
font-size: 16px;
124+
font-size: 15px;
125125
opacity: 0.5;
126126
margin-top: 18px;
127127
cursor: pointer;

‎src/skins/vector/css/atoms/MemberAvatar.css‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ limitations under the License.
1515
*/
1616

1717
.mx_MemberAvatar {
18-
position: relative;
18+
/* remove position: relative as it breaks on FF - we have to ensure the parent element to the memberavatar has a position: relative instead. */;
1919
}
2020

2121
.mx_MemberAvatar_initial {
2222
position: absolute;
23+
z-index: 1;
2324
color: #fff;
2425
text-align: center;
2526
speak: none;
@@ -28,4 +29,5 @@ limitations under the License.
2829

2930
.mx_MemberAvatar_image {
3031
border-radius: 20px;
32+
vertical-align: top;
3133
}

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ html {
2222
}
2323

2424
body {
25-
/* Myriad Pro lacks combining diacritics, so these will fall through
25+
/* Open Sans lacks combining diacritics, so these will fall through
2626
to the next font. Helevetica's diacritics however do not combine
27-
nicely with Myriad Pro (on OSX, at least) and result in a huge
27+
nicely with Open Sans (on OSX, at least) and result in a huge
2828
horizontal mess. Arial empirically gets it right, hence prioritising
2929
Arial here. */
30-
font-family: 'Myriad Pro', Arial, Helvetica, Sans-Serif;
31-
font-size: 16px;
30+
font-family: 'Open Sans', Arial, Helvetica, Sans-Serif;
31+
font-size: 15px;
3232
color: #454545;
3333
border: 0px;
3434
margin: 0px;
@@ -41,7 +41,7 @@ div.error {
4141
h2 {
4242
color: #454545;
4343
font-weight: 400;
44-
font-size: 20px;
44+
font-size: 18px;
4545
margin-top: 16px;
4646
margin-bottom: 16px;
4747
}
@@ -129,7 +129,7 @@ a:visited {
129129
text-align: center;
130130
z-index: 4010;
131131
font-weight: 300;
132-
font-size: 16px;
132+
font-size: 15px;
133133
position: relative;
134134
border-radius: 8px;
135135
max-width: 80%;
@@ -172,7 +172,7 @@ a:visited {
172172
height: 36px;
173173
border-radius: 36px;
174174
font-weight: 400;
175-
font-size: 16px;
175+
font-size: 15px;
176176
color: #fff;
177177
background-color: #76cfa6;
178178
margin-left: 8px;
@@ -187,6 +187,6 @@ a:visited {
187187
padding: 12px;
188188
border-bottom: 1px solid #a4a4a4;
189189
font-weight: bold;
190-
font-size: 20px;
190+
font-size: 18px;
191191
line-height: 1.4;
192192
}

‎src/skins/vector/css/molecules/EventTile.css‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ limitations under the License.
2525
padding-left: 18px;
2626
padding-right: 12px;
2727
margin-left: -73px;
28-
margin-top: -4px;
28+
margin-top: -2px;
2929
float: left;
3030
position: relative;
31+
top: 0px;
3132
}
3233

3334
.mx_EventTile_avatar img {
@@ -42,15 +43,15 @@ limitations under the License.
4243
.mx_EventTile .mx_SenderProfile {
4344
color: #454545;
4445
opacity: 0.5;
45-
font-size: 14px;
46+
font-size: 13px;
4647
margin-bottom: 4px;
4748
display: block;
4849
overflow-y: hidden;
4950
}
5051

5152
.mx_EventTile .mx_MessageTimestamp {
5253
color: #acacac;
53-
font-size: 12px;
54+
font-size: 11px;
5455
}
5556

5657
.mx_EventTile_line {
@@ -74,6 +75,7 @@ limitations under the License.
7475
font-family: inherit ! important;
7576
white-space: normal ! important;
7677
line-height: inherit ! important;
78+
font-size: 15px;
7779
}
7880

7981
.mx_MessageTile_content .markdown-body h1,
@@ -175,6 +177,6 @@ limitations under the License.
175177

176178
.mx_EventTile_readAvatarRemainder {
177179
color: #acacac;
178-
font-size: 12px;
180+
font-size: 11px;
179181
position: absolute;
180182
}

‎src/skins/vector/css/molecules/MemberInfo.css‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ limitations under the License.
3838

3939
.mx_MemberInfo_profileField {
4040
font-color: #999999;
41-
font-size: 14px;
41+
font-size: 13px;
4242
position: relative;
4343
background-color: #fff;
4444
}
@@ -51,7 +51,7 @@ limitations under the License.
5151
cursor: pointer;
5252
width: 100px;
5353
text-align: center;
54-
font-size: 12px;
54+
font-size: 11px;
5555
background-color: #888;
5656
color: #fff;
5757
font-weight: bold;

‎src/skins/vector/css/molecules/MemberTile.css‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ limitations under the License.
2525
display: table-cell;
2626
padding-left: 3px;
2727
padding-right: 12px;
28-
padding-top: 2px;
29-
padding-bottom: 0px;
28+
padding-top: 4px;
29+
padding-bottom: 4px;
3030
vertical-align: middle;
3131
width: 36px;
3232
height: 36px;
@@ -55,13 +55,13 @@ limitations under the License.
5555
}
5656

5757
.mx_MemberTile_userId {
58-
font-size: 14px;
58+
font-size: 13px;
5959
overflow: hidden;
6060
text-overflow: ellipsis;
6161
}
6262

6363
.mx_MemberTile_presence {
64-
font-size: 12px;
64+
font-size: 11px;
6565
opacity: 0.5;
6666
}
6767

‎src/skins/vector/css/molecules/MessageComposer.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ limitations under the License.
5959
box-shadow: none;
6060

6161
/* needed for FF */
62-
font-family: 'Myriad Pro', Arial, Helvetica, Sans-Serif;
62+
font-family: 'Open Sans', Arial, Helvetica, Sans-Serif;
6363
}
6464

6565
/* hack for FF as vertical alignment of custom placeholder text is broken */

‎src/skins/vector/css/molecules/RoomDropTarget.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ limitations under the License.
1515
*/
1616

1717
.mx_RoomDropTarget {
18-
font-size: 14px;
18+
font-size: 13px;
1919
margin-left: 10px;
2020
margin-right: 15px;
2121
padding-top: 5px;

‎src/skins/vector/css/molecules/RoomHeader.css‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ limitations under the License.
9191
.mx_RoomHeader_simpleHeader {
9292
line-height: 83px;
9393
color: #454545;
94-
font-size: 24px;
94+
font-size: 22px;
9595
font-weight: bold;
9696
overflow: hidden;
9797
text-overflow: ellipsis;
@@ -103,7 +103,7 @@ limitations under the License.
103103
height: 28px;
104104
color: #454545;
105105
font-weight: bold;
106-
font-size: 24px;
106+
font-size: 22px;
107107
padding-left: 19px;
108108
padding-right: 16px;
109109
text-overflow: ellipsis;
@@ -141,7 +141,7 @@ limitations under the License.
141141
width: 260px;
142142
border: 1px solid #c7c7c7;
143143
font-weight: 300;
144-
font-size: 14px;
144+
font-size: 13px;
145145
padding: 9px;
146146
}
147147

‎src/skins/vector/css/molecules/RoomSettings.css‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ limitations under the License.
3939
border-radius: 3px;
4040
border: 1px solid #c7c7c7;
4141
font-weight: 300;
42-
font-size: 14px;
42+
font-size: 13px;
4343
padding: 9px;
4444
margin-top: 6px;
4545
}
@@ -59,7 +59,7 @@ limitations under the License.
5959
height: 36px;
6060
border-radius: 36px;
6161
font-weight: 400;
62-
font-size: 16px;
62+
font-size: 15px;
6363
color: #fff;
6464
background-color: #76cfa6;
6565
width: auto;

0 commit comments

Comments
 (0)