improved look of dark mode buttons
All checks were successful
Web/pipeline/head This commit looks good
All checks were successful
Web/pipeline/head This commit looks good
This commit is contained in:
parent
62775ebdfd
commit
d71f909456
3 changed files with 14 additions and 11 deletions
|
@ -24,4 +24,13 @@
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
if (dark) {
|
||||||
|
$("#project-list").find(".btn-outline-info").each(function () {
|
||||||
|
let e = $(this);
|
||||||
|
e.removeClass("btn-outline-info");
|
||||||
|
e.addClass("btn-outline-light");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</div>
|
</div>
|
|
@ -38,6 +38,11 @@
|
||||||
if (dark) {
|
if (dark) {
|
||||||
$(".social-image-light").attr("hidden", true);
|
$(".social-image-light").attr("hidden", true);
|
||||||
$(".social-image-dark").attr("hidden", false);
|
$(".social-image-dark").attr("hidden", false);
|
||||||
|
$("#social-list").find(".btn-light").each(function () {
|
||||||
|
let e = $(this);
|
||||||
|
e.removeClass("btn-light");
|
||||||
|
e.addClass("btn-dark");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
let theme = dark ? "dark" : "light";
|
let theme = dark ? "dark" : "light";
|
||||||
$("#discord-widget").attr("src", `https://discordapp.com/widget?id=181435613147430913&theme=${theme}`);
|
$("#discord-widget").attr("src", `https://discordapp.com/widget?id=181435613147430913&theme=${theme}`);
|
||||||
|
|
|
@ -39,15 +39,4 @@ body {
|
||||||
.blog-button:hover,
|
.blog-button:hover,
|
||||||
.blog-button:active {
|
.blog-button:active {
|
||||||
color: rgb(182, 182, 182) !important;
|
color: rgb(182, 182, 182) !important;
|
||||||
}
|
|
||||||
|
|
||||||
.btn-light {
|
|
||||||
color: #fff;
|
|
||||||
background-color: #343a40;
|
|
||||||
border-color: #343a40;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-outline-info {
|
|
||||||
color: #f8f9fa;
|
|
||||||
border-color: #f8f9fa;
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue