mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-23 00:02:12 +00:00
local and global graph
This commit is contained in:
parent
8bfee04c8c
commit
c4cf0dcb02
23 changed files with 1288 additions and 110 deletions
quartz/components
|
@ -1,9 +1,9 @@
|
|||
import { QuartzComponentConstructor, QuartzComponentProps } from "./types"
|
||||
|
||||
function Header({ children }: QuartzComponentProps) {
|
||||
return <header>
|
||||
return (children.length > 0) ? <header>
|
||||
{children}
|
||||
</header>
|
||||
</header> : null
|
||||
}
|
||||
|
||||
Header.css = `
|
||||
|
@ -11,12 +11,10 @@ header {
|
|||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
margin: 1em 0 2em 0;
|
||||
& > h1 {
|
||||
}
|
||||
margin: 2em 0;
|
||||
}
|
||||
|
||||
header > h1 {
|
||||
header h1 {
|
||||
margin: 0;
|
||||
flex: auto;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue