Fixed header and sidebar

This commit is contained in:
Oliver Davies 2018-12-25 23:20:12 +00:00
parent fb739b336a
commit f4a4ec8131
5 changed files with 103 additions and 89 deletions

View file

@ -7,8 +7,8 @@
<div class="flex flex-col flex-1">
<nav class="border-t-2 border-transparent flex justify-end md:justify-start">
<a href="#0" class="inline-block text-xs sm:text-sm border-b-4 border-blue-dark mx-2 px-4 py-4 md:py-5 text-blue-dark uppercase no-underline hover:underline focus:underline">Develop</a>
<a href="#0" class="inline-block text-xs sm:text-sm border-b-4 border-transparent mx-2 px-4 py-4 md:py-5 text-blue-dark uppercase no-underline hover:underline focus:underline">Manage</a>
<a href="#0" class="inline-block text-sm border-b-4 border-blue-dark mx-2 px-4 py-4 md:py-5 text-blue-dark uppercase no-underline hover:underline focus:underline">Develop</a>
<a href="#0" class="inline-block text-sm border-b-4 border-transparent mx-2 px-4 py-4 md:py-5 text-blue-dark uppercase no-underline hover:underline focus:underline">Manage</a>
</nav>
</div>

View file

@ -1,5 +1,5 @@
<template>
<div class="w-auto lg:w-64 bg-grey-darkest text-white antialiased">
<div class="w-auto lg:w-64 bg-grey-darkest text-white antialiased fixed pin-l h-full">
<div>
<ul class="list-reset">
<li v-for="link in links" :key="link.title">

View file

@ -1,19 +1,24 @@
<template>
<div>
<div class="fixed pin-t w-full z-30">
<navbar></navbar>
<div class="px-4 py-5 border-b-2 border-grey flex justify-between items-center">
<div class="w-full md:w-auto flex flex-col">
<title-block>
<template slot="left">
<div class="text-2xl font-hairline mr-2">Applications</div>
</div>
</template>
<template slot="right">
<header-buttons :links="[
{ title: 'Add Application', icon: 'alpha__new-app', disabled: false },
]"></header-buttons>
</template>
</title-block>
</div>
<div class="flex flex-row-reverse flex-1 h-full">
<div class="flex-1 p-4 lg:p-12">
<div class="mt-48">
<div class="-mt-10 md:-mt-4 flex flex-row-reverse h-full">
<div class="flex-1 p-4 lg:p-12 ml-16 lg:ml-64">
<div class="mb-6">
<div class="lg:flex lg:items-baseline mb-12">
<div class="mr-16 mb-4 lg:mb-0">
@ -52,6 +57,7 @@
]"></sidebar>
</div>
</div>
</div>
</template>
<script>

View file

@ -1,9 +1,10 @@
<template>
<div>
<div class="fixed pin-t w-full z-30">
<navbar></navbar>
<div class="px-4 py-5 border-b-2 border-grey flex justify-between items-center">
<div class="w-full md:w-auto flex flex-col">
<title-block>
<template slot="left">
<div class="text-xs mb-3">
<ol class="list-reset flex">
<li class="flex items-center pr-1">
@ -18,17 +19,21 @@
<div class="text-2xl font-hairline mr-2">{{ application.name }}</div>
<svg class="h-6 w-6 text-blue-dark fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__down-arrow"></use></svg>
</button>
</div>
</template>
<template slot="right">
<header-buttons :links="[
{ title: 'Add database', icon: 'actions__new-database', disabled: false },
{ title: 'Git Info', icon: 'actions__info', disabled: false },
{ title: 'Rename', icon: 'actions__edit', disabled: true },
]"></header-buttons>
</template>
</title-block>
</div>
<div class="flex flex-row-reverse h-full">
<div class="flex-1 p-4 lg:p-12">
<div class="mt-48">
<div class="-mt-4 md:-mt-2 flex flex-row-reverse h-full">
<div class="flex-1 p-4 lg:p-12 ml-16 lg:ml-64">
<div class="mb-6">
<div class="lg:flex lg:items-baseline mb-2">
<div class="mr-16 mb-4 lg:mb-0">
@ -64,6 +69,7 @@
]"></sidebar>
</div>
</div>
</div>
</template>
<script>

View file

@ -733,6 +733,8 @@ module.exports = {
'20': '5rem',
'24': '6rem',
'32': '8rem',
'48': '10rem',
'64': '16rem',
},