Ajout du QRcode en mode print
This commit is contained in:
		
							
								
								
									
										8
									
								
								assets/qr-code.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								assets/qr-code.js
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@@ -90,7 +90,7 @@ small {
 | 
			
		||||
    margin-right: 1ex;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.guide > p:first-of-type:last-of-type::before {
 | 
			
		||||
.guide > p:first-of-type:last-child::before {
 | 
			
		||||
    content: "➔";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -127,4 +127,69 @@ pre {
 | 
			
		||||
.index ul {
 | 
			
		||||
    padding: 0;
 | 
			
		||||
    list-style-type: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.ressource qr-code {
 | 
			
		||||
    display: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@media print {
 | 
			
		||||
    a {
 | 
			
		||||
        color: inherit;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .ressource :not(h2) {
 | 
			
		||||
        font-size: 10pt;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .ressource ul {
 | 
			
		||||
        list-style-type: none;
 | 
			
		||||
        display: flex;
 | 
			
		||||
        flex-direction: row;
 | 
			
		||||
        justify-content: start;
 | 
			
		||||
        align-items: start;
 | 
			
		||||
        flex-wrap: wrap;
 | 
			
		||||
        width: 100%;
 | 
			
		||||
 | 
			
		||||
        margin-bottom: 50px;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .ressource ul > * {
 | 
			
		||||
        width: 200px;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .ressource li {
 | 
			
		||||
        display: flex;
 | 
			
		||||
        flex-direction: column;
 | 
			
		||||
        justify-content: start;
 | 
			
		||||
        align-items: center;
 | 
			
		||||
        text-align: center;
 | 
			
		||||
        margin-bottom: 25px;
 | 
			
		||||
        page-break-inside: avoid;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .ressource li a {
 | 
			
		||||
        display: contents;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .ressource qr-code {
 | 
			
		||||
        display: block;
 | 
			
		||||
        width: 100px;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .ressource qr-code::part(img) {
 | 
			
		||||
        width: 100%;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .ressource a::after {
 | 
			
		||||
        content: attr(href);
 | 
			
		||||
        display: block;
 | 
			
		||||
        text-decoration: none;
 | 
			
		||||
        font-size: 0.9em;
 | 
			
		||||
        margin-top: 1em;
 | 
			
		||||
        order: 0;
 | 
			
		||||
        word-wrap: break-word;
 | 
			
		||||
        opacity: 0.5;
 | 
			
		||||
        width: 100%;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@@ -4,6 +4,7 @@
 | 
			
		||||
    <meta charset="UTF-8">
 | 
			
		||||
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
			
		||||
    <link rel="stylesheet" href="../assets/style.css">
 | 
			
		||||
    <script src="../assets/qr-code.js"></script>
 | 
			
		||||
    <title>Créer une page simple</title>
 | 
			
		||||
</head>
 | 
			
		||||
<body>
 | 
			
		||||
@@ -84,9 +85,18 @@
 | 
			
		||||
        <section class="ressource">
 | 
			
		||||
            <h2>Pour aller plus loin</h2>
 | 
			
		||||
            <ul>
 | 
			
		||||
                <li><a href="https://developer.mozilla.org/fr/docs/Learn/Getting_started_with_the_web/HTML_basics" target="_blank">Notions de base en HTML</a></li>
 | 
			
		||||
                <li><a href="https://developer.mozilla.org/fr/docs/Learn/Getting_started_with_the_web/HTML_basics#anatomie_dun_document_html">Anatomie d'un document HTML</a></li>
 | 
			
		||||
                <li><a href="https://developer.mozilla.org/fr/docs/Web/HTML/Element/title"><title> : l'élément de titre du document</a></li>
 | 
			
		||||
                <li><a href="https://developer.mozilla.org/fr/docs/Learn/Getting_started_with_the_web/HTML_basics" target="_blank">
 | 
			
		||||
                    <qr-code data="https://developer.mozilla.org/fr/docs/Learn/Getting_started_with_the_web/HTML_basics"></qr-code>
 | 
			
		||||
                    Notions de base en HTML
 | 
			
		||||
                </a></li>
 | 
			
		||||
                <li><a href="https://developer.mozilla.org/fr/docs/Learn/Getting_started_with_the_web/HTML_basics#anatomie_dun_document_html" target="_blank">
 | 
			
		||||
                    <qr-code data="https://developer.mozilla.org/fr/docs/Learn/Getting_started_with_the_web/HTML_basics#anatomie_dun_document_html"></qr-code>
 | 
			
		||||
                    Anatomie d'un document HTML
 | 
			
		||||
                </a></li>
 | 
			
		||||
                <li><a href="https://developer.mozilla.org/fr/docs/Web/HTML/Element/title" target="_blank">
 | 
			
		||||
                    <qr-code data="https://developer.mozilla.org/fr/docs/Web/HTML/Element/title"></qr-code>
 | 
			
		||||
                    <title> : l'élément de titre du document
 | 
			
		||||
                </a></li>
 | 
			
		||||
            </ul>
 | 
			
		||||
        </section>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user