PublishingCSS:TheNewSocial: Difference between revisions

From H&D Publishing Wiki
No edit summary
No edit summary
Line 121: Line 121:
max-width: 450px;
max-width: 450px;
height: calc( 100vh - 2rem );
height: calc( 100vh - 2rem );
padding: 1rem;
transition: left 0.2s linear;
transition: left 0.2s linear;
scroll-behavior:smooth;
scroll-behavior:smooth;
Line 126: Line 127:
flex-direction: column;
flex-direction: column;
overflow: hidden;
overflow: hidden;
padding: 0;
}
}


Line 136: Line 136:
#The_New_Social > p {
#The_New_Social > p {
/* display: none; */
/* display: none; */
}
#The_New_Social > * {
margin-block-end: 0rem;
margin-inline: 0;
}
}


#The_New_Social div#Principles {
#The_New_Social div#Principles {
overflow: scroll;
/* overflow: scroll; */
/* height: 100%; */
/* height: 100%; */
  flex-grow: 1;
}
}



Revision as of 12:11, 18 May 2023

:root {
	--lighter: rgb(255,255,255,0.25);
--little-lighter: rgba(255, 255, 255, 0.05);
--little-darker: rgb(0,0,0,0.05);
--darker: rgb(0,0,0,0.25);
--lot-darkwr: rgb(0,0,0,0.5);
--accent: var(--brown);
--radius: 0.25rem;
--single: 2px solid;
--double: 6px double;
--focus: var(--single) blue;
--fast: 0.25s;
}

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


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

.mw-body-content {
	position: relative;
}

main > h1 {
	display: none;
}

h1, h2, h3, h4, h5 {
	font-weight: normal;
	font-family: monospace;
}

h1, h2 {
	font-family: Arial;
	font-family: Facade;
	font-size: 4rem;
	text-align: center;
}

h1 {
	font-size: 4rem;
}



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;
}
section#The_New_Social {
	box-sizing: border-box;
  position: fixed;
	top: 0;
	left: 0;
	max-width: 450px;
	height: calc( 100vh - 2rem );
	padding: 1rem;
	transition: left 0.2s linear;
	scroll-behavior:smooth;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

#The_New_Social:hover {
	left: 0;
}

#The_New_Social > h2,
#The_New_Social > p {
/* 	display: none; */
}

#The_New_Social > * {
	margin-block-end: 0rem;
	margin-inline: 0;
}

#The_New_Social div#Principles {
/* 	overflow: scroll; */
/* 	height: 100%; */
  flex-grow: 1;
}

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

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

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


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

/* default: hide */

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

/* targeted: show */

#The_New_Social div#Principles > section:target > table,
#The_New_Social div#Principles > section:has(:target) > table,
#The_New_Social div#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: -100px;
	transition: border-radius 0.5s linear;
	  border-top: var(--single) var(--darker);
  border-left: var(--single) var(--darker);
  border-bottom: var(--single) var(--lighter);
  border-right: var(--single) var(--lighter);
}



.clippy_ant::before {
	content: "🐜🐜🐜";
	position: absolute;
  left: -20px;
	bottom: 12px;
	text-align: center;
	width: 100%;
	font-size: 1.3rem;
  font-family: emoji;
	transform: scaleX(-1);
	rotate: -11deg;
		transition: bottom 0.6s linear;

}

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

.clippy_ant:hover::before {
	transform: scaleX(1);
	rotate: -9deg;
		bottom: 0px;
}


section {
	background-color: rgb(0,0,0,0.02);
  border-top: var(--single) var(--little-darker);
  border-left: var(--single) var(--little-darker);
  border-bottom: var(--single) var(--lighter);
  border-right: var(--single) var(--lighter);
  padding: 1rem;
	margin: 1rem;
}