diff --git a/docs/index.html.ejs b/docs/index.html.ejs index f3b597b..4158173 100644 --- a/docs/index.html.ejs +++ b/docs/index.html.ejs @@ -37,6 +37,7 @@
  • TreeView
  • @@ -648,6 +649,48 @@ +
    +

    Status Bar

    +
    +
    + A status bar is a special area within a window, typically the bottom, that displays information + about the current state of what is being viewed in the window or any other contextual information, such as keyboard + state. + +
    + — Microsoft Windows User Experience p. 146 +
    +
    + +

    + You can render a status bar with the status-bar class, + and status-bar-field for every child text element. +

    + + <%- example(` +
    +
    +
    A Window With A Status Bar
    +
    +
    +

    There are just so many possibilities:

    +
      +
    • A Task Manager
    • +
    • A Notepad
    • +
    • Or even a File Explorer!
    • +
    +
    +
    +

    Press F1 for help

    +

    Slide 1

    +

    CPU Usage: 14%

    +
    +
    + `) %> + + +
    +

    TreeView

    diff --git a/style.css b/style.css index d5a6af2..0f83f4d 100644 --- a/style.css +++ b/style.css @@ -259,6 +259,20 @@ button:disabled, background-position: top 3px left 4px; } +.status-bar { + margin: 0px 1px; + display: flex; + gap: 1px; +} + +.status-bar-field { + box-shadow: inset -1px -1px #dfdfdf, + inset 1px 1px #808080; + flex-grow: 1; + padding: 2px 3px; + margin: 0; +} + .window-body { margin: var(--element-spacing); }