Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Consolidating CSS into one file for general, one for Python API
Browse files Browse the repository at this point in the history
  • Loading branch information
connorgoggins committed Apr 8, 2020
1 parent 371094d commit 57a7a53
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 15 deletions.
24 changes: 12 additions & 12 deletions docs/python_docs/themes/mx-theme/mxtheme/header_top.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@
<a class="page-link page-current" href="{{theme_relative_url}}api">Docs & Tutorials</a>
<a class="page-link" href="https://github.com/apache/incubator-mxnet">GitHub</a>
<div class="dropdown">
<span style="color:#FFFFFF;display:inline-flex;">master
<svg viewBox="0 0 32 32" class="icon icon-caret-bottom" aria-hidden="true" style="width: 18px;"><path d="M24 11.305l-7.997 11.39L8 11.305z" style="fill: white;"></path></svg>
<span class="dropdown-header">master
<svg class="dropdown-caret" viewBox="0 0 32 32" class="icon icon-caret-bottom" aria-hidden="true"><path class="dropdown-caret-path" d="M24 11.305l-7.997 11.39L8 11.305z"></path></svg>
</span>
<div class="dropdown-content">
<a style="color:#FF4500;font-weight: lighter;" href="/">master</a><br>
<a style="color:#000000;font-weight: lighter;" href="/versions/1.6/">1.6</a><br>
<a style="color:#000000;font-weight: lighter;" href="/versions/1.5.0/">1.5.0</a><br>
<a style="color:#000000;font-weight: lighter;" href="/versions/1.4.1/">1.4.1</a><br>
<a style="color:#000000;font-weight: lighter;" href="/versions/1.3.1/">1.3.1</a><br>
<a style="color:#000000;font-weight: lighter;" href="/versions/1.2.1/">1.2.1</a><br>
<a style="color:#000000;font-weight: lighter;" href="/versions/1.1.0/">1.1.0</a><br>
<a style="color:#000000;font-weight: lighter;" href="/versions/1.0.0/">1.0.0</a><br>
<a style="color:#000000;font-weight: lighter;" href="/versions/0.12.1/">0.12.1</a><br>
<a style="color:#000000;font-weight: lighter;" href="/versions/0.11.0/">0.11.0</a>
<a class="dropdown-option-active" href="/">master</a><br>
<a class="dropdown-option" href="/versions/1.6/">1.6</a><br>
<a class="dropdown-option" href="/versions/1.5.0/">1.5.0</a><br>
<a class="dropdown-option" href="/versions/1.4.1/">1.4.1</a><br>
<a class="dropdown-option" href="/versions/1.3.1/">1.3.1</a><br>
<a class="dropdown-option" href="/versions/1.2.1/">1.2.1</a><br>
<a class="dropdown-option" href="/versions/1.1.0/">1.1.0</a><br>
<a class="dropdown-option" href="/versions/1.0.0/">1.0.0</a><br>
<a class="dropdown-option" href="/versions/0.12.1/">0.12.1</a><br>
<a class="dropdown-option" href="/versions/0.11.0/">0.11.0</a>
</div>
</div>
</div>
Expand Down
27 changes: 27 additions & 0 deletions docs/python_docs/themes/mx-theme/mxtheme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,33 @@
.dropdown:hover .dropdown-content {
display: block;
}

.dropdown-option:hover {
color: #FF4500;
}

.dropdown-option-active {
color: #FF4500;
font-weight: lighter;
}

.dropdown-option {
color: #000000;
font-weight: lighter;
}

.dropdown-header {
color: #FFFFFF;
display: inline-flex;
}

.dropdown-caret {
width: 18px;
}

.dropdown-caret-path {
fill: #FFFFFF;
}
</style>
{{ super() }}
{% endblock %}
Expand Down
18 changes: 18 additions & 0 deletions docs/static_site/src/_includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
<script src="{{'/assets/js/clipboard.js'|relative_url}}"></script>
<script src="{{'/assets/js/copycode.js'|relative_url}}"></script>
<style>
.dropdown-option-active {
color: #FF4500 !important;
font-weight: lighter;
}

.dropdown {
position: relative;
display: inline-block;
Expand All @@ -35,5 +40,18 @@
.dropdown:hover .dropdown-content {
display: block;
}

.dropdown-header {
color: #FFFFFF;
display: inline-flex;
}

.dropdown-caret {
width: 18px;
}

.dropdown-caret-path {
fill: #FFFFFF;
}
</style>
</head>
6 changes: 3 additions & 3 deletions docs/static_site/src/_includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@
<a class="page-link" href="{{'/api' | relative_url }}">Docs & Tutorials</a>
<a class="page-link" href="https://github.com/apache/incubator-mxnet">GitHub</a>
<div class="dropdown">
<span style="display:inline-flex;">master
<svg viewBox="0 0 32 32" class="icon icon-caret-bottom" aria-hidden="true" style="width: 18px;"><path d="M24 11.305l-7.997 11.39L8 11.305z" style="fill: white;"></path></svg>
<span class="dropdown-header">master
<svg class="dropdown-caret" viewBox="0 0 32 32" class="icon icon-caret-bottom" aria-hidden="true"><path class="dropdown-caret-path" d="M24 11.305l-7.997 11.39L8 11.305z"></path></svg>
</span>
<div class="dropdown-content">
<a style="color:#FF4500;" href="/">master</a>
<a class="dropdown-option-active" href="/">master</a>
<a href="/versions/1.6/">1.6</a>
<a href="/versions/1.5.0/">1.5.0</a>
<a href="/versions/1.4.1/">1.4.1</a>
Expand Down

0 comments on commit 57a7a53

Please sign in to comment.