mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 23:04:05 -06:00
use 30vw of padding, makefile use latest hugo-obsidian, set dark mode as default, remove copyright
This commit is contained in:
parent
2f718f629b
commit
b114855859
2
Makefile
2
Makefile
@ -20,7 +20,7 @@ serve: ## Serve Quartz locally
|
||||
$(GOPATH)/bin/hugo-obsidian -input=content -output=assets/indices -index -root=. && hugo server --enableGitInfo --minify
|
||||
|
||||
install: ## use v2.12 commit in hugo-obsidian repo
|
||||
go install github.com/jackyzha0/hugo-obsidian@3ce308411ee36c94b33e082f984e1741c6354584
|
||||
go install github.com/jackyzha0/hugo-obsidian@latest
|
||||
|
||||
build:
|
||||
$(GOPATH)/bin/hugo-obsidian -input=content -output=assets/indices -index -root=. && \
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
const userPref = window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark'
|
||||
const currentTheme = localStorage.getItem('theme') ?? userPref
|
||||
const currentTheme = 'dark';
|
||||
const syntaxTheme = document.querySelector("#theme-link");
|
||||
|
||||
|
||||
|
||||
@ -301,7 +301,6 @@ hr {
|
||||
}
|
||||
|
||||
.singlePage {
|
||||
|
||||
.index-container {
|
||||
width: 160%;
|
||||
margin-left: -30%;
|
||||
@ -311,7 +310,7 @@ hr {
|
||||
}
|
||||
padding: 0 16px;
|
||||
}
|
||||
padding: 4em 25vw;
|
||||
padding: 4em 30vw;
|
||||
|
||||
@media all and (max-width: 1200px) {
|
||||
padding: 25px 5vw;
|
||||
@ -384,18 +383,18 @@ header {
|
||||
}
|
||||
}
|
||||
|
||||
#search-icon {
|
||||
background-color: var(--lightgray);
|
||||
border-radius: 4px;
|
||||
height: 2em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
& > p {
|
||||
display: inline;
|
||||
padding: 0 1.5em 0 2em;
|
||||
}
|
||||
}
|
||||
// #search-icon {
|
||||
// background-color: var(--lightgray);
|
||||
// border-radius: 4px;
|
||||
// height: 2em;
|
||||
// display: flex;
|
||||
// align-items: center;
|
||||
// cursor: pointer;
|
||||
// & > p {
|
||||
// display: inline;
|
||||
// padding: 0 1.5em 0 2em;
|
||||
// }
|
||||
// }
|
||||
|
||||
& svg {
|
||||
cursor: pointer;
|
||||
|
||||
@ -62,4 +62,4 @@ other = "Search for something..."
|
||||
other = "Table of Contents"
|
||||
|
||||
[copyright]
|
||||
other = "Made by {{ .name }} using <a href=\"https://github.com/jackyzha0/quartz\">Quartz</a>, © {{ .year }}"
|
||||
other = ""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user