Skip to content

Commit aa6d584

Browse files
authored
Merge pull request element-hq#2965 from vector-im/rav/fix_font_links
Fix links to fonts and images from CSS
2 parents 86b6612 + ef07a60 commit aa6d584

4 files changed

Lines changed: 14 additions & 12 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/views/elements/DirectorySearchBox.css‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ input[type=text].mx_DirectorySearchBox_input:focus {
4646
padding-right: 10px;
4747
background-color: #efefef;
4848
border-radius: 3px;
49-
background-image: url('img/icon-return.svg');
49+
background-image: url('../img/icon-return.svg');
5050
background-position: 8px 70%;
5151
background-repeat: no-repeat;
5252
text-indent: 18px;
@@ -63,7 +63,7 @@ input[type=text].mx_DirectorySearchBox_input:focus {
6363
.mx_DirectorySearchBox_clear {
6464
display: inline-block;
6565
vertical-align: middle;
66-
background: url('img/icon_context_delete.svg');
66+
background: url('../img/icon_context_delete.svg');
6767
background-position: 0 50%;
6868
background-repeat: no-repeat;
6969
width: 15px;

‎src/skins/vector/css/matrix-react-sdk/views/rooms/RoomTile.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ limitations under the License.
6565
position: absolute;
6666
content: "";
6767
border-radius: 40px;
68-
background-image: url("img/icons_ellipsis.svg");
68+
background-image: url("../img/icons_ellipsis.svg");
6969
background-size: 25px;
7070
width: 24px;
7171
height: 24px;

‎src/skins/vector/css/vector-web/fonts.css‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,46 @@
33
* Includes extended Latin, Greek, Cyrillic and Vietnamese character sets
44
*/
55

6+
/* the 'src' links are relative to the bundle.css, which is in a subdirectory.
7+
*/
68
@font-face {
79
font-family: 'Open Sans';
8-
src: url('fonts/Open_Sans/OpenSans-Regular.ttf') format('truetype');
10+
src: url('../fonts/Open_Sans/OpenSans-Regular.ttf') format('truetype');
911
font-weight: 400;
1012
font-style: normal;
1113
}
1214

1315
@font-face {
1416
font-family: 'Open Sans';
15-
src: url('fonts/Open_Sans/OpenSans-Italic.ttf') format('truetype');
17+
src: url('../fonts/Open_Sans/OpenSans-Italic.ttf') format('truetype');
1618
font-weight: 400;
1719
font-style: italic;
1820
}
1921

2022
@font-face {
2123
font-family: 'Open Sans';
22-
src: url('fonts/Open_Sans/OpenSans-Semibold.ttf') format('truetype');
24+
src: url('../fonts/Open_Sans/OpenSans-Semibold.ttf') format('truetype');
2325
font-weight: 600;
2426
font-style: normal;
2527
}
2628

2729
@font-face {
2830
font-family: 'Open Sans';
29-
src: url('fonts/Open_Sans/OpenSans-SemiboldItalic.ttf') format('truetype');
31+
src: url('../fonts/Open_Sans/OpenSans-SemiboldItalic.ttf') format('truetype');
3032
font-weight: 600;
3133
font-style: italic;
3234
}
3335

3436
@font-face {
3537
font-family: 'Open Sans';
36-
src: url('fonts/Open_Sans/OpenSans-Bold.ttf') format('truetype');
38+
src: url('../fonts/Open_Sans/OpenSans-Bold.ttf') format('truetype');
3739
font-weight: 700;
3840
font-style: normal;
3941
}
4042

4143
@font-face {
4244
font-family: 'Open Sans';
43-
src: url('fonts/Open_Sans/OpenSans-BoldItalic.ttf') format('truetype');
45+
src: url('../fonts/Open_Sans/OpenSans-BoldItalic.ttf') format('truetype');
4446
font-weight: 700;
4547
font-style: italic;
4648
}
@@ -52,14 +54,14 @@
5254

5355
@font-face {
5456
font-family: 'Fira Mono';
55-
src: url('fonts/Fira_Mono/FiraMono-Regular.ttf') format('truetype');
57+
src: url('../fonts/Fira_Mono/FiraMono-Regular.ttf') format('truetype');
5658
font-weight: 400;
5759
font-style: normal;
5860
}
5961

6062
@font-face {
6163
font-family: 'Fira Mono';
62-
src: url('fonts/Fira_Mono/FiraMono-Bold.ttf') format('truetype');
64+
src: url('../fonts/Fira_Mono/FiraMono-Bold.ttf') format('truetype');
6365
font-weight: 700;
6466
font-style: normal;
6567
}

‎src/skins/vector/css/vector-web/views/elements/ImageView.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ limitations under the License.
6262
max-height: 100%;
6363
/* object-fit hack needed for Chrome due to Chrome not re-laying-out until you refresh */
6464
object-fit: contain;
65-
/* background-image: url('img/trans.png'); */
65+
/* background-image: url('../img/trans.png'); */
6666
pointer-events: all;
6767
}
6868

0 commit comments

Comments
 (0)