120 lines
1.5 KiB
CSS
120 lines
1.5 KiB
CSS
.twopane {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 5%;
|
|
}
|
|
|
|
.box {
|
|
position: relative;
|
|
}
|
|
|
|
.sidebar {
|
|
position: sticky;
|
|
top: 40px;
|
|
width: 250px;
|
|
padding: 20px;
|
|
background: #080511;
|
|
border-radius: 8px;
|
|
border: 1px solid #26146b;
|
|
color: white;
|
|
}
|
|
|
|
.sidebar h3 {
|
|
margin-top: 0;
|
|
margin-bottom: 1rem;
|
|
font-size: 1.2rem;
|
|
color: #a594f9;
|
|
}
|
|
|
|
.sidebar ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.sidebar li {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.sidebar a {
|
|
text-decoration: none;
|
|
color: #ccc;
|
|
display: block;
|
|
padding: 8px 12px;
|
|
border-radius: 6px;
|
|
transition: background-color 0.2s, color 0.2s;
|
|
}
|
|
|
|
.sidebar a:hover {
|
|
background-color: #26146b;
|
|
color: white;
|
|
}
|
|
|
|
.content {
|
|
flex: 1;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.twopane {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 100%;
|
|
position: relative;
|
|
top: 0;
|
|
margin-bottom: 20px;
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
|
|
h2 {
|
|
font-size: 35px;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 25px;
|
|
}
|
|
|
|
/* Syntax highlighting styles for Solstice */
|
|
.comment {
|
|
color: #6c757d;
|
|
font-style: italic;
|
|
}
|
|
|
|
.string {
|
|
color: #98c379;
|
|
}
|
|
|
|
.number {
|
|
color: #d19a66;
|
|
}
|
|
|
|
.keyword {
|
|
color: #c678dd;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.builtin {
|
|
color: #61afef;
|
|
}
|
|
|
|
.type {
|
|
color: #e5c07b;
|
|
}
|
|
|
|
.boolean {
|
|
color: #d19a66;
|
|
}
|
|
|
|
.operator {
|
|
color: #56b6c2;
|
|
}
|
|
|
|
.function {
|
|
color: #61afef;
|
|
}
|