You've already forked 98.css
mirror of
https://github.com/jdan/98.css.git
synced 2026-05-05 06:01:22 +09:00
@@ -94,7 +94,7 @@
|
||||
<p>
|
||||
This library relies on the usage of <strong>semantic HTML</strong>. To make a button, you'll need
|
||||
to use a <code><button></code>. Input elements require labels. Icon buttons rely on
|
||||
<code>aria-label</code>. This page will guide you through that process, but accessibility is a primary
|
||||
<code>aria-label</code> (or corresponding styling classes). This page will guide you through that process, but accessibility is a primary
|
||||
goal of this project.
|
||||
</p>
|
||||
|
||||
@@ -613,6 +613,43 @@
|
||||
</div>
|
||||
</div>
|
||||
`) %>
|
||||
|
||||
<p>
|
||||
Each <code>aria-label</code> also has a corresponding styling class to render the title bar buttons,
|
||||
to let the <code>aria-label</code> text be in other languages without causing rendering, accessibility, or localization issues.
|
||||
</p>
|
||||
|
||||
<%- example(`
|
||||
<div class="title-bar">
|
||||
<div class="title-bar-text">A Title Bar using Button Styling Classes</div>
|
||||
<div class="title-bar-controls">
|
||||
<button class="minimize"></button>
|
||||
<button class="maximize"></button>
|
||||
<button class="close"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<div class="title-bar">
|
||||
<div class="title-bar-text">A Maximized Title Bar using Button Styling Classes</div>
|
||||
<div class="title-bar-controls">
|
||||
<button class="minimize"></button>
|
||||
<button class="restore"></button>
|
||||
<button class="close"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<div class="title-bar">
|
||||
<div class="title-bar-text">A Helpful Bar using Button Styling Classes</div>
|
||||
<div class="title-bar-controls">
|
||||
<button class="help"></button>
|
||||
<button class="close"></button>
|
||||
</div>
|
||||
</div>
|
||||
`) %>
|
||||
<p>
|
||||
You can make a title bar "inactive" by adding <code>inactive</code> class,
|
||||
useful when making more than one window.
|
||||
|
||||
Reference in New Issue
Block a user