use 30vw of padding, makefile use latest hugo-obsidian, set dark mode as default, remove copyright

This commit is contained in:
Matthew Wong 2022-09-18 18:43:52 -04:00
parent 2f718f629b
commit b114855859
4 changed files with 16 additions and 17 deletions

View File

@ -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=. && \

View File

@ -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");

View File

@ -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;

View File

@ -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 = ""