@@ -48,7 +48,7 @@
There are 2 ways to customize your version of Pico.css:
-
Overriding CSS variables
+
Overriding CSS variables
All Pico's styles and colors are set with CSS custom properties (variables). Just override the CSS variables to customize your version of Pico.
/* Light scheme (Default) */
@@ -91,7 +91,7 @@
You can find all the CSS variables used in the default theme here: css/themes/default.css
-
Importing Pico SASS library
+
Importing Pico SASS library
We recommend customizing Pico by importing SASS source files into your project. This way, you can keep Pico up to date without conflicts since Pico code and your custom code are separated.
Compile the SASS file to CSS to get a custom version of Pico.
diff --git a/docs/src/index.html b/docs/src/index.html
index 15ac6cdf..9f338886 100644
--- a/docs/src/index.html
+++ b/docs/src/index.html
@@ -21,13 +21,13 @@
Works without package manager or dependencies 🙂!
There are 3 ways to get started with pico.css:
-
Install manually
+
Install manually
Download Pico and link /css/pico.min.css
in the <head>
of your website.
<link rel="stylesheet" href="css/pico.min.css">
-
Install from CDN
+
Install from CDN
Alternatively, you can use unpkg CDN to link pico.css
<link rel="stylesheet" href="https://unpkg.com/@picocss/pico@latest/css/pico.min.css">
-
Install with NPM
+
Install with NPM
npm install @picocss/pico
Starter HTML template:
diff --git a/docs/src/modal.html b/docs/src/modal.html
new file mode 100644
index 00000000..c6afd51b
--- /dev/null
+++ b/docs/src/modal.html
@@ -0,0 +1,166 @@
+
+
+
+ ${require('./_head.html')
+ title="Modal"
+ description="A flexible container with graceful spacings across devices and viewports."
+ canonical="modal.html"
+ }
+
+
+
+ ${require('./_nav.html')}
+
+
+ ${require('./_sidebar.html') active="modal-link"}
+
+
+
+
+ Modal
+ The classic modal element with graceful spacings across devices and viewports.
+
+
+ Modals are built with <dialog>
as a wrapper and <article>
as a content container.
+ Inside <header>
, <a class="close">
is defined to float: right;
allowing a close icon to be top aligned with a title.
+
+
+
+<dialog open>
+ <article>
+ <header>
+ <a href="#close" aria-label="Close" class="close"></a>
+ Modal title
+ </header>
+ <p>
+ Nunc nec ligula a tortor sollicitudin dictum in vel enim.
+ Quisque facilisis turpis vel eros dictum aliquam et nec turpis.
+ Sed eleifend a dui nec ullamcorper.
+ Praesent vehicula lacus ac justo accumsan ullamcorper.
+ </p>
+ </article>
+</dialog>
+
+ Inside <footer>
, the content is right aligned by default.
+
+
+
+
+<dialog open>
+ <article>
+ <h3>Confirm your action!</h3>
+ <p>
+ Mauris non nibh vel nisi sollicitudin malesuada.
+ Donec ut sagittis erat. Praesent eu eros felis.
+ Ut consectetur placerat pulvinar.
+ </p>
+ <footer>
+ <a href="#cancel" role="button" class="secondary">Cancel</a>
+ <a href="#confirm" role="button">Confirm</a>
+ </footer>
+ </article>
+</dialog>
+
+
+ Live demo
+ Toggle a modal by clicking the button below.
+
+
+
+
+
+
+
+ As Pico focuses on CSS styles, we have not integrated any JavaScript in the library.
+
+
+
+ ${require('./_footer.html')}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/src/themes.html b/docs/src/themes.html
index d60d3f6c..7fccd347 100644
--- a/docs/src/themes.html
+++ b/docs/src/themes.html
@@ -26,7 +26,7 @@
Themes can be forced on document level <html data-theme="light">
or on any HTML element <article data-theme="dark">
- Light theme
+ Light theme
- Dark theme
+ Dark theme