mirror of
https://github.com/jdan/98.css.git
synced 2025-01-17 12:48:32 +01:00
add a treeview and start the readme
This commit is contained in:
parent
0cbf7e5305
commit
666d3457a6
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;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: var(--dialog-blue);
|
||||
background: var(--surface);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
body > * {
|
||||
margin: 4px;
|
||||
}
|
||||
|
||||
body > * + * {
|
||||
margin-right: 8px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="dialog" style="width: 400px">
|
||||
<div class="menubar">
|
||||
<div class="menubar-title">
|
||||
Windows 98 Example
|
||||
</div>
|
||||
<ul class="treeview">
|
||||
<li><a href="#intro">Intro</a></li>
|
||||
<li>
|
||||
<a href="#components">Components</a>
|
||||
<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">
|
||||
<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>
|
||||
<main>
|
||||
This is the main body!
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
59
style.css
59
style.css
@ -349,10 +349,61 @@ a:focus {
|
||||
outline: 1px dotted var(--link-blue);
|
||||
}
|
||||
|
||||
#panel {
|
||||
width: 168px;
|
||||
height: 120px;
|
||||
overflow: scroll;
|
||||
ul.treeview {
|
||||
background: var(--button-highlight);
|
||||
box-shadow: var(--border-field);
|
||||
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user