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*
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;
}
}
@ -397,6 +397,14 @@ body:hover .rssguard-mwrapper .rssguard-mhead .mwrapurl {
span {
visibility: hidden;
}
a[href=""] {
&,
& + span {
display: none;
}
}
}
}
}

View File

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

View File

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

View File

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

View File

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