mirror of
https://github.com/ZetaKebab/quartz.git
synced 2025-07-04 00:47:37 +00:00
Small adjustments for responsiveness
This commit is contained in:
@ -70,7 +70,7 @@ const config: QuartzConfig = {
|
|||||||
}),
|
}),
|
||||||
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }),
|
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }),
|
||||||
Plugin.Description(),
|
Plugin.Description(),
|
||||||
Plugin.Latex({ renderEngine: "katex" }),
|
// Plugin.Latex({ renderEngine: "katex" }),
|
||||||
],
|
],
|
||||||
filters: [Plugin.RemoveDrafts()],
|
filters: [Plugin.RemoveDrafts()],
|
||||||
emitters: [
|
emitters: [
|
||||||
@ -106,7 +106,7 @@ const config: QuartzConfig = {
|
|||||||
Plugin.TagPage(),
|
Plugin.TagPage(),
|
||||||
Plugin.ContentIndex({
|
Plugin.ContentIndex({
|
||||||
enableSiteMap: true,
|
enableSiteMap: true,
|
||||||
enableRSS: true,
|
enableRSS: false,
|
||||||
}),
|
}),
|
||||||
Plugin.Assets(),
|
Plugin.Assets(),
|
||||||
Plugin.Static(),
|
Plugin.Static(),
|
||||||
|
@ -6,15 +6,22 @@ export const sharedPageComponents: SharedLayout = {
|
|||||||
head: Component.Head(),
|
head: Component.Head(),
|
||||||
header: [],
|
header: [],
|
||||||
afterBody: [
|
afterBody: [
|
||||||
|
Component.DesktopOnly(
|
||||||
Component.Footer({
|
Component.Footer({
|
||||||
links: {
|
links: {
|
||||||
"Théo Marchal": "https://theo.marchal.dev"
|
"Théo Marchal": "https://theo.marchal.dev"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
)
|
||||||
],
|
],
|
||||||
footer: Component.Flex({
|
footer:
|
||||||
components:[]
|
Component.MobileOnly(
|
||||||
}),
|
Component.Footer({
|
||||||
|
links: {
|
||||||
|
"Théo Marchal": "https://theo.marchal.dev"
|
||||||
|
}
|
||||||
|
})
|
||||||
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
// components for pages that display a single page (e.g. a single note)
|
// components for pages that display a single page (e.g. a single note)
|
||||||
@ -29,22 +36,21 @@ export const defaultContentPageLayout: PageLayout = {
|
|||||||
|
|
||||||
left: [
|
left: [
|
||||||
Component.PageTitle(),
|
Component.PageTitle(),
|
||||||
|
|
||||||
Component.MobileOnly(Component.Spacer()),
|
|
||||||
Component.MobileOnly(Component.Flex({
|
|
||||||
components: [
|
|
||||||
{
|
|
||||||
Component: Component.Search(),
|
|
||||||
grow: true,
|
|
||||||
},
|
|
||||||
{ Component: Component.Darkmode() },
|
|
||||||
]
|
|
||||||
})),
|
|
||||||
|
|
||||||
Component.Explorer( { folderDefaultState: "open" } ),
|
Component.Explorer( { folderDefaultState: "open" } ),
|
||||||
],
|
],
|
||||||
|
|
||||||
right: [
|
right: [
|
||||||
|
|
||||||
|
Component.MobileOnly(Component.Flex({
|
||||||
|
components: [
|
||||||
|
{ Component: Component.Darkmode() },
|
||||||
|
{
|
||||||
|
Component: Component.Search(),
|
||||||
|
grow: true,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
})),
|
||||||
|
|
||||||
Component.DesktopOnly(Component.Darkmode()),
|
Component.DesktopOnly(Component.Darkmode()),
|
||||||
Component.DesktopOnly(Component.Search()),
|
Component.DesktopOnly(Component.Search()),
|
||||||
Component.TableOfContents(),
|
Component.TableOfContents(),
|
||||||
@ -63,22 +69,21 @@ export const defaultListPageLayout: PageLayout = {
|
|||||||
|
|
||||||
left: [
|
left: [
|
||||||
Component.PageTitle(),
|
Component.PageTitle(),
|
||||||
|
|
||||||
Component.MobileOnly(Component.Spacer()),
|
|
||||||
Component.MobileOnly(Component.Flex({
|
|
||||||
components: [
|
|
||||||
{
|
|
||||||
Component: Component.Search(),
|
|
||||||
grow: true,
|
|
||||||
},
|
|
||||||
{ Component: Component.Darkmode() },
|
|
||||||
]
|
|
||||||
})),
|
|
||||||
|
|
||||||
Component.Explorer( { folderDefaultState: "open" } ),
|
Component.Explorer( { folderDefaultState: "open" } ),
|
||||||
],
|
],
|
||||||
|
|
||||||
right: [
|
right: [
|
||||||
|
|
||||||
|
Component.MobileOnly(Component.Flex({
|
||||||
|
components: [
|
||||||
|
{ Component: Component.Darkmode() },
|
||||||
|
{
|
||||||
|
Component: Component.Search(),
|
||||||
|
grow: true,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
})),
|
||||||
|
|
||||||
Component.DesktopOnly(Component.Darkmode()),
|
Component.DesktopOnly(Component.Darkmode()),
|
||||||
Component.DesktopOnly(Component.Search()),
|
Component.DesktopOnly(Component.Search()),
|
||||||
Component.TableOfContents(),
|
Component.TableOfContents(),
|
||||||
|
@ -157,6 +157,10 @@ table {
|
|||||||
margin: 1rem auto;
|
margin: 1rem auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-footer {
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
|
|
||||||
@ -188,6 +192,13 @@ table {
|
|||||||
margin-left: unset;
|
margin-left: unset;
|
||||||
margin-right: unset;
|
margin-right: unset;
|
||||||
}
|
}
|
||||||
|
@media all and ($medDesktop) {
|
||||||
|
width: 750px;
|
||||||
|
min-width: unset;
|
||||||
|
max-width: unset;
|
||||||
|
margin-left: unset;
|
||||||
|
margin-right: unset;
|
||||||
|
}
|
||||||
@media all and ($maxDesktop) {
|
@media all and ($maxDesktop) {
|
||||||
width: 950px;
|
width: 950px;
|
||||||
min-width: unset;
|
min-width: unset;
|
||||||
@ -203,6 +214,10 @@ table {
|
|||||||
padding-left: 1.5rem;
|
padding-left: 1.5rem;
|
||||||
padding-right: 1.5rem;
|
padding-right: 1.5rem;
|
||||||
}
|
}
|
||||||
|
@media all and ($desktop) {
|
||||||
|
padding-left: 1.8rem;
|
||||||
|
padding-right: 1.8rem;
|
||||||
|
}
|
||||||
@media all and ($maxDesktop) {
|
@media all and ($maxDesktop) {
|
||||||
padding-left: 3.5rem;
|
padding-left: 3.5rem;
|
||||||
padding-right: 3.5rem;
|
padding-right: 3.5rem;
|
||||||
@ -311,6 +326,7 @@ table {
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
padding-top: 1rem;
|
padding-top: 1rem;
|
||||||
|
height: fit-content;
|
||||||
|
|
||||||
@media all and ($desktop)
|
@media all and ($desktop)
|
||||||
{
|
{
|
||||||
@ -342,7 +358,7 @@ table {
|
|||||||
height: fit-content;
|
height: fit-content;
|
||||||
min-width: fit-content;
|
min-width: fit-content;
|
||||||
max-width: 14rem;
|
max-width: 14rem;
|
||||||
flex-grow: .3;
|
flex-grow: 1;
|
||||||
width: 10rem;
|
width: 10rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -362,7 +378,11 @@ table {
|
|||||||
@media all and ($mobile) {
|
@media all and ($mobile) {
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
margin-top: 0;
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.center hr {
|
||||||
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.darkmode {
|
.darkmode {
|
||||||
@ -370,9 +390,8 @@ table {
|
|||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@ $breakpoints: (
|
|||||||
$mobile: "(max-width: #{map.get($breakpoints, mobile)})";
|
$mobile: "(max-width: #{map.get($breakpoints, mobile)})";
|
||||||
$tablet: "(min-width: #{map.get($breakpoints, mobile)}) and (max-width: #{map.get($breakpoints, desktop)})";
|
$tablet: "(min-width: #{map.get($breakpoints, mobile)}) and (max-width: #{map.get($breakpoints, desktop)})";
|
||||||
$desktop: "(min-width: #{map.get($breakpoints, desktop)})";
|
$desktop: "(min-width: #{map.get($breakpoints, desktop)})";
|
||||||
|
$medDesktop: "(min-width: 1420px)";
|
||||||
$maxDesktop: "(min-width: 1630px)";
|
$maxDesktop: "(min-width: 1630px)";
|
||||||
|
|
||||||
$pageWidth: #{map.get($breakpoints, mobile)};
|
$pageWidth: #{map.get($breakpoints, mobile)};
|
||||||
|
Reference in New Issue
Block a user