Skip to content

Update header and footer to match new site design #204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
911 changes: 648 additions & 263 deletions pytorch_sphinx_theme2/static/css/theme.css

Large diffs are not rendered by default.

24 changes: 8 additions & 16 deletions pytorch_sphinx_theme2/static/scss/_components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -167,22 +167,12 @@ a.btn {

// Navigation arrows
.with-down-orange-arrow {
padding-right: 2rem;
padding-right: .5rem;
position: relative;
background: url("../img/chevron-down-orange.svg");
background-size: 14px 18px;
background-position: top 7px right 10px;
background-repeat: no-repeat;
}

.with-down-arrow {
padding-right: 2rem;
position: relative;
background-image: url("../img/chevron-down-black.svg");
background-size: 14px 18px;
background-position: top 7px right 10px;
background-repeat: no-repeat;

padding-right: .5rem;
a {
color: $dark-text;
}
Expand Down Expand Up @@ -283,8 +273,8 @@ a.btn {

// Navigation dropdown
.resources-dropdown-menu {
left: -75px;
width: 300px;
left: -25px;
width: 250px;
display: none;
position: absolute;
z-index: 250;
Expand All @@ -294,10 +284,12 @@ a.btn {
color: #212529;
text-align: left;
list-style: none;
background-color: $light-text;
background-color: var(--header-background);
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem;
border-top: 1px solid $light-text;
top: 40px;
padding: 20px 0;
}

.resources-dropdown:hover .resources-dropdown-menu {
Expand Down
Loading