better links in Index
This commit is contained in:
1 parent
72bb4ef3ce
commit
cc0b653427
2 files changed
+10
-7
No files matched your search
@@ -30,8 +30,8 @@ const head = document.querySelector('.pane.index>.head'),
|
||||
|
||||
for (let app of apps) {
|
||||
let description = document.createElement('div'),
|
||||
title = document.createElement('div'),
|
||||
link = document.createElement('a'),
|
||||
title = document.createElement('a'),
|
||||
link = document.createElement('i'),
|
||||
content = document.createElement('div'),
|
||||
element = document.createElement('div'),
|
||||
icon = document.createElement('i')
|
||||
@@ -46,8 +46,9 @@ for (let app of apps) {
|
||||
content.classList.add('content')
|
||||
icon.classList.add('icon-link-ext')
|
||||
|
||||
link.setAttribute('href', app.link)
|
||||
link.setAttribute('target', '_blank')
|
||||
title.setAttribute('href', app.link)
|
||||
title.setAttribute('title', app.name)
|
||||
title.setAttribute('target', '_blank')
|
||||
element.setAttribute('data-target', app.name)
|
||||
element.setAttribute('data-link', app.link)
|
||||
|
||||
|
||||
@@ -322,13 +322,15 @@ nav {
|
||||
}
|
||||
|
||||
.description>.title {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
font-size: 2rem;
|
||||
margin-bottom: 1rem;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.description>a.link {
|
||||
color: inherit;
|
||||
.description>.link {
|
||||
color: transparent;
|
||||
text-decoration: none;
|
||||
margin-left: .5rem;
|
||||
position: absolute;
|
||||
@@ -336,7 +338,7 @@ nav {
|
||||
top: 1em;
|
||||
}
|
||||
|
||||
.description>a.link:hover {
|
||||
.description>.title:hover + .link {
|
||||
color: var(--color-main);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user