Mode MOINS @media screen et (device-aspect-ratio: 16/9) { ... } @media screen et (device-aspect-ratio: 1280/720) { ... } @media screen et (device-aspect-ratio: 2560/1440) { ... } html:lang(fr-be) tr:nth-child(2n+1) /* représente chaque ligne impair d'une table HTML */ img:nth-of-type(2n+1) { flotteur: droit; } img:nth-of-type(2n) { flotteur: gauche; } corps > h2:not(:first-of-type):not(:last-of-type) html=*:not(:link):not(:visited) *=*:not(:hover) p::first-line { text-transform: uppercase} @namespace foo url(http://www.example.com); } /* première règle */ span[hello="Ocean"][goodbye="Land"] E[foo]{ rembourrage:65px; } entrée[type="search"]:::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-apparition: aucun; // problèmes dans Chrome OSX, Safari 5 } bouton::-moz-focus-inner, entrée::-moz-focus-inner { // Rembourrage intérieur et imperfections de bordure en FF3/4 rembourrage: 0; bordure: 0; } .btn { // réinitialiser ici à partir de 2.0.3 en raison de l'ordre de propriété Recess border-color: #ccc; border-color: rgba(0,0,0,1) rgba(0,0,0,1) rgba(0,0,0,25) ; } fieldset span button, fieldset span input[type="file"] { police-size:12px; police-family:Arial, Helvetica, sans-serif; } .rounded-corners (@radius: 5px) { border-radius: @radius; -webkit-border-radius: @radius; -moz-border-radius: @radius; } @import url("something.css"); @light-blue: hsl(190, 50%, 65%); #menu { position: absolue; largeur: 100%; z-index: 3; clair: les deux; affichage: bloc; fond-color: @blue; hauteur: 42px; bord-top: 2px lighten(@alpha-blue, 20%); border-bottom: 2px solide darken(@alpha-blue, 25%); .box-shadow(0, 1px, 8px, 0.6); -moz-box-shadow: 0 0 0 #000; // Parce que firefox suce. &.docked { couleur de fond: hsla(210, 60%, 40%, 0,4); } &:hover { couleur de fond: @blue; } #dropdown { marge: 0 0 117px; rembourrage: 0; rembourrage-top: 5px; affichage: aucun; largeur: 190px; bord-top: 2px solide @medium; couleur: @highlight; bordure: 2px solide darken(@medium, 25%); bord-gauche-color: darken(@medium, 15%); bord-droit-color: darken(@medium, 15%); border-top-width: 0; background-color: darken(@medium, 10%); ul { rembourrage: 0px; } li { font-size: 14px; affichage: bloc; texte-alignement: gauche; rembourrage: 0; bordure: 0; un { affichage: bloc; rembourrage: 0px 15px; texte-décoration: aucun; couleur: blanc; &:hover { fond-couleur: darken(@medium, 15%); texte-décoration: aucun; } } .border-radius(5px, bas); .box-shadow(0, 6px, 8px, 0.5); } Le mode LESS est un sous-mode du Mode CSS (défini dans le css.js ). Essais d'analyse/d'éclairage: normale, verbe.