diff --git a/bun.lock b/bun.lock
index e127305..2968c36 100644
--- a/bun.lock
+++ b/bun.lock
@@ -47,6 +47,7 @@
"packages/webapp": {
"name": "@website/webapp",
"dependencies": {
+ "98.css": "^0.1.21",
"@effect/platform": "^0.92.0",
"@effect/platform-browser": "^0.72.0",
"@effect/rpc": "^0.71.0",
@@ -66,6 +67,7 @@
"react-dom": "^19.1.1",
"react-i18next": "^16.0.1",
"react-icons": "^5.5.0",
+ "react-shadow": "^20.6.0",
"tailwind-merge": "^3.3.1",
"tailwindcss": "^4.1.13",
},
@@ -84,6 +86,8 @@
},
},
"packages": {
+ "98.css": ["98.css@0.1.21", "", {}, "sha512-ddk5qtUWyapM0Bzd5jwGExoE5fdSEGrP+F5VbYjyZLf2c9UVmn6w2NPTvCsoD4BWdGsjdLjlkQGhWwWTJcYQJQ=="],
+
"@babel/code-frame": ["@babel/code-frame@7.27.1", "", { "dependencies": { "@babel/helper-validator-identifier": "^7.27.1", "js-tokens": "^4.0.0", "picocolors": "^1.1.1" } }, "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg=="],
"@babel/compat-data": ["@babel/compat-data@7.28.4", "", {}, "sha512-YsmSKC29MJwf0gF8Rjjrg5LQCmyh+j/nD8/eP7f+BeoQTKYqs9RoWbjGOdy0+1Ekr68RJZMUOPVQaQisnIo4Rw=="],
@@ -738,6 +742,8 @@
"html-parse-stringify": ["html-parse-stringify@3.0.1", "", { "dependencies": { "void-elements": "3.1.0" } }, "sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg=="],
+ "humps": ["humps@2.0.1", "", {}, "sha512-E0eIbrFWUhwfXJmsbdjRQFQPrl5pTEoKlz163j1mTqqUnU9PgR4AgB8AIITzuB3vLBdxZXyZ9TDIrwB2OASz4g=="],
+
"i18next": ["i18next@25.6.0", "", { "dependencies": { "@babel/runtime": "^7.27.6" }, "peerDependencies": { "typescript": "^5" }, "optionalPeers": ["typescript"] }, "sha512-tTn8fLrwBYtnclpL5aPXK/tAYBLWVvoHM1zdfXoRNLcI+RvtMsoZRV98ePlaW3khHYKuNh/Q65W/+NVFUeIwVw=="],
"i18next-browser-languagedetector": ["i18next-browser-languagedetector@8.2.0", "", { "dependencies": { "@babel/runtime": "^7.23.2" } }, "sha512-P+3zEKLnOF0qmiesW383vsLdtQVyKtCNA9cjSoKCppTKPQVfKd2W8hbVo5ZhNJKDqeM7BOcvNoKJOjpHh4Js9g=="],
@@ -812,6 +818,8 @@
"long": ["long@5.3.2", "", {}, "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA=="],
+ "loose-envify": ["loose-envify@1.4.0", "", { "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, "bin": { "loose-envify": "cli.js" } }, "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q=="],
+
"lru-cache": ["lru-cache@5.1.1", "", { "dependencies": { "yallist": "^3.0.2" } }, "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w=="],
"lucide-react": ["lucide-react@0.545.0", "", { "peerDependencies": { "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-7r1/yUuflQDSt4f1bpn5ZAocyIxcTyVyBBChSVtBKn5M+392cPmI5YJMWOJKk/HUWGm5wg83chlAZtCcGbEZtw=="],
@@ -854,6 +862,8 @@
"npm-sort": ["npm-sort@0.0.4", "", { "bin": { "npm-sort": "./index.js" } }, "sha512-S5Id/3Jvr7Cf/QnWjRteprngERCBhhEFOM+wMhUrAYP060/HUBC1aL5GoXS3xITlgacJCWaSmP4HQaAt91nNYQ=="],
+ "object-assign": ["object-assign@4.1.1", "", {}, "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg=="],
+
"optionator": ["optionator@0.9.4", "", { "dependencies": { "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", "type-check": "^0.4.0", "word-wrap": "^1.2.5" } }, "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g=="],
"p-limit": ["p-limit@3.1.0", "", { "dependencies": { "yocto-queue": "^0.1.0" } }, "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ=="],
@@ -880,6 +890,8 @@
"prettier": ["prettier@3.6.2", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ=="],
+ "prop-types": ["prop-types@15.8.1", "", { "dependencies": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", "react-is": "^16.13.1" } }, "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg=="],
+
"protobufjs": ["protobufjs@7.5.4", "", { "dependencies": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", "@protobufjs/codegen": "^2.0.4", "@protobufjs/eventemitter": "^1.1.0", "@protobufjs/fetch": "^1.1.0", "@protobufjs/float": "^1.0.2", "@protobufjs/inquire": "^1.1.0", "@protobufjs/path": "^1.1.2", "@protobufjs/pool": "^1.1.0", "@protobufjs/utf8": "^1.1.0", "@types/node": ">=13.7.0", "long": "^5.0.0" } }, "sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg=="],
"punycode": ["punycode@2.3.1", "", {}, "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg=="],
@@ -896,8 +908,12 @@
"react-icons": ["react-icons@5.5.0", "", { "peerDependencies": { "react": "*" } }, "sha512-MEFcXdkP3dLo8uumGI5xN3lDFNsRtrjbOEKDLD7yv76v4wpnEq2Lt2qeHaQOr34I/wPN3s3+N08WkQ+CW37Xiw=="],
+ "react-is": ["react-is@16.13.1", "", {}, "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="],
+
"react-refresh": ["react-refresh@0.17.0", "", {}, "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ=="],
+ "react-shadow": ["react-shadow@20.6.0", "", { "dependencies": { "humps": "^2.0.1" }, "peerDependencies": { "prop-types": "^15.0.0", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-kY+w4OMNZ8Nj9YI9eiTgvvJ/wYO7XyX1D/LYhvwQZv5vw69iCiDtGB0BX/2U8gLUuZAMN+x/7rHJKqHh8wXFHQ=="],
+
"readdirp": ["readdirp@3.6.0", "", { "dependencies": { "picomatch": "^2.2.1" } }, "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA=="],
"recast": ["recast@0.23.11", "", { "dependencies": { "ast-types": "^0.16.1", "esprima": "~4.0.0", "source-map": "~0.6.1", "tiny-invariant": "^1.3.3", "tslib": "^2.0.1" } }, "sha512-YTUo+Flmw4ZXiWfQKGcwwc11KnoRAYgzAE2E7mXKCjSviTKShtxBsN6YUUBB2gtaBzKzeKunxhUwNHQuRryhWA=="],
diff --git a/packages/webapp/package.json b/packages/webapp/package.json
index e8d8170..8958607 100644
--- a/packages/webapp/package.json
+++ b/packages/webapp/package.json
@@ -14,6 +14,7 @@
"clean:modules": "rm -rf node_modules"
},
"dependencies": {
+ "98.css": "^0.1.21",
"@effect/platform": "^0.92.0",
"@effect/platform-browser": "^0.72.0",
"@effect/rpc": "^0.71.0",
@@ -33,6 +34,7 @@
"react-dom": "^19.1.1",
"react-i18next": "^16.0.1",
"react-icons": "^5.5.0",
+ "react-shadow": "^20.6.0",
"tailwind-merge": "^3.3.1",
"tailwindcss": "^4.1.13"
},
diff --git a/packages/webapp/public/98.css/.editorconfig b/packages/webapp/public/98.css/.editorconfig
new file mode 100644
index 0000000..07552cf
--- /dev/null
+++ b/packages/webapp/public/98.css/.editorconfig
@@ -0,0 +1,18 @@
+# https://editorconfig.org
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+indent_size = 2
+indent_style = space
+insert_final_newline = true
+max_line_length = 80
+trim_trailing_whitespace = true
+
+[*.md]
+max_line_length = 0
+trim_trailing_whitespace = false
+
+[COMMIT_EDITMSG]
+max_line_length = 0
diff --git a/packages/webapp/public/98.css/.github/workflows/npm-publish.yml b/packages/webapp/public/98.css/.github/workflows/npm-publish.yml
new file mode 100644
index 0000000..17a83f5
--- /dev/null
+++ b/packages/webapp/public/98.css/.github/workflows/npm-publish.yml
@@ -0,0 +1,23 @@
+# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
+# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
+
+name: Publish to NPM
+
+on:
+ workflow_dispatch:
+ release:
+ types: [published]
+
+jobs:
+ publish-npm:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions/setup-node@v3
+ with:
+ node-version: 16
+ registry-url: https://registry.npmjs.org/
+ - run: npm ci
+ - run: npm run release
+ env:
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
diff --git a/packages/webapp/public/98.css/LICENSE b/packages/webapp/public/98.css/LICENSE
new file mode 100644
index 0000000..55b4959
--- /dev/null
+++ b/packages/webapp/public/98.css/LICENSE
@@ -0,0 +1,7 @@
+Copyright 2020 Jordan Scales
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/packages/webapp/public/98.css/README.md b/packages/webapp/public/98.css/README.md
new file mode 100644
index 0000000..3fa4de2
--- /dev/null
+++ b/packages/webapp/public/98.css/README.md
@@ -0,0 +1,76 @@
+## 98.css
+
+[](http://npm.im/98.css)
+[](https://unpkg.com/98.css)
+
+A design system for building faithful recreations of old UIs.
+
+
+
+98.css is a CSS file that takes semantic HTML and makes it look pretty. It does not ship with any JavaScript, so it is compatible with your frontend framework of choice.
+
+Be sure to check out [XP.css](https://botoxparty.github.io/XP.css/) and [7.css](https://khang-nd.github.io/7.css/) as well.
+
+### Installation / Usage
+
+The easiest way to use 98.css is to import it from [unpkg](https://unpkg.com/).
+
+```html
+
+
+
+ 98.css example
+
+
+
+
+
+
+
+
+ My First VB4 Program
+
+
+
+
Hello, world!
+
+
+
+
+```
+
+Alternatively, you can grab 98.css for [the releases page](https://github.com/jdan/98.css/releases) or [npm](https://www.npmjs.com/package/98.css).
+
+```
+npm install 98.css
+```
+
+Here is an example of [98.css being used with React](https://codesandbox.io/s/objective-chandrasekhar-t5t6h?file=/src/index.js), and [an example with vanilla JavaScript](https://codesandbox.io/s/late-sound-miqho?file=/index.html).
+
+Refer to the [documentation page](https://jdan.github.io/98.css/) for specific instructions on this library's components.
+
+### Developing
+
+First, run `npm install`.
+
+[`style.css`](https://github.com/jdan/98.css/blob/main/style.css) is where everything happens.
+
+You can use `npm start` to start a development environment that will watch for file changes and rebuild 98.css, reloading your browser in the process.
+
+You can run a build manually with `npm run build`. This will write to the `dist/` directory.
+
+### Issues, Contributing, etc.
+
+Refer to [the GitHub issues page](https://github.com/jdan/98.css/issues) to see bugs in my CSS or report new ones. I'd really like to see your pull requests (especially those new to open-source!) and will happily provide code review. 98.css is a fun, silly project and I'd like to make it a fun place to build your open-source muscle.
+
+Thank you for checking my little project out, I hope it brought you some joy today. Consider [starring/following along on GitHub](https://github.com/jdan/98.css/stargazers) and maybe subscribing to more fun things on [my twitter](https://twitter.com/jdan). 👋
+
+### Publishing
+
+Building the docs site: `npm run deploy:docs`
+
+Publishing to npm: `npm run release`
+
+### License
+
+[MIT](https://github.com/jdan/98.css/blob/main/LICENSE)
diff --git a/packages/webapp/public/98.css/build.js b/packages/webapp/public/98.css/build.js
new file mode 100644
index 0000000..3e4bbf0
--- /dev/null
+++ b/packages/webapp/public/98.css/build.js
@@ -0,0 +1,81 @@
+#!/usr/bin/env node
+const dedent = require("dedent");
+const ejs = require("ejs");
+const fs = require("fs");
+const glob = require("glob");
+const hljs = require("highlight.js");
+const mkdirp = require("mkdirp");
+const path = require("path");
+const postcss = require("postcss");
+
+const { homepage, version } = require("./package.json");
+
+function buildCSS() {
+ const input =
+ `/*! 98.css v${version} - ${homepage} */\n` + fs.readFileSync("style.css");
+
+ return postcss()
+ .use(require("postcss-inline-svg"))
+ .use(require("postcss-css-variables"))
+ .use(require("postcss-calc"))
+ .use(require("postcss-copy")({ dest: "dist", template: "[name].[ext]" }))
+ .use(require("cssnano"))
+ .process(input, {
+ from: "style.css",
+ to: "dist/98.css",
+ map: { inline: false },
+ })
+ .then((result) => {
+ mkdirp.sync("dist");
+ fs.writeFileSync("dist/98.css", result.css);
+ fs.writeFileSync("dist/98.css.map", result.map.toString());
+ });
+}
+
+function buildDocs() {
+ let id = 0;
+ function getNewId() {
+ return ++id;
+ }
+ function getCurrentId() {
+ return id;
+ }
+
+ const template = fs.readFileSync("docs/index.html.ejs", "utf-8");
+ function example(code) {
+ const magicBrackets = /\[\[(.*)\]\]/g;
+ const dedented = dedent(code);
+ const inline = dedented.replace(magicBrackets, "$1");
+ const escaped = hljs.highlight("html", dedented.replace(magicBrackets, ""))
+ .value;
+
+ return `
+ 98.css is a CSS library for building interfaces that look like Windows 98.
+ See more on GitHub.
+
+
+
+
+
+ My First VB4 Program
+
+
+
+
+
+
+
+
+
+
Hello, world!
+
+
+
+
+
+
+
+
+ This library relies on the usage of semantic HTML. To make a button, you'll need
+ to use a <button>. Input elements require labels. Icon buttons rely on
+ aria-label. This page will guide you through that process, but accessibility is a primary
+ goal of this project.
+
+
+
+ You can override many of the styles of your elements while maintaining the appearance provided by
+ this library. Need more padding on your buttons? Go for it. Need to add some color to your input labels?
+ Be our guest.
+
+
+
+ This library does not contain any JavaScript, it merely styles your HTML with some CSS.
+ This means 98.css is compatible with your frontend framework of choice.
+
+ A command button, also referred to as a push button, is a control
+ that causes the application to perform some action when the user clicks it.
+
+
+
+
+
+ A standard button measures 75px wide and 23px tall, with a raised outer and inner border.
+ They are given 12px of horizontal padding by default.
+
+
+ <%- example(`
+
+ `)%>
+
+
+ You can add the class default to any button to apply additional styling,
+ useful when communicating to the user what default action would happen in the active window if
+ the Enter key was pressed on Windows 98.
+
+
+ <%- example(``)%>
+
+
+ When buttons are clicked, the raised borders become sunken.
+ The following button is simulated to be in the pressed (active) state.
+
+
+ <% /* [[ ... ]] is used to render contents that
+ will not appear in the "Show code" section */
+ %>
+ <%- example(``) %>
+
+
+ Disabled buttons maintain the same raised border, but have a "washed out"
+ appearance in their label.
+
+
+ <%- example(``) %>
+
+
+ Button focus is communicated with a dotted border, set 4px within the contents of the button.
+ The following example is simulated to be focused.
+
+
+ <%- example(``) %>
+
+
+
+
+
Checkbox
+
+
+ A check box represents an independent or non-exclusive choice.
+
+
+
+
+ Checkboxes are represented with a sunken panel, populated with a "check" icon when
+ selected, next to a label indicating the choice.
+
+
+
+ Note: You must include a corresponding label after
+ your checkbox, using the <label> element with a for attribute
+ pointed at the id of your input. This ensures the checkbox is easy to use with
+ assistive technologies, on top of ensuring a good user experience for all (navigating with the tab key,
+ being able to click the entire label to select the box).
+
+
+ <%- example(`
+
+
+ `) %>
+
+
+ Checkboxes can be selected and disabled with the standard checked and disabled
+ attributes.
+
+
+
+ When grouping inputs, wrap each input in a container with the field-row class. This ensures
+ a consistent spacing between inputs.
+
+
+ <%- example(`
+
+
+
+
+
+
+
+
+
+
+
+
+ `) %>
+
+
+
+
+
OptionButton
+
+
+ An option button, also referred to as a radio button, represents a single
+ choice within a limited set of mutually exclusive choices. That is, the user can choose only
+ one set of options.
+
+
+
+
+
+ Option buttons can be used via the radio type on an input element.
+
+
+
+ Option buttons can be grouped by specifying a shared name attribute on each
+ input. Just as before: when grouping inputs, wrap each input in a container with the
+ field-row class to ensure a consistent spacing between inputs.
+
+
+ <%- example(`
+
+
+
+
+
+
+
+
+ `) %>
+
+
+ Option buttons can also be checked and disabled with their corresponding
+ HTML attributes.
+
+
+ <%- example(`
+
+
+
+
+
+
+
+
+
+
+
+
+ `) %>
+
+
+
+
+
GroupBox
+
+
+ A group box is a special control you can use to organize a set of
+ controls. A group box is a rectangular frame with an optional label that surrounds
+ a set of controls.
+
+
+
+
+
+ A group box can be used by wrapping your elements with the fieldset tag.
+ It contains a sunken outer border and a raised inner border, resembling an engraved box
+ around your controls.
+
+
+ <%- example(`
+
+ `) %>
+
+
+ You can provide your group with a label by placing a legend element
+ within the fieldset.
+
+
+ <%- example(`
+
+ `) %>
+
+
+
+
+
TextBox
+
+
+ A text box (also referred to as an edit control) is a
+ rectangular control where the user enters or edits text. It can
+ be defined to support a single line or multiple lines of text.
+
+
+
+
+
+ Text boxes can rendered by specifying a text type on an
+ input element. As with checkboxes and radio buttons, you
+ should provide a corresponding label with a properly set for
+ attribute, and wrap both in a container with the field-row class.
+
+
+ <%- example(`
+
+
+
+
+ `) %>
+
+
+ Additionally, you can make use of the field-row-stacked class
+ to position your label above the input instead of beside it.
+
+
+ <%- example(`
+
+
+
+
+
+
+
+
+ `) %>
+
+
+ To support multiple lines in the user's input, use the textarea
+ element instead.
+
+
+ <%- example(`
+
+
+
+
+ `) %>
+
+
+ Text boxes can also be disabled and have value with their corresponding HTML attributes.
+
+
+ <%- example(`
+
+
+
+
+ `) %>
+
+
+
+
+
+
+
Slider
+
+
+ A slider, sometimes called a trackbar control, consists of a bar that
+ defines the extent or range of the adjustment and an indicator that
+ shows the current value for the control...
+
+
+
+
+
+ Sliders can rendered by specifying a range type on an
+ input element.
+
+
+ <%- example(`
+
+
+
+
+
+
+ `) %>
+
+
+ You can make use of the has-box-indicator class replace the
+ default indicator with a box indicator, furthermore the slider can be wrapped
+ with a div using is-vertical to display the input vertically.
+
+
+
+ Note: To change the length of a vertical slider, the input width
+ and div height.
+
+
+ <%- example(`
+
+
+
+
+
+
+ `) %>
+
+
+
+
+
Dropdown
+
+
+ A drop-down list box allows the selection of only a
+ single item from a list. In its closed state, the control displays
+ the current value for the control. The user opens the list to change
+ the value.
+
+
+
+
+
+ Dropdowns can be rendered by using the select and option
+ elements.
+
+
+ <%- example(`
+
+ `) %>
+
+
+ By default, the first option will be selected. You can change this by
+ giving one of your option elements the selected
+ attribute.
+
+
+ <%- example(`
+
+ `) %>
+
+
+
+
Window
+
+ The following components illustrate how to build complete windows using
+ 98.css.
+
+
+
+
Title Bar
+
+
+ At the top edge of the window, inside its border, is the title bar
+ (also reffered to as the caption or caption bar), which extends across
+ the width of the window. The title bar identifies the contents of the
+ window.
+
+
+
+
+
+ Include command buttons associated with the common commands of the
+ primary window in the title bar. These buttons act as shortcuts to specific
+ window commands.
+
+
+
+
+
+ You can build a complete title bar by making use of three classes,
+ title-bar, title-bar-text, and title-bar-controls.
+
+
+ <%- example(`
+
+
A Title Bar
+
+
+
+
+ `) %>
+
+
+ We make use of aria-label to render the Close button, to let
+ assistive technologies know the intent of this button. You may also use
+ "Minimize", "Maximize", "Restore" and "Help" like so:
+
+
+ <%- example(`
+
+
A Title Bar
+
+
+
+
+
+
+
+
+
+
+
A Maximized Title Bar
+
+
+
+
+
+
+
+
+
+
+
A Helpful Bar
+
+
+
+
+
+ `) %>
+
+
+ Each aria-label also has a corresponding styling class to render the title bar buttons,
+ to let the aria-label text be in other languages without causing rendering, accessibility, or localization issues.
+
+
+ <%- example(`
+
+
A Title Bar using Button Styling Classes
+
+
+
+
+
+
+
+
+
+
+
A Maximized Title Bar using Button Styling Classes
+
+
+
+
+
+
+
+
+
+
+
A Helpful Bar using Button Styling Classes
+
+
+
+
+
+ `) %>
+
+
+ Maximize buttons can be disabled, useful when making a window appear as if it cannot be maximized.
+
+
+ <%- example(`
+
+
A Title Bar with Maximize disabled
+
+
+
+
+
+
+ `) %>
+
+
+ You can make a title bar "inactive" by adding inactive class,
+ useful when making more than one window.
+
+ <%- example(`
+
+
An inactive title bar
+
+
+
+
+ `) %>
+
+
+
+
+
Window contents
+
+
+ Every window has a boundary that defines its shape.
+
+
+
+
+
+ To give our title bar a home, we make use of the window
+ class. This provides a raised outer and inner border, as well as some
+ padding. We can freely resize the window by specifying a width in the
+ container style.
+
+
+ <%- example(`
+
+
+
A Complete Window
+
+
+
+
+
+
+
+ `) %>
+
+
+ To draw the contents of the window, we use the window-body
+ class under the title bar.
+
+
+ <%- example(`
+
+
+
A Window With Stuff In It
+
+
+
+
+
+
+
+
There's so much room for activities!
+
+
+ `) %>
+
+
+
+
+
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.
+
+
+
+
+
+ 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
+
+
+ A tree view control is a special list box control
+ that displays a set of objects as an indented outline based
+ on their logical hierarchical relationship.
+
+
+
+
+
+ To render a tree view, use an ul element with the
+ tree-view class. The children of this list (li
+ elements), can contain whatever you'd like.
+
+
+ <%- example(`
+
+
We can put
+
✨ Whatever ✨
+
We want in here
+
+ `) %>
+
+
+ To make this a tree, we can nest further ul elements
+ (no class needed on these). This will provide them with a nice dotted
+ border and indentation to illustrate the structure of the tree.
+
+
+ To create expandable sections, wrap child lists inside of
+ details elements.
+
+
+ <%- example(`
+
+
Table of Contents
+
What is web development?
+
+ CSS
+
+
Selectors
+
Specificity
+
Properties
+
+
+
+
+ JavaScript
+
+
Avoid at all costs
+
+
+ Unless
+
+
Avoid
+
+
+ At
+
+
Avoid
+
At
+
All
+
Cost
+
+
+
+
All
+
Cost
+
+
+
+
+
+
+
HTML
+
Special Thanks
+
+ `) %>
+
+
+
+
+
Tabs
+
+
+ A tab control is analogous to a divider in a file cabinet or notebook.
+ You can use this control to define multiple logical pages or sections of information within the same window.
+
+
+
+
+
+ To render a tab list, use a menu element with the
+ [role=tablist] attribute. The children of this menu (li
+ elements), should get a [role=tab] attribute.
+
+
+
+ Tabs should be managed by adding custom javascript code.
+ All you need is to add the [aria-selected=true] attribute to the active tab.
+
+
+ <%- example(`
+
+
Hello, world!
+
+
+
+
+
the tab content
+
+
+
+ `) %>
+
+
+ To create multirows tabs, add a multirows
+ class to the menu tag.
+
+
+ <%- example(`
+
+
Hello, world!
+
+
+
+
+
+
the tab content
+
+
+
+ `) %>
+
+
+
+
TableView
+
+
+ To render a table view, use a table element. Wrap it with a div element with sunken-panel class to provide proper border and overflow container.
+
+
+ With a bit of extra scripting you can make table view interactive. Give interactive class to
+ table element to show pointer cursor when hovering over body rows. Table rows can be given
+ highlighted class to appear selected.
+
+
+ <%- example(`
+
+
+
+
+
Name
+
Version
+
Company
+
+
+
+
+
MySQL ODBC 3.51 Driver
+
3.51.11.00
+
MySQL AB
+
+
+
SQL Server
+
3.70.06.23
+
Microsoft Corporation
+
+
+
SQL Server
+
3.70.06.23
+
Microsoft Corporation
+
+
+
SQL Server
+
3.70.06.23
+
Microsoft Corporation
+
+
+
SQL Server
+
3.70.06.23
+
Microsoft Corporation
+
+
+
SQL Server
+
3.70.06.23
+
Microsoft Corporation
+
+
+
SQL Server
+
3.70.06.23
+
Microsoft Corporation
+
+
+
SQL Server
+
3.70.06.23
+
Microsoft Corporation
+
+
+
SQL Server
+
3.70.06.23
+
Microsoft Corporation
+
+
+
SQL Server
+
3.70.06.23
+
Microsoft Corporation
+
+
+
+
+
+ `) %>
+
+
+
+
+
Progress Indicator
+
+
+ You can use a progress indicator, also known as a progress bar control, to show the percentage of completion of a lengthy operation.
+
+
+
+
+
+ There are two types of progress bars: solid and segmented. The solid version is the default. To declare a segmented bar, you should use the segmented class.
+
+
+ <%- example(`
+
+
+
+ `) %>
+
+ <%- example(`
+
+
+
+ `) %>
+
+
+
+
+
Field borders
+
+
+ Text boxes, check boxes, drop-down list boxes, spin boxes and list
+ boxes use the field border style. You can also use the style
+ for define the work area within a window. It uses the sunken outer and
+ sunken inner basic border styles.
+
+ For most controls, the interior of the field uses the button highlight
+ color. For text fields, such as text boxes and combo boxes, the
+ interior uses the button face color when the field is read-only or
+ disabled.
+
+
+
+
+
+ Status fields use the status field border style. This style
+ uses only the sunken outer basic border style. You use the status
+ field style in status bars and other read-only fields where the
+ content of the file can change dynamically.
+
+
+
+
+ As mentioned in these guidelines, these styles are used in other
+ contexts than just form elements and status fields such as to indicate
+ work areas and dynamic content. For that reason, we provide three
+ classes for these generic usages, field-border,
+ field-border-disabled, and
+ status-field-border. These classes only define the border
+ and background color and minimal padding, so you will typically need to
+ at least provide some extra padding yourself.
+
+ <%- example(`
+
+ Refer to the GitHub issues page to see bugs
+ in my CSS or report new ones. I'd really like to see your pull requests (especially those new to
+ open-source!) and will happily provide code review. 98.css is a fun, silly project and I'd like
+ to make it a fun place to build your open-source muscle.
+
+
+
+ Thank you for checking my little project out, I hope it brought you some joy today. Consider
+ starring/following along on GitHub and maybe
+ subscribing to more fun things on my twitter. 👋
+