PublishingCSS:TheNewSocial: Difference between revisions
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 23: | Line 23: | ||
#toc { | #toc { | ||
position: fixed; | position: fixed; | ||
left: calc( -1 * ( 30% - | left: calc( -1 * ( 30% - 4rem ) ); | ||
box-sizing: border-box; | box-sizing: border-box; | ||
min-width: 30%; | min-width: 30%; | ||
Line 30: | Line 30: | ||
top: 0; | top: 0; | ||
/*padding: 1rem;*/ | /*padding: 1rem;*/ | ||
padding-right: 3rem; | |||
transition: right 0.2s linear; | transition: right 0.2s linear; | ||
} | } |
Revision as of 15:02, 5 April 2023
body {
background: linear-gradient( yellow, greenyellow );
}
h1, h2, h3, h4, h5 {
color: red;
}
section:has( h2 ) {
display: none;
}
section:has(
h1:target,
h2:target,
h3:target,
h4:target
) {
display: block;
}
#nav {
display: none;
}
#toc {
position: fixed;
left: calc( -1 * ( 30% - 4rem ) );
box-sizing: border-box;
min-width: 30%;
width: 30%;
height: calc( 100vh - 2rem );
top: 0;
/*padding: 1rem;*/
padding-right: 3rem;
transition: right 0.2s linear;
}
#toc:hover {
left: calc( 0% );
}
#toc .toctitle {
display: none;
}
#toc ul {
padding: 0;
list-style: none;
}
#toc > ul > li {
border-radius: 1rem;
background-color: lightgray;
box-shadow: 0 0 1rem 0 fuchsia;
padding: 1rem;
margin: 0;
}
.toclevel-3 {
display: none;
}