Skip to content

Commit

Permalink
Minor cosmetic tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
vkottler committed Oct 18, 2024
1 parent 4a4872d commit 97d4d33
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 32 deletions.
10 changes: 3 additions & 7 deletions runtimepy/data/css/bootstrap_extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,8 @@ button:hover {
width: 6em;
}

/*
* Should probably build the bootstrap stuff from source and set custom Sass:
* https://getbootstrap.com/docs/5.3/customize/sass/
*/

/* Prefer 'CascadiaCode' and 'CascadiaMono' at the highest priority. */
:root {
--bs-font-sans-serif: CascadiaCode;
--bs-font-monospace: CascadiaMono;
--bs-font-sans-serif: CascadiaCode, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--bs-font-monospace: CascadiaMono, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
16 changes: 8 additions & 8 deletions runtimepy/data/css/font.css
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
@font-face {
font-family: CascadiaCode;
src: url("static/woff2/CascadiaCode-Regular.woff2");
src: url("/static/woff2/CascadiaCode-Regular.woff2");
}

@font-face {
font-family: CascadiaCode;
src: url("static/woff2/CascadiaCode-Bold.woff2");
src: url("/static/woff2/CascadiaCode-Bold.woff2");
font-weight: bold;
}

@font-face {
font-family: CascadiaCode;
src: url("static/woff2/CascadiaCode-BoldItalic.woff2");
src: url("/static/woff2/CascadiaCode-BoldItalic.woff2");
font-weight: bold;
font-style: italic;
}

@font-face {
font-family: CascadiaCode;
src: url("static/woff2/CascadiaCode-Italic.woff2");
src: url("/static/woff2/CascadiaCode-Italic.woff2");
font-style: italic;
}

@font-face {
font-family: CascadiaMono;
src: url("static/woff2/CascadiaMono-Regular.woff2");
src: url("/static/woff2/CascadiaMono-Regular.woff2");
}

@font-face {
font-family: CascadiaMono;
src: url("static/woff2/CascadiaMono-Bold.woff2");
src: url("/static/woff2/CascadiaMono-Bold.woff2");
font-weight: bold;
}

@font-face {
font-family: CascadiaMono;
src: url("static/woff2/CascadiaMono-BoldItalic.woff2");
src: url("/static/woff2/CascadiaMono-BoldItalic.woff2");
font-weight: bold;
font-style: italic;
}

@font-face {
font-family: CascadiaMono;
src: url("static/woff2/CascadiaMono-Italic.woff2");
src: url("/static/woff2/CascadiaMono-Italic.woff2");
font-style: italic;
}
Binary file modified runtimepy/data/favicon.ico
Binary file not shown.
22 changes: 22 additions & 0 deletions runtimepy/data/static/svg/chip-circle-bootstrap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions runtimepy/data/static/woff2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ Assets sourced from

See also:
[LICENSE](https://github.com/microsoft/cascadia-code/blob/main/LICENSE).

**Fonts are used from release as-is.**
7 changes: 5 additions & 2 deletions runtimepy/net/server/app/env/tab/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ def create_name_td(parent: Element) -> Element:
return div(tag="td", parent=parent, class_str="p-0 text-nowrap")


COMMANDABLE = "text-info-emphasis"


class ChannelEnvironmentTabHtml(ChannelEnvironmentTabControls):
"""A channel-environment tab interface."""

Expand All @@ -67,7 +70,7 @@ def add_channel(

name_elem = div(tag="span", text=name, parent=name_td)
if chan.commandable:
name_elem.add_class("text-success")
name_elem.add_class(COMMANDABLE)

if description:
set_tooltip(name_elem, description, placement="left")
Expand Down Expand Up @@ -105,7 +108,7 @@ def add_field(

name_elem = div(tag="span", text=name, parent=name_td)
if field.commandable:
name_elem.add_class("text-success")
name_elem.add_class(COMMANDABLE)

if field.description:
description = field.description
Expand Down
19 changes: 4 additions & 15 deletions tasks/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,13 @@ port_overrides:
# websocket_hostname: nuc2

config:
top_markdown: &sample |
top_markdown: |
# Libre Embedded
# `Libre Embedded`
![logo](/static/svg/chip-circle-bootstrap.svg)
# *Libre Embedded*

# *`Libre Embedded`*

# **Libre Embedded**

# **`Libre Embedded`**

# ***Libre Embedded***

# ***`Libre Embedded`***

bottom_markdown: *sample
bottom_markdown: |
`libre-embedded.com`
app:
- runtimepy.net.apps.wait_for_stop

0 comments on commit 97d4d33

Please sign in to comment.