mirror of
https://github.com/picocss/pico.git
synced 2025-04-21 17:16:14 -04:00
Docs: Add modal page
This commit is contained in:
parent
10301430ab
commit
f85faceb65
9 changed files with 229 additions and 12 deletions
34
docs/scss/components/_modal.scss
Normal file
34
docs/scss/components/_modal.scss
Normal file
|
@ -0,0 +1,34 @@
|
|||
/**
|
||||
* Docs: Modal
|
||||
*/
|
||||
|
||||
dialog.example {
|
||||
display: block;
|
||||
z-index: inherit;
|
||||
position: relative;
|
||||
top: inherit;
|
||||
right: inherit;
|
||||
bottom: inherit;
|
||||
left: inherit;
|
||||
align-items: inherit;
|
||||
justify-content: inherit;
|
||||
width: inherit;
|
||||
min-width: inherit;
|
||||
height: inherit;
|
||||
min-height: inherit;
|
||||
padding: 0;
|
||||
background-color:inherit;
|
||||
|
||||
article {
|
||||
max-width: inherit;
|
||||
}
|
||||
|
||||
&:not([open]),
|
||||
&[open=false] {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.dialog-is-open body > button {
|
||||
filter: blur(0.125rem);
|
||||
}
|
|
@ -4,8 +4,14 @@
|
|||
|
||||
// Docs: Themes
|
||||
#themes {
|
||||
button i {
|
||||
font-style: normal;
|
||||
button.theme-switcher {
|
||||
&:first-of-type {
|
||||
--font-weight: bold;
|
||||
}
|
||||
|
||||
i {
|
||||
font-style: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -115,3 +121,10 @@
|
|||
#forms div.grid {
|
||||
grid-row-gap: 0;
|
||||
}
|
||||
|
||||
// Docs: Modal
|
||||
#modal {
|
||||
button {
|
||||
--font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,5 +19,6 @@
|
|||
@import "content/code";
|
||||
|
||||
// Components
|
||||
@import "components/modal";
|
||||
@import "components/nav";
|
||||
@import "components/theme-switcher";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue