Skip to content
Snippets Groups Projects
Commit 087bf8fe authored by David Mendez's avatar David Mendez
Browse files

Improve bevhaviour of report card navigator component

parent f267f619
No related branches found
No related tags found
1 merge request!5Add compounds and target browser mockups
<template> <template>
<v-footer app> <div>Footer!</div>
<span>&copy; {{ new Date().getFullYear() }}</span>
</v-footer>
</template> </template>
<script> <script>
......
<template> <template>
<v-container> <v-container>
<v-row> <v-row>
<v-col cols="11" md="9"> <v-col cols="12" md="9">
<h1 class="primary--text">{{ reportCardStructure.title }}</h1> <h1 class="primary--text">{{ reportCardStructure.title }}</h1>
<v-divider /> <v-divider />
<br /> <br />
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<v-divider /> <v-divider />
</div> </div>
</v-col> </v-col>
<v-col cols="1" md="3"> <v-col cols="0" md="3">
<Navigator :report-card-structure="reportCardStructure" /> <Navigator :report-card-structure="reportCardStructure" />
</v-col> </v-col>
</v-row> </v-row>
......
<template> <template>
<div :id="sectionDescription.id"> <div :id="sectionDescription.id" class="report-card-section">
<v-row> <v-row>
<v-col cols="12"> <v-col cols="12">
<div class="d-flex"> <a
<a :href="`#${sectionDescription.id}`"> :href="`#${sectionDescription.id}`"
<v-icon>mdi-link</v-icon> class="d-flex section-title-link"
</a> @mouseover="showLinkIcon = true"
@mouseout="showLinkIcon = false"
>
<h2 class="primary--text">{{ sectionDescription.title }}</h2> <h2 class="primary--text">{{ sectionDescription.title }}</h2>
</div> <v-icon v-show="showLinkIcon">mdi-link</v-icon>
</a>
</v-col> </v-col>
</v-row> </v-row>
...@@ -27,7 +30,26 @@ export default { ...@@ -27,7 +30,26 @@ export default {
default: () => {}, default: () => {},
}, },
}, },
data() {
return {
showLinkIcon: false,
}
},
} }
</script> </script>
<style></style> <style lang="scss">
.report-card-section {
.section-title-link {
text-decoration: none;
}
&::before {
display: block;
content: ' ';
margin-top: -68px;
height: 68px;
visibility: hidden;
pointer-events: none;
}
}
</style>
Subproject commit 8cb7155b29bc9d533d0704f794718ad37a160a31 Subproject commit 4a1c5882ae02999a91bf698fb9ee6625e5262528
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment