layout.css
layout.css
—
CSS stylesheet,
4 ko (4272 bytes)
Contenu du fichier
html { background-color: #ffffff; /*couleur du fond de la page (autour du player)*/ } body { position: relative; width: 1024px; height: 640px; margin: 20px auto; background-color: #ffffff; /*#ffffcc;*/ box-shadow : 0px 1px 10px #422; -o-box-shadow : 0px 1px 10px #422; -moz-box-shadow : 0px 1px 10px #422; -webkit-box-shadow : 0px 1px 10px #422; /*overflow: hidden;*/ } /* main page layout */ body { border-radius : 15px; -o-border-radius : 15px; -moz-border-radius : 15px; -webkit-border-radius : 15px; } header#titre { width: 700px; height: 50px; position: absolute; left: 46px; top: 10px; z-index: 1; color: #cc0000; text-decoration: none; } header#titre a { /*color: white !important;*/ color: #cc0000; text-decoration: underline; } footer#copyright { width: 1000px; height: 30px; position: absolute; left: 20px; bottom: 10px; z-index: 1; color: #cc0000; text-decoration: none; } footer#copyright a { /*color: white !important;*/ color: #cc0000; text-decoration: underline; } video { position: absolute; top: 70px; left: 680px; background-color: #ffffff; } div#images { position: relative; top: 70px; left: 20px; width: 640px; height: 480px; overflow: hidden; } div#images img { width: 100%; height: 100%; position: absolute; left: 0; top: 0; } /* alternative layout */ #swap { position: absolute; left: 667px; top: 316px; /*font-size: 22px;*/ /*font-weight: bold;*/ background-color: #ffcc88; /*couleur sous le bouton*/ color: #cc0000; /*couleur de la flèche*/ border: none; border-radius : 5px; -o-border-radius : 5px; -moz-border-radius : 5px; -webkit-border-radius : 5px; cursor: pointer; z-index: 1; } #swap:hover { background-color: #ffaa66; /*couleur sous le bouton quand on passe la souris*/ } div#images, video { transition : all 1s; -o-transition : all 1s; -moz-transition : all 1s; -webkit-transition : all 1s; z-index: 1; } .swapped video { width: 640px !important; height: 480px !important; transform : translate(-660px); -o-transform : translate(-660px); -moz-transform : translate(-660px); -webkit-transform : translate(-660px); } .swapped div#images { width: 320px !important; height: 240px !important; transform : translate(+660px); -o-transform : translate(+660px); -moz-transform : translate(+660px); -webkit-transform : translate(+660px); } /* Table of Contents */ div.smil-toc { width: 330px; height: 240px; overflow: auto; position: absolute; /*left: 655px;*/ /*top: -250px;*/ right: 25px; top: 316px; background-color: #ffffff; /*border: 1px solid red;*/ } div.smil-toc ul { margin: 0; margin-top: 0.8em; list-style-type: none; } div.smil-toc ul ul { margin-top: 0; } div.smil-toc ul a { /*color: white !important;*/ color: #cc0000; /*couleur de la police toc*/ text-decoration: none; } div.smil-toc ul a:hover { text-decoration: underline; } /* timeline */ .smil-controlBar { position: absolute; bottom: 40px; right: 10px; width: 1000px; } .smil-timeline, .smil-timeline a:hover span { width: 810px; /*height: 0px;*/ } /* cross-fade transitions */ .cross-fade div#images img { opacity: 0; transition : opacity 1s; -o-transition : opacity 1s; -moz-transition : opacity 1s; -webkit-transition : opacity 1s; } .cross-fade div#images img[smil=active], .cross-fade div#images img:first-child[smil=idle] { opacity: 1; z-index: 1; } /* slide-in transitions */ .slide-in div#images img { transition : transform 1s; -o-transition : -o-transform 1s; -moz-transition : -moz-transform 1s; -webkit-transition : -webkit-transform 1s; } .slide-in div#images img[smil=idle] { transform : translate(0, +480px); -o-transform : translate(0, +480px); -moz-transform : translate(0, +480px); -webkit-transform : translate(0, +480px); } .slide-in div#images img[smil=done] { transform : translate(0, -480px); -o-transform : translate(0, -480px); -moz-transform : translate(0, -480px); -webkit-transform : translate(0, -480px); }