volumetric-regimes-book/command-line/cover/cover.css

191 lines
4.3 KiB
CSS
Raw Normal View History

2022-06-09 10:11:09 +02:00
:root{
--font-size: 12px;
--line-height: 18px;
--small-font-size: 10px;
--small-line-height: 15px;
--h2-font-size: 21px;
--h2-line-height: 27px;
--first-indent: 7mm;
--second-indent: 20mm;
}
@font-face{
font-family: "bitter";
src: url(../fonts/Bitter-Medium.ttf);
2022-06-09 10:11:09 +02:00
font-weight: normal;
font-style: normal;
}
@font-face{
font-family: "bitter";
src: url(../fonts/Bitter-MediumItalic.ttf);
2022-06-09 10:11:09 +02:00
font-weight: normal;
font-style: italic;
}
@font-face{
font-family: "bitter";
src: url(../fonts/Bitter-Bold.ttf);
2022-06-09 10:11:09 +02:00
font-weight: bold;
font-style: normal;
}
@font-face{
font-family: "bitter";
src: url(../fonts/Bitter-BoldItalic.ttf);
2022-06-09 10:11:09 +02:00
font-weight: bold;
font-style: italic;
}
@font-face{
font-family: "bitter_semi";
src: url(../fonts/Bitter-SemiBold.ttf);
2022-06-09 10:11:09 +02:00
font-weight: normal;
font-style: normal;
}
/* general */
body{
font-family: "bitter";
font-size: var(--font-size);
line-height: var(--line-height);
letter-spacing: 0.01em;
hyphens: auto;
}
@page{
size: 324.6mm 229mm; /* Based on calculations: 323.4, based on canvas template: 324.6 ....... */
orientation: landscape;
background: linear-gradient(180deg, #3741ea, #c0c1e7);
margin: 0;
padding: 0;
color: white;
bleed: 3mm;
/*marks: crop;*/
2022-06-09 10:11:09 +02:00
}
div.cover,
div.spine,
div.backcover{
position: relative;
2022-06-09 10:11:09 +02:00
display: inline-block;
height: 229mm;
vertical-align: top;
}
div.cover,
div.backcover{
2022-06-09 10:11:09 +02:00
width: 152mm;
/*border: 1px solid green;*/
2022-06-09 10:11:09 +02:00
}
div.cover,
div.cover ul li,
div.backcover b{
font-size: var(--h2-font-size);
2022-06-09 10:11:09 +02:00
font-family: "bitter_semi";
line-height: var(--h2-line-height);
2022-06-09 10:11:09 +02:00
letter-spacing: 0.025em;
color: white;
font-weight: bold;
}
div.cover{
padding: 6mm 27mm 0 41mm;
/* margin-top: 17mm, margin-left: 41mm */
2022-06-09 10:11:09 +02:00
}
div.cover p.title,
div.backcover p.title{
width: 300px;
hyphens: none;
}
div.backcover p.title + p{
margin-top: -0.75mm !important;
}
div.cover ul{
padding: 0;
margin: 1.5em 0 !important;
}
div.cover ul li{
margin-bottom: 0.1em !important;
list-style: none;
}
p#multi{
position: absolute;
top: 29mm;
right: 5mm;
width: 150mm;
z-index: 1;
}
div.backcover{
padding: 8mm 21mm 0 42mm;
/* margin-top: 17mm, margin-left: 42mm */
2022-06-09 10:11:09 +02:00
}
div.backcover b{
margin-left: 0;
}
div.backcover p{
margin-bottom: var(--line-height);
}
div.backcover p:first-of-type{
margin-bottom: 9px !important;
}
div.backcover div.barcode img{
position: absolute;
width: 45mm;
right: 14mm; /* margin-right: 14mm */
bottom: 16mm; /* margin-bottom: 16mm */
}
div.backcover div.logo-ohp img{
position: absolute;
width: 50mm;
left: 12mm; /* margin-left: 12mm */
bottom: 17mm; /* margin-bottom: 19mm */
}
div.spine{
position: relative;
width: 19.4mm; /* size of the spine mentioned in template */
2022-06-09 10:11:09 +02:00
}
div.spine p#title{
2022-06-09 10:11:09 +02:00
position: absolute;
top: 25mm;
2022-06-09 10:11:09 +02:00
transform: rotate(90deg);
transform-origin: 8% -4%;
width: 229mm;
height: 15mm;
font-size: var(--h2-font-size);
font-family: "bitter_semi";
line-height: var(--h2-line-height);
letter-spacing: 0.025em;
padding-top: 1mm;
2022-06-09 10:11:09 +02:00
/*border: 1px solid lime;*/
}
div.spine p#multi-small {
2022-06-09 10:11:09 +02:00
position: absolute;
top: 114mm;
width: 18mm;
height: auto;
margin: 0 0.7mm;
padding: 0;
}
div.spine p#logo {
2022-06-09 10:11:09 +02:00
position: absolute;
bottom: 12mm;
width: 9mm;
2022-06-09 10:11:09 +02:00
height: auto;
margin: 0 5.2mm;
padding: 0;
}
div.backcover p#logo-title img,
div.spine p#multi-small img,
div.spine p#multi img,
div.spine p#logo img{
2022-06-09 10:11:09 +02:00
width: 100%;
}
a,
a:visited,
a:active,
a:hover{
color: inherit;
text-decoration: none;
page-break-inside: avoid;
}