-
Notifications
You must be signed in to change notification settings - Fork 2.7k
luci-theme-bootstrap: use system font stack with CSS custom properties #8082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Can you further detail advantages, how this might improve upon what we have today? |
themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css
Outdated
Show resolved
Hide resolved
themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css
Outdated
Show resolved
Hide resolved
Replace hardcoded font-family declarations with CSS custom properties (--font-sans, --font-serif, --font-mono) that utilize system UI fonts. Signed-off-by: Akihiro Nagai <[email protected]>
543de06 to
0e17c6c
Compare
|
@314systems The source code should be fine. |
|
@systemcrash |
feckert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fin with that. But my point is that you change the current font.
| body { | ||
| background-color: var(--background-color-high); | ||
| font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
| font-family: var(-font-sans); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are changing the current font:
--font-sans: ui-sans-serif, system-ui, sans-serif;
| code, pre { | ||
| padding: 0 3px 2px; | ||
| font-family: Monaco, Andale Mono, Courier New, monospace; | ||
| font-family: var(--font-mono); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are changing the current font:
--font-mono: ui-monospace, monospace;
| button, | ||
| select { | ||
| font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
| font-family: var(--font-sans); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are changing the current font:
--font-sans: ui-sans-serif, system-ui, sans-serif;
|
|
||
| .btn .close, .alert-message .close { | ||
| font-family: Arial, sans-serif; | ||
| font-family: var(--font-sans); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are changing the current font:
--font-sans: ui-sans-serif, system-ui, sans-serif;
| color: var(--text-color-highest); | ||
| margin-bottom: 18px; | ||
| font-family: monospace; | ||
| font-family: var(--font-mono); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are changing the current font:
--font-mono: ui-monospace, monospace;
| overflow: auto; | ||
| vertical-align: top; | ||
| font-family: monospace; | ||
| font-family: var(--font-mono); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are changing the current font:
--font-mono: ui-monospace, monospace;
| .uci-dialog var { | ||
| text-decoration: none; | ||
| font-family: monospace; | ||
| font-family: var(--font-mono); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are changing the current font:
--font-mono: ui-monospace, monospace;
| color-scheme: light; | ||
|
|
||
| --font-sans: ui-sans-serif, system-ui, sans-serif; | ||
| --font-serif: ui-serif, serif; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this is not used?
Signed-off-by: <[email protected]>row (viagit commit --signoff)<package name>: titlefirst line subject for packagesPKG_VERSIONin the Makefile