From fd000711bddcb373972d38624b639f37812579ca Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Fri, 9 Mar 2018 00:01:50 +0100 Subject: [PATCH] nav: document nav-height css var & remove tablink vertical padding --- resources/docs/widgets/containers.md | 5 +++++ src/browser/scss/_layout.scss | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/docs/widgets/containers.md b/resources/docs/widgets/containers.md index aad21774..90a5e864 100644 --- a/resources/docs/widgets/containers.md +++ b/resources/docs/widgets/containers.md @@ -59,6 +59,11 @@ Panels can contains tabs or widgets. These can be absolutely positioned and can - usage: spacing size used in `layout` expression, can be set as a `[vertical,horizontal]` array. - note: this only applies when the panel contains widgets, not tabs +### `css` +``` +--nav-height: number[rem|%]; +``` + ## Strip Unidirectionnal panel with stretching capability. By default, children widgets that don't have an explicit `width`/`height` set will be shrinked to respect the sizes specified by others. Adding `flex:1;` to a children's `css` will give it the ability the fill the remaining space. Multiple children can have a `flex:x;` css property (`x` will ponderate their expansion). diff --git a/src/browser/scss/_layout.scss b/src/browser/scss/_layout.scss index 19742f04..546802ff 100644 --- a/src/browser/scss/_layout.scss +++ b/src/browser/scss/_layout.scss @@ -75,7 +75,7 @@ body { a { background: var(--color-raised); pointer-events: none; - padding: 5rem; + padding: 0 5rem; height:100%; display: flex; align-items: center;