mirror of
https://github.com/picocss/pico.git
synced 2025-04-26 03:06:14 -04:00
Created build-dev script to only build 1 css file for quicker testing enviroment. Added accordion javascript for slide effect. modified the notification scss, and added more demos.
This commit is contained in:
parent
b1fcd44b73
commit
26e82a693d
246 changed files with 1716 additions and 2269 deletions
|
@ -10,15 +10,6 @@
|
|||
display: block;
|
||||
margin-bottom: var(#{$css-var-prefix}spacing);
|
||||
|
||||
&:not([open]) summary ~ * {
|
||||
max-height: 0;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
transition:
|
||||
max-height var(#{$css-var-prefix}transition),
|
||||
opacity var(#{$css-var-prefix}transition);
|
||||
}
|
||||
|
||||
summary {
|
||||
line-height: 1rem;
|
||||
list-style-type: none;
|
||||
|
@ -108,14 +99,6 @@
|
|||
&::after {
|
||||
transform: rotate(0);
|
||||
}
|
||||
|
||||
~ * {
|
||||
max-height: 100; /* Initial max height for content */
|
||||
opacity: 1;
|
||||
transition:
|
||||
max-height var(#{$css-var-prefix}transition),
|
||||
opacity var(#{$css-var-prefix}transition);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
|
||||
@if map.get($modules, "components/notification") {
|
||||
/**
|
||||
* Notification (<dialog>)
|
||||
*/
|
||||
* Notification (<dialog>)
|
||||
*/
|
||||
|
||||
dialog[role="alert"] {
|
||||
position: fixed;
|
||||
|
@ -30,6 +30,14 @@
|
|||
opacity: 0;
|
||||
transition: opacity var(#{$css-var-prefix}transition);
|
||||
user-select: none;
|
||||
|
||||
//> p, > h1, > h2, > h3, > h4, > h5, > h6 {
|
||||
> * {
|
||||
color: var(#{$css-var-prefix}primary-inverse);
|
||||
font-weight: var(#{$css-var-prefix}font-weight);
|
||||
font-size: var(#{$css-var-prefix}font-size);
|
||||
line-height: var(#{$css-var-prefix}line-height);
|
||||
}
|
||||
}
|
||||
|
||||
dialog[data-backdrop="false"][role="alert"]::backdrop {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue