Skip to content

Commit

Permalink
Merge pull request #250 from shgysk8zer0/feature/popover-styles
Browse files Browse the repository at this point in the history
Add styles for `[popover]`
  • Loading branch information
shgysk8zer0 committed Mar 10, 2024
2 parents e42444a + 77b653f commit 691bf8a
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v2.5.4] - 2024-03-19

### Added
- Add CSS for [`[popover]`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/popover)

## [v2.5.3] - 2023-07-26

### Fixed
Expand Down
26 changes: 26 additions & 0 deletions element.css
Original file line number Diff line number Diff line change
Expand Up @@ -240,3 +240,29 @@ ol > ol > ol > ol > ol {
[inert] {
pointer-events: none;
}

@supports not selector(:popover-open) {
:is([popover]:not(._popover-open)) {
display: none;
}

:is([popover]._popover-open) {
position: fixed;
z-index: 2147483647;
margin: auto;
inset: 0;
border: 3px solid currentColor;
height: fit-content;
width: fit-content;
padding: 0.25em;
background-color: #ffffff;
color: #070707;
}

@media (prefers-color-scheme: dark) {
:is([popover]._popover-open) {
background-color: #1c1b22;
color: #fbfbfe;
}
}
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shgysk8zer0/core-css",
"version": "2.5.3",
"version": "2.5.4",
"description": "A collection of stylesheets that enable quick and easy styling with customization",
"private": false,
"type": "module",
Expand Down

0 comments on commit 691bf8a

Please sign in to comment.