PdfCSS:Toward a Minor Tech: Difference between revisions

From creative crowd wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 217: Line 217:
font-size: var(--font-size-computer-modern);
font-size: var(--font-size-computer-modern);
     background-color: yellow;
     background-color: yellow;
}
div.item#item-p1-a > p > b{
    display: none;
}
}
div.item#item-p1-b{
div.item#item-p1-b{

Revision as of 17:15, 19 January 2023

@charset "utf-8"; 

@import url("https://cc.vvvvvvaria.org/fonts/velvetyne/degheest-types/stylesheet.css");
@import url("https://cc.vvvvvvaria.org/fonts/Computer_Modern/Concrete/cmun-concrete.css");
@import url("https://cc.vvvvvvaria.org/fonts/Lucette/font/stylesheet.css");
@import url("https://cc.vvvvvvaria.org/fonts/Redaction/stylesheet.css");

:root{
	--cell-height: 144px;
	--cell-width: 208px; /* this is a visual guess, was needed for the images, but maybe not needed anymore */
	--line-height: 16px;
	--font-size-latitude-regular: 12px;
	--font-size-computer-modern: 12px;
	--small-font-size: 10px;
	--h1-font-size: 36px;
	--h1-line-height: calc(3 * var(--line-height));
	--spacer-half: 8px;
	--spacer-full: var(--line-height);
}

@page {
	size: 297mm 420mm portrait;
	margin: 100px 40px 40px 40px;
	
	@top-left{
		content: "Toward a Minor Tech";
		font-family: monospace;
		font-size: 8px;
	}
	@top-right{
		content: "Peer-reviewed Newspaper Volume XX, Issue X, 2023 - FREE";
		font-family: monospace;
		font-size: 10px;
	}
}

@page:first{

    @top-center{
        content: "Toward a Minor Tech";
        font-family: "Redaction Bold";
        font-size: 50px;
    }
}

/*------------- table of contents -----------*/

div.TOC {
    display:none;
}

/*------------- typography ------*/

body{
	hyphens: auto;
	line-height: var(--line-height);
}

/*------------ headers -----------*/

h1{
	margin: 0;
	font-size: var(--h1-font-size);
	line-height: var(--h1-line-height);
}
h1#cover_title{
	display: none;
}
h1.outside{
	grid-column-start: 2;
	grid-column-end: 4;
	grid-row-start: 1;
	grid-row-end: 2;
	background-color: pink;
	font-family: "FT88-Gothique";
	text-align: center;
}
h1.inline{
	margin: 0;
	background-color: pink;
	font-family: "FT88-School";
	padding: 0 var(--spacer-half) 0 0;
}
h2, h3, h4, h5, h6{
    font-size: 100%;
    line-height: var(--line-height);
    margin: var(--spacer-full) 0 0 0;
}

/*-------------- other --------------*/

p{
	margin: 0;
}
div.mw-parser-output p{
    display: none;
}
div.page p{
    display: block !important;
}

/* ------------ images -------------- */

figure { 
	margin: 0;
}
	figure img{
		margin: 0;
		object-fit: scale-down;
	}
figcaption{
	font-family: "monospace";
	font-size: var(--small-font-size);
	line-height: var(--line-height);
	margin: -4px 0;
	padding: 0;
	position: absolute;
	width: var(--cell-width);
}

/* ------------ grid ---------------- */

div.page {
	display: grid;
	grid-template-columns: repeat(5, 20%);
	grid-template-rows: repeat(10, var(--cell-height));
	margin: 0;
	padding: 0;
}
div.item{
	font-family: "Latitude-Regular";
	font-size: var(--font-size-latitude-regular);
	line-height: var(--line-height);
	column-fill: auto;
	padding: 0 var(--spacer-half);
	margin: 0;
}

.cell-width-one{
	width: var(--cell-width); 
}
.cell-width-two{
	width: calc(var(--cell-width) * 2);
}
.cell-width-three{
	width: calc(var(--cell-width) * 3);
}
.cell-width-four{
	width: calc(var(--cell-width) * 4);
}
.cell-width-five{
	width: calc(var(--cell-width) * 5);
}

.cell-height-one{
	height: var(--cell-height);
}
.cell-height-two{
	height: calc(var(--cell-height) * 2);
}
.cell-height-three{
	height: calc(var(--cell-height) * 3);
}
.cell-height-four{
	height: calc(var(--cell-height) * 4);
}
.cell-height-five{
	height: calc(var(--cell-height) * 5);
}
.cell-height-six{
	height: calc(var(--cell-height) * 6);
}
.cell-height-seven{
	height: calc(var(--cell-height) * 7);
}
.cell-height-eight{
	height: calc(var(--cell-height) * 8);
}
.cell-height-nine{
	height: calc(var(--cell-height) * 9);
}
.cell-height-ten{
	height: calc(var(--cell-height) * 10);
}

.columns-two{
	columns: 2 auto;
}
.columns-three{
	columns: 3 auto;
}
.columns-four{
	columns: 4 auto;
}
.columns-five{
	columns: 5 auto;
}

/* ------------- PAGE 1 ---------------- */

div.item#contributors{
	grid-column-start: 1;
	grid-column-end: 2;
	grid-row-start: 1;
	grid-row-end: 11;
	font-family: "Computer Modern Concrete";
	font-size: var(--font-size-computer-modern);
    background-color: cyan;
}
div.item#item-p1-a{
	grid-column-start: 2;
	grid-column-end: 5;
	grid-row-start: 2;
	grid-row-end: 8;
	columns: 3 auto;
	font-family: "Computer Modern Concrete";
	font-size: var(--font-size-computer-modern);
    background-color: yellow;
}
div.item#item-p1-a > p > b{
    display: none;
}
div.item#item-p1-b{
	grid-column-start: 2;
	grid-column-end: 6;
	grid-row-start: 8;
	grid-row-end: 11;
	columns: 2 auto;
	font-family: "Computer Modern Concrete";
	font-size: var(--font-size-computer-modern);
    background-color: orange;
}

/* ------------- PAGE 2 ---------------- */

div.item#item-p2-a{
	grid-column-start: 5;
	grid-column-end: 6;
	grid-row-start: 1;
	grid-row-end: 6;
	background-color: cyan;
}

/* ------------- PAGE 3 ---------------- */

#item-p3-a{
	background-color: lime;
	grid-column-start: 1;
	grid-column-end: 6;
	grid-row-start: 1;
	grid-row-end: 4;
	border-bottom: 1px solid black;
	margin-bottom: var(--spacer-full);
	transform: rotate(1deg);
}

/* ------------- PAGE 4 ---------------- */

/* ------------- PAGE 5 ---------------- */

/* ------------- PAGE 6 ---------------- */

/* ------------- PAGE 7 ---------------- */

/* ------------- PAGE 8 ---------------- */


div.item#colophon{
	grid-column-start: 1;
	grid-column-end: 6;
	grid-row-start: 9;
	grid-row-end: 11;
	background-color: cyan;
    columns: 5 auto;
}
div.item#colophon li{
    display: inline-block;
    list-style: none;
}
div.item#colophon ul{
    padding: 0;
}
div.item#colophon li::after{
    content: ", ";
    margin-left: 0em;
    margin-right: 0.3em;
}
div.item#colophon li:last-of-type{
    content: "";
}

/* ----------- cosmetics ------------- */

.mw-usertoollinks-talk,
.mw-usertoollinks-contribs{
    display: none;
}