PublishingCSS:TheNewSocial: Difference between revisions

From H&D Publishing Wiki
No edit summary
No edit summary
Line 2: Line 2:
background: linear-gradient( yellow, greenyellow );
background: linear-gradient( yellow, greenyellow );
}
}
.toclevel-3 {
display: none;
}
h1, h2, h3, h4, h5 {
h1, h2, h3, h4, h5 {
color: red;
color: red;
}
}
section:has( h2 ) {
section:has( h2 ) {
display: none;
display: none;
}
}
section:has(  
section:has(  
h1:target,
h1:target,
Line 22: Line 15:
) {
) {
display: block;
display: block;
}
#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-left: 3rem;
transition: right 0.2s linear;
}
#toc:hover {
left: calc( 0% );
}
.toclevel-3 {
display: none;
}
}

Revision as of 14:49, 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;
}


#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-left: 3rem;
	transition: right 0.2s linear;
}
#toc:hover {
	left: calc( 0% );
}

.toclevel-3 {
	display: none;
}