CSS Cheat sheet - Olivier Dommange

Transcription

CSS Cheat sheet - Olivier Dommange
outline-offset outline
border margin
CSS Cheat sheet
Polices et textes (inline)
Sélecteurs
height
*
div
div *
.class
#itemid
div#itemid
div.class
div span
div, span
div > span
div + span
div ~ span
a[attr]
a[attr="value"]
a[attr$="value"]
a[attr^="value"]
a[attr*="value"]
a[class~="value"]
a[lang|="fr"]
(background)
width
font-size
font-variant
height
color
min-width
text-align
max-width
text-decoration
min-height
text-indent
max-height
text-shadow
margin
text-transform
padding
vertical-align
box-sizing
line-height
@font-face {
font-family: 'MaPolice';
src: url('fonts/webfontbold.woff');
font-weight: bold;
font-style: normal;
font-stretch: normal;
}
p{
font-family: 'MaPolice';
font-weight: bold;
}
@media (media queries)
@media screen and (min-width:800px) {
[...]
}
Medias
letter-spacing
border-radius
word-break
border-image
word-wrap
all
screen
handheld
print
aural / speech
outline
direction
Fonctions
outline-style
unicode-bidi
outline-color
quotes
outline-width
hyphens
[-style], [-color], [-width]
pseudo-classes
background
word-spacing
pseudo-elements
background-image
list-style
background-repeat
list-style-type
background-position
list-style-image
background-attachment
list-style-position
background-origin
counter-increment
background-clip
counter-reset
@supports
Affichage (objets)
box-shadow
display
Contenu (bloc)
overflow
visibility
opacity
content
Animation (objets)
clip
resize
animation
columns
animation-name
column-width
animation-duration
column-count
animation-iteration-count
column-span
transition
column-gap
transition-property
[-style], [-color], [-width]
Position
static, absolute, relative, fixed
top
flex-direction
[-grow], [-shrink], [-basis]
transition-duration
transition-delay
flex-wrap
left
z-index
float
clear
top, right, bottom, left
block
inline
Texte courant d’une page Web
Element de la liste
matrix, translate, rotate, scale,
skew, perspective
flex-flow
bottom
Mode d’affichage (display)
list-item
transition-origin
transform
@keyframes myanimation {
0%{margin-left: 0px;}
50%{margin-left: 30px;}
100%{margin-left: 0px;}
}
p{
animation-name: myanimation;
animation-duration: 4s;
animation-iteration-count: infinite;
}
Impression & curseur
Element de la liste
Element de la liste
inline-block
Texte
justify-content
page-break-inside
align-self
page-break-before
align-items
page-break-after
order
cursor
flex
table
inline-table
table-row
table-cell
table-caption
none
table-row-group
table-colum
table-column-group
table-header-group
table-footer-group
CSS Cheat sheet | v. 1.1 | sept. 15 | Olivier Dommange
right
@supports (display:flex) {
p{
display: flex;
flex-wrap: wrap-reverse;
}
}
T
transition-timing-function
Flexbox (display:flex)
flex
height
monochrome
orientation
resolution
scan
width
@keyframes
background-size
column-rule
braille
embossed
projection
tty
tv
color
color-index
aspect-ratio
device-aspect-ratio
device-height
device-width
grid
Listes
background-color
pixels
pourcentage
1em = font-size du parent
1rem = html{font-size}
1% largeur du viewport
1% hauteur du viewport
plus petit entre vh et vw
plus grand entre vh et vw
1pt = 1/72in
1pc = 12pt
centimètres
millimètres
pouces
@font-face
white-space
Apparence (bloc)
Chrome, Safari
Firefox
Internet Explorer
Opera
font-weight
width
border
Unités de mesures
héritage
-webkit-moz-ms-o-
font-style
Dimension(bloc)
:first-child
:nth-child(n)
:last-child
:nth-last-child(n)
:first-of-type
:nth-of-type(n)
:only-of-type
:last-of-type
:nth-last-of-type(n)
:link
:visited
:hover
:active
:focus
:checked
:enabled
:disabled
:lang(var)
:root
:empty
:target
:not(selecteur)
::first-line
::first-letter
::before
::after
::selection
::backdrop
position
font
font-family
padding
Pseudo-classes & -elements
px
%
em
rem
vw
vh
vmin
vmax
pt
pc
cm
mm
in
T
Préfixes des navigateurs

Documents pareils