diff --git a/docs/assets/index.css b/docs/assets/index.css index 984967a3..de2c8326 100644 --- a/docs/assets/index.css +++ b/docs/assets/index.css @@ -1,4 +1,3 @@ -#root, #__nuxt { text-transform: uppercase; font-family: 'JetBrains Mono', monospace; @@ -11,8 +10,8 @@ html, body, -#root, #__nuxt { + position: relative; margin: 0; height: 100%; color: #111; @@ -22,10 +21,6 @@ body, background-image: url('./polygon-scatter.svg'); } -#__nuxt { - position: relative; -} - .backround-img { background-position: center; background-size: cover; @@ -33,29 +28,6 @@ body, background-image: url('./polygon-scatter.svg'); } -#root { - display: flex; - flex-direction: column; -} - -header { - font-weight: 700; -} - -.logo { - text-decoration: none; - display: block; - line-height: 1; -} - -header a:hover { - color: #c9c9c9; -} - -header select { - margin-left: 1em; -} - .overview-example__add { display: none; } @@ -93,18 +65,8 @@ header select { } } -.edgebutton { - border-radius: 999px; - cursor: pointer; -} -.edgebutton:hover { - box-shadow: 0 0 0 2px pink , 0 0 0 4px #f05f75; -} - #vue-flow-docs { - display: flex; - margin:0; - background: #fff; + @apply flex m-0 bg-white h-full; } .button { diff --git a/docs/components/Header.vue b/docs/components/Header.vue index 261bf888..ada6325d 100644 --- a/docs/components/Header.vue +++ b/docs/components/Header.vue @@ -1,5 +1,5 @@ + diff --git a/docs/components/Sidebar.vue b/docs/components/Sidebar.vue index 70dff507..9b8235b4 100644 --- a/docs/components/Sidebar.vue +++ b/docs/components/Sidebar.vue @@ -44,10 +44,13 @@ const examples = [ path: '/interaction', label: 'Interaction', }, + /* + todo: layouting example not working with dagre for some reason so it's disabled for now { path: '/layouting', label: 'Layouting', }, + */ { path: '/multi-flows', label: 'Multi Flows', @@ -104,28 +107,24 @@ const examples = [ - diff --git a/docs/nuxt.config.ts b/docs/nuxt.config.ts index 49ccd54a..bdc080bd 100644 --- a/docs/nuxt.config.ts +++ b/docs/nuxt.config.ts @@ -18,6 +18,7 @@ export default defineNuxtConfig({ preserveSymlinks: false, }, }, + target: 'server', ssr: true, buildModules: ['nuxt-windicss'], }) diff --git a/examples/EdgeWithButton/ButtonEdge.vue b/examples/EdgeWithButton/ButtonEdge.vue index d862b7b1..0349ad4f 100644 --- a/examples/EdgeWithButton/ButtonEdge.vue +++ b/examples/EdgeWithButton/ButtonEdge.vue @@ -73,3 +73,12 @@ const center = computed(() => + diff --git a/examples/index.css b/examples/index.css index bf23756e..3e69d5e0 100644 --- a/examples/index.css +++ b/examples/index.css @@ -90,11 +90,3 @@ header select { display: block; } } - -.edgebutton { - border-radius: 999px; - cursor: pointer; -} -.edgebutton:hover { - box-shadow: 0 0 0 2px pink , 0 0 0 4px #f05f75; -}