Skip to content

Commit

Permalink
RTL Dropdown Nav corrected thanks to @64bitint
Browse files Browse the repository at this point in the history
Added popovers to possibly replace the notifications.
Started adding popover toasts
  • Loading branch information
Yohn committed Dec 14, 2024
1 parent 8a7b25a commit 64373c2
Show file tree
Hide file tree
Showing 244 changed files with 3,461 additions and 724 deletions.
43 changes: 38 additions & 5 deletions css/pico.amber.css
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,23 @@ details summary[role=button]:not(.outline)::after {
--pico-timeline-dot-border-color: var(--pico-primary-background);
--pico-timeline-arrow-color: var(--pico-card-sectioning-background-color);
}
[data-theme=light] [aria-busy=true]:not(input, select, textarea).contrast:is(button,
[type=submit],
[type=button],
[type=reset],
[role=button]):not(.outline)::before,
:root:not([data-theme=dark]) [aria-busy=true]:not(input, select, textarea).contrast:is(button,
[type=submit],
[type=button],
[type=reset],
[role=button]):not(.outline)::before,
:host(:not([data-theme=dark])) [aria-busy=true]:not(input, select, textarea).contrast:is(button,
[type=submit],
[type=button],
[type=reset],
[role=button]):not(.outline)::before {
filter: invert(1) !important;
}
[data-theme=light] input:is([type=submit],
[type=button],
[type=reset],
Expand Down Expand Up @@ -3488,11 +3505,6 @@ body:has(dialog[open]) {
/**
* Nav
*/
:where(nav li)::before {
float: left;
content: "​";
}

nav,
nav ul {
display: flex;
Expand Down Expand Up @@ -4062,6 +4074,27 @@ section[role=region] details[open] > div {
transition: opacity var(--pico-transition);
}

[popover] {
border-color: var(--pico-primary);
}
[popover]:popover-open {
margin: auto auto;
}
[popover]::backdrop {
-webkit-backdrop-filter: blur(3px);
backdrop-filter: blur(3px);
background: rgba(0, 0, 0, 0.7);
}
[popover] button {
margin-top: -10px;
padding: 0;
border: 0 none;
background: transparent;
color: var(--pico-primary);
font-size: 1.5em;
opacity: 0.8;
}

/**
* Notification (<dialog>)
*/
Expand Down
2 changes: 1 addition & 1 deletion css/pico.amber.min.css

Large diffs are not rendered by default.

43 changes: 38 additions & 5 deletions css/pico.blue.css
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,23 @@ details summary[role=button]:not(.outline)::after {
--pico-timeline-dot-border-color: var(--pico-primary-background);
--pico-timeline-arrow-color: var(--pico-card-sectioning-background-color);
}
[data-theme=light] [aria-busy=true]:not(input, select, textarea).contrast:is(button,
[type=submit],
[type=button],
[type=reset],
[role=button]):not(.outline)::before,
:root:not([data-theme=dark]) [aria-busy=true]:not(input, select, textarea).contrast:is(button,
[type=submit],
[type=button],
[type=reset],
[role=button]):not(.outline)::before,
:host(:not([data-theme=dark])) [aria-busy=true]:not(input, select, textarea).contrast:is(button,
[type=submit],
[type=button],
[type=reset],
[role=button]):not(.outline)::before {
filter: invert(1) !important;
}
[data-theme=light] input:is([type=submit],
[type=button],
[type=reset],
Expand Down Expand Up @@ -3488,11 +3505,6 @@ body:has(dialog[open]) {
/**
* Nav
*/
:where(nav li)::before {
float: left;
content: "​";
}

nav,
nav ul {
display: flex;
Expand Down Expand Up @@ -4062,6 +4074,27 @@ section[role=region] details[open] > div {
transition: opacity var(--pico-transition);
}

[popover] {
border-color: var(--pico-primary);
}
[popover]:popover-open {
margin: auto auto;
}
[popover]::backdrop {
-webkit-backdrop-filter: blur(3px);
backdrop-filter: blur(3px);
background: rgba(0, 0, 0, 0.7);
}
[popover] button {
margin-top: -10px;
padding: 0;
border: 0 none;
background: transparent;
color: var(--pico-primary);
font-size: 1.5em;
opacity: 0.8;
}

/**
* Notification (<dialog>)
*/
Expand Down
2 changes: 1 addition & 1 deletion css/pico.blue.min.css

Large diffs are not rendered by default.

26 changes: 21 additions & 5 deletions css/pico.classless.amber.css
Original file line number Diff line number Diff line change
Expand Up @@ -2602,11 +2602,6 @@ body:has(dialog[open]) {
/**
* Nav
*/
:where(nav li)::before {
float: left;
content: "​";
}

nav,
nav ul {
display: flex;
Expand Down Expand Up @@ -3176,6 +3171,27 @@ section[role=region] details[open] > div {
transition: opacity var(--pico-transition);
}

[popover] {
border-color: var(--pico-primary);
}
[popover]:popover-open {
margin: auto auto;
}
[popover]::backdrop {
-webkit-backdrop-filter: blur(3px);
backdrop-filter: blur(3px);
background: rgba(0, 0, 0, 0.7);
}
[popover] button {
margin-top: -10px;
padding: 0;
border: 0 none;
background: transparent;
color: var(--pico-primary);
font-size: 1.5em;
opacity: 0.8;
}

/**
* Notification (<dialog>)
*/
Expand Down
2 changes: 1 addition & 1 deletion css/pico.classless.amber.min.css

Large diffs are not rendered by default.

26 changes: 21 additions & 5 deletions css/pico.classless.blue.css
Original file line number Diff line number Diff line change
Expand Up @@ -2602,11 +2602,6 @@ body:has(dialog[open]) {
/**
* Nav
*/
:where(nav li)::before {
float: left;
content: "​";
}

nav,
nav ul {
display: flex;
Expand Down Expand Up @@ -3176,6 +3171,27 @@ section[role=region] details[open] > div {
transition: opacity var(--pico-transition);
}

[popover] {
border-color: var(--pico-primary);
}
[popover]:popover-open {
margin: auto auto;
}
[popover]::backdrop {
-webkit-backdrop-filter: blur(3px);
backdrop-filter: blur(3px);
background: rgba(0, 0, 0, 0.7);
}
[popover] button {
margin-top: -10px;
padding: 0;
border: 0 none;
background: transparent;
color: var(--pico-primary);
font-size: 1.5em;
opacity: 0.8;
}

/**
* Notification (<dialog>)
*/
Expand Down
2 changes: 1 addition & 1 deletion css/pico.classless.blue.min.css

Large diffs are not rendered by default.

26 changes: 21 additions & 5 deletions css/pico.classless.conditional.amber.css
Original file line number Diff line number Diff line change
Expand Up @@ -2602,11 +2602,6 @@ body:has(dialog[open]) {
/**
* Nav
*/
:where(nav li)::before {
float: left;
content: "​";
}

.pico nav,
.pico nav ul {
display: flex;
Expand Down Expand Up @@ -3176,6 +3171,27 @@ body:has(dialog[open]) {
transition: opacity var(--pico-transition);
}

.pico [popover] {
border-color: var(--pico-primary);
}
.pico [popover]:popover-open {
margin: auto auto;
}
.pico [popover]::backdrop {
-webkit-backdrop-filter: blur(3px);
backdrop-filter: blur(3px);
background: rgba(0, 0, 0, 0.7);
}
.pico [popover] button {
margin-top: -10px;
padding: 0;
border: 0 none;
background: transparent;
color: var(--pico-primary);
font-size: 1.5em;
opacity: 0.8;
}

/**
* Notification (<dialog>)
*/
Expand Down
2 changes: 1 addition & 1 deletion css/pico.classless.conditional.amber.min.css

Large diffs are not rendered by default.

26 changes: 21 additions & 5 deletions css/pico.classless.conditional.blue.css
Original file line number Diff line number Diff line change
Expand Up @@ -2602,11 +2602,6 @@ body:has(dialog[open]) {
/**
* Nav
*/
:where(nav li)::before {
float: left;
content: "​";
}

.pico nav,
.pico nav ul {
display: flex;
Expand Down Expand Up @@ -3176,6 +3171,27 @@ body:has(dialog[open]) {
transition: opacity var(--pico-transition);
}

.pico [popover] {
border-color: var(--pico-primary);
}
.pico [popover]:popover-open {
margin: auto auto;
}
.pico [popover]::backdrop {
-webkit-backdrop-filter: blur(3px);
backdrop-filter: blur(3px);
background: rgba(0, 0, 0, 0.7);
}
.pico [popover] button {
margin-top: -10px;
padding: 0;
border: 0 none;
background: transparent;
color: var(--pico-primary);
font-size: 1.5em;
opacity: 0.8;
}

/**
* Notification (<dialog>)
*/
Expand Down
2 changes: 1 addition & 1 deletion css/pico.classless.conditional.blue.min.css

Large diffs are not rendered by default.

26 changes: 21 additions & 5 deletions css/pico.classless.conditional.cyan.css
Original file line number Diff line number Diff line change
Expand Up @@ -2602,11 +2602,6 @@ body:has(dialog[open]) {
/**
* Nav
*/
:where(nav li)::before {
float: left;
content: "​";
}

.pico nav,
.pico nav ul {
display: flex;
Expand Down Expand Up @@ -3176,6 +3171,27 @@ body:has(dialog[open]) {
transition: opacity var(--pico-transition);
}

.pico [popover] {
border-color: var(--pico-primary);
}
.pico [popover]:popover-open {
margin: auto auto;
}
.pico [popover]::backdrop {
-webkit-backdrop-filter: blur(3px);
backdrop-filter: blur(3px);
background: rgba(0, 0, 0, 0.7);
}
.pico [popover] button {
margin-top: -10px;
padding: 0;
border: 0 none;
background: transparent;
color: var(--pico-primary);
font-size: 1.5em;
opacity: 0.8;
}

/**
* Notification (<dialog>)
*/
Expand Down
2 changes: 1 addition & 1 deletion css/pico.classless.conditional.cyan.min.css

Large diffs are not rendered by default.

26 changes: 21 additions & 5 deletions css/pico.classless.conditional.fuchsia.css
Original file line number Diff line number Diff line change
Expand Up @@ -2602,11 +2602,6 @@ body:has(dialog[open]) {
/**
* Nav
*/
:where(nav li)::before {
float: left;
content: "​";
}

.pico nav,
.pico nav ul {
display: flex;
Expand Down Expand Up @@ -3176,6 +3171,27 @@ body:has(dialog[open]) {
transition: opacity var(--pico-transition);
}

.pico [popover] {
border-color: var(--pico-primary);
}
.pico [popover]:popover-open {
margin: auto auto;
}
.pico [popover]::backdrop {
-webkit-backdrop-filter: blur(3px);
backdrop-filter: blur(3px);
background: rgba(0, 0, 0, 0.7);
}
.pico [popover] button {
margin-top: -10px;
padding: 0;
border: 0 none;
background: transparent;
color: var(--pico-primary);
font-size: 1.5em;
opacity: 0.8;
}

/**
* Notification (<dialog>)
*/
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 64373c2

Please sign in to comment.