UnfoldingCSS:StyleBox: Difference between revisions

From titipi
Jump to navigation Jump to search
No edit summary
No edit summary
 
(45 intermediate revisions by the same user not shown)
Line 1: Line 1:
:root {
:root {
    /* ***** PAGE OPTIONS **** */
    --page-size: A4;
    --color-paper: 'Plum' !important;


     /* ***** FONTS ****** */
/* ************* C O N T E N T ************ */
     --title-font: 'Serif';
 
     --body-font: 'Sanserif';
     --PUB-title: 'PUB Title';
     --code-font: 'Monospace';
    --PUB-collective: 'Enter your collective here';
     --quote-font: 'Serif';
    --PUB-year: '3000';
     --footnote-font: 'Sanserif';
 
     --page-number-font: 'Monospace';
 
/* ************* F O N T S **************** */
 
     --title-font: Serif;
     --body-font: Sans-serif;
     --code-font: Monospace;
     --quote-font: Serif;
     --footnote-font: Sanserif;
     --page-number-font: Monospace;
 
    --h1-font-size: 30pt;
    --h2-font-size: 24pt;
    --h3-font-size: 18pt;
    --p-font-size: 12pt;
      
      


    /* ****** COLOR ****** */
/* ************* C O L O R **************** */
     --text-color: 'MidnightBlue';
 
    --color-paper: HoneyDew;
     --text-color: MediumSeaGreen;
    --highlight-color: Olive;
    --sparkling-color: LightCoral;
 
}




    /* ***** CONTENT ****** */
    --PUB-title: 'PUB Title';


}
/* -------------- P A G E - S T Y L E ------------  */


@page {
@page {
     size: var(--page-size);
 
     margin-top: 1.5cm;
/* Choose the size of the publication: A4, A5, A6 or "size: 12cm 5cm;", etc. */
     margin-bottom: 1.5cm;
 
     size: A4;
     margin-top: 15mm;
     margin-bottom: 15mm;
 
}
}


Line 38: Line 56:
         content: none;
         content: none;
     }
     }
}
}


Line 47: Line 64:


     @right-middle {
     @right-middle {
        color: var(--sparkling-color);
         content: counter(page);
         content: counter(page);
         font-family: var(--page-number-font);
         font-family: var(--page-number-font);
Line 52: Line 70:


     @right-top {
     @right-top {
        color: var(--text-color);
         content: var(--PUB-title);
         content: var(--PUB-title);
         font-family: var(--title-font);
         font-family: var(--code-font);
         margin-right: 0.8cm;
         margin-right: 0.8cm;
         writing-mode: vertical-rl;
         writing-mode: vertical-rl;
         text-orientation: mixed;
         text-orientation: mixed;
     }
     }
   
}
}


Line 66: Line 84:
     margin-right: 35mm;
     margin-right: 35mm;
     margin-left: 20mm;
     margin-left: 20mm;


     @left-middle {
     @left-middle {
        color: var(--sparkling-color);
         content: counter(page);
         content: counter(page);
         font-family: var(--page-number-font);
         font-family: var(--page-number-font);
Line 73: Line 93:


     @left-top {
     @left-top {
        color: var(--text-color);
         content: var(--PUB-title);
         content: var(--PUB-title);
         font-family: var(--title-font);
         font-family: var(--code-font);
         margin-right: 0.8cm;
         margin-right: 0.8cm;
         writing-mode: vertical-rl;
         writing-mode: vertical-rl;
         text-orientation: mixed;
         text-orientation: mixed;
     }
     }
      
}
 
.pagedjs_sheet {
     box-shadow: -5px 5px 12px 0px var(--color-pageSheet);
}
}


body{
body{
     background-color: var(--color-paper);
     background-color: var(--color-paper);
}
/* -------------- P A G E - S T Y L E - E N D S -----------  */
/* -------------- T E X T - S T Y L E ---------------------  */
h1{
    color: var(--highlight-color);
    font-family: var(--title-font);
    font-size: var(--h1-font-size);
    line-height: calc(var(--h1-font-size) + 1.5pt);
    text-wrap: pretty;
}
h2{
    color: var(--highlight-color);
    font-family: var(--title-font);
    font-size: var(--h2-font-size);
    line-height: calc(var(--h2-font-size) + 1.5pt);
    text-wrap: pretty;
}
h3{
    color: var(--highlight-color);
    font-family: var(--title-font);
    font-size: var(--h3-font-size);
    line-height: calc(var(--h3-font-size) + 1.5pt);
    text-wrap: pretty;
}
b{
    color: var(--sparkling-color);
}
}


p{
p{
    color: var(--text-color);
     font-family: var(--body-font);
     font-family: var(--body-font);
     font-size: 12pt;
     font-size: var(--p-font-size);
     line-height: 13pt;
     line-height: calc(var(--p-font-size) + 2pt);
     text-indent: 15pt;
     text-indent: calc(var(--p-font-size) + 2pt);
     text-wrap: pretty;
     text-wrap: pretty;
}
ul{
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--p-font-size);
    line-height: calc(var(--p-font-size) + 2pt);
}
a{
    color: var(--sparkling-color);
}
}


Line 99: Line 171:
   margin-left: -10px;
   margin-left: -10px;
}
}
/* -------------- T E X T - B L O C K - E N D S -----------  */

Latest revision as of 11:57, 7 June 2024

:root {

/* ************* C O N T E N T ************ */

    --PUB-title: 'PUB Title';
    --PUB-collective: 'Enter your collective here';
    --PUB-year: '3000';


/* ************* F O N T S **************** */

    --title-font: Serif;
    --body-font: Sans-serif;
    --code-font: Monospace;
    --quote-font: Serif;
    --footnote-font: Sanserif;
    --page-number-font: Monospace;

    --h1-font-size: 30pt;
    --h2-font-size: 24pt;
    --h3-font-size: 18pt;
    --p-font-size: 12pt;
    

/* ************* C O L O R **************** */

    --color-paper: HoneyDew; 
    --text-color: MediumSeaGreen;
    --highlight-color: Olive;
    --sparkling-color: LightCoral;

}



/* -------------- P A G E - S T Y L E ------------  */

@page {

/* Choose the size of the publication: A4, A5, A6 or "size: 12cm 5cm;", etc. */

    size: A4;
    margin-top: 15mm;
    margin-bottom: 15mm;

}


@page:first{

    @right-middle {
        content: none;
    }    

    @right-top {
        content: none;
    }
}

@page:right {

    margin-left: 35mm;
    margin-right: 20mm;

    @right-middle {
        color: var(--sparkling-color);
        content: counter(page);
        font-family: var(--page-number-font);
    }    

    @right-top {
        color: var(--text-color);
        content: var(--PUB-title);
        font-family: var(--code-font);
        margin-right: 0.8cm;
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }
}


@page:left {

    margin-right: 35mm;
    margin-left: 20mm;


    @left-middle {
        color: var(--sparkling-color);
        content: counter(page);
        font-family: var(--page-number-font);
    }    

    @left-top {
        color: var(--text-color);
        content: var(--PUB-title);
        font-family: var(--code-font);
        margin-right: 0.8cm;
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }
}

.pagedjs_sheet {
    box-shadow: -5px 5px 12px 0px var(--color-pageSheet);
}

body{
    background-color: var(--color-paper);
}

/* -------------- P A G E - S T Y L E - E N D S -----------  */



/* -------------- T E X T - S T Y L E ---------------------  */


h1{
    color: var(--highlight-color);
    font-family: var(--title-font);
    font-size: var(--h1-font-size);
    line-height: calc(var(--h1-font-size) + 1.5pt);
    text-wrap: pretty;
}

h2{
    color: var(--highlight-color);
    font-family: var(--title-font);
    font-size: var(--h2-font-size);
    line-height: calc(var(--h2-font-size) + 1.5pt);
    text-wrap: pretty;
}

h3{
    color: var(--highlight-color);
    font-family: var(--title-font);
    font-size: var(--h3-font-size);
    line-height: calc(var(--h3-font-size) + 1.5pt);
    text-wrap: pretty;
}


b{
    color: var(--sparkling-color);
}

p{
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--p-font-size);
    line-height: calc(var(--p-font-size) + 2pt);
    text-indent: calc(var(--p-font-size) + 2pt);
    text-wrap: pretty;
}

ul{
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--p-font-size);
    line-height: calc(var(--p-font-size) + 2pt);
}

a{
    color: var(--sparkling-color);
}


p:nth-of-type(3n) {
  border: 2px solid orange;
  margin-left: -10px;
}

/* -------------- T E X T - B L O C K - E N D S -----------  */