commit
b7c9fa5e7d
2 changed files with 57 additions and 0 deletions
|
|
@ -37,6 +37,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#title-bar">Title Bar</a></li>
|
<li><a href="#title-bar">Title Bar</a></li>
|
||||||
<li><a href="#window-contents">Window contents</a></li>
|
<li><a href="#window-contents">Window contents</a></li>
|
||||||
|
<li><a href="#status-bar">Status Bar</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#tree-view">TreeView</a></li>
|
<li><a href="#tree-view">TreeView</a></li>
|
||||||
|
|
@ -648,6 +649,48 @@
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<section class="component">
|
||||||
|
<h4 id="status-bar">Status Bar</h4>
|
||||||
|
<div>
|
||||||
|
<blockquote>
|
||||||
|
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.
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
— Microsoft Windows User Experience p. 146
|
||||||
|
</footer>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
You can render a status bar with the <code>status-bar</code> class,
|
||||||
|
and <code>status-bar-field</code> for every child text element.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<%- example(`
|
||||||
|
<div class="window" style="width: 320px">
|
||||||
|
<div class="title-bar">
|
||||||
|
<div class="title-bar-text">A Window With A Status Bar</div>
|
||||||
|
</div>
|
||||||
|
<div class="window-body">
|
||||||
|
<p> There are just so many possibilities:</p>
|
||||||
|
<ul>
|
||||||
|
<li>A Task Manager</li>
|
||||||
|
<li>A Notepad</li>
|
||||||
|
<li>Or even a File Explorer!</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="status-bar">
|
||||||
|
<p class="status-bar-field">Press F1 for help</p>
|
||||||
|
<p class="status-bar-field">Slide 1</p>
|
||||||
|
<p class="status-bar-field">CPU Usage: 14%</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
`) %>
|
||||||
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
<section class="component">
|
<section class="component">
|
||||||
<h3 id="tree-view">TreeView</h3>
|
<h3 id="tree-view">TreeView</h3>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
||||||
14
style.css
14
style.css
|
|
@ -259,6 +259,20 @@ button:disabled,
|
||||||
background-position: top 3px left 4px;
|
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 {
|
.window-body {
|
||||||
margin: var(--element-spacing);
|
margin: var(--element-spacing);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue