Skip to content

Commit da67bd6

Browse files
adamzapManshaAgarwal716
authored andcommitted
Use sans-serif font everywhere
This change was requested for simplicity and accessibility.
1 parent 857db35 commit da67bd6

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

djangoproject/scss/_style.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ CSS rendered with Libsass 0.7.0
1313

1414
//------------------- Globals
1515
body {
16-
@include serif;
16+
@include sans-serif;
1717
@include font-size(18);
1818
background: var(--sidebar-bg);
1919
color: var(--body-fg);
@@ -636,7 +636,6 @@ header {
636636
}
637637

638638
p {
639-
@include serif;
640639
@include font-size(18);
641640
color: var(--white-color);
642641
left: -9999px;

djangoproject/scss/_utils.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,6 @@ $logo-bg-dark: #272c27;
114114
}
115115

116116
// Font Family Mixins
117-
@mixin serif {
118-
font-family: Palatino, "Palatino Linotype", "Book Antiqua", "Hoefler Text", Georgia, "Lucida Bright", Cambria, Times, "Times New Roman", serif;
119-
}
120-
121117
@mixin sans-serif {
122118
font-family: "Roboto", Corbel, Avenir, "Lucida Grande", "Lucida Sans", sans-serif;
123119
}

djangoproject/templates/styleguide.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ <h3 id="colors-secondarycolor">Secondary colors</h3>
104104
<h2>Typography</h2>
105105

106106
<p>
107-
The djangoproject.com website is set in both serif and sans-serif fonts. The serif font is <em>Palatino</em>, which is widely available as a system font. The sans-serif font is <em><a href="https://fonts.google.com/specimen/Roboto">Roboto</a></em>, a web font that is loaded via Google Fonts. 5 styles of this typeface are loaded, <em>Light (300)</em>, <em>Normal (400)</em>, <em>Normal Italic</em>, <em>Bold (700)</em> and <em>Bold Italic</em>. Refrain from using weights and italics that are not loaded.
107+
The djangoproject.com website is set in <em><a href="https://fonts.google.com/specimen/Roboto">Roboto</a></em>, a sans-serif font. 5 styles of this typeface are provided, <em>Light (300)</em>, <em>Normal (400)</em>, <em>Normal Italic</em>, <em>Bold (700)</em> and <em>Bold Italic</em>. Refrain from using weights and italics that are not loaded.
108108
</p>
109109

110110
<p>

0 commit comments

Comments
 (0)