basic-portfolio_web-to-print/assets/style.css

422 lines
6.3 KiB
CSS
Raw Permalink Normal View History

2025-12-29 11:27:47 +01:00
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
-moz-font-smoothing: antialiased;
-o-font-smoothing: antialiased
}
body{
font-family: 'Area Normal';
font-size: 12px;
line-height: 1.5em;
--small: 9px;
--light: #bfbfbf;
--title: 20px;
--mono: 'Geist Mono';
2026-04-08 15:46:40 +02:00
--table-w: 700px;
2025-12-29 11:27:47 +01:00
}
a{
color: currentColor;
}
img{ width: 100%; }
@page {
size: A4 landscape;
margin-left: 14mm;
margin-right: 14mm;
margin-top: 8mm;
margin-bottom: 14mm;
@bottom-left {
content: element(titleRunning);
}
@bottom-right-corner{
content: counter(page) "/" counter(pages);
/* font-size: 8px; */
color: var(--light);
text-align: left;
}
}
#note-intention,
#devis,
#equipe,
#details{
break-before: page;
break-after: page;
}
header{
margin-top: 20em;
margin-bottom: 3em;
}
header h1{
font-size: 6em;
line-height: 1em;
}
header h2{
margin-top: 0.5em;
}
#studio-variable{
break-after: page;
max-width: 56ch;
}
.infos{
width: 100%;
display: flex;
justify-content: space-between;
gap: 1ch;
}
section > h2{
font-weight: bold;
font-size: var(--title);
break-after: none;
margin-bottom: 2em;
}
section > h2::before{
content: '● ';
}
p{
margin: .75em 0;
widows: 3;
orphans: 3;
}
h3{
font-size: 1em;
margin-top: 2em;
margin-bottom: 1em;
}
ul{
list-style-type: square;
margin-left: 2em;
}
footer{
position: running(titleRunning);
/* font-size: 8px; */
color: var(--light);
}
@media screen, pagedjs-ignore{
body{
padding: 20px;
background-color: #efefef
}
.pagedjs_page{
outline: 1px solid #cfcfcf;
background-color: white;
margin-bottom: 30px;
}
.pagedjs_pages{
margin: 0 auto;
width: var(--pagedjs-width-right);
}
}
/*NOTEINTENTION -------------------------------------------- */
#note-intention{
columns: 2;
column-fill: auto;
column-gap: 2.5em;
}
#note-intention h2{
column-span: all;
2026-04-08 15:46:40 +02:00
margin-bottom: 1.5em;
2025-12-29 11:27:47 +01:00
}
#note-intention h2 + p{
margin-top: 0em;
}
/*DEVIS -------------------------------------------- */
2026-04-08 15:46:40 +02:00
#devis{
display: grid;
grid-template-columns: var(--table-w) 1fr;
grid-template-rows: 4em 1fr;
}
.devis-aside{
align-self: end;
margin-left: 3em;
}
#devis h2{
grid-column: 1/end;
}
2025-12-29 11:27:47 +01:00
2026-04-08 15:46:40 +02:00
.devis-container > p{
2025-12-29 11:27:47 +01:00
width: var(--table-w);
text-align: right;
2026-04-08 15:46:40 +02:00
margin-bottom: 1em;
margin-top: -2em;
font-size: 10px;
2025-12-29 11:27:47 +01:00
}
#devis table{
2026-04-08 15:46:40 +02:00
width: var(--table-w);
2025-12-29 11:27:47 +01:00
border-collapse: collapse;
border-bottom: 1px solid #cfcfcf;
2026-04-08 15:46:40 +02:00
table-layout: fixed;
font-size: 12px;
2025-12-29 11:27:47 +01:00
}
2026-04-08 15:46:40 +02:00
#devis table col:nth-child(1){ width: 70% !important; }
#devis table col:nth-child(2){ width: 15% !important; }
#devis table col:nth-child(3){ width: 15% !important; }
2025-12-29 11:27:47 +01:00
#devis table thead th{
background-color: #efefef;
text-align: left;
}
#devis table thead th, td{
2026-04-08 15:46:40 +02:00
padding: 3px 1ch;
2025-12-29 11:27:47 +01:00
}
#devis table thead th:nth-of-type(2),
#devis table thead th:nth-of-type(3),
#devis table td:nth-of-type(2),
#devis table td:nth-of-type(3){
text-align: right!important;
}
#devis table tr:nth-of-type(even){
background-color: #efefef;
}
#devis table .indent{
display: inline-block;
width: 4ch;
}
2026-04-08 15:46:40 +02:00
#total{
display: flex;
justify-content: flex-end;
}
#total table{
2025-12-29 11:27:47 +01:00
/* border-top: 1px solid #cfcfcf; */
2026-04-08 15:46:40 +02:00
width: 400px!important;
table-layout: fixed;
/* margin-left: calc(var(--table-w) - 400px); */
margin-top: 1em;
2025-12-29 11:27:47 +01:00
border-bottom: none;
}
2026-04-08 15:46:40 +02:00
#total table col:nth-child(1){ width: 85% !important; color: red; }
#total table col:nth-child(2){ width: 15% !important; }
2025-12-29 11:27:47 +01:00
#devis #total th,
#devis #total td{
background-color: transparent!important;
font-weight: bold;
}
#devis #total tr:nth-of-type(1){
color: var(--light);
}
#devis #total tr:nth-of-type(2) td{
background-color: transparent!important;
}
#devis #total + p{
margin-top: 3em;
font-size: var(--small);
line-height: 1.5em;
max-width: 40ch;
margin-left: calc(var(--table-w) - 400px);
}
/*PLANNING& LIVRABLES---------------------------------------- */
2026-04-08 15:46:40 +02:00
#planning{
break-after: page;
}
2025-12-29 11:27:47 +01:00
2026-04-08 15:46:40 +02:00
#planning h2{
margin-bottom: 1em;
}
2025-12-29 11:27:47 +01:00
#livrables{
margin-top: 5em;
}
/*EQUIPE --------------------------------------------------- */
#equipe .people{
min-height: 160px;
break-inside: avoid;
2026-04-08 15:46:40 +02:00
margin-top: 4em;
/* margin-bottom: 4em; */
2025-12-29 11:27:47 +01:00
padding-left: 220px;
position: relative;
margin-left: 5em;
}
#equipe figure{
width: 160px;
position: absolute;
left: 0px;
}
#equipe figure figcaption{
display: none;
}
#equipe .people h1{
font-size: var(--title);
line-height: 1.2em;
margin-top: 5px;
}
#equipe .people p{
max-width: 52ch;
}
/*PORTFOLIO intro-------------------------------------------- */
#portfolio-introduction > h2{
margin-bottom: 0px;
}
/*PORTFOLIO 1img -------------------------------------------- */
.portfolio-group{
display: grid;
grid-template-columns: 500px 1fr;
grid-column-gap: 2em;
grid-template-rows: auto auto 1fr;
break-inside: avoid;
2026-04-05 15:47:43 +02:00
margin-bottom: 2.8em;
2025-12-29 11:27:47 +01:00
}
.portfolio-group figure{
grid-column: 1;
grid-row: 1/4;
margin: 0;
border: 1px solid #cfcfcf;
2026-04-05 15:47:43 +02:00
aspect-ratio: 8/5;
2025-12-29 11:27:47 +01:00
overflow: hidden;
}
.portfolio-group figure figcaption{ display: none; }
.portfolio-group figure img{
width: 100%;
2025-12-29 14:48:30 +01:00
height: 100%;
object-fit: cover;
2025-12-29 11:27:47 +01:00
display: flex;
}
.portfolio-group h1{
grid-column: 2;
grid-row: 1;
font-size: var(--title);
line-height: 1.2em;
margin-top: 5px;
}
.portfolio-group p{
grid-column: 2;
grid-row: 2;
width: 54ch;
}
.portfolio-group .details{
grid-column: 2;
grid-row: 3;
margin-top: 0.75em;
}
.portfolio-group .details dl{
display: flex;
margin-bottom: 0.5ch;
}
.portfolio-group .details dt{
width: 12ch;
font-weight: bold;
flex: 0 0 auto;
}
2026-04-05 15:47:43 +02:00
#wysiwyg img{
object-position: 0px 0px;
2026-04-08 15:46:40 +02:00
}
#resin figure img{
width: 870px;
object-position: 0px 0px;
/* object-fit: none; */
}
#timelure figure img{
width: 120%;
object-position: -10% 0px;
}