mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-04 20:36: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
|
||||
edit_mode: normal
|
||||
show_beta_msg: true
|
||||
google_fonts: true
|
||||
enable_auto_updates_check: true
|
||||
popularity:
|
||||
enabled: true
|
||||
|
||||
@@ -57,6 +57,18 @@ form:
|
||||
expert: Expert
|
||||
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:
|
||||
type: toggle
|
||||
label: Show Beta Message
|
||||
|
||||
@@ -160,6 +160,12 @@ h1, h2, h3, h4, h5, h6 {
|
||||
text-rendering: optimizeLegibility;
|
||||
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 {
|
||||
font-size: 3.2rem; }
|
||||
@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;
|
||||
}
|
||||
|
||||
// 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 {
|
||||
font-size: $h1-font-size;
|
||||
@include breakpoint(mobile-only) {
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<body {% if not config.plugins.admin.google_fonts %}class="simple-fonts"{% endif %}>
|
||||
{% block page %}
|
||||
<div class="remodal-bg">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user