Added option to disable google fonts. Helpful with cyrillic languages for example

This commit is contained in:
Andy Miller
2015-09-18 10:47:44 -06:00
parent 8055dfc8ba
commit 9d48c9c1d0
6 changed files with 31 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ warnings:
delete_page: true delete_page: true
edit_mode: normal edit_mode: normal
show_beta_msg: true show_beta_msg: true
google_fonts: true
enable_auto_updates_check: true enable_auto_updates_check: true
popularity: popularity:
enabled: true enabled: true

View File

@@ -57,6 +57,18 @@ form:
expert: Expert expert: Expert
help: Auto will use blueprint if available, if none found, it will use "Expert" mode. help: Auto will use blueprint if available, if none found, it will use "Expert" mode.
google_fonts:
type: toggle
label: Use Google Fonts
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
help: Use Google custom fonts. Disable this to use Helvetica. Useful when using Cyrillic and other languages with unsupported characters.
show_beta_msg: show_beta_msg:
type: toggle type: toggle
label: Show Beta Message label: Show Beta Message

View File

@@ -160,6 +160,12 @@ h1, h2, h3, h4, h5, h6 {
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
letter-spacing: -0px; } letter-spacing: -0px; }
body.simple-fonts {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important; }
body.simple-fonts h1, body.simple-fonts h2, body.simple-fonts h3, body.simple-fonts h4, body.simple-fonts h5, body.simple-fonts h6, body.simple-fonts #admin-menu li, body.simple-fonts .button, body.simple-fonts .tab-bar, body.simple-fonts .badge, body.simple-fonts #admin-main .grav-mdeditor-preview, body.simple-fonts .form .note,
body.simple-fonts .form-tabs, body.simple-fonts input, body.simple-fonts select, body.simple-fonts textarea, body.simple-fonts button, body.simple-fonts .selectize-input, body.simple-fonts .form-order-wrapper ul#ordering li {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important; }
h1 { h1 {
font-size: 3.2rem; } font-size: 3.2rem; }
@media only all and (max-width: 47.938em) { @media only all and (max-width: 47.938em) {

File diff suppressed because one or more lines are too long

View File

@@ -12,6 +12,16 @@ h1, h2, h3, h4, h5, h6 {
letter-spacing: -0px; letter-spacing: -0px;
} }
// Simple fonts for Cyrillic and other fonts.
body.simple-fonts {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
h1, h2, h3, h4, h5, h6, #admin-menu li, .button, .tab-bar, .badge, #admin-main .grav-mdeditor-preview, .form .note,
.form-tabs, input, select, textarea, button, .selectize-input, .form-order-wrapper ul#ordering li {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}
}
h1 { h1 {
font-size: $h1-font-size; font-size: $h1-font-size;
@include breakpoint(mobile-only) { @include breakpoint(mobile-only) {

View File

@@ -66,7 +66,7 @@
{% endblock %} {% endblock %}
{% endblock %} {% endblock %}
</head> </head>
<body> <body {% if not config.plugins.admin.google_fonts %}class="simple-fonts"{% endif %}>
{% block page %} {% block page %}
<div class="remodal-bg"> <div class="remodal-bg">