PublishingCSS:TheNewSocial: Difference between revisions

From H&D Publishing Wiki
No edit summary
No edit summary
Line 4: Line 4:
body {
body {
background: radial-gradient( #f8f8f8, #b8b8b8 );
background: radial-gradient( #f8f8f8, #b8b8b8 );
font-family: Arial;
}
}


Line 11: Line 12:
max-width: min( 100%, 40rem );
max-width: min( 100%, 40rem );
}
}
h1, h2, h3, h4, h5 {
h1, h2, h3, h4, h5 {
color: red;
/* color: ; */
font-family: monospace;
font-family: monospace;
}
}
Line 140: Line 142:


.clippy_ant {
.clippy_ant {
background: orangered;
position: relative;
border-radius: 20% 50px;
font-family: NotCourierSans;
background: hsl(70, 80%, 80%);
border-radius: 600% 50px;
padding: 1rem;
padding: 1rem;
max-width: 400px;
max-width: 400px;
margin-left: -50px;
margin-left: -50px;
transition: border-radius 0.5s linear;
}
}


.clippy_ant::before {
.clippy_ant::before {
content: "🐜";
content: "🐜🐜🐜";
position: absolute;
position: absolute;
   left: -20px;
   left: -20px;
bottom: 0;
bottom: 0;
text-align: center;
width: 100%;
font-size: 1.3rem;
font-size: 1.3rem;
   font-family: emoji;
   font-family: emoji;
transform: scaleX(-1);
transform: scaleX(-1);
}
.clippy_ant:hover {
border-radius: 100% 50px;
}
.clippy_ant:hover::before {
transform: scaleX(1);
}
}

Revision as of 10:00, 18 May 2023

html{
	scroll-behavior:smooth;
}
body {
	background: radial-gradient( #f8f8f8, #b8b8b8 );
	font-family: Arial;
}


main {
	margin: auto;
	max-width: min( 100%, 40rem );
}

h1, h2, h3, h4, h5 {
/* 	color: ; */
	font-family: monospace;
}
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: 1rem;
	transition: left 0.2s linear;
	overflow:scroll;
	scroll-behavior:smooth;
}

#Principles:hover {
	left: 0;
}

#Principles > h2,
#Principles > p {
	display: none;
}

#Principles > section {
	border-radius: 1rem;
	background-color: lightgray;
	box-shadow: 0 0 1rem 0 fuchsia;
	padding: 1rem;
	margin: 0;
	float: left;
}

#Principles > section > p {
	display: none;
}

#Principles > section > h3 {
	margin: 0;
  display: inline-block;
}


#Principles > section > table td {
	min-width: 20rem;
	vertical-align: bottom;
}

/* default: hide */

#Principles > section > table {
	display: none;
}

/* targeted: show */

#Principles > section:target > table,
#Principles > section:has(:target) > table,
#Principles > section:has(.selected) > table {
	display: unset;
}

/* Custom Clippy Ant Styling */

.clippy_ant {
	position: relative;
	font-family: NotCourierSans;
	background: hsl(70, 80%, 80%);
	border-radius: 600% 50px;
	padding: 1rem;
	max-width: 400px;
	margin-left: -50px;
	transition: border-radius 0.5s linear;
}



.clippy_ant::before {
	content: "🐜🐜🐜";
	position: absolute;
  left: -20px;
	bottom: 0;
	text-align: center;
	width: 100%;
	font-size: 1.3rem;
  font-family: emoji;
	transform: scaleX(-1);
}

.clippy_ant:hover {
	border-radius: 100% 50px;
}

.clippy_ant:hover::before {
	transform: scaleX(1);
}