diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 7ea0d97..0000000 --- a/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -img/ -system-css/ diff --git a/img/baxter-box.png b/img/baxter-box.png new file mode 100644 index 0000000..b39dec4 Binary files /dev/null and b/img/baxter-box.png differ diff --git a/img/baxter-flop.png b/img/baxter-flop.png new file mode 100644 index 0000000..c83e5c9 Binary files /dev/null and b/img/baxter-flop.png differ diff --git a/img/baxter-grumpy.png b/img/baxter-grumpy.png new file mode 100644 index 0000000..76c6bf0 Binary files /dev/null and b/img/baxter-grumpy.png differ diff --git a/img/baxter-hiding.png b/img/baxter-hiding.png new file mode 100644 index 0000000..573b599 Binary files /dev/null and b/img/baxter-hiding.png differ diff --git a/img/baxter-kitten.png b/img/baxter-kitten.png new file mode 100644 index 0000000..71d365d Binary files /dev/null and b/img/baxter-kitten.png differ diff --git a/img/baxter-looking.png b/img/baxter-looking.png new file mode 100644 index 0000000..d77acfc Binary files /dev/null and b/img/baxter-looking.png differ diff --git a/img/baxter-sitting.png b/img/baxter-sitting.png new file mode 100644 index 0000000..2d5414c Binary files /dev/null and b/img/baxter-sitting.png differ diff --git a/img/baxter-stare.png b/img/baxter-stare.png new file mode 100644 index 0000000..ee5b661 Binary files /dev/null and b/img/baxter-stare.png differ diff --git a/img/baxter-thinking.png b/img/baxter-thinking.png new file mode 100644 index 0000000..4d3c01e Binary files /dev/null and b/img/baxter-thinking.png differ diff --git a/img/baxter-wall.png b/img/baxter-wall.png new file mode 100644 index 0000000..18f72af Binary files /dev/null and b/img/baxter-wall.png differ diff --git a/img/thumbnails/baxter-box-thumbnail.jpg b/img/thumbnails/baxter-box-thumbnail.jpg new file mode 100644 index 0000000..b75708b Binary files /dev/null and b/img/thumbnails/baxter-box-thumbnail.jpg differ diff --git a/img/thumbnails/baxter-flop-thumbnail.jpg b/img/thumbnails/baxter-flop-thumbnail.jpg new file mode 100644 index 0000000..a105f97 Binary files /dev/null and b/img/thumbnails/baxter-flop-thumbnail.jpg differ diff --git a/img/thumbnails/baxter-grumpy-thumbnail.jpg b/img/thumbnails/baxter-grumpy-thumbnail.jpg new file mode 100644 index 0000000..f3eeee2 Binary files /dev/null and b/img/thumbnails/baxter-grumpy-thumbnail.jpg differ diff --git a/img/thumbnails/baxter-hiding-thumbnail.jpg b/img/thumbnails/baxter-hiding-thumbnail.jpg new file mode 100644 index 0000000..177be75 Binary files /dev/null and b/img/thumbnails/baxter-hiding-thumbnail.jpg differ diff --git a/img/thumbnails/baxter-kitten-thumbnail.jpg b/img/thumbnails/baxter-kitten-thumbnail.jpg new file mode 100644 index 0000000..e761a3e Binary files /dev/null and b/img/thumbnails/baxter-kitten-thumbnail.jpg differ diff --git a/img/thumbnails/baxter-looking-thumbnail.jpg b/img/thumbnails/baxter-looking-thumbnail.jpg new file mode 100644 index 0000000..9345bc9 Binary files /dev/null and b/img/thumbnails/baxter-looking-thumbnail.jpg differ diff --git a/img/thumbnails/baxter-sitting-thumbnail.jpg b/img/thumbnails/baxter-sitting-thumbnail.jpg new file mode 100644 index 0000000..b241bb2 Binary files /dev/null and b/img/thumbnails/baxter-sitting-thumbnail.jpg differ diff --git a/img/thumbnails/baxter-stare-thumbnail.jpg b/img/thumbnails/baxter-stare-thumbnail.jpg new file mode 100644 index 0000000..f0eb6a5 Binary files /dev/null and b/img/thumbnails/baxter-stare-thumbnail.jpg differ diff --git a/img/thumbnails/baxter-thinking-thumbnail.jpg b/img/thumbnails/baxter-thinking-thumbnail.jpg new file mode 100644 index 0000000..75ef578 Binary files /dev/null and b/img/thumbnails/baxter-thinking-thumbnail.jpg differ diff --git a/img/thumbnails/baxter-wall-thumbnail.jpg b/img/thumbnails/baxter-wall-thumbnail.jpg new file mode 100644 index 0000000..5966cd7 Binary files /dev/null and b/img/thumbnails/baxter-wall-thumbnail.jpg differ diff --git a/statichost.yml b/statichost.yml new file mode 100644 index 0000000..19f4f5b --- /dev/null +++ b/statichost.yml @@ -0,0 +1,5 @@ +domains: + # Primary domain + - retro-baxter.emmas.place + # Domains that redirect to the primary + - www.retro-baxter.emmas.place diff --git a/system-css/ChiKareGo2.ttf b/system-css/ChiKareGo2.ttf new file mode 100644 index 0000000..f959a62 Binary files /dev/null and b/system-css/ChiKareGo2.ttf differ diff --git a/system-css/ChiKareGo2.woff b/system-css/ChiKareGo2.woff new file mode 100644 index 0000000..7ae3915 Binary files /dev/null and b/system-css/ChiKareGo2.woff differ diff --git a/system-css/ChiKareGo2.woff2 b/system-css/ChiKareGo2.woff2 new file mode 100644 index 0000000..a4c2859 Binary files /dev/null and b/system-css/ChiKareGo2.woff2 differ diff --git a/system-css/ChicagoFLF.ttf b/system-css/ChicagoFLF.ttf new file mode 100644 index 0000000..60691e1 Binary files /dev/null and b/system-css/ChicagoFLF.ttf differ diff --git a/system-css/ChicagoFLF.woff b/system-css/ChicagoFLF.woff new file mode 100644 index 0000000..be2b7d7 Binary files /dev/null and b/system-css/ChicagoFLF.woff differ diff --git a/system-css/ChicagoFLF.woff2 b/system-css/ChicagoFLF.woff2 new file mode 100644 index 0000000..5e5c0b5 Binary files /dev/null and b/system-css/ChicagoFLF.woff2 differ diff --git a/system-css/Chicago_12.ttf b/system-css/Chicago_12.ttf new file mode 100644 index 0000000..f959a62 Binary files /dev/null and b/system-css/Chicago_12.ttf differ diff --git a/system-css/Chicago_12pt.ttf b/system-css/Chicago_12pt.ttf new file mode 100644 index 0000000..25f8a8e Binary files /dev/null and b/system-css/Chicago_12pt.ttf differ diff --git a/system-css/FindersKeepers.ttf b/system-css/FindersKeepers.ttf new file mode 100644 index 0000000..508c79d Binary files /dev/null and b/system-css/FindersKeepers.ttf differ diff --git a/system-css/FindersKeepers.woff b/system-css/FindersKeepers.woff new file mode 100644 index 0000000..db07ec1 Binary files /dev/null and b/system-css/FindersKeepers.woff differ diff --git a/system-css/FindersKeepers.woff2 b/system-css/FindersKeepers.woff2 new file mode 100644 index 0000000..954e63c Binary files /dev/null and b/system-css/FindersKeepers.woff2 differ diff --git a/system-css/GENEVA.ttf b/system-css/GENEVA.ttf new file mode 100644 index 0000000..097445b Binary files /dev/null and b/system-css/GENEVA.ttf differ diff --git a/system-css/apple.png b/system-css/apple.png new file mode 100644 index 0000000..b11e5eb Binary files /dev/null and b/system-css/apple.png differ diff --git a/system-css/button-default.svg b/system-css/button-default.svg new file mode 100644 index 0000000..819fa89 --- /dev/null +++ b/system-css/button-default.svg @@ -0,0 +1,3 @@ + diff --git a/system-css/button.png b/system-css/button.png new file mode 100644 index 0000000..8ab03b8 Binary files /dev/null and b/system-css/button.png differ diff --git a/system-css/button.svg b/system-css/button.svg new file mode 100644 index 0000000..8979a48 --- /dev/null +++ b/system-css/button.svg @@ -0,0 +1,3 @@ + diff --git a/system-css/dark-button.png b/system-css/dark-button.png new file mode 100644 index 0000000..5a886e5 Binary files /dev/null and b/system-css/dark-button.png differ diff --git a/system-css/default_button.png b/system-css/default_button.png new file mode 100644 index 0000000..2ad653f Binary files /dev/null and b/system-css/default_button.png differ diff --git a/system-css/docs.css b/system-css/docs.css new file mode 100644 index 0000000..7c693b9 --- /dev/null +++ b/system-css/docs.css @@ -0,0 +1,179 @@ +@font-face { + font-family: Geneva9; + src: url("fonts/FindersKeepers.ttf") +} + +@font-face { + font-family: Chicago_12; + src: url("fonts/ChiKareGo2.ttf"); +} + + +* { + box-sizing: border-box; +} + +body { + margin: 0; + padding: 0; +} + +/* Layout: */ + +.col-main { + flex: 1; +} + +.col-complementary { + flex: 1; +} + +aside { + width: 200px; + position: sticky; + top: 18px; + bottom: 0; + display: flex; + align-items: stretch; + height: calc(100vh - 36px); +} + +html { + font-family: "Inconsolata", Menlo, Chicago, Geneva; + font-size: 18px; + letter-spacing: -0.025em; + min-height: 100vh; +} + +h3 { + font-family: Chicago; + font-size: 1.5em; +} + +.heading { + font-size: 3rem; +} + +.desc { + font-family: Geneva_9; + font-size: 2em; +} + + +.center { + text-align: center; +} + +.component { + display: flex; + margin-top: 24px; + font-family: Geneva; + font-size: 1em; +} + +.alert-text, +.dialog-text, +.modal-text, +.modeless-text { + font-family: Chicago_12; + font-size: 1em; + font-weight: normal; +} + +.dialog-text { + margin-top: 20px; +} + +.modal-text, .alert-text { + font-size: 1.2em; + margin-top: 10px; +} + +p { + font-family: Geneva; + font-size: 0.9em; +} + + +blockquote { + margin: 0 0 20px; + padding: 20px; + width: 80%; + font-size: 14px; + border: 1px solid black; +} + +blockquote footer { + margin: 12px 0 0 12px; +} + +.example { + margin: 16px; + padding: 12px 24px; + border-left: 1px solid #000000; +} + +summary { + font-size: 14px; + padding-top: 10px; + cursor: pointer; + margin: 12px 0 0 0; + width: 30%; +} + +pre { + font-size: 13px; +} + +.modal-dialog { + width: 50%; +} + +.btn.active { + background: black; + border-radius:6px; + color: white; + font-family: Chicago_12; +} + +.square { + width: 50px; + height: 50px; + background-color: transparent; + border: 1.5px solid black; + padding-right: 46px; +} + +.menu-items { + padding: 0; + font-size: 14px; +} + +/* responsive shiz */ +@media only screen and (min-width: 640px) { + .layout { + display: flex; + justify-content: space-between; + } + .standard-dialog { + margin-right: 20px; + margin-top: 18px; + } + .sidebar { + z-index: 1; + } +} +@media only screen and (max-width: 600px) { + .sidebar { + display: none !important; + } + .example { + margin: 0px; + } + .component { + display: contents; + } + .scale-down { + transform: scale(0.8); + } +} \ No newline at end of file diff --git a/system-css/geneva-9.ttf b/system-css/geneva-9.ttf new file mode 100644 index 0000000..9c365de Binary files /dev/null and b/system-css/geneva-9.ttf differ diff --git a/system-css/icon.png b/system-css/icon.png new file mode 100644 index 0000000..5c00653 Binary files /dev/null and b/system-css/icon.png differ diff --git a/system-css/index.html.ejs b/system-css/index.html.ejs new file mode 100644 index 0000000..f3c489f --- /dev/null +++ b/system-css/index.html.ejs @@ -0,0 +1,635 @@ + + +
++ + +
++
System.css
+A design system for building retro -inspired interfaces
+ +System.css is a CSS library for building interfaces that resemble Apple's System OS which ran from 1984-1991. Design-wise, not much really changed from System 1 to System 6; however this library is based on System 6 as it was the final monochrome version of MacOS.
+ +Fortunately, this library does not use any JavaScript and is compatible with any front-end framework of your choice. Most styles can also be overwritten to allow for deeper customization.
+ ++ A button is a rounded rectangle that is named with text. Clicking a button performs the action described by the button's name. + ++ +
A standard button measures 59px wide and 20px tall. We use the .btn
class for these buttons
When pressed, buttons invert. The button below is stimulated to be in the active state.
+ + <%- example(` + + + `)%> + +Buttons can also have dynamic widths.
+ + <%- example(` + + + `)%> + +Or even have a default choice.
+ + <%- example(` + + + + `)%> + +Disabled buttons look the same as standard buttons, but with grey button text. Add the disabled
attribute to use it.
+ A radio button is a Macintosh control that displays a setting, either on or off, and is part of a group in which only one button can be on at a time. + ++ +
Radio Buttons can be rendered by specifying a radio
type on an input
tag and assigning it a name.
+ Checkboxes, like radio buttons, provide alternative choices for users. A + checkbox is a square with label text next to it + ++ +
Checkboxes can be rendered by specifying a checkbox
type on an input
tag and assigning it a name.
+ The menu bar extends across the top of the screen and contains words and + icons that serve as the title of each menu + ++ +
A menu bar consists of menu elements that name menu items and they typically have a dropdown menu associated with them.
+ +To create a menu bar we will use the .menu-bar
class.
In case of a menu item as a single children or plain text with no menu dropdown associated with it, use aria-haspopup="false"
attribute.
We can also manipulate a menu bar into a standard dropdown.
+ + <%- example(` ++ A select menu can be used to create a drop-down list, typically used in forms. ++ +
Select menus can be rendered using the select
and option
elements.
By default the first option will be selected, but you can change that by adding the selected
attribute to an option
+ The place or places in a dialog box where information can be typed. Also called text entry field. + ++ +
Text Boxes can be rendered by specifying a text
type on an input
tag
Other types of text are also supported
+ + <%- example(` + + `)%> + + ++ Standard document windows have standard structural components. + These components include the title bar, size box, close box, zoom box, + and scroll bars. Windows are designed for visual consistency across all monitors + ++
+ A standard title bar is at least 19px tall, has a close button, caption, and racing stripes. ++ +
They're usually a part of a window. Title bars use the Chicago 12pt font.
+ + <%- example(` + +Title bars can look different depending on what they're intended for.
+ + <%- example(` + +You can also set a title bar to be inactive by applying the .inactive-title-bar
class
+ Document windows present a view into the content that people create and store. + ++ +
This is a window (without stuff in it). To create a basic window, we simply use the .window
class.
This is a window with stuff in it. We can achieve this by simply adding a div with the .window-pane
below the title bar.
You can also add a details bar to a window by adding.details-bar
below the title bar.
You can also create an inactive window using an inactive title bar.
+ + <%- example(` ++ Dialog boxes are windows that provide a standard framework in which the + computer can present alternatives from which the user can choose. + ++ +
+ A basic dialog is just a box with text in it. We use the .standard-dialog
class here.
+
© 1984 Apple Computer
++ A modeless dialog box looks like a window without a size box, zoom box, or + scroll bars. +
+ + <%- example(` +
+ We can also have a modal dialog box, which typically has some interactive component within it. It has a double-outline border. We achieve this by using a nested div
. The outer div
uses the .outer-border
class and the .inner-border
for the inner div
.
+
+ Alert boxes appear when the system software or an application needs to + communicate information to the user. Alert boxes provide messages about + error conditions and warn users about potentially hazardous situations or + actions + ++ +
Like modal dialogs, alert boxes also have a double-outline frame. The empty square is where you'd place an icon.
+ + <%- example(` +This is a standard alert box. The text would be placed here. + This is where more text appears
+Thanks for checking this project out! This library was made in good fun and was largely inspired by 98.css. The Chicago 12pt and Geneva 9pt fonts are recreations by @blogmywiki
+ +System.css is still in beta! There's a few things that are currently missing that I incline on adding pretty soon. I recreated components based on Apple's Human Interface Guidelines. However, there's still a pretty good chance that I've might've missed/overlooked something essential. I've also had to recreate most of the assets, which can also be found here.
+ +If you find a bug, consider opening an issue here. If there's something that you'd like to add, please feel free to create a PR!
+ +If you'd like to see what else I'm up to, consider following me on Twitter or checking out my personal site :)
+CSS Scan: The fastest and easiest way to check, copy and edit CSS
+ +