Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
back home
Browse files Browse the repository at this point in the history
  • Loading branch information
vabarbosa committed Mar 9, 2021
1 parent 88f0f89 commit aa9bf97
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 3 deletions.
11 changes: 11 additions & 0 deletions textbook-ui/includes/back-home.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions textbook-ui/includes/sidebar.pug
Expand Up @@ -26,6 +26,8 @@ nav.c-textbook__sidebar#js-sidebar
)
| #{s.title}

//- p.sidebar_footer
//- | Powered by
//- a(href='https://mathigon.org') Mathigon
if !courses
div.sidebar_footer
a#back-home(href='/')
span Back to textbook home
include ./back-home.svg
25 changes: 25 additions & 0 deletions textbook/content/shared/shared.less
Expand Up @@ -171,6 +171,31 @@ body[data-learning-path="true"] .c-sidebar__section .connection {
.c-sidebar__section:last-child .connection {
display: none;
}

div.sidebar_footer {
padding: 10px 5px 10px 36px;
text-align: left;
border-top: 1px solid rgba(0,0,0,0.07);
bottom: 75px;
position: absolute;
left: 0;
right: 0;
}
#back-home > svg {
display: inline-block;
margin-right: 10px;
vertical-align: text-top;
width: 20px;
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
transform: rotate(-90deg);
}
#back-home > svg g {
stroke: currentColor;
}

x-step {
color: initial;
}
Expand Down

0 comments on commit aa9bf97

Please sign in to comment.