Fix for Issue #26

This commit is contained in:
Random Penguin 2025-04-04 16:12:40 -05:00
parent b82887ea99
commit 82054decb8

View file

@ -1,8 +1,8 @@
/* /*
Name : Bookface Auto Color Mode Name : Bookface Auto Color Mode
Version : 1.6.1 Version : 1.6.2
Licence : AGPL Licence : AGPL
Created on : 2 APR 2025 Created on : 4 APR 2025
Author : Pygoscelis Papua @randompenguin@friendica.world feb @feb@loma.ml Phil @phil@loma.ml Author : Pygoscelis Papua @randompenguin@friendica.world feb @feb@loma.ml Phil @phil@loma.ml
*/ */
@ -2080,6 +2080,13 @@ body.mod-settings #delegation .contact-block-img {
body.mod-profile .vcard + #sidebar-photos-albums::before { body.mod-profile .vcard + #sidebar-photos-albums::before {
content: ''; content: '';
} }
/* This is for old browsers that do not understand either @supports or :has() */
body.mod-contact aside,
body.mod-photos aside,
body.mod-profile aside {
position: absolute !important;
}
/* only seen on your own Contacts Page */ /* only seen on your own Contacts Page */
@supports not selector(:has(*)){ @supports not selector(:has(*)){
body.mod-contact #peoplefind-sidebar::before { body.mod-contact #peoplefind-sidebar::before {
@ -2103,6 +2110,12 @@ body.mod-settings #delegation .contact-block-img {
} }
} }
@supports selector(:has(*)){ @supports selector(:has(*)){
/* for browsers that DO understand both @supports and :has() */
body.mod-contact aside,
body.mod-photos aside,
body.mod-profile aside {
position: fixed !important;
}
body.mod-contact aside:has(#peoplefind-sidebar) + #content { body.mod-contact aside:has(#peoplefind-sidebar) + #content {
margin-top: 0; margin-top: 0;
} }
@ -5059,6 +5072,13 @@ a.tag.label,
body.mod-profile .vcard + #sidebar-photos-albums::before { body.mod-profile .vcard + #sidebar-photos-albums::before {
content: ''; content: '';
} }
/* This is for old browsers that do not understand either @supports or :has() */
body.mod-contact aside,
body.mod-photos aside,
body.mod-profile aside {
position: absolute !important;
}
/* only seen on your own Contacts Page */ /* only seen on your own Contacts Page */
@supports not selector(:has(*)){ @supports not selector(:has(*)){
body.mod-contact #peoplefind-sidebar::before { body.mod-contact #peoplefind-sidebar::before {
@ -5082,6 +5102,12 @@ a.tag.label,
} }
} }
@supports selector(:has(*)){ @supports selector(:has(*)){
/* for browsers that DO understand both @supports and :has() */
body.mod-contact aside,
body.mod-photos aside,
body.mod-profile aside {
position: fixed !important;
}
body.mod-contact aside:has(#peoplefind-sidebar) + #content { body.mod-contact aside:has(#peoplefind-sidebar) + #content {
margin-top: 0; margin-top: 0;
} }