Skip to content
Snippets Groups Projects
Unverified Commit a99dbedf authored by kogeletey's avatar kogeletey
Browse files

[maintenance]: improve mobile page

sass: remove top paramaters and limited width, hidden overflow-x, button
for toc close improve.
parent 60dc66d6
No related branches found
No related tags found
No related merge requests found
...@@ -13,18 +13,18 @@ aside { ...@@ -13,18 +13,18 @@ aside {
@media (max-width: 1000px) { @media (max-width: 1000px) {
main nav, main nav,
aside { aside {
top: 4.9rem;
border: none; border: none;
bottom: 0;
background: var(--background); background: var(--background);
width: 50%; max-width: 50%;
height: 100%; height: 100%;
overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
position: fixed; position: fixed;
transition: transform 0.25s ease; transition: transform 0.25s ease;
a.close { a.close {
display: block; display: inline-block;
z-index: 6; margin-right: 1.25rem;
padding: inherit;
} }
} }
} }
...@@ -83,6 +83,7 @@ main nav { ...@@ -83,6 +83,7 @@ main nav {
} }
#sidebar { #sidebar {
display: block; display: block;
margin-top: 3.9rem;
transform: translateX(-100%); transform: translateX(-100%);
&:target { &:target {
transform: translateX(0); transform: translateX(0);
......
...@@ -59,13 +59,17 @@ aside { ...@@ -59,13 +59,17 @@ aside {
} }
} }
#toc { #toc {
display: block; display: grid;
right: 0; right: 0;
min-width: 50%;
transform: translateX(150%); transform: translateX(150%);
&:target { &:target {
transform: translateX(10px); transform: translateX(10px);
z-index: 3; z-index: 3;
} }
a.close {
margin-top: 2.3rem;
justify-self: end;
margin-bottom: -2rem;
}
} }
} }
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
{% block content %} {% block content %}
<main> <main>
<div class="mheader"> <div class="mheader">
<a href="#sidebar"> <a href="#sidebar" role="button">
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="32" width="32"
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<rect x="6" y="4" width="2" height="24" /> <rect x="6" y="4" width="2" height="24" />
</svg> </svg>
</a> </a>
<a href="#toc"> <a href="#toc" role="button">
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="32" width="32"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment