mirror of
https://github.com/taigrr/homer
synced 2025-01-18 04:53:12 -08:00
feat: Adds feature to include info button to top right of cards
This commit is contained in:
parent
4a31e1e146
commit
7bab0dbdd9
@ -49,6 +49,14 @@ body {
|
|||||||
&:hover {
|
&:hover {
|
||||||
background-color: var(--card-background);
|
background-color: var(--card-background);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.linkoverlay {
|
||||||
|
position:absolute;
|
||||||
|
left:0;
|
||||||
|
top:0;
|
||||||
|
bottom:0;
|
||||||
|
right:0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.message {
|
.message {
|
||||||
@ -196,11 +204,21 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.media-left {
|
||||||
|
pointer-events: none;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
.media-content {
|
.media-content {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: inherit;
|
text-overflow: inherit;
|
||||||
}
|
}
|
||||||
|
.infolink {
|
||||||
|
font-family: "Font Awesome 5 Free";
|
||||||
|
position: absolute;
|
||||||
|
top: 0.5rem;
|
||||||
|
right: 0.5rem;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.tag {
|
.tag {
|
||||||
color: var(--highlight-secondary);
|
color: var(--highlight-secondary);
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
export default {};
|
export default {};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style></style> */
|
<style></style>
|
||||||
|
*/
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {};
|
export default {};
|
||||||
@ -13,7 +14,12 @@ export default {};
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="card" :class="item.class">
|
<div class="card" :class="item.class">
|
||||||
<a :href="item.url" :target="item.target" rel="noreferrer">
|
<a
|
||||||
|
:href="item.url"
|
||||||
|
class="linkoverlay"
|
||||||
|
:target="item.target"
|
||||||
|
rel="noreferrer"
|
||||||
|
></a>
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<div class="media">
|
<div class="media">
|
||||||
<div v-if="item.logo" class="media-left">
|
<div v-if="item.logo" class="media-left">
|
||||||
@ -31,11 +37,19 @@ export default {};
|
|||||||
<p class="subtitle is-6">{{ item.subtitle }}</p>
|
<p class="subtitle is-6">{{ item.subtitle }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<a v-if="item.info"
|
||||||
|
:href="item.info"
|
||||||
|
:target="item.infotarget"
|
||||||
|
rel="noreferrer"
|
||||||
|
>
|
||||||
|
<div class="infolink">
|
||||||
|
<i class="fas fa-info-circle"></i>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
<div class="tag" :class="item.tagstyle" v-if="item.tag">
|
<div class="tag" :class="item.tagstyle" v-if="item.tag">
|
||||||
<strong class="tag-text">#{{ item.tag }}</strong>
|
<strong class="tag-text">#{{ item.tag }}</strong>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user