1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-04-17 21:38:27 +00:00

fix output color when bg is dark, add customizable font-size for output

This commit is contained in:
checktheroads 2019-12-02 19:40:56 -07:00
parent 48cfcc3a83
commit d8be35e7e3
3 changed files with 7 additions and 1 deletions

View file

@ -455,6 +455,9 @@ def params():
branding["font"]["mono"]["url"] = config["branding"]["font"]["mono"].get(
"url", "https://fonts.googleapis.com/css?family=Fira+Mono"
)
branding["font"]["mono"]["size"] = config["branding"]["font"]["mono"].get(
"size", "0.95em"
)
params_dict = dict(
general=general, branding=branding, features=features, messages=messages
)

View file

@ -7,6 +7,8 @@
$family-sans-serif: "{{ branding["font"]["primary"]["name"] }}", sans-serif;
$family-monospace: "{{ branding["font"]["mono"]["name"] }}", monospace;
$code-size: {{ branding["font"]["mono"]["size"] }};
/* Color Changes */
$body-background-color: {{ branding["color"]["background"] }};
$footer-background-color: transparent;

View file

@ -81,7 +81,8 @@ a.navbar-item:hover
.query-output
font-family: $family-monospace
font-size: 0.95em
font-size: $code-size
color: $dark !important
width: 100%
-webkit-overflow-scrolling: touch
overflow-x: auto