Hide URL if href attribute is empty (nudus skins) (#630)

Co-authored-by: akinokonomi <akinokonomi@example.com>
This commit is contained in:
akinokonomi 2022-02-11 06:40:19 +00:00 committed by GitHub
parent 24b2b09f18
commit f9d0607adf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 9 deletions

View file

@ -346,10 +346,10 @@ summary {
} }
// m* == message* // m* == message*
body:hover .rssguard-mwrapper .rssguard-mhead .mwrapurl { body:hover .rssguard-mwrapper .rssguard-mhead .mwrapurl a {
a, &,
span { &:not([href=""]) + span { // NOTE: 'a[href="*"] + span' is never visible
visibility: visible; visibility: visible;
} }
} }
@ -397,6 +397,14 @@ body:hover .rssguard-mwrapper .rssguard-mhead .mwrapurl {
span { span {
visibility: hidden; visibility: hidden;
} }
a[href=""] {
&,
& + span {
display: none;
}
}
} }
} }
} }

View file

@ -293,8 +293,7 @@ summary:focus {
outline: 1px solid #8291AD; outline: 1px solid #8291AD;
} }
body:hover .rssguard-mwrapper .rssguard-mhead .mwrapurl a, body:hover .rssguard-mwrapper .rssguard-mhead .mwrapurl a, body:hover .rssguard-mwrapper .rssguard-mhead .mwrapurl a:not([href=""]) + span {
body:hover .rssguard-mwrapper .rssguard-mhead .mwrapurl span {
visibility: visible; visibility: visible;
} }
@ -328,6 +327,9 @@ body:hover .rssguard-mwrapper .rssguard-mhead .mwrapurl span {
.rssguard-mwrapper .rssguard-mhead .mlinks .mwrapurl span { .rssguard-mwrapper .rssguard-mhead .mlinks .mwrapurl span {
visibility: hidden; visibility: hidden;
} }
.rssguard-mwrapper .rssguard-mhead .mlinks .mwrapurl a[href=""], .rssguard-mwrapper .rssguard-mhead .mlinks .mwrapurl a[href=""] + span {
display: none;
}
.rssguard-mwrapper .rssguard-mbody img { .rssguard-mwrapper .rssguard-mbody img {
max-width: 450px !important; max-width: 450px !important;
max-height: unset !important; max-height: unset !important;

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<skin version="0.1" base="nudus-base"> <skin version="0.1.1" base="nudus-base">
<author> <author>
<name>akinokonomi</name> <name>akinokonomi</name>
</author> </author>

View file

@ -293,8 +293,7 @@ summary:focus {
outline: 1px solid #5D88D2; outline: 1px solid #5D88D2;
} }
body:hover .rssguard-mwrapper .rssguard-mhead .mwrapurl a, body:hover .rssguard-mwrapper .rssguard-mhead .mwrapurl a, body:hover .rssguard-mwrapper .rssguard-mhead .mwrapurl a:not([href=""]) + span {
body:hover .rssguard-mwrapper .rssguard-mhead .mwrapurl span {
visibility: visible; visibility: visible;
} }
@ -328,6 +327,9 @@ body:hover .rssguard-mwrapper .rssguard-mhead .mwrapurl span {
.rssguard-mwrapper .rssguard-mhead .mlinks .mwrapurl span { .rssguard-mwrapper .rssguard-mhead .mlinks .mwrapurl span {
visibility: hidden; visibility: hidden;
} }
.rssguard-mwrapper .rssguard-mhead .mlinks .mwrapurl a[href=""], .rssguard-mwrapper .rssguard-mhead .mlinks .mwrapurl a[href=""] + span {
display: none;
}
.rssguard-mwrapper .rssguard-mbody img { .rssguard-mwrapper .rssguard-mbody img {
max-width: 450px !important; max-width: 450px !important;
max-height: unset !important; max-height: unset !important;

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<skin version="0.1" base="nudus-base"> <skin version="0.1.1" base="nudus-base">
<author> <author>
<name>akinokonomi</name> <name>akinokonomi</name>
</author> </author>