fix: hide promo on mobiles & apply filters on logo for dark mode

This commit is contained in:
mostafaei2002 2024-05-23 11:12:23 +03:30
parent 9e29545c25
commit 5ae59fb63c
2 changed files with 9 additions and 14 deletions

View File

@ -40,20 +40,6 @@
s.parentNode.insertBefore(ga, s);
})();
</script>
<style>
#sidebarInclude img {
margin-bottom: 10px;
}
#sidebarInclude a.promo {
color: black;
}
@media (max-width: 767px) {
div.promo {
display: none;
}
}
</style>
</head>
<body
onload="prettyPrint()"

View File

@ -209,3 +209,12 @@ ol.linenums li {
.headerlink {
display: none;
}
.promo {
@extend .d-none;
@extend .d-md-block;
}
[data-bs-theme="dark"] [src="img/logo.png"] {
filter: invert(1) brightness(1.5) contrast(1.2);
}