mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-05 04:46:03 +01:00
Added option to disable google fonts. Helpful with cyrillic languages for example
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
@@ -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) {
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user