Spaces:
Sleeping
Sleeping
body { | |
font-family: Arial, sans-serif; | |
margin: 0; | |
padding: 0; | |
display: flex; | |
} | |
.container { | |
display: flex; | |
width: 100%; | |
} | |
.toc { | |
width: 20%; | |
background-color: #f4f4f4; | |
padding: 20px; | |
box-shadow: 2px 0 5px rgba(0,0,0,0.1); | |
position: fixed; | |
height: 100%; | |
overflow-y: auto; | |
} | |
.toc h2 { | |
font-size: 1.5em; | |
margin-bottom: 10px; | |
} | |
.toc ul { | |
list-style-type: none; | |
padding: 0; | |
} | |
.toc ul li { | |
margin-bottom: 10px; | |
} | |
.toc ul li a { | |
text-decoration: none; | |
color: #333; | |
} | |
.toc ul li a:hover { | |
text-decoration: underline; | |
} | |
.content { | |
margin-left: 30%; | |
margin-right: 10%; | |
padding: 30px; | |
width: 80%; | |
} | |
.content h1 { | |
font-size: 2em; | |
margin-bottom: 20px; | |
} | |
.content section { | |
margin-bottom: 40px; | |
} | |
.content section h2 { | |
font-size: 1.5em; | |
margin-bottom: 10px; | |
} | |