Style adjustments
This commit is contained in:
parent
36c6f1ff35
commit
b6ffc34e2f
@ -1,6 +1,5 @@
|
|||||||
|
/* stylelint-disable no-descending-specificity */
|
||||||
.breadcrumbs {
|
.breadcrumbs {
|
||||||
margin-top: 16px;
|
|
||||||
margin-left: 16px;
|
|
||||||
--bg: var(--color-brand-accent);
|
--bg: var(--color-brand-accent);
|
||||||
display: flex;
|
display: flex;
|
||||||
--height: 2rem;
|
--height: 2rem;
|
||||||
@ -9,10 +8,6 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
row-gap: 8px;
|
row-gap: 8px;
|
||||||
|
|
||||||
span {
|
|
||||||
padding: var(--padding);
|
|
||||||
}
|
|
||||||
|
|
||||||
a,
|
a,
|
||||||
& > span {
|
& > span {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@ -20,6 +15,15 @@
|
|||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
& > span {
|
||||||
|
padding: var(--padding);
|
||||||
|
|
||||||
|
&:last-child:first-child {
|
||||||
|
/* only "home" */
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@ -3,6 +3,7 @@ import { button } from "src/back/elements/button.js";
|
|||||||
import { tempstream } from "tempstream";
|
import { tempstream } from "tempstream";
|
||||||
import type { FlatTemplatable } from "tempstream";
|
import type { FlatTemplatable } from "tempstream";
|
||||||
import { breadcrumbs } from "./breadcrumbs.js";
|
import { breadcrumbs } from "./breadcrumbs.js";
|
||||||
|
import { insert_nbsp } from "@sealcode/jdd";
|
||||||
|
|
||||||
export async function default_navbar(ctx: Context): Promise<FlatTemplatable> {
|
export async function default_navbar(ctx: Context): Promise<FlatTemplatable> {
|
||||||
const { items: navbar_items } = await ctx.$app.collections["navbar-links"]
|
const { items: navbar_items } = await ctx.$app.collections["navbar-links"]
|
||||||
@ -17,7 +18,7 @@ export async function default_navbar(ctx: Context): Promise<FlatTemplatable> {
|
|||||||
.map(
|
.map(
|
||||||
(link) => /* HTML */ tempstream`<li>
|
(link) => /* HTML */ tempstream`<li>
|
||||||
${button({
|
${button({
|
||||||
text: link.text || "",
|
text: insert_nbsp(link.text || ""),
|
||||||
href: link.url || "",
|
href: link.url || "",
|
||||||
variant: "accent1",
|
variant: "accent1",
|
||||||
disabled: link.url == new URL(ctx.url, "https://a.com").pathname, // checking if it's the current path we're looking at
|
disabled: link.url == new URL(ctx.url, "https://a.com").pathname, // checking if it's the current path we're looking at
|
||||||
|
|||||||
18
src/main.css
18
src/main.css
@ -14,6 +14,10 @@ body {
|
|||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: var(--color-brand-link-fg);
|
||||||
|
}
|
||||||
|
|
||||||
.grid-layout-main {
|
.grid-layout-main {
|
||||||
display: grid;
|
display: grid;
|
||||||
container-type: inline-size;
|
container-type: inline-size;
|
||||||
@ -107,16 +111,24 @@ nav {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: row wrap;
|
flex-flow: row wrap;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 0 16px;
|
|
||||||
margin-top: 24px;
|
margin-top: 24px;
|
||||||
|
column-gap: 16px;
|
||||||
|
row-gap: 16px;
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-flow: row wrap;
|
||||||
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
||||||
|
a {
|
||||||
|
margin: 0 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -126,10 +138,6 @@ body.jdd-editor {
|
|||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
|
||||||
color: var(--color-brand-link-fg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.sealious-list__actions {
|
.sealious-list__actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user