SALT-NLP/Design2Code
This dataset consists of 484 webpages from the C4 validation set, serving the purpose of testing multimodal LLMs on converting visual designs into code implementations. Each example is a pair of source HTML and screenshot ({id}.html and {id}.png). See the dataset in the huggingface format here. Note that all images in these webpages are replaced by a placeholder image (rick.jpg) Please refer to our project page and our paper for more information. Example Usage For example, you… See the full description on the dataset page: https://huggingface.co/datasets/SALT-NLP/Design2Code.
221.8k
1<!DOCTYPE html>2<html lang="en" xmlns="">3 <head>4 <style>5 /*6 * Copyright © 2002-2018 Michel Fortin7 * <https://michelf.com/>8 */9 10html {11 min-height: 100%;12}13html, body, #page-content {14 -webkit-box-flex: 1.0;15 display: -webkit-box;16 -webkit-box-orient: vertical;17 18}19body {20 /* Positionnement. */21 margin: 0;22 padding: 0;23 color: black;24 25 /* Police. */26 font-family: Palatino, "Palatino Linotype", "URW Palladio L",27 "Book Antiqua", Georgia, "Times New Roman", serif;28 line-height: 1.45;29 font-variant-numeric: lining-nums proportional-nums;30}31 32#page-content {33 width: 90%;34 max-width: 52em;35 margin: 0 auto;36 padding: 0.8ex 5% 0;37 padding-left: max(5%, env(safe-area-inset-left));38 padding-right: max(5%, env(safe-area-inset-right));39 position: relative;40 background: white;41}42.sublayout, .narrow {43 max-width: 35em;44 margin: auto;45 padding-bottom: 10ex;46}47body.wide .sublayout {48 width: 100%;49 max-width: 100%;50 padding-bottom: 4ex;51}52.sublayout:after {53 content: '';54 display: block;55 clear: both;56}57.sublayout::after {58 content: '';59 display: block;60 clear: both;61}62@media screen and (min-width: 45em) {63 *>.sublayout div.panorama {64 margin: 0 -15%;65 }66}67@media screen and (min-width: 55em) {68 *>.sublayout div.panorama {69 margin: 0 -30%;70 }71}72@media screen and (min-width: 60em) {73 *>.sublayout div.panorama {74 margin: 0 -45%;75 }76}77.sublayout div.panorama {78 text-align: center;79}80.sublayout div.panorama img {81 max-width: 100%;82}83body.wide .sublayout div.panorama {84 margin: auto;85}86 87 88a img {89 border: none;90}91 92nav {93 height: 115px;94 background: white url(tete.gif) repeat-x;95 background: -webkit-linear-gradient(top, #ffeb90 0%, #fffca1 38%, #fdffa9 52.17%, #e3ff85 52.17%, #fff 80.87%, #fff 100%);96 background: 97 -webkit-gradient(linear, left top, left bottom, 98 from(#ffeb90),99 to(#fff),100 color-stop(0.2522, #fffca1),101 color-stop(0.5217, #fdffa9),102 color-stop(0.5217, #e3ff85)103 color-stop(0.8087, #fff)104 );105 padding-left: env(safe-area-inset-left);106 padding-right: env(safe-area-inset-right);107}108#tete {109 position: relative;110 min-height: 93px;111 max-width: 52em;112 margin: 0 auto;113 font: 95% -apple-system, "Lucida Grande", "Lucida Unicode", sans-serif;114}115 116#tete h1 {117 margin: -1px -1px 0 -1px;118 padding: 1px 0 0 1px;119 font: 130% "Futura-CondensedMedium", "Lucida Grande", "Lucida Unicode", sans-serif;120 121 display: block;122 text-align: center;123 124 -webkit-border-top-right-radius: 0.6em; -webkit-border-top-left-radius: 0.6em;125 border-top-right-radius: 0.6em; border-top-left-radius: 0.6em;126 -moz-border-radius-topright: 0.6em; -moz-border-radius-topleft: 0.6em;127}128 129#tete h1 a, #tete h1 strong {130 position: relative;131 z-index: 6;132 display: block;133 width: 108px;134 margin: auto;135}136#tete h1 img {137 display: block;138 margin: 0 auto;139 padding: 0;140 141 width: 108px;142 height: 102px;143 border-bottom: 1px solid transparent;144}145#tete h1 a .mflogo:hover {146 border-bottom: 1px solid black;147}148#tete h1 .mflogo {149 display: block;150 height: 103px;151 overflow: hidden;152 border-bottom: 1px solid white;153}154#tete h1 .mflogo::before {155 display: block;156 content: "";157 height: 102px;158 background: url(logo-mf.gif) no-repeat center top;159 padding-bottom: 2px;160}161@media screen and (-webkit-min-device-pixel-ratio: 1), screen and (min--moz-device-pixel-ratio: 1) {162 *>#tete h1 .mflogo::before {163 background-image: none, url(logo-mf.svg);164 }165}166 167#main-nav {168 list-style: none;169 position: absolute;170 display: block;171 width: 100%;172 top: 0;173 margin: -1px -1px 0 -1px;174 padding: 64px 0;175 height: 1ex;176 177 -webkit-border-top-right-radius: 0.6em; -webkit-border-top-left-radius: 0.6em;178 border-top-right-radius: 0.6em; border-top-left-radius: 0.6em;179 -moz-border-radius-topright: 0.6em; -moz-border-radius-topleft: 0.6em;180}181 182#main-nav li {183 position: absolute;184 z-index: 5;185 top: 12px;186 display: block;187 margin-top: 25px;188 text-align: center;189 width: 108px; height: 55px;190}191#main-nav1 {192 right: 66%;193 margin-right: 83px;194}195#main-nav2 {196 right: 61%;197 margin-right: 7px;198 z-index: 6 ! important;199}200#main-nav3 {201 left: 61%;202 margin-left: 7px;203 z-index: 6 ! important;204}205#main-nav4 {206 left: 66%;207 margin-left: 83px;208}209#main-nav a, #main-nav strong, #tete h1 a, #tete h1 strong {210 display: block;211 padding: 0 0 10px 0;212}213#main-nav a.courant, #main-nav strong, #tete h1 a.courant, #tete h1 strong {214 border: none;215 background: url(triangle.png) no-repeat bottom center;216}217@media screen and (-webkit-min-device-pixel-ratio: 1), screen and (min--moz-device-pixel-ratio: 1) {218 *>#main-nav a.courant, *>#main-nav strong, *>#tete h1 a.courant, *>#tete h1 strong {219 background-image: none, url(triangle.svg);220 }221}222* html #main-nav a.courant, * html #main-nav strong, * html #tete h1 a, * html #tete h1 strong {223 background-image: url(triangle.gif);224}225#main-nav li a, #main-nav li strong {226 padding-top: 27px;227}228#main-nav li strong { color: #570; cursor: default; }229#main-nav li.logiciels {230 background: url(icon-logiciels.png) no-repeat top center;231}232#main-nav li.services {233 background: url(icon-services.png) no-repeat top center;234}235#main-nav li.blogue {236 background: url(icon-blogue.png) no-repeat top center;;237}238#main-nav li.boutique {239 background: url(icon-boutique.png) no-repeat top center;240}241@media screen and (-webkit-min-device-pixel-ratio: 1), screen and (min--moz-device-pixel-ratio: 1) {242 *>#main-nav li.logiciels {243 background-image: none, url(icon-logiciels.svg);244 }245 *>#main-nav li.services {246 background-image: none, url(icon-services.svg);247 }248 *>#main-nav li.blogue {249 background-image: none, url(icon-blogue.svg);250 }251 *>#main-nav li.boutique {252 background-image: none, url(icon-boutique.svg);253 }254}255 256#tete a {257 text-decoration: none;258 font-weight: bold;259}260#main-nav a {261 color: black;262}263#pied a {264 color: black;265}266#main-nav a:visited { color: #440; }267#pied a:visited { color: #440; }268#main-nav a:active { color: #c84; }269#pied a:active { color: #c84; }270 271#tete a:hover {272 text-decoration: underline;273}274 275#pied hr, #tete hr {276 color: white;277 border: none;278 background: transparent;279 height: 1px;280 clear: both;281 margin: 0;282}283 284#pied {285 clear: both;286 position: relative;287 margin: 1.4ex 5%;288}289* html #pied { height: 1ex; }290 291#pied p {292 clear: left;293 color: #6e6650;294 font: 93% -apple-system, "Lucida Grande", "Lucida Unicode", sans-serif;295 margin: 0;296 297 font-variant-numeric: proportional-nums;298}299 300#sitemap hr {301 color: white;302 border: none;303 background: transparent;304 height: 1px;305 width: 100%;306 clear: both;307 margin: 0 0 1em;308}309#sitemap {310 padding: 0;311 padding-top: 3em;312 padding-left: env(safe-area-inset-left);313 padding-right: env(safe-area-inset-right);314 background: -webkit-linear-gradient(bottom, #f9ffdb 0%, #fcffef 40%, #fdfff6 60%, #fff 100%);315 background: -webkit-gradient(linear, left bottom, left top,316 from(#f9ffdb),317 to(#fff),318 color-stop(0.4, #fcffef),319 color-stop(0.6, #fdfff6),320 );321}322#sitemap-content {323 color: #6e6650;324 max-width: 52em;325 margin: 2.4ex auto 0 auto;326 padding: 0 5%;327 clear: both;328 position: relative;329}330#sitemap li {331 font: 90% -apple-system, "Lucida Grande", "Lucida Unicode", sans-serif;332}333#sitemap li li {334 font-size: inherit;335}336 337#sitemap div.pied {338 clear: both;339 border-top: 1px solid #ce9;340 color: #6e6650;341 padding: 1ex 0;342 margin: 0 0 1em 0;343 text-align: center;344}345#sitemap div.pied ul {346 display: inline;347 clear: none;348 padding: 0;349 margin: 0;350}351#sitemap div.pied li {352 display: inline;353 margin: 0 0.5em;354 list-style: none;355}356 357 358#sitemap a { text-decoration: none; color: #480; }359#sitemap a:hover { text-decoration: underline; }360#sitemap a:visited { color: #340; }361#sitemap a:active { color: #dc4; }362 363#sitemap p {364 clear: left;365 color: #6e6650;366 font-size: 95%;367 margin: 0;368}369 370#sitemap div.navcolumn {371 float: left;372 padding: 0 2.9em 1em 0;373}374#sitemap div.navcolumn.lastcolumn {375 padding: 0 0 1em 0;376}377#sitemap ul {378 font-size: 93%;379 list-style: none;380 margin-left: 0;381 padding-left: 0;382 min-width: 20%;383 margin-right: 2em;384}385#sitemap ul ul {386 font-size: inherit;387}388#sitemap ul.continued { float: left; }389#sitemap li { margin: 0.5ex 0; }390@media (pointer:coarse) { #sitemap li { margin: 1ex 0; } }391#sitemap li ul { margin-left: 1em; }392#sitemap li ul { margin-left: 1em; }393 394#sitemap .more { font-style: italic; }395 396#page-content h1 {397 margin-top: 0;398 text-align: center;399 position: relative;400 z-index: 1;401}402 403.tagline {404 font-size: 108%;405 text-align: center;406 max-width: 25em;407 margin-top: 1ex;408 margin-left: auto;409 margin-right: auto;410 line-height: 1.35; /* 0.05 */411 412 hyphens: manual;413 hyphenate-limit-chars: 8;414 -webkit-hyphenate-limit-before: 5;415 -webkit-hyphenate-limit-after: 5;416 -webkit-hyphens: manual;417 -moz-hyphens: manual;418 -ms-hyphens: manual;419}420img.tagimage {421 display: block;422 width: 100%;423 margin: 1ex auto 2ex auto;424}425 426.archives-journal th {427 padding-top: 2ex;428 text-align: center;429 font-weight: bold;430}431.archives-journal .repeat-month {432 opacity: 0.0;433}434.archives-journal .newmonth td {435 padding-top: 2ex ! important;436}437.archives-journal td.date {438 white-space: nowrap;439 text-align: right;440}441 442/* MARK: Content */443 444h1 {445 font-style: none;446 font-size: 130%;447 color: #99cc44;448 clear: both;449 line-height: 1.15; /* 0.05 */450}451 452h2 {453 font-size: 140%;454 line-height: 1.1; /* 0.05 */455 margin-top: 2.5ex;456 margin-bottom: 1.7ex;457 font-weight: normal;458 clear: left;459}460h3 {461 font: bold 110% "Helvetica Neue", Helvetica, Arial, sans-serif;462 margin: 4.4ex 0 2.85ex 0;463}464h2 + h3 {465 margin-top: 2.85ex;466}467h4 {468 font-size: 85%;469 xmargin: 3.05ex 0; /* 0.2 */470 margin: 2.85 0;471 text-transform: uppercase;472 letter-spacing: 0.04em;473}474 475p {476 xmargin: 3.05ex 0; /* 0.2 */477 margin: 2.4ex 0;478 text-align: justify;479 word-spacing: 0;480 xmargin: 0;481 482 hyphens: auto;483 hyphenate-limit-chars: 8;484 -webkit-hyphenate-limit-before: 5;485 -webkit-hyphenate-limit-after: 5;486 -webkit-hyphens: auto;487 -moz-hyphens: auto;488 -ms-hyphens: auto;489}490 491sup, sub {492 line-height: 0.5; /* don't disturb standard line height */493}494 495p + p {496 xtext-indent: 2em;497}498 499/* MARK: Lists */500 501ul, ol, p + ul, p + ol {502 padding: 0;503 margin: 1.5ex 0 1.5ex 2em;504}505li ul, li ol {506 margin: 0 0 0 2em;507}508ul {509 list-style: square;510}511 512 513/* MARK: Definition Lists */514 515dt {516 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;517 font-size: 105%;518 margin: 2ex 0 1ex 0;519}520dt + dt { margin-top: 0.5ex; }521dd { padding: 0; margin: 1.2ex 0 1.2ex 2em; }522dd p { margin: 1.2ex 0; }523 524/* MARK: Definition list with icons. */525 526dl.icon-list dt, .icon-list dl dt {527 clear: left;528 padding-top: 5px;529 margin-top: 1.5em;530}531dl.icon-list dt img, .icon-list dl dt img {532 float: left;533 margin: -5px 1.5em 2.3ex 0;534 width: 64px;535 height: 64px;536 position: relative;537}538* html dl.icon-list td img, * html .icon-list dl td img {539 position: relative;540}541dl.icon-list dd, .icon-list dl dd { margin-left: 64px; padding-left: 1.5em }542 543/* MARK: Links */544 545a { color: #470; }546a:visited { color: #440; }547a:active { color: #cb6; }548 549a.download {550 padding: 2px 0 0px 24px;551 background: url(/style/download-link.svg) center left no-repeat;552}553a.appstore {554 padding: 2px 0 0px 24px;555 background: url(/style/appstore-link.svg) center left no-repeat;556}557a.twitter {558 padding: 2px 0 0px 26px;559 background: url(/style/tweet-link.svg) center left no-repeat;560}561a.mastodon {562 padding: 2px 0 0px 26px;563 background: url(/style/mastodon-link.svg) center left no-repeat;564}565a.github {566 padding: 2px 0 0px 26px;567 background: url(/style/github-link.svg) center left no-repeat;568}569a.newsletter {570 padding: 2px 0 0px 26px;571 background: url(/style/newsletter-link.svg) center left no-repeat;572}573a.email {574 padding: 2px 0 0px 26px;575 background: url(/style/email-link.svg) center left no-repeat;576}577a.feed {578 padding: 2px 0 0px 26px;579 background: url(/style/feed-link.svg) center left no-repeat;580}581 582/* MARK: Notes */583 584.note, p.alt { clear: both; }585span.note { font-style: italic; }586p.note, .note p, p.alt { font-style: italic; margin-top: 2.2ex; }587 588/* MARK: Discussion & Comments */589 590h1#discussion {591 margin-top: 2.5ex;592}593 594dl.commentaires dt { text-align: right; }595dl.commentaires dt strong {596 font-weight: normal;597 float: left;598 text-align: left;599}600dl.commentaires dt span {601 white-space: nowrap; font-size: 95%;602 color: #cc6;603}604dl.commentaires {605 font-size: 95%;606}607dl.commentaires dd {608 margin-left: 2em;609 margin-right: 2em;610}611 612blockquote {613 margin: 0 2.1em;614 font-size: 95%;615 line-height: 1.5;616}617blockquote p { margin: 0; }618blockquote p + p { text-indent: 2.1em; }619blockquote ul,620blockquote ol,621blockquote dd {622 margin-left: 2.1em;623}624blockquote blockquote {625 font-size: 100%;626 margin-left: 2.1em;627}628blockquote pre {629 display: block;630 padding: 0;631 margin: 1.5ex 2.4em;632 border: none;633}634 635/* Verse quotation */636 637blockquote.verse {638 display: table; /* To be able to center the quotation. */639 border-collapse: collapse;640 margin: -2ex auto; /* Negative margin to compensate for inner paragraph margin which does not collapse with display table. */641 padding: 0 2.1em;642}643blockquote.verse p {644 text-align: left;645 text-indent: 0;646 margin: 2ex 2.1ex;647 648 hyphens: manual;649 -webkit-hyphens: manual;650 -moz-hyphens: manual;651 -ms-hyphens: manual;652}653 654pre {655 margin: 1ex 3%;656 line-height: inherit;657 font-family: Consolas, "Droid Sans Mono", "Bitstream Vera Sans Mono", Courier, monospace;658 font-size: 96%;659 font-size-adjust: 0.45;660 color: #431;661}662code {663 font-family: Consolas, "Droid Sans Mono", "Bitstream Vera Sans Mono", Courier, monospace;664 font-size: 100%;665 font-size-adjust: 0.45;666 line-height: 1.2; /* Only IE Mac can use that. */667 text-transform: none;668 letter-spacing: normal;669 word-spacing: -0.2ex;670 padding: 0 0.3ex;671 color: #764;672 673 hyphens: manual;674 -webkit-hyphens: manual;675 -moz-hyphens: manual;676 -ms-hyphens: manual;677}678pre code {679 padding: 0;680 word-spacing: normal;681 color: inherit;682}683a code { color: inherit; }684 685hr {686 margin: 9ex auto 7ex auto;687 height: 4px;688 width: 50px;689 background: #ce9 url(barre-v.gif);690 color: #ce9;691 border: none;692}693article hr {694 margin: 3ex auto 4ex auto;695}696 697 698/* MARK: Sample HTML output box */699 700div.figure {701 position: relative;702 display: table; /* Makes the width dependent on content. */703 border-top: 1px solid #ce9;704 border-bottom: 1px solid #ce9;705 padding: 0 0.5em;706 margin: 0 1.5em;707 font: 95% serif;708 line-height: normal;709}710div.figure.full-width {711 width: 92%;712}713div.figure :first-child, div.figure p.caption:first-child + * {714 xmargin-top: 0;715}716div.figure :last-child {717 xmargin-bottom: 0;718}719div.figure p.caption, table caption {720 display: table-caption;721 padding: 1ex 0.5em 0 0.5em;722 margin: 0;723 font: italic 100% Palatino, "Palatino Linotype", "URW Palladio L", 724 "Book Antiqua", Georgia, "Times New Roman", serif;725 caption-side: bottom;726 text-align: left;727 728 hyphens: manual;729 -webkit-hyphens: manual;730 -moz-hyphens: manual;731 -ms-hyphens: manual;732}733table {734 font-size: 95%;735 font-variant-numeric: tabular-nums;736}737table caption {738 border-top: 1px solid #ce9;739 caption-side: bottom;740 padding-top: 1ex;741 -khtml-padding-top: 0.5ex;742}743 744div.figure h1, div.figure h2, div.figure h3, 745div.figure h4, div.figure h5, div.figure h6 {746 font: bold 100% serif; 747 font-variant: normal;748 text-shadow: none;749 text-transform: none;750 margin: 1ex 0;751}752div.figure h1 { font-size: 160%; }753div.figure h2 { font-size: 145%; }754div.figure h3 { font-size: 135%; }755div.figure h4 { font-size: 120%; }756div.figure h5 { font-size: 110%; }757div.figure h6 { font-size: 100%; }758div.figure p {759 margin: 1.8ex 0; text-indent: 0; text-align: left;760 hyphens: manual;761 -webkit-hyphens: manual;762 -moz-hyphens: manual;763 -ms-hyphens: manual;764}765div.figure blockquote { border: none; font-size: inherit; }766div.figure pre {767 background: transparent; border: none; 768 padding: 0; margin: 2.2ex 0;769}770div.figure hr { color: #dcb; background: #dcb; }771div.figure dt, div.figure th {772 font: inherit;773 text-transform: inherit;774 letter-spacing: inherit;775 font-weight: bold;776}777div.figure table { font: inherit; margin: 1.5ex 0; }778div.figure caption { font: inherit; }779div.figure td, div.figure th {780 padding: 0.5ex 0.5em;781 border: 1px solid #dcb;782}783div.figure table {784 border-collapse: collapse;785 border: 1px solid #dcb;786}787div.figure th[align="right"] { text-align: right; }788div.figure th[align="center"] { text-align: center; }789div.figure th[align="left"] { text-align: left; }790div.figure th[align="justify"]{ text-align: justify; }791 792 793/* MARK: Formulas */794 795.formula {796 display: table;797 margin: 1ex auto;798}799 800 801/* MARK: Footnotes */802 803body a[rel="footnote"], body a.footnote-ref { padding: 0.4ex; padding-bottom: 1ex; }804body a[rev="footnote"], body a.footnote-backref { text-decoration: none; }805body div.footnotes { font-size: 92%; margin: 1.5em 0 2.5em 0; }806body div.footnotes > hr { width: 40%; background: #ce9; color: #ce9; }807body div.footnotes p { margin: 1ex 0; }808 809 810/* MARK: Table */811 812table {813 border-collapse: collapse;814 margin: 1ex 1.5em;815}816td, th {817 padding: 0.2ex 1em 0.2ex 0.5em;818 vertical-align: baseline;819}820tbody tr:first-child td, tbody tr:first-child th {821 padding-top: 0.8ex;822}823tbody tr:last-child td, tbody tr:last-child th {824 padding-bottom: 0.6ex;825}826th {827 font: 90% "Helvetica Neue", Helvetica, Arial, sans-serif;828 text-transform: uppercase;829 letter-spacing: 0.1em;830 text-align: left;831}832thead td, thead th {833 padding-bottom: 1ex;834 border-bottom: 3px double #ce9;835}836tfoot td, tfoot th {837 padding-top: 1ex;838 border-top: 3px double #ce9;839}840 841/* MARK: main & secondary */842div.secondary p, div.main p {843 text-align: left;844 hyphens: manual;845 -webkit-hyphens: manual;846 -moz-hyphens: manual;847 -ms-hyphens: manual;848}849div.main {850 clear: right;851 float: right;852 width: 63%;853}854div.main.shift {855 clear: left;856 float: left;857}858div.main > *:first-child {859 margin-top: 0;860}861div.secondary {862 clear: left;863 float: left;864 width: 28%;865 font-size: 85%;866 line-height: 1.40;867 border-right: 1px solid #ce9;868 padding-right: 4%;869 padding-top: 0;870 padding-bottom: 2ex;871}872div.secondary.wide {873 width: 63%;874}875div.secondary + div.secondary, div.vedette + div.secondary {876 border-top: 1px solid #ce9;877 padding-top: 2ex;878}879div.secondary.shift {880 clear: right;881 float: right;882 border-left: 1px solid #ce9;883 padding-left: 4%;884 border-right: none;885 padding-right: 0;886}887div.secondary#intro > *:first-child {888 margin-top: 0.3em;889}890div.secondary hr { display: none; }891div.secondary h1, div.secondary h2 {892 font: 100% "Helvetica Neue", Helvetica, Arial, sans-serif;893 margin: 2ex 0 1ex 0;894 text-transform: uppercase;895 letter-spacing: 0.1em;896}897div.secondary ul, div.secondary ol {898 margin-left: 0;899 padding-left: 1.3em;900}901 902/* MARK: Blog */903#intro {904 border-top: none;905 border-bottom: 1px solid white;906}907#intro img {908 width: 100%; height: auto;909}910p.entry-info {911 text-align: center;912 font-style: italic;913 914 hyphens: manual;915 -webkit-hyphens: manual;916 -moz-hyphens: manual;917 -ms-hyphens: manual;918}919span.spacer {920 visibility: hidden;921}922.entry-date-header {923 margin-top: 3ex;924 text-align: center;925 926 hyphens: manual;927 -webkit-hyphens: manual;928 -moz-hyphens: manual;929 -ms-hyphens: manual;930 931 font: bold 90% "Helvetica Neue", Helvetica, Arial, sans-serif;932 letter-spacing: 0.1em;933 color: #99cc44;934}935.entry-date {936}937* html div.secondary {938 padding: 2ex 0;939}940* html div.secondary#intro {941 padding-top: 0;942}943 944 945/* MARK: Form styling */946fieldset {947 background: #fbf9e9;948 border: none;949 border-radius: 1.5em;950 font: 95% 'Helvetica Neue', Helvetica, Arial, sans-serif;951 clear: both;952}953* html fieldset { width: 100%; }954div.form-zone { display: table; margin: auto; }955div.form-zone p { text-align: left; }956p.side-note { font-size: 85%; float: right; width: 22%; padding: 0 2em; text-align: left }957fieldset p.inner-note { text-align: center; font-size: 85%; margin-top: 1ex; margin-bottom: 2ex; margin-left: auto; margin-right: auto; }958div.form-zone p.inner-note { max-width: 27em; margin-left: auto; margin-right: auto; }959p.field-line { padding-left: 12em; text-indent: -12em; }960p.field-line.compact { margin: 0.5ex 0; }961p.field-line input { width: 90% }962p.field-line span.label-text { display: inline-block; min-width: 12.9em; text-align: right; margin-right: 1em; text-transform: uppercase; font-size: 85%; letter-spacing: 0.17ex; }963@media handheld, only screen and (max-device-width: 480px) {964 p.side-note { float: none; width: auto; padding: 0; }965}966.zone-boutons { text-align: center; }967 968.card-list { padding: 0 5px; }969.card-list img { vertical-align: text-bottom; }970 971 972.secondary .promo {973 padding-top: 2ex;974}975.promo p {976 margin-top: 0.5ex;977}978.promo img {979 border: none;980}981.zone-pub .promo {982 padding: 1ex 1em;983 margin: 1ex auto;984 width: 26em;985}986.zone-pub .promo img {987 float: left;988 margin: 0 1em 0 0;989}990.zone-pub .promo p {991 padding-top: 1ex;992 font-size: 90%;993 text-align: left;994 995 hyphens: manual;996 -webkit-hyphens: manual;997 -moz-hyphens: manual;998 -ms-hyphens: manual;999}1000 1001/* MARK: Vedette click boxes */1002 1003.vedette {1004 margin: 4ex 0;1005 margin-right: -1%; /* compensate for rounding error */1006}1007.vedette + .vedette a {1008 border-top: 1px solid #CE9;1009}1010.vedette a {1011 display: block;1012 float: left;1013 width: 27%;1014 padding: 3%;1015 font-size: 95%;1016 height: 160px;1017 text-decoration: none !important;1018 position: relative;1019 line-height: 1.3;1020 background-repeat: no-repeat;1021 background-position: center bottom;1022}1023.vedette a + a {1024 border-left: 1px solid #CE9;1025 margin-left: -1px;1026}1027.vedette.b2 a {1028 width: 44%;1029}1030.vedette.b1 a {1031 width: 94%;1032}1033.vedette.h2 a {1034 height: 180px;1035 padding-top: 30px;1036}1037.vedette a:hover {1038 background-color: #e0f2b8;1039}1040.vedette img {1041 padding-top: 2ex;1042}1043.vedette h1 {1044 margin: 1ex 0;1045 text-shadow: 0px -1px 1px white, 0px 1px 1px white;1046}1047.vedette h2 {1048 margin: 1ex 0;1049 color: #99cc44;1050 font-size: 125%;1051 font-weight: bold;1052 text-shadow: 0px -1px 1px white, 0px 1px 1px white;1053}1054.vedette p, .vedette h2, .vedette a {1055 text-align: center ! important;1056}1057.vedette p {1058 margin: 1ex 0;1059}1060.vedette .etiquette {1061 position: absolute;1062 top: 6%;1063 right: 8%;1064 background: white;1065 background: rgba(255,255,255,0.5);1066 padding: 0.4ex 0.5em 0.2ex;1067 font-size: 110%;1068 font-weight: bold;1069 border-radius: 1ex;1070 border: 1px solid #e0f2b8;1071 color: #99cc44;1072 line-height: 1.2;1073}1074 1075/* MARK: Home page */1076 1077.coteacote {1078 clear: both;1079 padding-top: 6ex;1080}1081.coteacote h1 {1082 clear: both;1083 float: left;1084 margin-bottom: 3ex;1085 width: 30%;1086 text-align: right ! important;1087}1088.coteacote div {1089 clear: right;1090 float: right;1091 width: 64%;1092 text-align: left;1093 margin-bottom: 3ex;1094}1095 1096.coteacote .blog ul {1097 margin: 0 0 2ex 0;1098}1099.coteacote .blog li {1100 list-style-type: none;1101 padding-left: 1em;1102 text-indent: -1em;1103}1104.coteacote .blog li .date {1105 padding-left: 1em;1106 font-size: 80%;1107 white-space: nowrap;1108}1109 1110/* Size-specific rules */1111/* Note: Using this "*>" trick prevent IE 5 and 5.5 from interpreting1112 rules in the handheld section. */1113@media handheld, only screen and (max-width: 52em) {1114 *>#tete h1 { margin: 0 }1115 *>#page-content {1116 padding: 0.8ex 5% 3ex;1117 }1118}1119@media handheld, only screen and (max-width: 40em) {1120 *>nav {1121 margin-top: -1ex;1122 }1123 *>#tete h1 .mflogo {1124 -webkit-transform: scale(0.7);1125 -moz-transform: scale(0.7);1126 -ms-transform: scale(0.7);1127 -o-transform: scale(0.7);1128 }1129 *>#tete #main-nav li { width: 60px; }1130 *>#tete #main-nav1 {1131 right: 66%;1132 margin-right: 45px; font-weight: normal;1133 }1134 *>#tete #main-nav2 {1135 right: 62%;1136 margin-right: 0px;1137 }1138 *>#tete #main-nav3 {1139 left: 62%;1140 margin-left: 0px;1141 }1142 *>#tete #main-nav4 {1143 left: 66%;1144 margin-left: 45px;1145 }1146 *>#pied { margin: 2ex -1em 0 -1em; padding: 0.5ex 1em; width: auto; }1147 *>#intro img { width: 42%; margin-right: 1em; float: left; }1148 *>div.secondary, *>div.main { 1149 float: none ! important; width: auto ! important;1150 border: none ! important; padding: 0 ! important;1151 }1152 *>h1, *>p, *>ul, *>ol { margin-top: 1.5ex; margin-bottom: 1.5ex; }1153 *>dd, *>ul, *>ol { padding: 0; margin-left: 1em; }1154 *>p { text-align: inherit; }1155 *>blockquote, *>dl.commentaires dd { padding: 0; margin-left: 1em; }1156 1157 *>.vedette.split3 a { float: none; width: auto; border: none; border: 1px solid #CE9; border-width: 1px 0; height: 80px; text-aligh: left; padding-left: 80px; padding-bottom: 0; background-position: left center; background-size: 80px; }1158 *>.vedette.split3 a + a { border-width: 0 0 1px; margin: 0; }1159 *>.coteacote { padding: 0; }1160 *>.coteacote h1, *.coteacote div { float: none; width: auto; text-align: inherit !important }1161}1162@media handheld, only screen and (max-device-width: 400px) {1163 *>#sitemap li { margin-top: 1ex; }1164 *>#sitemap li a { text-decoration: underline; }1165}1166html { -webkit-text-size-adjust: 100%; }1167 </style>1168 <meta content="text/html; charset=utf-8" http-equiv="Content-Type">1169 <title>1170 Michel Fortin1171 </title>1172 <meta content="width=device-width,initial-scale=1,viewport-fit=cover" name="viewport">1173 <meta content="Michel Fortin" property="og:title">1174 <meta content="website" property="og:type">1175 <meta content="" property="og:url">1176 <meta content="Michel Fortin" property="og:site_name">1177 <meta content="en" property="og:locale">1178 <meta content="@michel_fortin" name="twitter:site">1179 </head>1180 <body class="wide">1181 <nav>1182 <div id="tete">1183 <h1>1184 <strong>1185 <span class="mflogo">1186 <img alt="Michel Fortin" src="rick.jpg">1187 </span>1188 </strong>1189 </h1>1190 <ul id="main-nav">1191 <li class="logiciels" id="main-nav1">1192 <a>1193 Software1194 </a>1195 </li>1196 <li class="services" id="main-nav2">1197 <a>1198 Services1199 </a>1200 </li>