From 67aebcf6bf448fd0166c974436ff0daefb2a3e54 Mon Sep 17 00:00:00 2001 From: sakofchit Date: Mon, 8 Aug 2022 01:29:01 -0400 Subject: [PATCH] added dialogs/alerts --- .DS_Store | Bin 10244 -> 10244 bytes docs/docs.css | 34 ++++++++++++++-- docs/index.html.ejs | 92 +++++++++++++++++++++++++++++++++++++++----- package-lock.json | 2 +- package.json | 2 +- style.css | 25 +++++++++--- 6 files changed, 135 insertions(+), 20 deletions(-) diff --git a/.DS_Store b/.DS_Store index 9e95116e162ee387c4349e6fda5497156b6521e9..87f896ea46ce69302635503d13d8add0e753a754 100644 GIT binary patch delta 616 zcmZn(XbG6$FQ~-8z`)4BAi$85ZWx@LpIfl8a2or>2Eonj94s95AXyd$J%)6KOokGe z3ZNKJ&;KN3x!imgm!zD0kQm42FFYr2_#JUXl~2JdUyuQ@9jJ$afpr6jWMN2|yhz}Q z{kcgH4$uk33?;}G{p2_=2e&8%CXcWPEWi1vpdw>z;xDKn`3%Vn#mI&np0BoE$QSC` z6b7g~!VqloD6VBF*z7FK#>mX*yJfPEh!h+1uga}A{3hp!$iSF=BC?E(o7af2F*2p? z*}O%xm6c7wqG^q$-(-7fDHt1NVsSNQ9xnNc)Lk^Hvj2r=s z3w~4sy@XROvKKqH-g|x>5+Qih!@O+Dz(I@#EC*i@wuR3*reRFDC35zIP)$;|?< znO22NE)bMpomI6n+;noUpfrTFd99!#Bh#GT$rpqq*dX>!ekUXaWAX{hFh1CV@nFS5XRwP=R3Kc7T?L9mnHzu>AlpzDT$GoSpO+34 zWt_Z0

- We can also have a bordered dialog, which typically has some interactive component within it. + We can also have a modal dialog box, which typically has some interactive component within it.

<%- example(` -
+ + `)%> - - +

+ A modeless dialog box looks like a window without a size box, zoom box, or + scroll bars. +

+ + <%- example(` +
+
+ +

Modeless Dialog

+ +
+
+ +
+
+

Find:

+ + +
+
+ + +
+
+
`)%> @@ -182,6 +232,30 @@ actions
— Apple HI Guidelines, p. 176
+ +

Alert boxes also have a double-outline frame. T

+ + <%- example(` +
+
+ +
+
+
+

This is a standard alert box. The text would be placed here. This is where more text appears

+
+ +
+ + +
+ +
+ + +
+
+ `)%>
@@ -430,7 +504,7 @@ -

You can also add a details bar to a window by adding.details__bar below the title bar.

+

You can also add a details bar to a window by adding.details-bar below the title bar.

<%- example(` @@ -440,7 +514,7 @@

Window With Details

-
+
some more details @@ -460,7 +534,7 @@

Inactive Window

-
+
some more details diff --git a/package-lock.json b/package-lock.json index 3dfb12e..aa843e8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "system.css", + "name": "@sakun/system.css", "version": "0.1.0", "lockfileVersion": 1, "requires": true, diff --git a/package.json b/package.json index 671ea3b..ed3fecb 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "system.css", + "name": "@sakun/system.css", "version": "0.1.0", "description": "A design system for building retro Apple interfaces", "main": "dist/system.css", diff --git a/style.css b/style.css index 5fdc1ca..560ef7c 100644 --- a/style.css +++ b/style.css @@ -156,17 +156,14 @@ h2 { font-size: 2em; } +/* buttons */ + .standard-button { display: block; min-width: 59px; min-height: 20px; } -/*p { - font-family: Monaco; - font-size: 22px; -}*/ - /* dialogs */ .standard-dialog { @@ -176,6 +173,22 @@ h2 { background-color: white; } +.modal-dialog, .alert-box { + width: auto; + padding: 13px; +} + +.modal-contents, .alert-contents { + padding: 10px; +} + +.modeless-dialog { + height: 100%; + padding: 0.5rem 0.5rem; + font-size: 18px; + letter-spacing: -0.025em; +} + .inner-border { border-color: black; border-top: 3.5px solid; @@ -336,7 +349,7 @@ h2 { font-size: 1rem; } -.details__bar { +.details-bar { flex: none; display: flex; flex-direction: row;