50 lines
949 B
CSS
50 lines
949 B
CSS
|
body {
|
||
|
font-size: calc(.5em + .5vw);
|
||
|
margin: 1em 5em;
|
||
|
}
|
||
|
|
||
|
.container {
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
gap: 1em;
|
||
|
}
|
||
|
|
||
|
main {
|
||
|
flex: 0 0 40em; /* Set a fixed width of 40em for the main container */
|
||
|
max-width: 40em; /* Ensure main doesn't exceed this width */
|
||
|
}
|
||
|
|
||
|
main img {
|
||
|
display: block;
|
||
|
margin-left: auto;
|
||
|
margin-right: auto;
|
||
|
width: 50%;
|
||
|
}
|
||
|
|
||
|
.sidebar {
|
||
|
flex: 1; /* Take up the remaining space on the left */
|
||
|
position: sticky;
|
||
|
align-self: flex-start;
|
||
|
top: 0;
|
||
|
max-width: 15em;
|
||
|
}
|
||
|
|
||
|
.right-column {
|
||
|
flex: 1; /* Take up the remaining space on the right */
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
gap: 1em;
|
||
|
overflow: visible; /* Make sure overflow is set to visible */
|
||
|
max-width: 15em;
|
||
|
}
|
||
|
|
||
|
.tags {
|
||
|
/* Default styling */
|
||
|
}
|
||
|
|
||
|
.contents-list {
|
||
|
position: sticky;
|
||
|
align-self: flex-start;
|
||
|
top: 1em;
|
||
|
}
|