PublishingCSS:TheNewSocial: Difference between revisions
No edit summary |
No edit summary |
||
Line 101: | Line 101: | ||
} | } | ||
#Principles > section > p | #Principles > section > p { | ||
display: none; | display: none; | ||
} | } | ||
Line 107: | Line 107: | ||
#Principles > section > h3 { | #Principles > section > h3 { | ||
margin: 0; | margin: 0; | ||
} | |||
/* default: hide */ | |||
#Principles > section > table { | |||
display: none; | |||
} | |||
/* targeted: show */ | |||
#Principles > section:target > table { | |||
display: unset; | |||
} | } |
Revision as of 11:11, 26 April 2023
html{
scroll-behavior:smooth;
}
body {
background: linear-gradient( yellow, greenyellow );
}
main {
margin: auto;
max-width: min( 100%, 40rem );
}
h1, h2, h3, h4, h5 {
color: red;
}
section {
/*display: none;*/
}
section:target,
section:has(:target),
:target section,
section section {
display: block;
}
#nav {
display: none;
}
#toc {
position: fixed;
right: calc( -1 * ( 30% - 2rem ) );
box-sizing: border-box;
min-width: 30%;
width: 30%;
height: calc( 100vh );
top: 0;
padding-right: 1rem;
transition: right 0.2s linear;
overflow:scroll;
}
img {
min-width: 100%;
max-width: 100%;
height: auto;
}
#toc:hover {
right: calc( 0% );
}
#toc .toctitle {
display: none;
}
#toc ul {
padding-left: 1rem;
list-style: none;
}
#toc > ul > li {
border-radius: 1rem;
background-color: lightgray;
box-shadow: 0 0 1rem 0 fuchsia;
padding: 1rem;
margin: 0;
}
#toc > ul > li > ul > li {
display: none;
}
#toc > ul > li a.selected + ul li,
#toc > ul li:has(a.selected) ul li {
display: list-item;
}
#Principles {
position: fixed;
left: calc( -1 * ( 60% - 2rem ) );
box-sizing: border-box;
min-width: 60%;
width: 60%;
height: calc( 100vh );
top: 0;
padding: 0 1rem;
transition: left 0.2s linear;
overflow:scroll;
scroll-behavior:smooth;
}
#Principles:hover {
left: 0;
}
#Principles > section {
border-radius: 1rem;
background-color: lightgray;
box-shadow: 0 0 1rem 0 fuchsia;
padding: 1rem;
margin: 0;
}
#Principles > section > p {
display: none;
}
#Principles > section > h3 {
margin: 0;
}
/* default: hide */
#Principles > section > table {
display: none;
}
/* targeted: show */
#Principles > section:target > table {
display: unset;
}