Skip to content

Commit

Permalink
CSS color changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dhalarewich committed Dec 13, 2024
1 parent 353c8d2 commit 551b73e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 14 deletions.
3 changes: 2 additions & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
layout: default
---
<header>
<h1>{{ site.title }}</h1>
<h1>Hi, I'm Danny Halarewich</h1>
<h2>A regular human man who likes to read, spend time outside, build web stuff and businesses.</h2>
{%-if site.theme_config.show_description-%}
<p>{{ site.description }}</p>
{%-endif-%}
Expand Down
38 changes: 25 additions & 13 deletions _sass/no-style-please.scss
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// -------------- THEME SWITCHER -------------- //
@mixin dark-appearance {
filter: invert(1);
img {
filter: invert(1);
// @mixin dark-appearance {
// filter: invert(1);
// img {
// filter: invert(1);

&.ioda { filter: invert(0); }
}
}
// &.ioda { filter: invert(0); }
// }
// }

body[a="dark"] { @include dark-appearance; }
// body[a="dark"] { @include dark-appearance; }


@media (prefers-color-scheme: dark) {
body[a="auto"] { @include dark-appearance; }
}
// @media (prefers-color-scheme: dark) {
// body[a="auto"] { @include dark-appearance; }
// }
// -------------------------------------------- //

// bg color is also needed in html in order to
Expand All @@ -24,7 +24,8 @@ html, body { background: white; }
html { height: 100%; }

body {
color: black;
background-color: #313715;
color: #E2F9B8;
font-family: monospace;
font-size: 16px;
line-height: 1.4;
Expand All @@ -35,14 +36,25 @@ body {

.post-meta { text-align: right; }

h2, h3, h4, h5, h6 { margin-top: 3rem; }
h2, h3, h4, h5, h6 {
color: #BBCE8A;
margin-top: 3rem;
}

hr { margin: 2rem 0; }

p { margin: 1rem 0; }

li { margin: 0.4rem 0; }

a {
color: #D16014;
}

a:hover {
filter:brightness(60%)
}

*:target { background: yellow; }

.w {
Expand Down

0 comments on commit 551b73e

Please sign in to comment.