Working TOC
This commit is contained in:
54
frontend/src/components/TOC.css
Normal file
54
frontend/src/components/TOC.css
Normal file
@@ -0,0 +1,54 @@
|
||||
.toc {
|
||||
font-size: 0.8rem;
|
||||
min-width: 25vw;
|
||||
flex: 1 auto;
|
||||
|
||||
&.hidden {
|
||||
flex: 0 0;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
transition: width 0.3s ease-in-out;
|
||||
|
||||
overflow: scroll;
|
||||
max-height: 100vh;
|
||||
|
||||
.division-list {
|
||||
list-style: none;
|
||||
|
||||
ul {
|
||||
margin-block: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.selected {
|
||||
font-weight: bold;
|
||||
}
|
||||
.article {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.toggle-button {
|
||||
position: fixed;
|
||||
top: 16px;
|
||||
left: 16px;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
padding: 0;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.toggle-button:hover {
|
||||
background-color: #0056b3;
|
||||
}
|
||||
Reference in New Issue
Block a user