Refactor: Cleanup and move web-assets navbar-global styles to markup script tag
Move web-assets navbar-global styles to markup script tag, accordingly to component and web-assets instructions, to improve the component's portability. Part of #9
This commit is contained in:
parent
db38fd6bbf
commit
b47ddab672
2 changed files with 13 additions and 7 deletions
|
@ -686,6 +686,19 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
/* Custom styling for projects.blender.org */
|
||||||
|
/* Make sure to start every line with ".nav-global"
|
||||||
|
* so changes affect the developer navbar only. */
|
||||||
|
|
||||||
|
/* Limit navbar width on large screens. */
|
||||||
|
@media(min-width: 1200px) {
|
||||||
|
.nav-global .nav-global-container {
|
||||||
|
max-width: 1170px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// TODO: revise component pre-compiled JavaScript in web-assets
|
// TODO: revise component pre-compiled JavaScript in web-assets
|
||||||
const dropdownToggles = document.getElementsByClassName("js-dropdown-toggle");
|
const dropdownToggles = document.getElementsByClassName("js-dropdown-toggle");
|
||||||
|
|
|
@ -52,13 +52,6 @@
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Navigation */
|
|
||||||
@media(min-width: 1200px) {
|
|
||||||
.nav-global .nav-global-container {
|
|
||||||
max-width: 1170px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Repository page. */
|
/* Repository page. */
|
||||||
.repository .file-view.markdown a {
|
.repository .file-view.markdown a {
|
||||||
color: var(--color-primary);
|
color: var(--color-primary);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue