Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #2750 - Improves text rendering #2821

Merged
merged 2 commits into from
Apr 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions webcompat/static/css/webcompat.dev.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,31 @@
max-height: 75vh;
max-width: 100%;
}

@font-face {
font-display: optional;
font-family: "Source Sans Pro", sans-serif;
font-weight: 300;
src: local("Source Sans Pro Light"), local("SourceSansPro-Light"), url("https://fonts.gstatic.com/s/sourcesanspro/v11/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlxdu3cOWxw.woff2") format("woff2");
}

@font-face {
font-display: optional;
font-family: "Source Sans Pro", sans-serif;
font-weight: 400;
src: local("Source Sans Pro Regular"), local("SourceSansPro-Regular"), url("https://fonts.gstatic.com/s/sourcesanspro/v11/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7lujVj9w.woff2") format("woff2");
}

@font-face {
font-display: optional;
font-family: "Open Sans", sans-serif;
font-weight: 400;
src: local("Open Sans"), url("https://fonts.gstatic.com/s/opensans/v15/mem8YaGs126MiZpBA-UFWJ0bf8pkAp6a.woff2") format("woff2");
}

@font-face {
font-display: optional;
font-family: "Open Sans", sans-serif;
font-weight: 600;
src: local("Open Sans"), url("https://fonts.gstatic.com/s/opensans/v15/mem5YaGs126MiZpBA-UNirkOXOhpKKSTj5PW.woff2") format("woff2");
}
4 changes: 2 additions & 2 deletions webcompat/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
<link rel="icon" type="image/png" href="{{ url_for('static', filename='favicon/favicon-32x32.png') }}" sizes="32x32">

<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600|Source+Sans+Pro:300,400|PT+Mono" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600|Source+Sans+Pro:300,400" rel="stylesheet">
<link href="{{ url_for('static', filename='css/dist/webcompat.min.css') }}" type="text/css" rel="stylesheet">
</head>
<body id="body-webcompat" data-username="{{ session.username }}">
Expand Down Expand Up @@ -45,4 +45,4 @@
{% endfor %}
{% block extrascripts %}{% endblock %}
</body>
</html>
</html>