mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-12 08:49:48 +00:00
Default to sans-serif font
This commit is contained in:
parent
c2a46f3b8b
commit
b2b2d5ac96
2
docs/_static/custom.js
vendored
2
docs/_static/custom.js
vendored
@ -44,7 +44,7 @@ function getRootAttributeToggle(attributeName, valueName) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const settings = {
|
const settings = {
|
||||||
useSansFont: getRootAttributeToggle('font', 'sans'),
|
useSerifFont: getRootAttributeToggle('font', 'serif'),
|
||||||
useDarkTheme: getRootAttributeToggle('theme', 'dark')
|
useDarkTheme: getRootAttributeToggle('theme', 'dark')
|
||||||
};
|
};
|
||||||
|
|
||||||
|
6
docs/_static/style.css
vendored
6
docs/_static/style.css
vendored
@ -18,7 +18,7 @@ Historically however, thanks to:
|
|||||||
|
|
||||||
/* CSS variables would go here */
|
/* CSS variables would go here */
|
||||||
:root {
|
:root {
|
||||||
--font-family: 'Georgia', 'Yu Gothic', 'Noto Sans CJK JP Regular', serif;
|
--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||||
|
|
||||||
/* base palette */
|
/* base palette */
|
||||||
--white: #ffffff;
|
--white: #ffffff;
|
||||||
@ -104,8 +104,8 @@ Historically however, thanks to:
|
|||||||
--attribute-table-badge: var(--grey-7);
|
--attribute-table-badge: var(--grey-7);
|
||||||
}
|
}
|
||||||
|
|
||||||
:root[data-font="sans"] {
|
:root[data-font="serif"] {
|
||||||
--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
--font-family: 'Georgia', 'Yu Gothic', 'Noto Sans CJK JP Regular', serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
:root[data-theme="dark"] {
|
:root[data-theme="dark"] {
|
||||||
|
6
docs/_templates/layout.html
vendored
6
docs/_templates/layout.html
vendored
@ -142,10 +142,10 @@
|
|||||||
<h1>Settings</h1>
|
<h1>Settings</h1>
|
||||||
|
|
||||||
<div class='setting'>
|
<div class='setting'>
|
||||||
<h3>Use a sans-serif font:
|
<h3>Use a serif font:
|
||||||
<label class="toggle"
|
<label class="toggle"
|
||||||
title="Use a sans serif font? Your system font will be used, falling back to `sans-serif`.">
|
title="Use a serif font? Your system font will be used, falling back to serif.">
|
||||||
<input type="checkbox" name="useSansFont" onclick="updateSetting(this);">
|
<input type="checkbox" name="useSerifFont" onclick="updateSetting(this);">
|
||||||
<span class="toggle-slider"></span>
|
<span class="toggle-slider"></span>
|
||||||
</label>
|
</label>
|
||||||
</h3>
|
</h3>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user