Skip to content

Commit

Permalink
Merge pull request #338 from sylhare/update-theme
Browse files Browse the repository at this point in the history
Update theme scss
  • Loading branch information
sylhare authored Feb 17, 2022
2 parents cda45fe + 1ffca7b commit 6ffcb8f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
11 changes: 10 additions & 1 deletion _layouts/post.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,19 @@ layout: default
}
{% if page.color %}
.feature-image a { color: {{ page.color }} !important; }
.post-content a { color: {{ page.color }} !important; }
.share-buttons a { color: {{ page.color }} !important; }
.tag-list a:not(:hover) { color: {{ page.color }} !important; }
div#post-nav a { color: {{ page.color }} !important; }
footer a { color: {{ page.color }} !important; }
.site-header nav a:hover { color: {{ page.color }} !important; }
a.button:hover {
background: {{ page.color }} !important;
border: 1px solid {{ page.color }} !important;
color: white;
text-decoration: none;
filter: none;
}
header#main {
background-color: {{ page.color }} !important;
background-image: url('{{ site.color_image | relative_url }}');
Expand Down
2 changes: 1 addition & 1 deletion _sass/base/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ html, html[data-theme="light"] {
--blockquote: #eef7fa;
--selection: #d4d4d4;
--meta: #595959;
--link: #337ab7;
--link: #0072B5;
--header-background: #24292e;
--header-text: #ffffff;
--header-link: #383838;
Expand Down
6 changes: 0 additions & 6 deletions _sass/includes/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
color: var(--link);
}

@media (prefers-color-scheme: dark) {
a {
color: var(--meta);
}
}

a:hover {
.fa-circle {
filter: brightness(0.85);
Expand Down
4 changes: 4 additions & 0 deletions _sass/layouts/_posts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ header {
img {
height: auto;
}

&:hover {
text-decoration: none;
}
}

img {
Expand Down
8 changes: 4 additions & 4 deletions _sass/layouts/_tags.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@
font-size: 0.8em;
line-height: normal;
}
}

@media screen and (max-width: $sm-break) {
.tag-posts .meta {
display: none;
@media screen and (max-width: $sm-break) {
.meta {
display: none;
}
}
}

0 comments on commit 6ffcb8f

Please sign in to comment.