Skip to content

Commit

Permalink
[pbList] Lacks content : fallback-img+Chrome 124+(forced-colors:activ…
Browse files Browse the repository at this point in the history
…e)+(prefers-color-scheme:dark) #35
  • Loading branch information
pbrocky committed May 9, 2024
1 parent c68bba2 commit 8ed9f49
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
5 changes: 5 additions & 0 deletions src/scss/mixin/mixin-forced-colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
@if( $target == 'native' ){
@include media(forced_colors_native) { @content; }
}
@if( $target == 'native_white_on_dark' ){
@media only screen and (forced-colors: active) and (prefers-color-scheme:dark){
@content;
}
}

@if( $target == 'ms' ){
@include media(forced_colors_ms) { @content; }
Expand Down
35 changes: 18 additions & 17 deletions src/scss/pbList/04_prettify.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
@if( $OPTION_USE_WEBFONT_FALLBACK ){
.pbList-fallback-img {
background-color : #fff;

font {
background-color : black;
}
.pbList-area {
background-color : deeppink;
}
Expand All @@ -54,7 +50,10 @@
}
.pbList-syb {
background-color : brown;
}
}
font {
background-color : black;
}
}
}

Expand Down Expand Up @@ -86,12 +85,6 @@
@if( $OPTION_USE_WEBFONT_FALLBACK ){
.pbList-fallback-img {
background-color : #000;
font {
background-color : white;
}
font:after {
filter : invert(1); // A
}
.pbList-area {
background-color : #C487A0;
}
Expand All @@ -110,18 +103,26 @@
.pbList-syb {
background-color : #d8ae14;
}
font {
background-color : white;
}
font:after {
filter : invert(1); // A
}
}
}
}
@if( $UA_Modern ){
@include forced-colors(native){
.pbList-fallback-img font:after {
filter : invert(0); // Overide A
@include forced-colors(native_or_fallback){
.pbList-fallback-img {
font:after {
filter : invert(0); // Overide A
}
}
}
@include forced-colors(fallback){
.pbList-fallback-img font:after {
filter : invert(0); // Overide A
@include forced-colors(native_white_on_dark){
_:lang(x)::-internal-media-controls-overlay-cast-button, .pbList-fallback-img font:after {
filter : invert(1); // for Chrome 124
}
}
}
Expand Down

0 comments on commit 8ed9f49

Please sign in to comment.