mirror of
https://github.com/jdan/98.css.git
synced 2025-08-20 04:32:11 +02:00
add a treeview and start the readme
This commit is contained in:
111
docs/backup.html
Normal file
111
docs/backup.html
Normal file
@@ -0,0 +1,111 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="stylesheet" href="/style.css?t=1"></style>
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
height: 100vh;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
background: var(--dialog-blue);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="dialog" style="width: 400px">
|
||||||
|
<div class="menubar">
|
||||||
|
<div class="menubar-title">
|
||||||
|
Windows 98 Example
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="menubar-controls">
|
||||||
|
<button aria-label="Minimize"></button>
|
||||||
|
<button aria-label="Maximize"></button>
|
||||||
|
<button aria-label="Close"></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="dialog-body">
|
||||||
|
<section>This is an example window with some controls.</section>
|
||||||
|
|
||||||
|
<fieldset>
|
||||||
|
<legend>I think it's</legend>
|
||||||
|
<div class="field-row">
|
||||||
|
<input checked id="cool" type="radio" value="cool" name="answer">
|
||||||
|
<label for="cool">Cool</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="field-row">
|
||||||
|
<input id="meh" type="radio" value="meh" name="answer">
|
||||||
|
<label for="meh">Meh</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="field-row">
|
||||||
|
<input disabled id="idk" type="radio" value="idk" name="answer">
|
||||||
|
<label for="idk">Idk</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="field-row-stacked" style="max-width: 160px">
|
||||||
|
<label for="reason">Reason:</label>
|
||||||
|
<select>
|
||||||
|
<option>Nostalgia</option>
|
||||||
|
<option>It looks sharp</option>
|
||||||
|
<option>It's confusing</option>
|
||||||
|
<option>It looks dated</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<fieldset>
|
||||||
|
<legend>Checkboxes</legend>
|
||||||
|
<div class="field-row">
|
||||||
|
<input checked id="option1" type="checkbox">
|
||||||
|
<label for="option1">Option 1</label>
|
||||||
|
</div>
|
||||||
|
<div class="field-row">
|
||||||
|
<input id="option2" type="checkbox">
|
||||||
|
<label for="option2">Option 2</label>
|
||||||
|
</div>
|
||||||
|
<div class="field-row">
|
||||||
|
<input checked disabled id="option2" type="checkbox">
|
||||||
|
<label for="option2">Option 2</label>
|
||||||
|
</div>
|
||||||
|
<div class="field-row">
|
||||||
|
<input disabled id="option2" type="checkbox">
|
||||||
|
<label for="option2">Option 2</label>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<div class="field-row-stacked" style="max-width: 168px">
|
||||||
|
<label for="else">Anything else to add?</label>
|
||||||
|
<input type="text" id="else">
|
||||||
|
<textarea rows=8></textarea>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<!-- maybe want some sort of "panel" idk -->
|
||||||
|
<div id="panel">
|
||||||
|
<div style="height: 1200px">
|
||||||
|
<p>This is some text</p>
|
||||||
|
<p>if there's enough of it</p>
|
||||||
|
<p>it should scroll</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="field-row align-right">
|
||||||
|
<button>OK</button>
|
||||||
|
<button>Cancel</button>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<a href="https://google.com">Learn more</a>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
121
docs/index.html
121
docs/index.html
@@ -7,105 +7,38 @@
|
|||||||
height: 100vh;
|
height: 100vh;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background: var(--dialog-blue);
|
background: var(--surface);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
}
|
||||||
justify-content: center;
|
|
||||||
|
body > * {
|
||||||
|
margin: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body > * + * {
|
||||||
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="dialog" style="width: 400px">
|
<ul class="treeview">
|
||||||
<div class="menubar">
|
<li><a href="#intro">Intro</a></li>
|
||||||
<div class="menubar-title">
|
<li>
|
||||||
Windows 98 Example
|
<a href="#components">Components</a>
|
||||||
</div>
|
<ul>
|
||||||
|
<li><a href="#button">Button</a></li>
|
||||||
|
<li><a href="#dialog">Dialog</a></li>
|
||||||
|
<li><a href="#checkbox">Checkbox</a></li>
|
||||||
|
<li><a href="#option-button">OptionButton</a></li>
|
||||||
|
<li><a href="#text-box">TextBox</a></li>
|
||||||
|
<li><a href="#multiline-text-box">Multiline TextBox</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="#extras">Extras</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
<div class="menubar-controls">
|
<main>
|
||||||
<button aria-label="Minimize"></button>
|
This is the main body!
|
||||||
<button aria-label="Maximize"></button>
|
</main>
|
||||||
<button aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="dialog-body">
|
|
||||||
<section>This is an example window with some controls.</section>
|
|
||||||
|
|
||||||
<fieldset>
|
|
||||||
<legend>I think it's</legend>
|
|
||||||
<div class="field-row">
|
|
||||||
<input checked id="cool" type="radio" value="cool" name="answer">
|
|
||||||
<label for="cool">Cool</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="field-row">
|
|
||||||
<input id="meh" type="radio" value="meh" name="answer">
|
|
||||||
<label for="meh">Meh</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="field-row">
|
|
||||||
<input disabled id="idk" type="radio" value="idk" name="answer">
|
|
||||||
<label for="idk">Idk</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="field-row-stacked" style="max-width: 160px">
|
|
||||||
<label for="reason">Reason:</label>
|
|
||||||
<select>
|
|
||||||
<option>Nostalgia</option>
|
|
||||||
<option>It looks sharp</option>
|
|
||||||
<option>It's confusing</option>
|
|
||||||
<option>It looks dated</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<fieldset>
|
|
||||||
<legend>Checkboxes</legend>
|
|
||||||
<div class="field-row">
|
|
||||||
<input checked id="option1" type="checkbox">
|
|
||||||
<label for="option1">Option 1</label>
|
|
||||||
</div>
|
|
||||||
<div class="field-row">
|
|
||||||
<input id="option2" type="checkbox">
|
|
||||||
<label for="option2">Option 2</label>
|
|
||||||
</div>
|
|
||||||
<div class="field-row">
|
|
||||||
<input checked disabled id="option2" type="checkbox">
|
|
||||||
<label for="option2">Option 2</label>
|
|
||||||
</div>
|
|
||||||
<div class="field-row">
|
|
||||||
<input disabled id="option2" type="checkbox">
|
|
||||||
<label for="option2">Option 2</label>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<section>
|
|
||||||
<div class="field-row-stacked" style="max-width: 168px">
|
|
||||||
<label for="else">Anything else to add?</label>
|
|
||||||
<input type="text" id="else">
|
|
||||||
<textarea rows=8></textarea>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section>
|
|
||||||
<!-- maybe want some sort of "panel" idk -->
|
|
||||||
<div id="panel">
|
|
||||||
<div style="height: 1200px">
|
|
||||||
<p>This is some text</p>
|
|
||||||
<p>if there's enough of it</p>
|
|
||||||
<p>it should scroll</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class="field-row align-right">
|
|
||||||
<button>OK</button>
|
|
||||||
<button>Cancel</button>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section>
|
|
||||||
<a href="https://google.com">Learn more</a>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
59
style.css
59
style.css
@@ -349,10 +349,61 @@ a:focus {
|
|||||||
outline: 1px dotted var(--link-blue);
|
outline: 1px dotted var(--link-blue);
|
||||||
}
|
}
|
||||||
|
|
||||||
#panel {
|
ul.treeview {
|
||||||
width: 168px;
|
background: var(--button-highlight);
|
||||||
height: 120px;
|
box-shadow: var(--border-field);
|
||||||
overflow: scroll;
|
padding: 6px 20px 6px 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.treeview li {
|
||||||
|
list-style-type: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.treeview a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.treeview a:focus {
|
||||||
|
background-color: var(--dialog-blue);
|
||||||
|
color: var(--button-highlight);
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.treeview ul,
|
||||||
|
ul.treeview li {
|
||||||
|
margin-top: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.treeview ul {
|
||||||
|
margin-left: 16px;
|
||||||
|
padding-left: 16px;
|
||||||
|
/* Goes down too far */
|
||||||
|
border-left: 1px dotted #808080;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.treeview ul > li {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
ul.treeview ul > li::before {
|
||||||
|
content: "";
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
left: -16px;
|
||||||
|
top: 6px;
|
||||||
|
width: 12px;
|
||||||
|
border-bottom: 1px dotted #808080;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Cover the bottom of the left dotted border */
|
||||||
|
ul.treeview ul > li:last-child::after {
|
||||||
|
content: "";
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
left: -20px;
|
||||||
|
top: 7px;
|
||||||
|
bottom: 0px;
|
||||||
|
width: 8px;
|
||||||
|
background: var(--button-highlight);
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
|
Reference in New Issue
Block a user