diff --git a/b2-cwd/integration/live/session4/accessibilite/.gitignore b/b2-cwd/integration/live/session4/accessibilite/.gitignore new file mode 100644 index 0000000..24e5ef7 --- /dev/null +++ b/b2-cwd/integration/live/session4/accessibilite/.gitignore @@ -0,0 +1,3 @@ +*.map +style-main.css +desktop.css diff --git a/b2-cwd/integration/live/session4/accessibilite/README.md b/b2-cwd/integration/live/session4/accessibilite/README.md new file mode 100644 index 0000000..2358b80 --- /dev/null +++ b/b2-cwd/integration/live/session4/accessibilite/README.md @@ -0,0 +1,24 @@ + +## spec HTML5 +https://dev.w3.org/html5/spec-LC/ +https://html.spec.whatwg.org/ + +## validateur html : +https://validator.w3.org/ + +## validateur css : +https://jigsaw.w3.org/css-validator/ + +## spec CSS +https://www.w3.org/Style/CSS/Overview.en.html + +## spec WAI +https://www.w3.org/WAI/ + +## guide WCAG +https://www.w3.org/WAI/standards-guidelines/wcag/ + +##référentiel accessibilité des administrations (RGAA) + +## css_selectors +https://www.w3schools.com/cssref/css_selectors.asp diff --git a/b2-cwd/integration/live/session4/accessibilite/about.html b/b2-cwd/integration/live/session4/accessibilite/about.html new file mode 100644 index 0000000..34d7fd7 --- /dev/null +++ b/b2-cwd/integration/live/session4/accessibilite/about.html @@ -0,0 +1,62 @@ + + + + + À propos du café + + + + + + + +
+ +

À propos du café

+
+
+ Parlons un peu du café... +
+ réveillé à +
+
+

Lorem Ipsum has been the industry's standard dummy text

+

Ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. + It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum

+
+

ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum

+

Lorem ipsum dolor sit amet. A obcaecati accusantium Ut incidunt aut laborum sint rem veritatis voluptatem aut harum aliquid et accusantium voluptate! Quo quam voluptas sit temporibus rerum qui unde velit. Sit modi deleniti id dicta impedit a nobis? Et delectus expedita non voluptates odio et nisi perferendis et ratione similique! Aut laborum cumque ut optio consequatur Non amet? Aut rerum veniam ea perspiciatis consequatur ea tempora maxime et minima blanditiis et fugit numquam cum possimus perspiciatis ex nulla minus. Vel voluptatem architecto est velit accusamus Aut dolorem qui cupiditate consectetur et magnam reprehenderit eum totam nemo aut excepturi aliquid! Hic cumque nihil et asperiores velit ea rerum sunt sit ducimus autem sit incidunt maxime. 33 officiis voluptate eum possimus aliquam ut pariatur assumenda sed voluptatem eius est beatae minus ut enim expedita.

+

Est vitae autem In velit qui sint repellat est quam totam qui repellendus quidem. Ea incidunt dolorum eos ratione sint ab sapiente laborum et saepe dolores qui blanditiis magni ea quos odio eum obcaecati consequuntur. Aut expedita quis et nostrum omnis ut culpa maiores et modi Quis aut dolorum quidem quo rerum velit et esse omnis. Qui laboriosam totam a nisi voluptatum nam voluptas esse aut obcaecati numquam est quasi reiciendis sed architecto perspiciatis. Vel consequatur exercitationem ea enim eveniet ut dolorem perferendis 33 laborum molestiae est impedit ipsa ab reprehenderit consequatur. Ex maiores magni Non provident et mollitia earum et rerum quod in enim aspernatur et eligendi quisquam. Est beatae vero aut repellat consectetur sed eius maxime et quod obcaecati et galisum.

+

Ad illo nemo et atque isteid reprehenderit vel nobis consectetur in necessitatibus omnis! Ea ipsam modi in assumenda veniam id voluptas quia. Ut quas officia Non voluptas aut magni provident ut numquam perspiciatis in consequatur tempore ut mollitia alias vero illum. Non aliquam consequatur id molestiae et dolorem deserunt ex repellat autem ab aperiam officiis id laborum doloremque qui quisquam similique. In autem dolorum aut delectus cumque id aperiam voluptatem qui voluptatem doloribus et obcaecati accusamus sit mollitia dolorem. Ut possimus adipisci Id rerum et nobis quae est eaque tempora. Ut culpa explicabo sit alias ullam id soluta praesentium a animi autem qui eius aliquid tenetur culpa.

+

+ + 33 voluptatem cupiditate a omnis consequatur Et nobis eum accusantium facere est repellat molestiae aut molestiae fugit! Et sunt saepe qui quia quos ut quisquam nostrum et minima iusto sit fuga enim et asperiores necessitatibus ea tempore consequatur. In distinctio illum ut rerum ipsum Eum corporis. Qui iste beatae Ea voluptatum a facere tenetur et ullam minus. Non dolorum distinctio est repellendus odio ut saepe enim. +
15 voluptatem cupiditate a omnis consequatur Et nobis eum accusantium facere est repellat molestiae aut molestiae fugit! Et sunt saepe qui quia quos ut quisquam nostrum et minima iusto sit fuga enim et asperiores necessitatibus ea tempore consequatur. In distinctio illum ut rerum ipsum Eum corporis. Qui iste beatae Ea voluptatum a facere tenetur et ullam minus. Non dolorum distinctio est repellendus odio ut saepe enim. +
45 voluptatem cupiditate a omnis consequatur Et nobis eum accusantium facere est repellat molestiae aut molestiae fugit! Et sunt saepe qui quia quos ut quisquam nostrum et minima iusto sit fuga enim et asperiores necessitatibus ea tempore consequatur. In distinctio illum ut rerum ipsum Eum corporis. Qui iste beatae Ea voluptatum a facere tenetur et ullam minus. Non dolorum distinctio est repellendus odio ut saepe enim. +
1 voluptatem cupiditate a omnis consequatur Et nobis eum accusantium facere est repellat molestiae aut molestiae fugit! Et sunt saepe qui quia quos ut quisquam nostrum et minima iusto sit fuga enim et asperiores necessitatibus ea tempore consequatur. In distinctio illum ut rerum ipsum Eum corporis. Qui iste beatae Ea voluptatum a facere tenetur et ullam minus. Non dolorum distinctio est repellendus odio ut saepe enim. +
8 voluptatem cupiditate a omnis consequatur Et nobis eum accusantium facere est repellat molestiae aut molestiae fugit! Et sunt saepe qui quia quos ut quisquam nostrum et minima iusto sit fuga enim et asperiores necessitatibus ea tempore consequatur. In distinctio illum ut rerum ipsum Eum corporis. Qui iste beatae Ea voluptatum a facere tenetur et ullam minus. Non dolorum distinctio est repellendus odio ut saepe enim. +

+

Quo officia reiciendis Ut dolorem et molestiae fugit. Ut neque aspernatur et laboriosam quia in dolor totam et distinctio excepturi et laborum suscipit in odit possimus nam nobis tempore. Ea expedita blanditiis aut nulla atque a laudantium voluptas non excepturi accusamus ex cumque voluptas. Eos ducimus incidunt quo incidunt dolorem et fuga repudiandae 33 iure tenetur a internos inventore aut voluptas sint! Sit perspiciatis tempora Vel consectetur sit beatae blanditiis sed dolorem tenetur.

+

Sit consectetur enim Et dolorem ad mollitia galisum ea dicta enim sit veniam omnis! Et voluptatem cupiditate id quis minima et dolor dolorem. Hic galisum debitis aut doloribus omnis est similique expedita. Id voluptas voluptas Et distinctio sed deserunt vitae ut velit laborum. Sit Quis iste id adipisci libero ut omnis cumque et galisum blanditiis 33 earum omnis quo libero delectus. Sit quibusdam rerum aut sunt dolorum qui distinctio sunt. Perferendis molestiae hic pariatur veniam Et quos sit consequatur atque cum officiis omnis in perferendis quos culpa vitae! Qui possimus consequatur rem tenetur sint eos quasi consequatur qui temporibus maxime At aspernatur pariatur ut obcaecati ipsa. Eum earum Quis rem temporibus sint eum repellendus Quis!

+

Nam repellendus error vel quia iste vel exercitationem rerum qui nobis nulla qui aspernatur omnis. Nam numquam voluptate Qui dignissimos et alias sapiente ab reprehenderit repudiandae non corrupti quasi vel dolores nihil a deleniti inventore. Eum alias rerum sit distinctio impedit ut odio molestiae sit fugiat modi. Ad sint vero eum amet quis nam tempora galisum non molestiae consequatur et magnam sint ab sunt praesentium. Est aperiam doloremque Aut quas ad inventore temporibus et soluta perferendis. Ut autem sunt Et autem qui quia illum et voluptatibus accusamus est sapiente sint est consequatur labore. Et voluptas voluptatem et deleniti blanditiis non voluptatum dolores id nisi doloremque ea sapiente quibusdam ut ducimus necessitatibus. Non numquam eaque et rerum nesciunt a similique fugiat. In odio enim est eligendi voluptatum qui repellat culpa.

+
+ + + + \ No newline at end of file diff --git a/b2-cwd/integration/live/session4/accessibilite/aria-live.html b/b2-cwd/integration/live/session4/accessibilite/aria-live.html new file mode 100644 index 0000000..d058375 --- /dev/null +++ b/b2-cwd/integration/live/session4/accessibilite/aria-live.html @@ -0,0 +1,46 @@ + + + + + Réveil + + + + +
+
+ Bonjour ! + + + +
+ + + + +
+ + \ No newline at end of file diff --git a/b2-cwd/integration/live/session4/accessibilite/desktop.scss b/b2-cwd/integration/live/session4/accessibilite/desktop.scss new file mode 100644 index 0000000..cad9ea7 --- /dev/null +++ b/b2-cwd/integration/live/session4/accessibilite/desktop.scss @@ -0,0 +1,79 @@ +#main-menu +{ + .menu-label + { + display:none; + } + ul + { + display:block; + margin-block-start: 1em; + margin-block-end: 1em; + margin-inline-start: 0px; + margin-inline-end: 0px; + padding-inline-start: 0px; + margin:0px; + li + { + display:inline-block; + width:24%; + } + } +} + + +////// FORUMULAIRE +.cf +{ + &-label,&-input + { + min-width: auto; + width: auto; + } + &-label + { + float:left; + clear:left; + padding-right:20px; + } + &-input + { + min-height: 20px; + line-height: 20px; + min-width: 20vw; + float:right; + clear:right; + box-sizing: border-box; + + } + &-textarea + { + margin:8px 0; + display:block; + width:100%; + clear: both; + } + &-input-group + { + padding:4px; + margin:4px; + } + &-close-wrap + { + margin:-20px -20px 0 -20px; + } + &-btn + { + background-color: black; + color:white; + padding-left:10px; + padding-right:10px; + } +} + +.main-stat +{ + max-width: 300px; + float:left; + margin:10px; +} \ No newline at end of file diff --git a/b2-cwd/integration/live/session4/accessibilite/espresso-neg.jpg b/b2-cwd/integration/live/session4/accessibilite/espresso-neg.jpg new file mode 100644 index 0000000..cea6e0c Binary files /dev/null and b/b2-cwd/integration/live/session4/accessibilite/espresso-neg.jpg differ diff --git a/b2-cwd/integration/live/session4/accessibilite/espresso-opt.jpg b/b2-cwd/integration/live/session4/accessibilite/espresso-opt.jpg new file mode 100644 index 0000000..cfe8fdb Binary files /dev/null and b/b2-cwd/integration/live/session4/accessibilite/espresso-opt.jpg differ diff --git a/b2-cwd/integration/live/session4/accessibilite/espresso-vert.jpg b/b2-cwd/integration/live/session4/accessibilite/espresso-vert.jpg new file mode 100644 index 0000000..94924d5 Binary files /dev/null and b/b2-cwd/integration/live/session4/accessibilite/espresso-vert.jpg differ diff --git a/b2-cwd/integration/live/session4/accessibilite/espresso.jpg b/b2-cwd/integration/live/session4/accessibilite/espresso.jpg new file mode 100644 index 0000000..7514c96 Binary files /dev/null and b/b2-cwd/integration/live/session4/accessibilite/espresso.jpg differ diff --git a/b2-cwd/integration/live/session4/accessibilite/fonts/icomoon.eot b/b2-cwd/integration/live/session4/accessibilite/fonts/icomoon.eot new file mode 100644 index 0000000..1f79bcc Binary files /dev/null and b/b2-cwd/integration/live/session4/accessibilite/fonts/icomoon.eot differ diff --git a/b2-cwd/integration/live/session4/accessibilite/fonts/icomoon.svg b/b2-cwd/integration/live/session4/accessibilite/fonts/icomoon.svg new file mode 100644 index 0000000..40a725d --- /dev/null +++ b/b2-cwd/integration/live/session4/accessibilite/fonts/icomoon.svg @@ -0,0 +1,16 @@ + + + +Generated by IcoMoon + + + + + + + + + + + + \ No newline at end of file diff --git a/b2-cwd/integration/live/session4/accessibilite/fonts/icomoon.ttf b/b2-cwd/integration/live/session4/accessibilite/fonts/icomoon.ttf new file mode 100644 index 0000000..1b5be29 Binary files /dev/null and b/b2-cwd/integration/live/session4/accessibilite/fonts/icomoon.ttf differ diff --git a/b2-cwd/integration/live/session4/accessibilite/fonts/icomoon.woff b/b2-cwd/integration/live/session4/accessibilite/fonts/icomoon.woff new file mode 100644 index 0000000..0ed21c6 Binary files /dev/null and b/b2-cwd/integration/live/session4/accessibilite/fonts/icomoon.woff differ diff --git a/b2-cwd/integration/live/session4/accessibilite/icon-style.css b/b2-cwd/integration/live/session4/accessibilite/icon-style.css new file mode 100644 index 0000000..8a950e5 --- /dev/null +++ b/b2-cwd/integration/live/session4/accessibilite/icon-style.css @@ -0,0 +1,44 @@ +@font-face { + font-family: 'icomoon'; + src: + url('fonts/icomoon.ttf?k3kmik') format('truetype'), + url('fonts/icomoon.woff?k3kmik') format('woff'), + url('fonts/icomoon.svg?k3kmik#icomoon') format('svg'); + font-weight: normal; + font-style: normal; + font-display: block; +} + +[class^="icon-"], [class*=" icon-"] { + /* use !important to prevent issues with browser extensions that change fonts */ + font-family: 'icomoon' !important; + speak: never; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + + /* Better Font Rendering =========== */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-eye:before { + content: "\e9ce"; +} +.icon-eye-blocked:before { + content: "\e9d1"; +} +.icon-close-circle:before { + content: "\ea0d"; +} +.icon-close:before { + content: "\ea0f"; +} +.icon-radio-checked:before { + content: "\ea54"; +} +.icon-radio-unchecked:before { + content: "\ea56"; +} diff --git a/b2-cwd/integration/live/session4/accessibilite/imgs/L.svg b/b2-cwd/integration/live/session4/accessibilite/imgs/L.svg new file mode 100644 index 0000000..adc6313 --- /dev/null +++ b/b2-cwd/integration/live/session4/accessibilite/imgs/L.svg @@ -0,0 +1,67 @@ + + + + + + + + + + image/svg+xml + + + + + + + + diff --git a/b2-cwd/integration/live/session4/accessibilite/imgs/accros.jpeg b/b2-cwd/integration/live/session4/accessibilite/imgs/accros.jpeg new file mode 100644 index 0000000..c90dc91 Binary files /dev/null and b/b2-cwd/integration/live/session4/accessibilite/imgs/accros.jpeg differ diff --git a/b2-cwd/integration/live/session4/accessibilite/imgs/lapin.jpg b/b2-cwd/integration/live/session4/accessibilite/imgs/lapin.jpg new file mode 100644 index 0000000..a87c407 Binary files /dev/null and b/b2-cwd/integration/live/session4/accessibilite/imgs/lapin.jpg differ diff --git a/b2-cwd/integration/live/session4/accessibilite/index.html b/b2-cwd/integration/live/session4/accessibilite/index.html new file mode 100644 index 0000000..e9ecbb2 --- /dev/null +++ b/b2-cwd/integration/live/session4/accessibilite/index.html @@ -0,0 +1,98 @@ + + + + + A hompage + + + + + + +
+ +
+ + + + + + + +
+

A hompage

+
+
+ Lorem Ipsum is simply dummy text of the printing and typesetting industry. +
+

Lorem Ipsum has been the industry's standard dummy text

+

ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum

+
+

ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum

+
+ + + +
+

Contact us

+
+
+ +
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + + + + + + + + +
+ +
+ +
+
+
+ + \ No newline at end of file diff --git a/b2-cwd/integration/live/session4/accessibilite/print.css b/b2-cwd/integration/live/session4/accessibilite/print.css new file mode 100644 index 0000000..39a403f --- /dev/null +++ b/b2-cwd/integration/live/session4/accessibilite/print.css @@ -0,0 +1,4 @@ +#main-menu +{ + display: none!important; +} \ No newline at end of file diff --git a/b2-cwd/integration/live/session4/accessibilite/progress-bar.html b/b2-cwd/integration/live/session4/accessibilite/progress-bar.html new file mode 100644 index 0000000..7f2d741 --- /dev/null +++ b/b2-cwd/integration/live/session4/accessibilite/progress-bar.html @@ -0,0 +1,24 @@ + + + + + Réveil + + + + +
+
+ réveillé à + + +
+
+ + \ No newline at end of file diff --git a/b2-cwd/integration/live/session4/accessibilite/scripts/main-2.js b/b2-cwd/integration/live/session4/accessibilite/scripts/main-2.js new file mode 100644 index 0000000..3d0ea06 --- /dev/null +++ b/b2-cwd/integration/live/session4/accessibilite/scripts/main-2.js @@ -0,0 +1,51 @@ +console.log('scripts loaded'); +document.onreadystatechange = function(event) { + if (document.readyState === "complete") { + if(document.getElementById('pourcent-reveil')) + { + console.log('has progress bar'); + setcurrentprogress(document.getElementById('pourcent-reveil'),5); + updateprogress(document.getElementById('pourcent-reveil'),5); + } + if(oLoaded = document.getElementById('loaded')) + { + console.log('has live content'); + oLoaded.setAttribute("class","shown"); + oLoaded.removeAttribute("aria-hidden","true"); + oLoaded.innerHTML="Document chargé!"; + oLoaded.setAttribute("aria-live","off"); + setTimeout(warning, 1500); + } + } +} + +function warning() +{ + if(document.getElementById('warning')) + { + document.getElementById('warning').innerHTML="Erreur de communication avec le serveur!"; + document.getElementById('warning').setAttribute("class","shown"); + document.getElementById('warning').removeAttribute("aria-hidden"); + } +} + +function setcurrentprogress(obj,value) +{ + obj.setAttribute("value",value); + obj.setAttribute("aria-valuenow",value); +} + +function updateprogress(obj, step=5) +{ + currentprogress = parseInt(obj.getAttribute("value")) + step; + if(currentprogress >= 100) + { + console.log("finished"); + setcurrentprogress(obj,100); + document.getElementById("finished").setAttribute("style",""); + return; + } + console.log("updateprogress to "+currentprogress); + setcurrentprogress(obj,currentprogress); + setTimeout(updateprogress, 500, obj); +} \ No newline at end of file diff --git a/b2-cwd/integration/live/session4/accessibilite/scripts/main.js b/b2-cwd/integration/live/session4/accessibilite/scripts/main.js new file mode 100644 index 0000000..0ba522a --- /dev/null +++ b/b2-cwd/integration/live/session4/accessibilite/scripts/main.js @@ -0,0 +1,31 @@ +console.log('scripts loaded'); +document.onreadystatechange = function(event) { + if (document.readyState === "complete") { + if(document.getElementById('pourcent-reveil')) + { + setcurrentprogress(document.getElementById('pourcent-reveil'),5); + updateprogress(document.getElementById('pourcent-reveil'),5); + } + } +} + +function setcurrentprogress(obj,value) +{ + obj.setAttribute("value",value); + obj.setAttribute("aria-valuenow",value); +} + +function updateprogress(obj, step=5) +{ + currentprogress = parseInt(obj.getAttribute("value")) + step; + if(currentprogress >= 100) + { + console.log("finished"); + setcurrentprogress(obj,100); + document.getElementById("finished").setAttribute("style",""); + return; + } + console.log("updateprogress to "+currentprogress); + setcurrentprogress(obj,currentprogress); + setTimeout(updateprogress, 500, obj); +} \ No newline at end of file diff --git a/b2-cwd/integration/live/session4/accessibilite/scripts/new.js b/b2-cwd/integration/live/session4/accessibilite/scripts/new.js new file mode 100644 index 0000000..c4e7344 --- /dev/null +++ b/b2-cwd/integration/live/session4/accessibilite/scripts/new.js @@ -0,0 +1,31 @@ +//https://developer.mozilla.org/fr/docs/Web/API/setTimeout + +console.log('scripts loaded'); +document.onreadystatechange = function(event) { + if (document.readyState === "complete") { + if(oProgress = document.getElementById('pourcent-reveil')) + { + console.log("progress bar exists"); + setcurrentprogress(oProgress,10); + updateprogress(oProgress); + } + } +} + +function setcurrentprogress(obj,value) { + obj.setAttribute("value",value); + obj.setAttribute("aria-valuenow",value); +} + +function updateprogress(obj,step=5) { + currentprogress = parseInt(obj.getAttribute("value")) + step; + console.log("updating progressbar to "+currentprogress); + if(currentprogress > 100) { + console.log("terminé"); + setcurrentprogress(obj,100); + document.getElementById('finished').removeAttribute("style"); + return; + } + setcurrentprogress(obj,currentprogress); + setTimeout(updateprogress,500, obj); +} \ No newline at end of file diff --git a/b2-cwd/integration/live/session4/accessibilite/style-main.scss b/b2-cwd/integration/live/session4/accessibilite/style-main.scss new file mode 100644 index 0000000..ce5cd72 --- /dev/null +++ b/b2-cwd/integration/live/session4/accessibilite/style-main.scss @@ -0,0 +1,392 @@ +/////// SESSIONS 1 et 2 + +$font : Arial, Helvetica, sans-serif; +$normalfontsize : 12px; +$marge : 8px; + +body +{ + font-family: $font; + font-size:$normalfontsize; +} + +h4 +{ + font-size:$normalfontsize + 2px; +} + +body,figure,img +{ + padding:0; + border:none; + margin:0; +} + +#switch:checked ~ p +{ + background-color:green; +} + +.img-wrap img +{ + // avec interpolation + width:calc(100% - (#{$marge}*2)); + height:auto; + margin:$marge; + top:50%; + transform: translateY(-25%); +} + +picture +{ + position:relative; + display:block; + max-height:40vh; + overflow:hidden; +} + +#main-menu +{ + text-align:center; + ul + { + list-style:none; + } + + li + { + text-align: left; + } + + li a, + li span, + li label + { + color:black; + text-decoration:none; + font-size:1.1rem; + } + + li span + { + color:#666; + } + + .menu-label + { + font-size:1.5rem; + color:black; + text-decoration:none; + font-weight:bold; + display:inline-block; + line-height:2rem; + } +} +.burger +{ + float:left; + margin: 3px 8px; + b,i + { + display: block; + width: 20px; + } + b + { + height: 2px; + margin-bottom: 5px; + position: relative; + background: #000; + border-radius: 2px; + z-index: 1; + &:first-of-type + { + margin-top:5px; + } + } + i + { + color:blue; + } +} + +//switch pour afficher le menu +#main-menu ul +{ + display:none; +} + +main, h1 +{ + margin:1rem; + padding:1rem; +} + +#main-menu #switch:checked ~ ul +{ + display:block; +} + +////////// FORMULAIRE DE CONTACT + +// switch por afficher le conteneur du formulaire +.contact-form-wrap +{ + display:none; +} + +#show-contact:checked ~ .contact-form-wrap +{ + display:block; +} + +// je positionne le fond en fixed pour lui faire occuper toute la page +.contact-form-wrap +{ + position:fixed; + //fond noir à 25% ce qui donne la transparence + background-color:rgba(0,0,0,0.25); + top:0; + bottom:0; + left:0; + right:0; + .h3 + { + color:white; + text-align: center; + margin-top:120px; + } +} + +//je préfixe les éléments du formulaire pour les regrouper dans mon sas +.cf +{ + //je centre le formulaire dans son conteneur (.contact-form-wrap) + &-form + { + background-color: white; + position: absolute; + top:50%; + left:50%; + transform: translate(-50%,-50%); + padding: 20px; + border-radius: 20px; + } + //je normalise tous les inputs / labels + &-input, &-label + { + min-height: 20px; + line-height: 20px; + box-sizing: border-box; + width:100%; + min-width:30vh; + } + &-input + { + border: solid 1px #666; + border-radius: 4px; + padding:4px; + } + &-label + { + line-height: 30px; + box-sizing: border-box; + } + &-btn + { + background-color: black; + color:white; + padding-left:10px; + padding-right:10px; + margin-top:4px; + &:hover + { + background-color: white; + color:black; + transition: color 0.5s; + } + } + &-input-group + { + &:after + { + content:""; + display: table; + clear:both; + overflow: auto; + } + } + &-close-wrap + { + margin:-10px -10px 0 -20px; + } + &-close + { + display: block; + position:relative; + box-sizing: border-box; + float:right; + clear:both; + font-size:20px; + } + +} + +.icon-radio-checked +{ + display:none; + color:green; +} +.icon-radio-unchecked +{ + color:red; +} + +#abonnement-oui:checked ~ .ct-radio +{ + .icon-radio-checked + { + display:inline; + } + .icon-radio-unchecked + { + display:none; + } +} +#abonnement-non:checked ~ .ct-radio +{ + .icon-radio-checked + { + display:inline; + } + .icon-radio-unchecked + { + display:none; + } +} + +.hidden, +*[aria-hidden] +{ + display:none!important; +} + + +////////////////////// style a propos +.grand-L +{ + height:16px; +} +main, aside +{ + box-sizing: border-box; +} +main +{ + width:calc(100% - 27vw); +} +.main-stat +{ + max-width: 73vw; + float:left; + margin:10px 0 10px -2rem; +} +aside +{ + width:25vw; + right:0; + top:75px; + position:fixed; + img + { + max-width:100%; + } +} + +// https://contrastchecker.com/ +footer +{ + color:#a9a9a9; + border-top: solid 1px #000; + padding:10px; +} + +a[lang=fr],a[target=_blank] +{ + &:after + { + color:blueviolet; + } +} + +a[lang=fr] +{ + &::after + { + content :' [fr]'; + } +} + +a[target=_blank] +{ + &::after + { + content :' [^]'; + } +} + +#loaded +{ + background-color: #ccF; + border-left: solid 3px blue; + color:darkblue; + padding:3px; +} +#warning +{ + background-color: #Fed; + border-left: solid 3px red; + color:darkred; + padding:3px; +} + +li +{ + &[lang] + { + color:#ccc; + } + &[lang=fr] + { + color:darkblue; + } + // commence par + &[lang^=fr] + { + color:darkblue; + } + // se termine par + &[lang$=CA] + { + color:blue; + } + //contient + &[lang*="-"] + { + font-weight: bold; + } + +} + +span +{ + //contient + &[class~="red"] + { + color:red; + } + &[class|=red] + { + color:darkred; + } +} \ No newline at end of file diff --git a/b2-cwd/integration/live/session4/imports-scss/README.md b/b2-cwd/integration/live/session4/imports-scss/README.md new file mode 100644 index 0000000..e69de29