Skip to content

Commit

Permalink
753 vitepress 1.2.3 (#757)
Browse files Browse the repository at this point in the history
* merge framework files with API3 exceptions

* No longer updated with API3 exceptions
If need be this can be added back. Going back to the original file is we move forward to add in the API3 look and feel that Tamera is after.

* Remove script for NotFound file

* Remove console message

* Fix bug with Menu bar highlighting
When the user navigates away from the Reference menu to the Home page, the highlighting of the Reference menu was not removed.

* Package was not updated
  • Loading branch information
wkande authored Jun 14, 2024
1 parent 7a5ce75 commit 65a40da
Show file tree
Hide file tree
Showing 8 changed files with 229 additions and 352 deletions.
1 change: 0 additions & 1 deletion docs/.vitepress/theme/components/SidebarHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export default {
isDark: undefined,
}),
mounted() {
console.log(Date.now(), window.navigator.userAgent);
const { page } = useData();
const { path } = useRoute();
this.showVersions(path);
Expand Down
187 changes: 0 additions & 187 deletions docs/_components/vitepress/NotFound.vue

This file was deleted.

38 changes: 19 additions & 19 deletions docs/_components/vitepress/VPFlyout.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<script lang="ts" setup>
import { ref } from 'vue';
import { useFlyout } from '../composables/flyout';
import VPIconChevronDown from './icons/VPIconChevronDown.vue';
import VPIconMoreHorizontal from './icons/VPIconMoreHorizontal.vue';
import VPMenu from './VPMenu.vue';
defineProps<{
icon?: any;
icon?: string;
button?: string;
label?: string;
items?: any[];
Expand Down Expand Up @@ -38,16 +36,18 @@ function onBlur() {
@click="open = !open"
>
<span v-if="button || icon" class="text">
<component v-if="icon" :is="icon" class="option-icon" />
<span v-if="icon" :class="[icon, 'option-icon']" />
<!-- wkande: Jun 2024: button below replace with one further down :id="'api3_'... -->
<!-- span v-if="button" v-html="button"></span-->
<!-- wkande: Sept 2022: Added <span> (next line)
This ID used to to set the bnt text color togreen
This ID used to to set the bnt text color to green
when active by SidebarHeader.vue
-->
<span :id="'api3_' + button + '_Menu'">{{ button }}</span>
<VPIconChevronDown class="text-icon" />
<span class="vpi-chevron-down text-icon" />
</span>

<VPIconMoreHorizontal v-else class="icon" />
<span v-else class="vpi-more-horizontal icon" />
</button>

<div class="menu">
Expand All @@ -64,7 +64,7 @@ function onBlur() {
}
.VPFlyout:hover {
color: var(--vp-c-brand);
color: var(--vp-c-brand-1);
transition: color 0.25s;
}
Expand All @@ -77,11 +77,11 @@ function onBlur() {
}
.VPFlyout.active .text {
color: var(--vp-c-brand);
color: var(--vp-c-brand-1);
}
.VPFlyout.active:hover .text {
color: var(--vp-c-brand-dark);
color: var(--vp-c-brand-2);
}
.VPFlyout:hover .menu,
Expand All @@ -91,6 +91,12 @@ function onBlur() {
transform: translateY(0);
}
.button[aria-expanded='false'] + .menu {
opacity: 0;
visibility: hidden;
transform: translateY(0);
}
.button {
display: flex;
align-items: center;
Expand All @@ -112,22 +118,16 @@ function onBlur() {
.option-icon {
margin-right: 0px;
width: 16px;
height: 16px;
fill: currentColor;
font-size: 16px;
}
.text-icon {
margin-left: 4px;
width: 14px;
height: 14px;
fill: currentColor;
font-size: 14px;
}
.icon {
width: 20px;
height: 20px;
fill: currentColor;
font-size: 20px;
transition: fill 0.25s;
}
Expand Down
Loading

0 comments on commit 65a40da

Please sign in to comment.