Skip to content

Commit

Permalink
Secondary color, tweaked width
Browse files Browse the repository at this point in the history
Former-commit-id: 1133657
  • Loading branch information
tomfran committed May 19, 2024
1 parent 67d9fcd commit 2792b97
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
12 changes: 7 additions & 5 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ html {
body {
font-family: "Literata";
font-size: 1rem;
color: var(--content);
color: var(--content-primary);
line-height: 1.3rem;
margin: auto;
max-width: var(--main-width);
padding-left: var(--main-padding);
padding-right: var(--main-padding);
color: var(--content);
color: var(--content-primary);
background: var(--background);
}

Expand Down Expand Up @@ -109,7 +109,7 @@ code {
}

hr {
border: 1px solid var(--content);
border: 1px solid var(--content-primary);
margin-top: 3rem;
margin-bottom: 2rem;
}
Expand Down Expand Up @@ -191,7 +191,8 @@ footer a {
.line-summary {
font-size: small;
margin-top: .2rem !important;
font-style: italic;
/* font-style: italic; */
color: var(--content-secondary);
}

.pagination {
Expand Down Expand Up @@ -255,11 +256,12 @@ footer a {

.single-readtime {
margin-top: .5rem;
color: var(--content-secondary);
}

.single-summary {
font-style: italic;
margin-bottom: 0;
color: var(--content-secondary);
}

.single-content {
Expand Down
14 changes: 8 additions & 6 deletions assets/css/vars.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:root {
--main-width: 900px;
--main-width: 750px;
--main-padding: 1rem;
--main-padding-bottom: 3rem;

Expand Down Expand Up @@ -43,17 +43,19 @@
--content-height: calc(100vh - var(--footer-height));

/* Theme */
--content: rgb(30, 30, 30);
--content-primary: rgb(36, 36, 36);
--content-secondary: rgb(117, 117, 117);
--background: rgb(255, 255, 255);
--code-background: rgb(249, 249, 249);
--code-border: rgb(229, 229, 229);
}

.dark {
--content: rgb(218, 218, 218);
--background: rgb(30, 30, 30);
--code-background: rgb(40, 40, 40);
--code-border: rgb(60, 60, 60);
--content-primary: rgb(218, 218, 218);
--content-secondary: rgb(140, 140, 140);
--background: rgb(20, 20, 20);
--code-background: rgb(30, 30, 30);
--code-border: rgb(50, 50, 50);
}

@media screen and (max-width: 1024px) {
Expand Down
4 changes: 2 additions & 2 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ <h1 class="single-title">{{ .Title }}</h1>
{{end}}

{{ if .Param "readTime" }}
-
{{ .ReadingTime }} min
&nbsp; · &nbsp;
{{ .ReadingTime }} min read
{{end }}
</p>

Expand Down

0 comments on commit 2792b97

Please sign in to comment.