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
Initial docs restyling #2612
Merged
Merged
Initial docs restyling #2612
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
GafferLogo.svg | ||
GafferLogoMini.svg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/* =================================== | ||
CSS overrides for Gaffer documentation | ||
==================================== */ | ||
|
||
/* Match regular nav background to Gaffer brand colors */ | ||
.wy-side-nav-search { | ||
background-color: #343131; | ||
} | ||
|
||
/* Match mobile nav background to Gaffer brand colors */ | ||
.wy-nav-top { | ||
background-color: #b92227; | ||
} | ||
|
||
/* Increase nav version color visibility */ | ||
.wy-side-nav-search > div.version { | ||
color: inherit; | ||
} | ||
|
||
/* Add "Gaffer" in front of nav version (this sidesteps changing the Sphinx template) */ | ||
.wy-side-nav-search > div.version::before { | ||
content: "Gaffer "; | ||
} | ||
|
||
/* Make nav search simpler and a little duller when not focused */ | ||
.wy-side-nav-search input[type="text"] { | ||
border-width: 2px; | ||
border-color: transparent; | ||
background-color: lightgrey; | ||
background-clip: padding-box; | ||
transition: all 0.3s linear; | ||
} | ||
|
||
/* Transition search bar to white bg with Gaffer red border on focus */ | ||
.wy-side-nav-search input[type="text"]:focus { | ||
border-color: #b92227; | ||
background-color: white; | ||
} | ||
|
||
/* Make nav button color red on click */ | ||
.wy-menu-vertical a:active { | ||
background-color:#b92227; | ||
} | ||
|
||
/* Increase font size for mobile header title */ | ||
.wy-nav-top a { | ||
font-size: 120%; | ||
} | ||
|
||
/* Adjust the mobile menu button (and center-align mobile header title) */ | ||
.wy-nav-top i { | ||
display: block; | ||
position: absolute; | ||
left: 15px; | ||
top: 15px; | ||
} | ||
|
||
/* Add icon after external links */ | ||
a[href^="http"]:after { | ||
content: " " url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAVklEQVR4Xn3PgQkAMQhDUXfqTu7kTtkpd5RA8AInfArtQ2iRXFWT2QedAfttj2FsPIOE1eCOlEuoWWjgzYaB/IkeGOrxXhqB+uA9Bfcm0lAZuh+YIeAD+cAqSz4kCMUAAAAASUVORK5CYII=); | ||
color: #2980B9; | ||
} | ||
|
||
/* Fix fallback image text vertically alignment when inline */ | ||
img { | ||
vertical-align: initial; | ||
} | ||
|
||
/* Make nested and serial headers more distinguishable */ | ||
h2 { | ||
margin-top: 2em; | ||
padding-bottom: 0.25em; | ||
border-bottom: 1px solid #e1e4e5; | ||
} | ||
|
||
h3 { | ||
font-size: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#! /bin/bash | ||
|
||
set -e | ||
|
||
cp ../../resources/GafferLogo.svg _static | ||
cp ../../resources/GafferLogoMini.svg _static |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how I feel about this one. None of the websites we're linking to use an icon for their links... is this considered standard?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It adds the standard external link icon () to indicate to the user they're being taken to an outside URL – not for internal doc links. It's a courtesy feature to improve UX. We won't be using external links often, in any case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I know. I'm just saying its a courtesy that none of the links on our main page (Arnold, Appleseed, 3delight, Tractor, Sphinx) are doing themselves for their external links, so I was wondering if that's modern standard UX or legacy from wikipedia days?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will differ from the main site. They're still relevant and useful for most help files and docs.
Websites don't use them very often, because there's an understanding by the user that on the web (= multiple "documents," dynamic) most body text links are external references. In docs it's the opposite: most body text links are to other pages in the same help system (= single "document," static), and suddenly opening an external link can be jarring and disruptive. A more immediate use for this is that it will signal to IE users that they'll need to open that link in Isla.
A more complex way of accomplishing this is to use automatic hover-text, but this was the simpler and more direct method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, fair enough. Thanks for the explanation.