From 366839e29886af404a65d57aa311116305ee708a Mon Sep 17 00:00:00 2001 From: Geoff Doty Date: Sat, 11 May 2024 15:12:53 -0400 Subject: [PATCH] basic dialog styles --- examples/overview.html | 53 ++++++++++++++++++++++++++++++++++++++++-- src/extra/dialog.css | 12 ++++++++++ src/stylelite.css | 11 +++++++++ 3 files changed, 74 insertions(+), 2 deletions(-) create mode 100644 src/extra/dialog.css diff --git a/examples/overview.html b/examples/overview.html index 4170d3d..a0b9476 100644 --- a/examples/overview.html +++ b/examples/overview.html @@ -7,6 +7,10 @@ Stylelite +
@@ -20,7 +24,7 @@
  • Typography
  • Forms
  • Tables
  • -
  • Grid Layout
  • +
  • Layout
  • Components
  • Utilities
  • @@ -234,9 +238,47 @@ +
    + +

    Components

    + +
    +
    +
    +
    + Dialogs +
    +
    + The native dialog + element is supported +
    +
    + +
    +
    +
    +
    +
    + More... +
    +
    +
    +
    + More... +
    +
    +
    + +

    Default Dialog Modal

    +
    + +
    +
    +
    +
    -

    Grid System

    +

    Layout Systems

    The flex-based grid system dynamically divides content on the number of child elements under row, be that a plain div(auto) or col-*. @@ -349,5 +391,12 @@
    + \ No newline at end of file diff --git a/src/extra/dialog.css b/src/extra/dialog.css new file mode 100644 index 0000000..4db5fbd --- /dev/null +++ b/src/extra/dialog.css @@ -0,0 +1,12 @@ +/* Dialog */ + +dialog[open] { + margin: auto; +} + +dialog { + border: 1px solid var(--theme); + box-shadow: 0 0 #0000, 0 0 #0000, 0 25px 50px -12px rgba(0, 0, 0, 0.25); + padding: calc(var(--size) * 2); + max-width: 85%; +} \ No newline at end of file diff --git a/src/stylelite.css b/src/stylelite.css index bed8285..2c9cfdb 100644 --- a/src/stylelite.css +++ b/src/stylelite.css @@ -360,7 +360,18 @@ nav.navbar { nav.navbar a {color: var(--white)} +/* Dialog */ +dialog[open] { + margin: auto; +} + +dialog { + border: 1px solid var(--theme); + box-shadow: 0 0 #0000, 0 0 #0000, 0 25px 50px -12px rgba(0, 0, 0, 0.25); + padding: calc(var(--size) * 2); + max-width: 85%; +} /* Grid System */