Skip to content

Commit

Permalink
feat: notification component
Browse files Browse the repository at this point in the history
  • Loading branch information
kyr0 committed May 29, 2024
1 parent 6dc6489 commit c1b55d8
Show file tree
Hide file tree
Showing 239 changed files with 4,883 additions and 118 deletions.
40 changes: 40 additions & 0 deletions css/pico.amber.css
Original file line number Diff line number Diff line change
Expand Up @@ -2747,6 +2747,46 @@ progress::-moz-progress-bar {
}
}

/**
* Notification (<dialog>)
*/
dialog[role=alert] {
position: fixed;
top: unset;
right: var(--pico-spacing);
bottom: var(--pico-spacing);
left: unset;
width: auto;
min-width: unset;
height: auto;
min-height: unset;
padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
border: var(--pico-border-width) solid var(--pico-border-color);
border-radius: var(--pico-border-radius);
-webkit-backdrop-filter: var(--pico-modal-overlay-backdrop-filter);
backdrop-filter: var(--pico-modal-overlay-backdrop-filter);
background-color: var(--pico-primary-background);
box-shadow: var(--pico-box-shadow);
color: var(--pico-primary-inverse);
font-weight: var(--pico-font-weight);
font-size: var(--pico-font-size);
line-height: var(--pico-line-height);
opacity: 0;
transition: opacity var(--pico-transition);
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}

dialog[data-backdrop=false][role=alert]::backdrop {
display: none;
}

dialog[role=alert][open] {
opacity: 1;
transition: opacity var(--pico-transition);
}

/**
* Accessibility & User interaction
*/
Expand Down
2 changes: 1 addition & 1 deletion css/pico.amber.min.css

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions css/pico.blue.css
Original file line number Diff line number Diff line change
Expand Up @@ -2747,6 +2747,46 @@ progress::-moz-progress-bar {
}
}

/**
* Notification (<dialog>)
*/
dialog[role=alert] {
position: fixed;
top: unset;
right: var(--pico-spacing);
bottom: var(--pico-spacing);
left: unset;
width: auto;
min-width: unset;
height: auto;
min-height: unset;
padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
border: var(--pico-border-width) solid var(--pico-border-color);
border-radius: var(--pico-border-radius);
-webkit-backdrop-filter: var(--pico-modal-overlay-backdrop-filter);
backdrop-filter: var(--pico-modal-overlay-backdrop-filter);
background-color: var(--pico-primary-background);
box-shadow: var(--pico-box-shadow);
color: var(--pico-primary-inverse);
font-weight: var(--pico-font-weight);
font-size: var(--pico-font-size);
line-height: var(--pico-line-height);
opacity: 0;
transition: opacity var(--pico-transition);
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}

dialog[data-backdrop=false][role=alert]::backdrop {
display: none;
}

dialog[role=alert][open] {
opacity: 1;
transition: opacity var(--pico-transition);
}

/**
* Accessibility & User interaction
*/
Expand Down
2 changes: 1 addition & 1 deletion css/pico.blue.min.css

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions css/pico.classless.amber.css
Original file line number Diff line number Diff line change
Expand Up @@ -2376,6 +2376,46 @@ progress::-moz-progress-bar {
}
}

/**
* Notification (<dialog>)
*/
dialog[role=alert] {
position: fixed;
top: unset;
right: var(--pico-spacing);
bottom: var(--pico-spacing);
left: unset;
width: auto;
min-width: unset;
height: auto;
min-height: unset;
padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
border: var(--pico-border-width) solid var(--pico-border-color);
border-radius: var(--pico-border-radius);
-webkit-backdrop-filter: var(--pico-modal-overlay-backdrop-filter);
backdrop-filter: var(--pico-modal-overlay-backdrop-filter);
background-color: var(--pico-primary-background);
box-shadow: var(--pico-box-shadow);
color: var(--pico-primary-inverse);
font-weight: var(--pico-font-weight);
font-size: var(--pico-font-size);
line-height: var(--pico-line-height);
opacity: 0;
transition: opacity var(--pico-transition);
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}

dialog[data-backdrop=false][role=alert]::backdrop {
display: none;
}

dialog[role=alert][open] {
opacity: 1;
transition: opacity var(--pico-transition);
}

/**
* Accessibility & User interaction
*/
Expand Down
2 changes: 1 addition & 1 deletion css/pico.classless.amber.min.css

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions css/pico.classless.blue.css
Original file line number Diff line number Diff line change
Expand Up @@ -2376,6 +2376,46 @@ progress::-moz-progress-bar {
}
}

/**
* Notification (<dialog>)
*/
dialog[role=alert] {
position: fixed;
top: unset;
right: var(--pico-spacing);
bottom: var(--pico-spacing);
left: unset;
width: auto;
min-width: unset;
height: auto;
min-height: unset;
padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
border: var(--pico-border-width) solid var(--pico-border-color);
border-radius: var(--pico-border-radius);
-webkit-backdrop-filter: var(--pico-modal-overlay-backdrop-filter);
backdrop-filter: var(--pico-modal-overlay-backdrop-filter);
background-color: var(--pico-primary-background);
box-shadow: var(--pico-box-shadow);
color: var(--pico-primary-inverse);
font-weight: var(--pico-font-weight);
font-size: var(--pico-font-size);
line-height: var(--pico-line-height);
opacity: 0;
transition: opacity var(--pico-transition);
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}

dialog[data-backdrop=false][role=alert]::backdrop {
display: none;
}

dialog[role=alert][open] {
opacity: 1;
transition: opacity var(--pico-transition);
}

/**
* Accessibility & User interaction
*/
Expand Down
2 changes: 1 addition & 1 deletion css/pico.classless.blue.min.css

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions css/pico.classless.conditional.amber.css
Original file line number Diff line number Diff line change
Expand Up @@ -2376,6 +2376,46 @@ main {
}
}

/**
* Notification (<dialog>)
*/
dialog[role=alert] {
position: fixed;
top: unset;
right: var(--pico-spacing);
bottom: var(--pico-spacing);
left: unset;
width: auto;
min-width: unset;
height: auto;
min-height: unset;
padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
border: var(--pico-border-width) solid var(--pico-border-color);
border-radius: var(--pico-border-radius);
-webkit-backdrop-filter: var(--pico-modal-overlay-backdrop-filter);
backdrop-filter: var(--pico-modal-overlay-backdrop-filter);
background-color: var(--pico-primary-background);
box-shadow: var(--pico-box-shadow);
color: var(--pico-primary-inverse);
font-weight: var(--pico-font-weight);
font-size: var(--pico-font-size);
line-height: var(--pico-line-height);
opacity: 0;
transition: opacity var(--pico-transition);
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}

dialog[data-backdrop=false][role=alert]::backdrop {
display: none;
}

dialog[role=alert][open] {
opacity: 1;
transition: opacity var(--pico-transition);
}

/**
* Accessibility & User interaction
*/
Expand Down
2 changes: 1 addition & 1 deletion css/pico.classless.conditional.amber.min.css

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions css/pico.classless.conditional.blue.css
Original file line number Diff line number Diff line change
Expand Up @@ -2376,6 +2376,46 @@ main {
}
}

/**
* Notification (<dialog>)
*/
dialog[role=alert] {
position: fixed;
top: unset;
right: var(--pico-spacing);
bottom: var(--pico-spacing);
left: unset;
width: auto;
min-width: unset;
height: auto;
min-height: unset;
padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
border: var(--pico-border-width) solid var(--pico-border-color);
border-radius: var(--pico-border-radius);
-webkit-backdrop-filter: var(--pico-modal-overlay-backdrop-filter);
backdrop-filter: var(--pico-modal-overlay-backdrop-filter);
background-color: var(--pico-primary-background);
box-shadow: var(--pico-box-shadow);
color: var(--pico-primary-inverse);
font-weight: var(--pico-font-weight);
font-size: var(--pico-font-size);
line-height: var(--pico-line-height);
opacity: 0;
transition: opacity var(--pico-transition);
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}

dialog[data-backdrop=false][role=alert]::backdrop {
display: none;
}

dialog[role=alert][open] {
opacity: 1;
transition: opacity var(--pico-transition);
}

/**
* Accessibility & User interaction
*/
Expand Down
2 changes: 1 addition & 1 deletion css/pico.classless.conditional.blue.min.css

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions css/pico.classless.conditional.cyan.css
Original file line number Diff line number Diff line change
Expand Up @@ -2376,6 +2376,46 @@ main {
}
}

/**
* Notification (<dialog>)
*/
dialog[role=alert] {
position: fixed;
top: unset;
right: var(--pico-spacing);
bottom: var(--pico-spacing);
left: unset;
width: auto;
min-width: unset;
height: auto;
min-height: unset;
padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
border: var(--pico-border-width) solid var(--pico-border-color);
border-radius: var(--pico-border-radius);
-webkit-backdrop-filter: var(--pico-modal-overlay-backdrop-filter);
backdrop-filter: var(--pico-modal-overlay-backdrop-filter);
background-color: var(--pico-primary-background);
box-shadow: var(--pico-box-shadow);
color: var(--pico-primary-inverse);
font-weight: var(--pico-font-weight);
font-size: var(--pico-font-size);
line-height: var(--pico-line-height);
opacity: 0;
transition: opacity var(--pico-transition);
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}

dialog[data-backdrop=false][role=alert]::backdrop {
display: none;
}

dialog[role=alert][open] {
opacity: 1;
transition: opacity var(--pico-transition);
}

/**
* Accessibility & User interaction
*/
Expand Down
2 changes: 1 addition & 1 deletion css/pico.classless.conditional.cyan.min.css

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions css/pico.classless.conditional.fuchsia.css
Original file line number Diff line number Diff line change
Expand Up @@ -2376,6 +2376,46 @@ main {
}
}

/**
* Notification (<dialog>)
*/
dialog[role=alert] {
position: fixed;
top: unset;
right: var(--pico-spacing);
bottom: var(--pico-spacing);
left: unset;
width: auto;
min-width: unset;
height: auto;
min-height: unset;
padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
border: var(--pico-border-width) solid var(--pico-border-color);
border-radius: var(--pico-border-radius);
-webkit-backdrop-filter: var(--pico-modal-overlay-backdrop-filter);
backdrop-filter: var(--pico-modal-overlay-backdrop-filter);
background-color: var(--pico-primary-background);
box-shadow: var(--pico-box-shadow);
color: var(--pico-primary-inverse);
font-weight: var(--pico-font-weight);
font-size: var(--pico-font-size);
line-height: var(--pico-line-height);
opacity: 0;
transition: opacity var(--pico-transition);
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}

dialog[data-backdrop=false][role=alert]::backdrop {
display: none;
}

dialog[role=alert][open] {
opacity: 1;
transition: opacity var(--pico-transition);
}

/**
* Accessibility & User interaction
*/
Expand Down
2 changes: 1 addition & 1 deletion css/pico.classless.conditional.fuchsia.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit c1b55d8

Please sign in to comment.