|
|
Códigos disponibles en git |
Contexto
¿Cómo?
Enlace
|
|
|
|
|
|
|
|
|
|
|
|
Regla de Estilos
|
|||
|
|
Selectores
Selector | Sintaxis |
---|---|
Todos los elementos |
* |
Elementos de un tipo |
etiqueta |
Elemento de un identificador |
selector? \# identificador |
Elemento de una clase, atributo class en elemento de HTML |
selector? (. clase)+ |
Elemento con atributo |
selector? [ atributo ] |
Elemento con valor de atributo |
selector? [ atributo = valor ] |
Elemento con principio de valor de atributo |
selector? [ atributo = (~||) valor ] |
Elemento con pseudo-clases |
selector? : (link|visited|hover|active|…) |
Pseudo-elementos |
selector? :: (before|after|selection|first-line|first-letter) |
Elementos descendientes |
selector selector+ |
Elementos hijos |
selector ( > selector)+ |
Elementos adyacentes |
selector ( + selector)+ |
Unión de elementos |
selector ( , selector)+ |
Valores
Longitudes
|
|
Colores
|
|
|
|
|
Hexadecimal | RGB (Red Green Blue) | |
---|---|---|
HSL (hue, saturation, lightness) , … otros formatos: CMYK, HWB, … | ||
---|---|---|
|
|
|
|
Enumerados
|
|
|
|
Propiedades
Textos
Propiedad | Valor |
---|---|
italic | oblique | normal | inherit |
|
small-caps | normal | inherit |
|
bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | normal | inherit |
|
longitud | (xx-small | x-small | small | medium | large | x-large | xx-large) | (larger | smaller) | inherit |
|
(( nombre_familia | familia_generica ) (, nombre_familia | familia_generica)* ) | inherit |
|
( ( font-style || font-variant || font-weight )? font-size ( / line-height )? font-family ) | caption | icon | menu | message-box | small-caption | status-bar | inherit |
|
color | inherit |
|
left | right | center | justify | inherit |
|
longitud | baseline | sub | super | top | text-top | middle | bottom | text-bottom | inherit |
|
longitud | inherit |
|
longitud | normal | inherit |
|
longitud | normal | inherit |
|
pre | nowrap | pre-wrap | pre-line | normal | inherit |
|
longitud | normal | inherit |
|
none | ( underline || overline || line-through || blink ) | inherit |
|
capitalize | uppercase | lowercase | none | inherit |
|
|
|
|
Listas
Propiedad | Valor |
---|---|
disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | armenian | georgian | lower-alpha | upper-alpha | none | inherit |
|
inside | outside | inherit |
|
url | none | inherit |
|
( list-style-type || list-style-position || list-style-image ) | inherit |
|
|
|
|
|
|
|
|
|
Tablas
Propiedad | Valor | |
---|---|---|
collapse | separate | inherit |
|
|
longitud | inherit |
||
show | hide | inherit |
||
top | bottom | inherit |
|
|
Modelo de Cajas
|
|
Propiedad | Valor |
---|---|
longitud | none | inherit |
|
longitud | none | inherit |
|
longitud | none | inherit |
|
longitud | none | inherit |
|
longitud | none | inherit |
|
longitud | none | inherit |
|
color | transparent | inherit |
|
url | none | inherit |
|
repeat | repeat-x | repeat-y | no-repeat | inherit |
|
scroll | fixed | inherit |
|
( ( longitud | left | center | right ) ( longitud | top | center | bottom )? ) | ( ( left | center | right ) || ( top | center | bot_tom ) ) | inherit |
|
( background-color || background-image || background-repeat || background-attachment || background-position ) | inherit |
|
longitud | inherit |
|
longitud {1, 4} | inherit |
|
( longitud | thin | medium | thick ) | inherit |
|
( longitud | thin | medium | thick ) {1, 4} | inherit |
|
color | transparent | inherit |
|
( color | transparent ) {1, 4} | inherit |
|
none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset | inherit |
|
(none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset ) {1, 4} | inherit |
|
( border-width || border-color || border-style ) | inherit |
|
( border-width || border-color || border-style ) | inherit |
|
longitud | auto | inherit |
|
( longitud | auto ) {1, 4} | inherit |
|
longitud | thin | medium | thick | inherit |
|
color | inherit |
|
none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset | inherit |
|
outline-width || outline-color || outline-style |
Visualización
Propiedad | Valor |
---|---|
none | inline | block |
|
static | relative | absolute | fixed |
|
left | right | none | inherit |
|
longitud | porcentaje | inherit |
|
longitud | porcentaje | inherit |
|
longitud | porcentaje | inherit |
|
longitud | porcentaje | inherit |
|
visible | hidden | collapse | initial | inherit |
|
|
|
Aplicacion | ||
---|---|---|
Sintesis
Bibliografía
Obra, Autor y Edición | Portada | Obra, Autor y Edición | Portada |
---|---|---|---|
|
|
Ponente
|
|
|