1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-13 09:35:59 +02:00

Move header from layout

This commit is contained in:
Phuoc Nguyen
2019-11-15 21:43:47 +07:00
parent e6b3543812
commit 254ba0b4b6
5 changed files with 8 additions and 6 deletions

View File

@@ -9,7 +9,8 @@ const Centering = () => {
useDocumentTitle('CSS Layout ∙ Centering');
return (
<DetailsLayout name="Centering">
<DetailsLayout>
<h1 className="f1 tc">Centering</h1>
<BrowserFrame
content={
<div className="h-100 flex flex-column items-center justify-center">

View File

@@ -9,7 +9,8 @@ const StickyFooter = () => {
useDocumentTitle('CSS Layout ∙ Sticky footer');
return (
<DetailsLayout name="Sticky footer">
<DetailsLayout>
<h1 className="f1 tc">Sticky footer</h1>
<div className="lh-copy mb3">
The footer always sticks to the bottom if the main content is short.
</div>

View File

@@ -9,7 +9,8 @@ const StickyHeader = () => {
useDocumentTitle('CSS Layout ∙ Sticky header');
return (
<DetailsLayout name="Sticky header">
<DetailsLayout>
<h1 className="f1 tc">Sticky header</h1>
<BrowserFrame
content={
<div>