Opens links on Enter, in a new tab and a couple other final things

This commit is contained in:
Alicia Sykes 2019-09-29 22:05:16 +01:00
parent b608743172
commit 9391c5b5e4
6 changed files with 27 additions and 12 deletions

View File

@ -86,7 +86,6 @@ export default {
background: #607d8b33; background: #607d8b33;
box-shadow: 1px 1px 2px #232323; box-shadow: 1px 1px 2px #232323;
color: #1CA8DD; color: #1CA8DD;
font-family: 'Comfortaa', cursive;
&:focus { &:focus {
background: #607d8b4a; background: #607d8b4a;
} }

View File

@ -1,6 +1,7 @@
<template> <template>
<el-tooltip placement="bottom" effect="dark" :content="description" :disabled="!description"> <el-tooltip placement="bottom" effect="dark" :content="description" :disabled="!description">
<div :class="`item ${!icon && !svg? 'short': ''}`" tabindex="0"> <a :href="url" :class="`item ${!icon && !svg? 'short': ''}`"
tabindex="0" target="_blank" rel="noopener noreferrer">
<div class="tile-title" :id="`tile-${id}`"> <div class="tile-title" :id="`tile-${id}`">
<span class="text">{{ title }}</span> <span class="text">{{ title }}</span>
<div class="overflow-dots">...</div> <div class="overflow-dots">...</div>
@ -15,8 +16,8 @@
:src="`/img/tile-svgs/${svg}.svg`" :src="`/img/tile-svgs/${svg}.svg`"
class="tile-svg" class="tile-svg"
/> />
</div> </a>
</el-tooltip> </el-tooltip>
</template> </template>
<script> <script>
@ -141,6 +142,21 @@ export default {
width: 60px; width: 60px;
} }
.item:hover {
.tile-svg {
filter:
invert(70%)
sepia(52%)
saturate(5390%)
hue-rotate(198deg)
brightness(101%)
contrast(88%);
}
.tile-icon {
filter: hue-rotate(45deg);
}
}
.tile-svg { .tile-svg {
width: 56px; width: 56px;
filter: filter:

View File

@ -8,6 +8,7 @@
v-for="item in items" v-for="item in items"
:key="`${groupId}-${item.id}`" :key="`${groupId}-${item.id}`"
:id="`${groupId}-${item.id}`" :id="`${groupId}-${item.id}`"
:url="item.url"
:title="item.title" :title="item.title"
:description="item.description" :description="item.description"
:icon="item.icon" :icon="item.icon"

View File

@ -27,7 +27,6 @@ nav {
-webkit-box-shadow: 1px 1px 2px #232323; -webkit-box-shadow: 1px 1px 2px #232323;
box-shadow: 1px 1px 2px #232323; box-shadow: 1px 1px 2px #232323;
color: #1CA8DD; color: #1CA8DD;
font-family: "Comfortaa", cursive;
text-decoration: none; text-decoration: none;
&:hover { &:hover {
background: #607d8b1c; background: #607d8b1c;

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="page-titles"> <div class="page-titles">
<h1>Pannel</h1> <h1>Alicia App</h1>
<span class="subtitle">Awesome subtitle</span> <span class="subtitle">Dashboard of all the things</span>
</div> </div>
</template> </template>

View File

@ -1,4 +1,4 @@
@import url('https://fonts.googleapis.com/css?family=Comfortaa|Righteous&display=swap'); @import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');
html { html {
@ -10,13 +10,13 @@ body {
margin: 0; margin: 0;
padding: 0; padding: 0;
background: #282a32; background: #282a32;
font-family: 'Comfortaa', cursive; font-family: 'Montserrat', sans-serif;
} }
h1, h2, h3, h4, h5 { h1, h2, h3, h4, h5 {
font-family: 'Righteous', cursive; font-family: 'Montserrat', sans-serif;
} }
p, a, span, div { p, a, span, div, input {
font-family: 'Comfortaa', cursive; font-family: 'Montserrat', sans-serif;
} }