mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-24 10:34:03 +03:00
fix: hide promo on mobiles & apply filters on logo for dark mode
This commit is contained in:
parent
9e29545c25
commit
5ae59fb63c
|
@ -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()"
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user