-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: wt-navigation-bar docs + colors change [WTEL-3943]
- Loading branch information
Showing
10 changed files
with
133 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<script setup> | ||
import Docs from './wt-divider-docs.vue'; | ||
import ExampleDivider from './examples/example-divider.vue'; | ||
</script> | ||
|
||
# WtDivider | ||
|
||
## Props | ||
::: raw | ||
<Docs/> | ||
::: | ||
|
||
## Example Divider | ||
::: raw | ||
<ExampleDivider/> | ||
::: | ||
|
||
::: details Code | ||
<<< ./examples/example-divider.vue | ||
::: | ||
|
20 changes: 20 additions & 0 deletions
20
docs/pages/webitel-ui/components/wt-navigation-bar/Readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<script setup> | ||
import Docs from './wt-navigation-bar-docs.vue'; | ||
import ExampleNavigationBar from './examples/example-navigation-bar.vue'; | ||
</script> | ||
|
||
# WtNavigationBar | ||
|
||
## Props | ||
::: raw | ||
<Docs/> | ||
::: | ||
|
||
## Example NavigationBar | ||
::: raw | ||
<ExampleNavigationBar/> | ||
::: | ||
|
||
::: details Code | ||
<<< ./examples/example-navigation-bar.vue | ||
::: |
32 changes: 32 additions & 0 deletions
32
docs/pages/webitel-ui/components/wt-navigation-bar/examples/example-navigation-bar.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<script setup> | ||
const currentApp = 'history'; | ||
const nav = [ | ||
{ value: '1', name: 'Name 1', route: '/1' }, | ||
{ | ||
value: 'exp1', name: 'Expansion 1', subNav: [ | ||
{ value: '2', name: 'Name 2', route: '/2' }, | ||
{ value: '3', name: 'Name 3', route: '/3' }, | ||
], | ||
}, | ||
{ | ||
value: 'exp2', name: 'Expansion 2', subNav: [ | ||
{ value: '4', name: 'Name 4', route: '/4' }, | ||
{ value: '5', name: 'Name 5', route: '/5' }, | ||
], | ||
}, | ||
]; | ||
</script> | ||
|
||
<template> | ||
<wt-navigation-bar | ||
:current-app="currentApp" | ||
:nav="nav" | ||
/> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
.wt-navigation-bar :deep(.wt-navigation-bar__nav) { | ||
z-index: 1001; // overlap vitepress sidebar | ||
} | ||
</style> |
45 changes: 3 additions & 42 deletions
45
docs/pages/webitel-ui/components/wt-navigation-bar/wt-navigation-bar-docs.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
:root { | ||
--divider-border: 1px solid; | ||
--divider-border-color: var(--page-bg-color); | ||
} | ||
--divider-border-color: var(--secondary-color); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
:root { | ||
--navigation-bar-width: 340px; | ||
--navigation-bar-z-index: 10; | ||
--navigation-bar-bg-color: var(--main-color); | ||
--navigation-bar-padding: var(--spacing-sm); | ||
--wt-navigation-bar-width: 340px; | ||
--wt-navigation-bar-z-index: 10; | ||
--wt-navigation-bar-padding: var(--spacing-sm); | ||
|
||
--navigation-bar-header-padding: var(--spacing-xs); | ||
--navigation-bar-app-pic-width: 200px; | ||
--navigation-bar-app-pic-height: 30px; | ||
--wt-navigation-bar-header-padding: var(--spacing-xs); | ||
--wt-navigation-bar-app-pic-width: 200px; | ||
--wt-navigation-bar-app-pic-height: 30px; | ||
|
||
--navigation-bar-list-padding: var(--navigation-bar-padding); | ||
--navigation-bar-link-padding: var(--navigation-bar-padding); | ||
--navigation-bar-subnav-padding-left: var(--spacing-lg); | ||
--navigation-bar-active-expansion-flag-width: 5px; | ||
--navigation-bar-active-expansion-name-max-width: calc(100% - var(--icon-md-size) - var(--spacing-xs)); | ||
--wt-navigation-bar-list-padding: var(--wt-navigation-bar-padding); | ||
--wt-navigation-bar-link-padding: var(--wt-navigation-bar-padding); | ||
--wt-navigation-bar-subnav-padding-left: var(--spacing-lg); | ||
--wt-navigation-bar-active-expansion-flag-width: 5px; | ||
--wt-navigation-bar-active-expansion-name-max-width: calc(100% - var(--icon-md-size) - var(--spacing-xs)); | ||
|
||
--wt-navigation-bar-background-color: var(--dp-18-surface-color); | ||
--wt-navigation-bar-option-text-color: var(--text-main-color); | ||
--wt-navigation-bar-option-background-color: var(--dp-18-surface-color); | ||
--wt-navigation-bar-option-background-hover-color: var(--dp-20-surface-color); | ||
--wt-navigation-bar-option-background-active-color: var(--primary-light-color); | ||
--wt-navigation-bar-expansion-ribbon-color: var(--primary-color); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
|
||
:root { | ||
--notification-min-width: 30vw; | ||
--notification-max-width: 40vw; | ||
--notification-padding: var(--spacing-xs); | ||
--notification-icon-margin: var(--spacing-xs); | ||
--wt-notification-min-width: 30vw; | ||
--wt-notification-max-width: 40vw; | ||
--wt-notification-padding: var(--spacing-xs); | ||
--wt-notification-icon-margin: var(--spacing-xs); | ||
|
||
--notification-text-color: var(--text-primary-color); | ||
--notification-bg-color: var(--main-color); | ||
} | ||
--wt-notification-text-color: var(--text-primary-color); | ||
--wt-notification-bg-color: var(--main-color); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters