-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #203 from lsst-sqre/tickets/DM-41917
DM-41917: Improvements to the technote UI design
- Loading branch information
Showing
22 changed files
with
264 additions
and
14 deletions.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
graft src/documenteer/assets/styles | ||
graft src/documenteer/assets | ||
graft src/documenteer/assets/scripts | ||
graft src/documenteer/assets/rsd-assets |
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,5 @@ | ||
### New features | ||
|
||
- Use the Source Sans 3 variable font in technotes. | ||
- Small improvements to the technote UI, including: linking to the *LSST the Docs* editions dashboards, showing the Rubin imagotype on mobile views, and moving the author listing to the main text column. In mobile, headers are also smaller and more compact to conserve vertical space. | ||
- Upgrade to technote 0.6. |
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
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
Binary file not shown.
Binary file not shown.
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
22 changes: 22 additions & 0 deletions
22
src/assets/rubin-technote/styles/components/_article-header.scss
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,22 @@ | ||
.mobile-rubin-technote-logo { | ||
display: block; | ||
margin: 0 auto 2rem auto; | ||
width: 100%; | ||
max-width: 12rem; | ||
} | ||
|
||
@media (max-width: 76rem) { | ||
// When the primary sidebar is hidden, remove extra top margin from the | ||
// container so the logo is closer to the top. | ||
.sb-container { | ||
margin-top: 0; | ||
} | ||
} | ||
|
||
@media (min-width: 76rem) { | ||
// Hide the mobile logo when the primary sidebar is visible. | ||
.mobile-rubin-technote-logo { | ||
display: none; | ||
margin: 0; | ||
} | ||
} |
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,8 @@ | ||
/* | ||
* Custom styles for the author listing. | ||
*/ | ||
|
||
.technote-inline-authors { | ||
font-size: 1.1rem; | ||
font-weight: 425; | ||
} |
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
@use 'authors.scss'; | ||
@use 'global-breadcrumbs.scss'; | ||
@use 'version-info.scss'; | ||
@use 'sidebar-section.scss'; | ||
@use 'article-header.scss'; |
7 changes: 7 additions & 0 deletions
7
src/assets/rubin-technote/styles/components/_sidebar-section.scss
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,7 @@ | ||
@supports (font-variation-settings: 'wdth' 222) { | ||
.technote-sidebar-section__heading { | ||
font-weight: 600; | ||
text-transform: uppercase; | ||
letter-spacing: 0.01em; // goes well with upper case | ||
} | ||
} |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# Generated by webpack | ||
rsd-assets/ | ||
scripts/ | ||
styles/ | ||
*.woff2 | ||
rubin-technote.css | ||
rubin-technote.css.map |
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 |
---|---|---|
@@ -1,4 +1,13 @@ | ||
from ._toml import DocumenteerConfig | ||
from ._utils import get_asset_path, get_template_dir | ||
from ._utils import ( | ||
extend_static_paths_with_asset_extension, | ||
get_asset_path, | ||
get_template_dir, | ||
) | ||
|
||
__all__ = ["get_asset_path", "get_template_dir", "DocumenteerConfig"] | ||
__all__ = [ | ||
"get_asset_path", | ||
"extend_static_paths_with_asset_extension", | ||
"get_template_dir", | ||
"DocumenteerConfig", | ||
] |
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
75 changes: 75 additions & 0 deletions
75
src/documenteer/templates/technote/components/sidebar-source.html
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,75 @@ | ||
<section class="technote-sidebar-section"> | ||
<h2 class="technote-sidebar-section__heading">Source</h2> | ||
|
||
<ul class="technote-sidebar-metadata-list technote-icon-pair-list"> | ||
{% if technote.github_url %} | ||
<li> | ||
<div class="technote-icon-metadata"> | ||
<div class="technote-icon-metadata__icon"> | ||
<a href="{{technote.github_url}}"> | ||
<svg class="technote-svg-icon"> | ||
<use href="#svg-octicon-octocat-16"> | ||
</svg> | ||
</a> | ||
</div> | ||
<p class="technote-icon-metadata__value"> | ||
<a href="{{technote.github_url}}" data-technote-source-url="{{ technote.github_url }}"> | ||
{{ technote.github_repo_slug }} | ||
</a> | ||
</p> | ||
</div> | ||
</li> | ||
{% endif %} | ||
{% if technote.github_ref_name %} | ||
<li> | ||
<div class="technote-icon-metadata"> | ||
<div class="technote-icon-metadata__icon"> | ||
<svg class="technote-svg-icon"> | ||
{% if technote.github_ref_type == "tag" %} | ||
<use href="#svg-octicon-tag-16"> | ||
{% else %} | ||
<use href="#svg-octicon-branch-16"> | ||
{% endif %} | ||
</svg> | ||
</div> | ||
<p class="technote-icon-metadata__value"> | ||
{{ technote.github_ref_name }} | ||
</p> | ||
</div> | ||
</li> | ||
{% endif %} | ||
{% if technote.github_edit_url %} | ||
<li> | ||
<div class="technote-icon-metadata"> | ||
<div class="technote-icon-metadata__icon"> | ||
<a href="{{ technote.github_edit_url }}"> | ||
<svg class="technote-svg-icon"> | ||
<use href="#svg-octicon-pencil-16"> | ||
</svg> | ||
</a> | ||
</div> | ||
<p class="technote-icon-metadata__value"><a href="{{ technote.github_edit_url }}">Edit on GitHub</a></p> | ||
</div> | ||
</li> | ||
{% endif %} | ||
|
||
{% if editions_url %} | ||
<li> | ||
<div class="technote-icon-metadata"> | ||
<div class="technote-icon-metadata__icon"> | ||
<a href="{{editions_url}}"> | ||
<svg class="technote-svg-icon"> | ||
<use href="#svg-octicon-versions-16"> | ||
</svg> | ||
</a> | ||
</div> | ||
<p class="technote-icon-metadata__value"> | ||
<a href="{{editions_url}}">View all versions</a> | ||
</p> | ||
</div> | ||
</li> | ||
{% endif %} | ||
<!-- <li>Commit?</li> --> | ||
<!-- <li>CI run link?</li> --> | ||
</ul> | ||
</section> |
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
Oops, something went wrong.