diff --git a/files/es/web/css/--_star_/index.md b/files/es/web/css/--_star_/index.md index 3a514ded2c2a0d..37d8959199eeea 100644 --- a/files/es/web/css/--_star_/index.md +++ b/files/es/web/css/--_star_/index.md @@ -33,10 +33,16 @@ Las propiedades personalizadas tienen como alcance los elementos en los que se d ### HTML ```html -

Este párrafo debe tener un fondo azul y un texto amarillo.

-

Este párrafo debe tener un fondo amarillo y un texto azul.

+

+ Este párrafo debe tener un fondo azul y un texto amarillo. +

+

+ Este párrafo debe tener un fondo amarillo y un texto azul. +

-

Este párrafo debe tener un fondo verde y un texto amarillo.

+

+ Este párrafo debe tener un fondo verde y un texto amarillo. +

``` diff --git a/files/es/web/css/-moz-force-broken-image-icon/index.md b/files/es/web/css/-moz-force-broken-image-icon/index.md index 1ebe1964f75a5f..2f03aae8ea6501 100644 --- a/files/es/web/css/-moz-force-broken-image-icon/index.md +++ b/files/es/web/css/-moz-force-broken-image-icon/index.md @@ -28,13 +28,13 @@ slug: Web/CSS/-moz-force-broken-image-icon ```css img { -moz-force-broken-image-icon: 1; - height:100px; - width:100px; + height: 100px; + width: 100px; } ``` ```html -Imagen con enlace roto +Imagen con enlace roto ``` {{ EmbedLiveSample('Examples','125','125','/files/4619/broken%20image%20link.png') }} diff --git a/files/es/web/css/-moz-image-rect/index.md b/files/es/web/css/-moz-image-rect/index.md index 9f9c37c89218bf..7fef30fcf6fb68 100644 --- a/files/es/web/css/-moz-image-rect/index.md +++ b/files/es/web/css/-moz-image-rect/index.md @@ -44,14 +44,14 @@ Para el contenedor: ```css #container { - width:267px; - height:272px; - top:100px; - left:100px; - position:absolute; - font-size:16px; - text-shadow:white 0px 0px 6px; - text-align:center; + width: 267px; + height: 272px; + top: 100px; + left: 100px; + position: absolute; + font-size: 16px; + text-shadow: white 0px 0px 6px; + text-align: center; } ``` @@ -60,9 +60,9 @@ posteriormente las cuatro caja se defines las cajas que especifican los segmento ```css #box1 { background-image: -moz-image-rect(url(firefox.png), 0%, 50%, 50%, 0%); - width:133px; - height:136px; - position:absolute; + width: 133px; + height: 136px; + position: absolute; } ``` @@ -71,9 +71,9 @@ Esta es la esquina superior izquierda de la imagen. Define un rectángulo que co ```css #box2 { background-image: -moz-image-rect(url(firefox.png), 0%, 100%, 50%, 50%); - width:133px; - height:136px; - position:absolute; + width: 133px; + height: 136px; + position: absolute; } ``` @@ -84,15 +84,15 @@ Las otras dos siguen un patrón similar: ```css #box3 { background-image: -moz-image-rect(url(firefox.png), 50%, 50%, 100%, 0%); - width:133px; - height:136px; - position:absolute; + width: 133px; + height: 136px; + position: absolute; } #box4 { background-image: -moz-image-rect(url(firefox.png), 50%, 100%, 100%, 50%); - width:133px; - height:136px; - position:absolute; + width: 133px; + height: 136px; + position: absolute; } ``` @@ -117,16 +117,20 @@ Gestiona el evento click cuando el contenedor recibe un click de ratón ```js function rotate() { - var prevStyle = window.getComputedStyle(document.getElementById("box4"), null).getPropertyValue("background-image"); + var prevStyle = window + .getComputedStyle(document.getElementById("box4"), null) + .getPropertyValue("background-image"); // Una vez hemos guardado la última, empezamos a rotar. - for (var i=1; i<=4; i++) { + for (var i = 1; i <= 4; i++) { var curId = "box" + i; // Permuta las imágenes de fondo. - var curStyle = window.getComputedStyle(document.getElementById(curId), null).getPropertyValue("background-image"); + var curStyle = window + .getComputedStyle(document.getElementById(curId), null) + .getPropertyValue("background-image"); document.getElementById(curId).style.backgroundImage = prevStyle; prevStyle = curStyle; } diff --git a/files/es/web/css/-moz-orient/index.md b/files/es/web/css/-moz-orient/index.md index 360b36979a2fee..4421e08289c4e5 100644 --- a/files/es/web/css/-moz-orient/index.md +++ b/files/es/web/css/-moz-orient/index.md @@ -29,16 +29,10 @@ The `-moz-orient` [CSS](/es/docs/Web/CSS) especifica la orientación del element ### HTML ```html -

- The following progress meter - is horizontal (the default): -

+

The following progress meter is horizontal (the default):

-

- The following progress meter - is vertical: -

+

The following progress meter is vertical:

``` diff --git a/files/es/web/css/-webkit-mask-attachment/index.md b/files/es/web/css/-webkit-mask-attachment/index.md index 749148656896d5..3e8b9feb7f7555 100644 --- a/files/es/web/css/-webkit-mask-attachment/index.md +++ b/files/es/web/css/-webkit-mask-attachment/index.md @@ -26,8 +26,8 @@ Si se ha especificado una {{ Cssxref("-webkit-mask-image") }} , `-webkit-mask-at ```css body { - -webkit-mask-image: url('images/mask.png'); - -webkit-mask-attachment: fixed; + -webkit-mask-image: url("images/mask.png"); + -webkit-mask-attachment: fixed; } ``` diff --git a/files/es/web/css/-webkit-mask-box-image/index.md b/files/es/web/css/-webkit-mask-box-image/index.md index 7f5d7525364bcb..120fb7a5b677b5 100644 --- a/files/es/web/css/-webkit-mask-box-image/index.md +++ b/files/es/web/css/-webkit-mask-box-image/index.md @@ -39,6 +39,7 @@ Where: - \ - : La función -webkit-gradient que se usará como imagen de máscara. - none + - : Para especificar que la caja del borde no va a tener imagen de máscara. - \ @@ -56,11 +57,11 @@ Where: ```css .exampleone { - -webkit-mask-box-image: url('mask.png'); + -webkit-mask-box-image: url("mask.png"); } .exampletwo { - -webkit-mask-box-image: url('logo.png') 100 100 0 0 round round; + -webkit-mask-box-image: url("logo.png") 100 100 0 0 round round; } ``` diff --git a/files/es/web/css/-webkit-mask-composite/index.md b/files/es/web/css/-webkit-mask-composite/index.md index a97aaf783ec65e..0f0d3752800452 100644 --- a/files/es/web/css/-webkit-mask-composite/index.md +++ b/files/es/web/css/-webkit-mask-composite/index.md @@ -55,8 +55,8 @@ Donde: ```css .example { - -webkit-mask-image: url(mask1.png), url('mask2.png'); - -webkit-mask-composite: xor, source-over; + -webkit-mask-image: url(mask1.png), url("mask2.png"); + -webkit-mask-composite: xor, source-over; } ``` diff --git a/files/es/web/css/-webkit-mask-position-x/index.md b/files/es/web/css/-webkit-mask-position-x/index.md index f8592a37249d4a..f76bd8933ee87d 100644 --- a/files/es/web/css/-webkit-mask-position-x/index.md +++ b/files/es/web/css/-webkit-mask-position-x/index.md @@ -28,7 +28,10 @@ La propiedad CSS `-webkit-mask-position-x` CSS establece la posición horizontal -webkit-mask-position-x: -1cm; /* Múltiples valores */ --webkit-mask-position-x: 50px, 25%, -3em; +-webkit-mask-position-x: + 50px, + 25%, + -3em; /* Valores globales */ -webkit-mask-position-x: inherit; diff --git a/files/es/web/css/-webkit-mask-position-y/index.md b/files/es/web/css/-webkit-mask-position-y/index.md index a844844ec0ff32..1aeab9ecc89ef6 100644 --- a/files/es/web/css/-webkit-mask-position-y/index.md +++ b/files/es/web/css/-webkit-mask-position-y/index.md @@ -28,7 +28,10 @@ La propiedad CSS `-webkit-mask-position-y` fija la posición inicial vertical de -webkit-mask-position-y: -1cm; /* Valores Múltiples*/ --webkit-mask-position-y: 50px, 25%, -3em; +-webkit-mask-position-y: + 50px, + 25%, + -3em; /* Valores globales */ -webkit-mask-position-y: inherit; diff --git a/files/es/web/css/-webkit-mask-repeat-x/index.md b/files/es/web/css/-webkit-mask-repeat-x/index.md index d228ca4dae26d4..14f4ba2416b74d 100644 --- a/files/es/web/css/-webkit-mask-repeat-x/index.md +++ b/files/es/web/css/-webkit-mask-repeat-x/index.md @@ -48,12 +48,12 @@ La propiedad CSS `-webkit-mask-repeat-x` especifica si una imagen de máscara se ```css .exampleone { - -webkit-mask-image: url('mask.png'); + -webkit-mask-image: url("mask.png"); -webkit-mask-repeat-x: repeat; } .exampletwo { - -webkit-mask-image: url('mask.png'); + -webkit-mask-image: url("mask.png"); -webkit-mask-repeat-x: no-repeat; } ``` @@ -64,7 +64,7 @@ Es posible especificar un `` diferente para cada una de las imáge ```css .examplethree { - -webkit-mask-image: url('mask1.png'), url('mask2.png'); + -webkit-mask-image: url("mask1.png"), url("mask2.png"); -webkit-mask-repeat-x: repeat, space; } ``` diff --git a/files/es/web/css/-webkit-mask-repeat-y/index.md b/files/es/web/css/-webkit-mask-repeat-y/index.md index 5508635f7f45e0..53a895495c3f14 100644 --- a/files/es/web/css/-webkit-mask-repeat-y/index.md +++ b/files/es/web/css/-webkit-mask-repeat-y/index.md @@ -51,12 +51,12 @@ La propiedad CSS `-webkit-mask-repeat-y` especifica si una imagen de máscara se ```css .exampleone { - -webkit-mask-image: url('mask.png'); + -webkit-mask-image: url("mask.png"); -webkit-mask-repeat-y: repeat; } .exampletwo { - -webkit-mask-image: url('mask.png'); + -webkit-mask-image: url("mask.png"); -webkit-mask-repeat-y: no-repeat; } ``` @@ -67,7 +67,7 @@ Es posible especificar un `` diferente para cada una de las imáge ```css .examplethree { - -webkit-mask-image: url('mask1.png'), url('mask2.png'); + -webkit-mask-image: url("mask1.png"), url("mask2.png"); -webkit-mask-repeat-y: repeat, space; } ``` diff --git a/files/es/web/css/-webkit-overflow-scrolling/index.md b/files/es/web/css/-webkit-overflow-scrolling/index.md index 9427f84c143040..2c4db44c4da6bf 100644 --- a/files/es/web/css/-webkit-overflow-scrolling/index.md +++ b/files/es/web/css/-webkit-overflow-scrolling/index.md @@ -26,14 +26,10 @@ La propiedad CSS `-webkit-overflow-scrolling` controla si los dispositivos táct ```html
-

- This paragraph has momentum scrolling -

+

This paragraph has momentum scrolling

-

- This paragraph does not. -

+

This paragraph does not.

``` diff --git a/files/es/web/css/@charset/index.md b/files/es/web/css/@charset/index.md index ad4eb4572449cd..4843e3d4581afb 100644 --- a/files/es/web/css/@charset/index.md +++ b/files/es/web/css/@charset/index.md @@ -39,10 +39,10 @@ Habiendo diferentes maneras de definir la codificación de caracteres en una hoj ## Ejemplos ```css -@charset "UTF-8"; /* Establece la codificación de la hoja de estilos a Unicode UTF-8 */ +@charset "UTF-8"; /* Establece la codificación de la hoja de estilos a Unicode UTF-8 */ @charset 'iso-8859-15'; /* Establece la codificación de la hoja de estilos a Latin-9 (idiomas de Europa Occidental, con símbolo de euro) */ - @charset "UTF-8"; /* Inválido, hay un caracter (espacio) antes de la regla-at */ -@charset UTF-8; /* Inválido, sin comillas simples o dobles, el valor no es una cadena {{cssxref("<string>")}} de CSS */ +@charset "UTF-8"; /* Inválido, hay un caracter (espacio) antes de la regla-at */ +@charset UTF-8; /* Inválido, sin comillas simples o dobles, el valor no es una cadena {{cssxref("<string>")}} de CSS */ ``` ## Especificaciones diff --git a/files/es/web/css/@counter-style/additive-symbols/index.md b/files/es/web/css/@counter-style/additive-symbols/index.md index 1781856a1bb79a..91ef16999e8de9 100644 --- a/files/es/web/css/@counter-style/additive-symbols/index.md +++ b/files/es/web/css/@counter-style/additive-symbols/index.md @@ -15,8 +15,12 @@ Cuando el valor del descriptor es _cyclic_, _numeric_, _alphabetic_, _symbolic_, ```css additive-symbols: 3 "0"; -additive-symbols: 3 "0", 2 "\2E\20"; -additive-symbols: 3 "0", 2 url(symbol.png); +additive-symbols: + 3 "0", + 2 "\2E\20"; +additive-symbols: + 3 "0", + 2 url(symbol.png); ``` ### Sintaxis formal @@ -29,11 +33,11 @@ additive-symbols: 3 "0", 2 url(symbol.png); ```html
    -
  • One
  • -
  • Two
  • -
  • Three
  • -
  • Four
  • -
  • Five
  • +
  • One
  • +
  • Two
  • +
  • Three
  • +
  • Four
  • +
  • Five
``` diff --git a/files/es/web/css/@counter-style/index.md b/files/es/web/css/@counter-style/index.md index 29284bbed34851..8b0d898d2d56c2 100644 --- a/files/es/web/css/@counter-style/index.md +++ b/files/es/web/css/@counter-style/index.md @@ -18,24 +18,31 @@ Initial version of CSS defined a set of useful counter styles. Although more sty Each `@counter-style` is identified by a name and has a set of descriptors. - {{cssxref("@counter-style/system", "system")}} + - : Specifies the algorithm to be used for converting the integer value of a counter to a string representation. - {{cssxref("@counter-style/negative", "negative")}} + - : Lets the author specify symbols to be appended or prepended to the counter representation if the value is negative. - {{cssxref("@counter-style/prefix", "prefix")}} + - : Specifies a symbol that should be prepended to the marker representation. Prefixes are added to the representation in the final stage, so in the final representation of the counter, it comes before the negative sign. - {{cssxref("@counter-style/suffix", "suffix")}} + - : Specifies, similar to the prefix descriptor, a symbol that is appended to the marker representation. Prefixes come after the marker representation. - {{cssxref("@counter-style/range", "range")}} + - : Defines the range of values over which the conter style is applicable. If a counter style is used to represent a counter value outside of its ranges, the counter style will drop back to its fallback style. - {{cssxref("@counter-style/pad", "pad")}} + - : Is used when you need the marker representations to be of a minimum length. For example if you want the counters to start start at 01 and go through 02, 03, 04 etc, then the pad descriptor is to be used. For representations larger than the specified pad value, the marker is constructed as normal. - {{cssxref("@counter-style/fallback", "fallback")}} + - : Specifies a system to fall back into if either the specified system is unable to construct the representation of or a counter value or if the counter value outside the specified range. If the specified fallback also fails to represent the value, then the fallback style's fallback is used, if one is specified. If there are either no fallback systems described or if the chain of fallback systems are unable to represent a counter value, then it will ultimately fall back to the decimal style. - {{cssxref("@counter-style/symbols", "symbols")}} @@ -53,6 +60,7 @@ Each `@counter-style` is identified by a name and has a set of descriptors. ``` - {{cssxref("@counter-style/additive-symbols", "additive-symbols")}} + - : While the symbols specified in the symbols descriptor is used for constructing marker representation by most algorithms, some systems such as 'additive' rely on _additive tuples_ described in this descriptor. Each additive tuple consists of a counter symbol and a non negative integer weight. The additive tuples must be specified in the descending order of their weights. - {{cssxref("@counter-style/speak-as", "speak-as")}} @@ -76,7 +84,7 @@ The above counter style rule can be applied to lists like this: ```css .items { - list-style: circled-alpha; + list-style: circled-alpha; } ``` diff --git a/files/es/web/css/@counter-style/symbols/index.md b/files/es/web/css/@counter-style/symbols/index.md index 74528ce2903a30..c45df1a0150c26 100644 --- a/files/es/web/css/@counter-style/symbols/index.md +++ b/files/es/web/css/@counter-style/symbols/index.md @@ -21,7 +21,7 @@ Los valores posibles para descriptor de símbolos incluyen: symbols: A B C D E; symbols: "\24B6" "\24B7" "\24B8" D E; symbols: "0" "1" "2" "4" "5" "6" "7" "8" "9"; -symbols: url('first.svg') url('second.svg') url('third.svg'); +symbols: url("first.svg") url("second.svg") url("third.svg"); symbols: indic-numbers; ``` diff --git a/files/es/web/css/@font-face/font-display/index.md b/files/es/web/css/@font-face/font-display/index.md index 36503a31ca3b7e..5be4a9b7118697 100644 --- a/files/es/web/css/@font-face/font-display/index.md +++ b/files/es/web/css/@font-face/font-display/index.md @@ -53,8 +53,9 @@ font-display: optional; ```css @font-face { font-family: ExampleFont; - src: url(/path/to/fonts/examplefont.woff) format('woff'), - url(/path/to/fonts/examplefont.eot) format('eot'); + src: + url(/path/to/fonts/examplefont.woff) format("woff"), + url(/path/to/fonts/examplefont.eot) format("eot"); font-weight: 400; font-style: normal; font-display: fallback; diff --git a/files/es/web/css/@font-face/font-family/index.md b/files/es/web/css/@font-face/font-family/index.md index d5298b6fcbf75e..d891a679cba01b 100644 --- a/files/es/web/css/@font-face/font-family/index.md +++ b/files/es/web/css/@font-face/font-family/index.md @@ -63,7 +63,7 @@ Como ejemplo , consideremos la familia de fuentes garamon, es su forma normal, o ```css p { - font-family: "Times New Roman", Georgia, Serif; + font-family: "Times New Roman", Georgia, Serif; } ``` diff --git a/files/es/web/css/@font-face/font-style/index.md b/files/es/web/css/@font-face/font-style/index.md index 8699229277dc99..8d2cd44056047f 100644 --- a/files/es/web/css/@font-face/font-style/index.md +++ b/files/es/web/css/@font-face/font-style/index.md @@ -24,9 +24,11 @@ font-style: oblique; ### Values - **`normal`** + - : Selecciona la version normal del estilo de fuente. - **`italic`** + - : Especifica que el estilo de fuente es la versión en _cursiva_ de la fuente normal. - **`oblique`** @@ -43,7 +45,7 @@ A modo de ejemplo, consideremos Garamond como un tipo de fuente que, en su forma ```css @font-face { font-family: garamond; - src: url('garamond.ttf'); + src: url("garamond.ttf"); } ``` diff --git a/files/es/web/css/@font-face/index.md b/files/es/web/css/@font-face/index.md index cf6d2664c0fd54..41bdbba778574e 100644 --- a/files/es/web/css/@font-face/index.md +++ b/files/es/web/css/@font-face/index.md @@ -7,7 +7,7 @@ slug: Web/CSS/@font-face ## Resumen -`@font-face` permite al autor especificar fuentes online para visualizar en sus páginas web. Al permitir a los autores proporcionar sus propias fuentes,` @font-face `elimina la necesidad de depender del numero limitado de fuentes de usuarios instaladas en sus computadoras. +`@font-face` permite al autor especificar fuentes online para visualizar en sus páginas web. Al permitir a los autores proporcionar sus propias fuentes, `@font-face` elimina la necesidad de depender del numero limitado de fuentes de usuarios instaladas en sus computadoras. ## Sintaxis diff --git a/files/es/web/css/@font-face/src/index.md b/files/es/web/css/@font-face/src/index.md index a56c1e9ebfccca..59c668928cfa69 100644 --- a/files/es/web/css/@font-face/src/index.md +++ b/files/es/web/css/@font-face/src/index.md @@ -18,20 +18,22 @@ Al igual que con otras URLs en CSS, la URL puede ser relativa, en cuyo caso se r ```css /* values */ src: url(https://somewebsite.com/path/to/font.woff); /* absolute URL */ -src: url(path/to/font.woff); /* relative URL */ -src: url(path/to/font.woff) format("woff"); /* explicit format */ -src: url('path/to/font.woff'); /* quoted URL */ -src: url(path/to/svgfont.svg#example); /* fragment identifying font */ +src: url(path/to/font.woff); /* relative URL */ +src: url(path/to/font.woff) format("woff"); /* explicit format */ +src: url("path/to/font.woff"); /* quoted URL */ +src: url(path/to/svgfont.svg#example); /* fragment identifying font */ /* values */ -src: local(font); /* unquoted name */ +src: local(font); /* unquoted name */ src: local(some font); /* name containing space */ -src: local("font"); /* quoted name */ +src: local("font"); /* quoted name */ /* Multiple items */ -src: local(font), url(path/to/font.svg) format("svg"), - url(path/to/font.woff) format("woff"), - url(path/to/font.ttf) format("opentype"); +src: + local(font), + url(path/to/font.svg) format("svg"), + url(path/to/font.woff) format("woff"), + url(path/to/font.ttf) format("opentype"); ``` ### Valores @@ -50,8 +52,10 @@ src: local(font), url(path/to/font.svg) format("svg"), ```css @font-face { font-family: examplefont; - src: local(Example Font), url('examplefont.woff') format("woff"), - url('examplefont.woff') format("opentype"); + src: + local(Example Font), + url("examplefont.woff") format("woff"), + url("examplefont.woff") format("opentype"); } ``` diff --git a/files/es/web/css/@font-face/unicode-range/index.md b/files/es/web/css/@font-face/unicode-range/index.md index d4b7f8724fb18f..078e10b33f3084 100644 --- a/files/es/web/css/@font-face/unicode-range/index.md +++ b/files/es/web/css/@font-face/unicode-range/index.md @@ -13,10 +13,10 @@ El propósito de esta regla es permitir a las fuente ser segmentados, así el na ```css /* valores */ -unicode-range: U+26; /* un único código */ +unicode-range: U+26; /* un único código */ unicode-range: U+0-7F; -unicode-range: U+0025-00FF; /* rango de códigos */ -unicode-range: U+4??; /* rango por expresión */ +unicode-range: U+0025-00FF; /* rango de códigos */ +unicode-range: U+4??; /* rango por expresión */ unicode-range: U+0025-00FF, U+4??; /* multiples valores */ ``` @@ -41,8 +41,8 @@ En el CSS, puedes ver que en efecto estamos definiendo una separación completa ```css @font-face { - font-family: 'Ampersand'; - src: local('Times New Roman'); + font-family: "Ampersand"; + src: local("Times New Roman"); unicode-range: U+26; } diff --git a/files/es/web/css/@font-feature-values/index.md b/files/es/web/css/@font-feature-values/index.md index 0736c3f27e15b3..299d4c161d4173 100644 --- a/files/es/web/css/@font-feature-values/index.md +++ b/files/es/web/css/@font-feature-values/index.md @@ -10,21 +10,25 @@ slug: Web/CSS/@font-feature-values La [regla-at](/es/docs/Web/CSS/At-rule) [CSS](/es/docs/Web/CSS) **`@font-feature-values`** permite a los autores usar un nombre común de {{cssxref("font-variant-alternates")}} para características activadas de distintas formas en OpenType. Permite simplificar el código CSS cuando se usan distintas fuentes. ```css -@font-feature-values Font One { /* Cómo activar nice-style en Font One */ +@font-feature-values Font One { + /* Cómo activar nice-style en Font One */ @styleset { nice-style: 12; } } -@font-feature-values Font Two { /* Cómo activar nice-style en Font Two */ +@font-feature-values Font Two { + /* Cómo activar nice-style en Font Two */ @styleset { nice-style: 4; } } -… +/* … */ -.nice-look { font-variant-alternates: styleset(nice-style); } /* Independiente de la fuente */ +.nice-look { + font-variant-alternates: styleset(nice-style); +} /* Independiente de la fuente */ ``` La regla-at `@font-feature-values` debe ser usada en la parte superior de la hoja de estilos, pero también dentro de [Grupos de reglas condicionales](/es/docs/Web/CSS/At-rule#Grupos_de_Reglas_Condicionales). diff --git a/files/es/web/css/@keyframes/index.md b/files/es/web/css/@keyframes/index.md index ff107de3e65547..3db859e0249458 100644 --- a/files/es/web/css/@keyframes/index.md +++ b/files/es/web/css/@keyframes/index.md @@ -28,10 +28,21 @@ Cualquier propiedad que no se especifican en cualquier keyframes son interpolada ```css @keyframes identifier { - 0% { top: 0; left: 0; } - 30% { top: 50px; } - 68%, 72% { left: 50px; } - 100% { top: 100px; left: 100%; } + 0% { + top: 0; + left: 0; + } + 30% { + top: 50px; + } + 68%, + 72% { + left: 50px; + } + 100% { + top: 100px; + left: 100%; + } } ``` @@ -43,10 +54,19 @@ La especificación define que si un keyframe se define varias veces, pero no tod ```css @keyframes identifier { - 0% { top: 0; } - 50% { top: 30px; left: 20px; } - 50% { top: 10px; } - 100% { top: 0; } + 0% { + top: 0; + } + 50% { + top: 30px; + left: 20px; + } + 50% { + top: 10px; + } + 100% { + top: 0; + } } ``` diff --git a/files/es/web/css/@media/display-mode/index.md b/files/es/web/css/@media/display-mode/index.md index f3dcc3e00794f2..84ae88a2db95d5 100644 --- a/files/es/web/css/@media/display-mode/index.md +++ b/files/es/web/css/@media/display-mode/index.md @@ -15,7 +15,7 @@ La característica `display-mode` se especifica como un valor de palabra clave e | Modo de visualización | Descripción | `Modo de visualización de reserva` | | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------- | -| `fullscreen` | Toda la área disponible de desplegado es usada y ningún agente de usuario {{glossary("chrome")}} es mostrado. | `standalone` | +| `fullscreen` | Toda la área disponible de desplegado es usada y ningún agente de usuario {{glossary("chrome")}} es mostrado. | `standalone` | | `standalone` | La aplicación se vera y sentira como una aplicación independiente. Esto puede incluir que la aplicación tenga una ventana diferente, su propio ícono en el lanzador de aplicaciones, etc. En este modo, el agente de usuario excluirá elementos UI paara controlar la navegación, pero puede incluir otros elementos UI como la barra de estado. | `minimal-ui` | | `minimal-ui` | La aplicación se vera y sentira como una apicación autónoma, pero tendra un conjunto mínimo de elementos UI para controlar la navegación. Los elementos pueden variar por navegador. | `browser` | | `browser` | La aplicación se abre en una pestaña o nueva ventana convencional del navegador, dependiendo del navegador y la plataforma. | (none) | diff --git a/files/es/web/css/@media/index.md b/files/es/web/css/@media/index.md index c04c95f6ab06f3..bbf3cf9608fee9 100644 --- a/files/es/web/css/@media/index.md +++ b/files/es/web/css/@media/index.md @@ -32,55 +32,60 @@ Un `` está compuesto por un tipo de medio opcional y/o un conjunto Cada _característica de medios_ verifica una característica específica del navegador o dispositivo. -| Nombre | Resumen | Notas | -| ------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| [`width`](/es/docs/Web/CSS/@media/width) | Anchura del viewport | | -| [`height`](/es/docs/Web/CSS/@media/height) | Altura del viewport | | -| [`aspect-ratio`](/es/docs/Web/CSS/@media/aspect-ratio) | Relación de aspecto anchura-altura del viewport | | -| [`orientation`](/es/docs/Web/CSS/@media/orientation) | Orientación del viewport | | -| [`resolution`](/es/docs/Web/CSS/@media/resolution) | Densidad de pixeles del dispositivo | | -| [`scan`](/es/docs/Web/CSS/@media/scan) | Proceso de escaneo del dispositivo | | -| [`grid`](/es/docs/Web/CSS/@media/grid) | ¿El dispositivo es un grid o un mapa de bits? | | -| [`update-frequency`](/es/docs/Web/CSS/@media/update-frequency) | Qué tan rápido (si lo hace) puede el dispositivo modificar la apariencia del contenido | Incluido en Media Queries Nivel 4 | -| [`overflow-block`](/es/docs/Web/CSS/@media/overflow-block) | Cómo maneja el dispositivo el contenido que excede los límites del viewport a lo largo del eje de bloque | Incluido en Media Queries Nivel 4 | -| [`overflow-inline`](/es/docs/Web/CSS/@media/overflow-inline) | ¿Puede desplazarse hacia el contenido que excede los límites del viewport? | Incluido en Media Queries Nivel 4 | -| [`color`](/es/docs/Web/CSS/@media/color) | Componente de número de bits por color del dispositivo, o cero si el dispositivo no es a color. | | -| [`color-index`](/es/docs/Web/CSS/@media/color-index) | Número de entradas en la tabla de búsqueda de color del dispositivo, o cero si el dispositivo no usa una tabla. | | -| [`display-mode`](/es/docs/Web/CSS/@media/display-mode) | Modo de visualización de la aplicación, según se especifique en la [propiedad display](/es/docs/Web/Manifest#display) del manifiesto de la aplicación web. | Definido en la [especificación del Manifiesto de Aplicación Web](http://w3c.github.io/manifest/#the-display-mode-media-feature). | -| [`monochrome`](/es/docs/Web/CSS/@media/monochrome) | Bits por pixel en el buffer de marco monocromático del dispositivo, o 0 si el dispositivo no es monocromático. | | -| [`inverted-colors`](/es/docs/Web/CSS/@media/inverted-colors) | ¿El agente usuario o el Sistema Operativo está invirtiendo los colores? | Incluido en Media Queries Nivel 4 | -| [`pointer`](/es/docs/Web/CSS/@media/pointer) | ¿El mecanismo de entrada principal es un dispositivo apuntador? y de ser así, ¿qué tan preciso es? | Incluido en Media Queries Nivel 4 | -| [`hover`](/es/docs/Web/CSS/@media/hover) | ¿El mecanismo de entrada principal permite que el usuario posicione el puntero sobre los elementos? | Incluido en Media Queries Nivel 4 | -| [`any-pointer`](/es/docs/Web/CSS/@media/any-pointer) | ¿Hay algún mecanismo de entrada que sea dispositivo apuntador? y de ser así, ¿qué tan preciso es éste? | Incluido en Media Queries Nivel 4 | -| [`any-hover`](/es/docs/Web/CSS/@media/any-hover) | ¿Algún mecanismo de entrada disponible permite que el usuario posicione el puntero sobre los elementos? | Incluido en Media Queries Nivel 4 | -| [`light-level`](/es/docs/Web/CSS/@media/light-level) | Nivel de luz ambiental actual | Incluido en Media Queries Nivel 4 | -| [`scripting`](/es/docs/Web/CSS/@media/scripting) | ¿Se soporta lenguaje de script (p.ej. JavaScript)? | Incluido en Media Queries Nivel 4 | -| [`device-width`](/es/docs/Web/CSS/@media/device-width) {{deprecated_inline}} | Anchura de la superficie de representación del dispositivo | Descontinuado en Media Queries Nivel 4 | -| [`device-height`](/es/docs/Web/CSS/@media/device-height) {{deprecated_inline}} | Altura de la superficie de representación del dispositivo | Descontinuado en Media Queries Nivel 4 | -| [`device-aspect-ratio`](/es/docs/Web/CSS/@media/device-aspect-ratio) {{deprecated_inline}} | Relación de aspecto anchura-altura del dispositivo | Descontinuado en Media Queries Nivel 4 | +| Nombre | Resumen | Notas | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| [`width`](/es/docs/Web/CSS/@media/width) | Anchura del viewport | | +| [`height`](/es/docs/Web/CSS/@media/height) | Altura del viewport | | +| [`aspect-ratio`](/es/docs/Web/CSS/@media/aspect-ratio) | Relación de aspecto anchura-altura del viewport | | +| [`orientation`](/es/docs/Web/CSS/@media/orientation) | Orientación del viewport | | +| [`resolution`](/es/docs/Web/CSS/@media/resolution) | Densidad de pixeles del dispositivo | | +| [`scan`](/es/docs/Web/CSS/@media/scan) | Proceso de escaneo del dispositivo | | +| [`grid`](/es/docs/Web/CSS/@media/grid) | ¿El dispositivo es un grid o un mapa de bits? | | +| [`update-frequency`](/es/docs/Web/CSS/@media/update-frequency) | Qué tan rápido (si lo hace) puede el dispositivo modificar la apariencia del contenido | Incluido en Media Queries Nivel 4 | +| [`overflow-block`](/es/docs/Web/CSS/@media/overflow-block) | Cómo maneja el dispositivo el contenido que excede los límites del viewport a lo largo del eje de bloque | Incluido en Media Queries Nivel 4 | +| [`overflow-inline`](/es/docs/Web/CSS/@media/overflow-inline) | ¿Puede desplazarse hacia el contenido que excede los límites del viewport? | Incluido en Media Queries Nivel 4 | +| [`color`](/es/docs/Web/CSS/@media/color) | Componente de número de bits por color del dispositivo, o cero si el dispositivo no es a color. | | +| [`color-index`](/es/docs/Web/CSS/@media/color-index) | Número de entradas en la tabla de búsqueda de color del dispositivo, o cero si el dispositivo no usa una tabla. | | +| [`display-mode`](/es/docs/Web/CSS/@media/display-mode) | Modo de visualización de la aplicación, según se especifique en la [propiedad display](/es/docs/Web/Manifest#display) del manifiesto de la aplicación web. | Definido en la [especificación del Manifiesto de Aplicación Web](http://w3c.github.io/manifest/#the-display-mode-media-feature). | +| [`monochrome`](/es/docs/Web/CSS/@media/monochrome) | Bits por pixel en el buffer de marco monocromático del dispositivo, o 0 si el dispositivo no es monocromático. | | +| [`inverted-colors`](/es/docs/Web/CSS/@media/inverted-colors) | ¿El agente usuario o el Sistema Operativo está invirtiendo los colores? | Incluido en Media Queries Nivel 4 | +| [`pointer`](/es/docs/Web/CSS/@media/pointer) | ¿El mecanismo de entrada principal es un dispositivo apuntador? y de ser así, ¿qué tan preciso es? | Incluido en Media Queries Nivel 4 | +| [`hover`](/es/docs/Web/CSS/@media/hover) | ¿El mecanismo de entrada principal permite que el usuario posicione el puntero sobre los elementos? | Incluido en Media Queries Nivel 4 | +| [`any-pointer`](/es/docs/Web/CSS/@media/any-pointer) | ¿Hay algún mecanismo de entrada que sea dispositivo apuntador? y de ser así, ¿qué tan preciso es éste? | Incluido en Media Queries Nivel 4 | +| [`any-hover`](/es/docs/Web/CSS/@media/any-hover) | ¿Algún mecanismo de entrada disponible permite que el usuario posicione el puntero sobre los elementos? | Incluido en Media Queries Nivel 4 | +| [`light-level`](/es/docs/Web/CSS/@media/light-level) | Nivel de luz ambiental actual | Incluido en Media Queries Nivel 4 | +| [`scripting`](/es/docs/Web/CSS/@media/scripting) | ¿Se soporta lenguaje de script (p.ej. JavaScript)? | Incluido en Media Queries Nivel 4 | +| [`device-width`](/es/docs/Web/CSS/@media/device-width) {{deprecated_inline}} | Anchura de la superficie de representación del dispositivo | Descontinuado en Media Queries Nivel 4 | +| [`device-height`](/es/docs/Web/CSS/@media/device-height) {{deprecated_inline}} | Altura de la superficie de representación del dispositivo | Descontinuado en Media Queries Nivel 4 | +| [`device-aspect-ratio`](/es/docs/Web/CSS/@media/device-aspect-ratio) {{deprecated_inline}} | Relación de aspecto anchura-altura del dispositivo | Descontinuado en Media Queries Nivel 4 | | [`-webkit-device-pixel-ratio`](/es/docs/Web/CSS/@media/-webkit-device-pixel-ratio) {{non-standard_inline}} | Número de pixeles reales del dispositivo por pixel CSS | No estándar; Específica de WebKit/Blink. De ser posible, use la característica `resolution en su lugar`. | -| [`-webkit-transform-3d`](/es/docs/Web/CSS/@media/-webkit-transform-3d) {{non-standard_inline}} | ¿Se soportan {{cssxref("transform", "transformaciones")}} 3D? | No estándar; Específica de WebKit/Blink | -| [`-webkit-transform-2d`](/es/docs/Web/CSS/@media/-webkit-transform-2d) {{non-standard_inline}} | ¿Se soportan {{cssxref("transform", "transformaciones")}} 2D? | No estándar; Específica de WebKit | -| [`-webkit-transition`](/es/docs/Web/CSS/@media/-webkit-transition) {{non-standard_inline}} | Se soportan {{cssxref("transition", "transiciones")}} CSS? | No estándar; Específica de WebKit | -| [`-webkit-animation`](/es/docs/Web/CSS/@media/-webkit-animation) {{non-standard_inline}} | ¿Se soportan {{cssxref("animation", "animaciones")}} CSS? | No estándar; Específica de WebKit | +| [`-webkit-transform-3d`](/es/docs/Web/CSS/@media/-webkit-transform-3d) {{non-standard_inline}} | ¿Se soportan {{cssxref("transform", "transformaciones")}} 3D? | No estándar; Específica de WebKit/Blink | +| [`-webkit-transform-2d`](/es/docs/Web/CSS/@media/-webkit-transform-2d) {{non-standard_inline}} | ¿Se soportan {{cssxref("transform", "transformaciones")}} 2D? | No estándar; Específica de WebKit | +| [`-webkit-transition`](/es/docs/Web/CSS/@media/-webkit-transition) {{non-standard_inline}} | Se soportan {{cssxref("transition", "transiciones")}} CSS? | No estándar; Específica de WebKit | +| [`-webkit-animation`](/es/docs/Web/CSS/@media/-webkit-animation) {{non-standard_inline}} | ¿Se soportan {{cssxref("animation", "animaciones")}} CSS? | No estándar; Específica de WebKit | ## Ejemplos ```css @media print { - body { font-size: 10pt } + body { + font-size: 10pt; + } } @media screen { - body { font-size: 13px } + body { + font-size: 13px; + } } @media screen, print { - body { line-height: 1.2 } + body { + line-height: 1.2; + } } -@media only screen - and (min-device-width: 320px) - and (max-device-width: 480px) - and (-webkit-min-device-pixel-ratio: 2) { - body { line-height: 1.4 } +@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) { + body { + line-height: 1.4; + } } ``` diff --git a/files/es/web/css/@media/pointer/index.md b/files/es/web/css/@media/pointer/index.md index a5c4778cd907ac..a7a17c18a4c083 100644 --- a/files/es/web/css/@media/pointer/index.md +++ b/files/es/web/css/@media/pointer/index.md @@ -27,8 +27,7 @@ Este ejemplo crea una pequeño checkbox para los usuarios con punteros primarios ### HTML ```html - - + ``` ### CSS diff --git a/files/es/web/css/@namespace/index.md b/files/es/web/css/@namespace/index.md index 566ade827fec5a..3ecf0b931cc39e 100644 --- a/files/es/web/css/@namespace/index.md +++ b/files/es/web/css/@namespace/index.md @@ -12,13 +12,16 @@ slug: Web/CSS/@namespace @namespace svg url(http://www.w3.org/2000/svg); /* Esto coincide con todos los elementos XHTML , ya que el XHTML es el namespace por defecto sin prefijo */ -a {} +a { +} /* Esto coincide con todos los elementos SVG */ -svg|a {} +svg|a { +} /* Esto concuerda con todos los elementos XHTML y SVG elements */ -*|a {} +*|a { +} ``` Cualquier `@namespace` debe seguir todas las reglas de [@charset](/es/docs/Web/CSS/%40charset) y [@import](/es/docs/Web/CSS/%40import), y preceder a todas las demás reglas y [declaraciones de estilo](/es/docs/Web/API/CSSStyleDeclaration) de una hoja de estilos. diff --git a/files/es/web/css/@page/index.md b/files/es/web/css/@page/index.md index 34ea642adfbf13..f900a7b0cd9938 100644 --- a/files/es/web/css/@page/index.md +++ b/files/es/web/css/@page/index.md @@ -18,9 +18,11 @@ La regla `@page` puede ser accesada por medio de la interfaz modelo objeto {{dom ### Descriptores - [`size`](/es/docs/Web/CSS/@page/size) + - : Especifica el tamaño y la orientación de la caja objetivo de la página. En general, una caja es representada dentro de una hoja, también indica el tamaño de la hoja destino. - [`marks`](/es/docs/Web/CSS/@page/marks) + - : Añade marcas de corte y/o registro al documento. - [`bleed`](/es/docs/Web/CSS/@page/bleed) diff --git a/files/es/web/css/_colon_-moz-window-inactive/index.md b/files/es/web/css/_colon_-moz-window-inactive/index.md index f7cd7d88b3a2a4..bfad7ea72a3ab4 100644 --- a/files/es/web/css/_colon_-moz-window-inactive/index.md +++ b/files/es/web/css/_colon_-moz-window-inactive/index.md @@ -19,13 +19,13 @@ Este ejemplo modifica la apariencia del fondo de una caja dependiendo de si est ```html
diff --git a/files/es/web/css/_colon_active/index.md b/files/es/web/css/_colon_active/index.md index a602463161645e..7a1e8d8c9f9625 100644 --- a/files/es/web/css/_colon_active/index.md +++ b/files/es/web/css/_colon_active/index.md @@ -33,10 +33,18 @@ Los estilos definidos por la pseudoclase `:active` serán anulados por cualquier ### CSS ```css -a:link { color: blue; } /* Enlaces no visitados */ -a:visited { color: purple; } /* Enlaces visitados */ -a:hover { background: yellow; } /* El usuario esta sobre el enlace */ -a:active { color: lime; } /* Enlaces activos */ +a:link { + color: blue; +} /* Enlaces no visitados */ +a:visited { + color: purple; +} /* Enlaces visitados */ +a:hover { + background: yellow; +} /* El usuario esta sobre el enlace */ +a:active { + color: lime; +} /* Enlaces activos */ ``` ### Resultado diff --git a/files/es/web/css/_colon_any-link/index.md b/files/es/web/css/_colon_any-link/index.md index 7c32a79524d80b..9d4dec2edb8f5c 100644 --- a/files/es/web/css/_colon_any-link/index.md +++ b/files/es/web/css/_colon_any-link/index.md @@ -21,8 +21,8 @@ slug: Web/CSS/:any-link ### HTML ```html -Enlace externo
-Enlace de destino interno
+Enlace externo
+Enlace de destino interno
Enlace de marcador de posición (no se personalizará) ``` diff --git a/files/es/web/css/_colon_checked/index.md b/files/es/web/css/_colon_checked/index.md index 1b0ec391d24078..a4633716aac408 100644 --- a/files/es/web/css/_colon_checked/index.md +++ b/files/es/web/css/_colon_checked/index.md @@ -31,15 +31,15 @@ El usuario puede activar este estado marcando/seleccionando un elemento, o desac ```html
- + - +
- +
@@ -95,14 +95,38 @@ Este ejemplo utiliza la pseudoclase `:checked` para permitir al usuario alternar - + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + +
Columna #1Columna #2Columna #3
Columna #1Columna #2Columna #3
[cell text][cell text][cell text]
[cell text][cell text][cell text]
[cell text][cell text][cell text]
[cell text][cell text][cell text]
diff --git a/files/es/web/css/_colon_default/index.md b/files/es/web/css/_colon_default/index.md index aad3698a83f17c..83494d74acd1ab 100644 --- a/files/es/web/css/_colon_default/index.md +++ b/files/es/web/css/_colon_default/index.md @@ -27,16 +27,16 @@ Los elementos agrupados que permiten selecciones múltiples también pueden tene ### HTML ```html - + - + - + - + ``` diff --git a/files/es/web/css/_colon_defined/index.md b/files/es/web/css/_colon_defined/index.md index ea8a0474cc587e..0d5994bc56124a 100644 --- a/files/es/web/css/_colon_defined/index.md +++ b/files/es/web/css/_colon_defined/index.md @@ -30,24 +30,26 @@ Los siguientes fragmentos están tomados de nuestra demostración [Pseudo-clase- En esta demostración, definimos un elemento personalizado trivial muy simple: ```js -customElements.define('simple-custom', +customElements.define( + "simple-custom", class extends HTMLElement { constructor() { super(); - let divElem = document.createElement('div'); - divElem.textContent = this.getAttribute('text'); + let divElem = document.createElement("div"); + divElem.textContent = this.getAttribute("text"); - let shadowRoot = this.attachShadow({mode: 'open'}) - .appendChild(divElem); - } -}) + let shadowRoot = this.attachShadow({ mode: "open" }).appendChild(divElem); + } + }, +); ``` Luego inserta una copia de este elemento en el documento, junto con un `

` estándar: ```html - +

Texto de ejemplo de párrafo estándar

``` diff --git a/files/es/web/css/_colon_dir/index.md b/files/es/web/css/_colon_dir/index.md index 54586d2b0c127a..8828396c321d12 100644 --- a/files/es/web/css/_colon_dir/index.md +++ b/files/es/web/css/_colon_dir/index.md @@ -42,7 +42,8 @@ La pseudoclase `:dir()` requiere un parámetro, que representa la direccionalida ```html
test1 -
test2 +
+ test2
עִבְרִית
diff --git a/files/es/web/css/_colon_disabled/index.md b/files/es/web/css/_colon_disabled/index.md index 812bc0b0a8b555..a82809f2f0bbc8 100644 --- a/files/es/web/css/_colon_disabled/index.md +++ b/files/es/web/css/_colon_disabled/index.md @@ -28,19 +28,19 @@ Este ejemplo muestra un formulario de envío básico. Utiliza el evento [JavaScr
Dirección de Envío - - - + + +
-
+
Dirección de facturación - -
- - - + +
+ + +
``` @@ -57,10 +57,14 @@ input[type="text"]:disabled { ```js // Esperar a que la página termine de cargarse -document.addEventListener('DOMContentLoaded', function () { - // Adjunte el detector de eventos `change` al checkbox - document.getElementById('billing-checkbox').onchange = toggleBilling; -}, false); +document.addEventListener( + "DOMContentLoaded", + function () { + // Adjunte el detector de eventos `change` al checkbox + document.getElementById("billing-checkbox").onchange = toggleBilling; + }, + false, +); function toggleBilling() { // Seleccione los campos de texto de facturación diff --git a/files/es/web/css/_colon_empty/index.md b/files/es/web/css/_colon_empty/index.md index 9798b7c20b6dea..04248de93772dc 100644 --- a/files/es/web/css/_colon_empty/index.md +++ b/files/es/web/css/_colon_empty/index.md @@ -28,7 +28,7 @@ div:empty {
Voy a ser de color rosa.
- +
``` diff --git a/files/es/web/css/_colon_enabled/index.md b/files/es/web/css/_colon_enabled/index.md index e8c4906d5a5b74..d4694ea8e66b3d 100644 --- a/files/es/web/css/_colon_enabled/index.md +++ b/files/es/web/css/_colon_enabled/index.md @@ -27,12 +27,12 @@ El siguiente ejemplo hace que el color del texto y el botón {{htmlElement ("inp ```html
-
+
-
+
- +
``` diff --git a/files/es/web/css/_colon_first-child/index.md b/files/es/web/css/_colon_first-child/index.md index 45988aa7e9f9b5..11d3c0b05b02f3 100644 --- a/files/es/web/css/_colon_first-child/index.md +++ b/files/es/web/css/_colon_first-child/index.md @@ -61,7 +61,8 @@ p:first-child {
  • Objeto 1
  • Objeto 2
  • -
  • Objeto 3 +
  • + Objeto 3
    • Objeto 3.1
    • Objeto 3.2
    • diff --git a/files/es/web/css/_colon_first-of-type/index.md b/files/es/web/css/_colon_first-of-type/index.md index 5d63ef7bebcfb2..600fac48b78dc6 100644 --- a/files/es/web/css/_colon_first-of-type/index.md +++ b/files/es/web/css/_colon_first-of-type/index.md @@ -56,7 +56,10 @@ Este ejemplo muestra cómo los elementos anidados también pueden utilizarse. Te
      !Este `div` es primero!
      ¡Este `span` anidado es el primero!
      -
      ¡Este `em` anidado es el primero, pero este `em` anidado es el último!
      +
      + ¡Este `em` anidado es el primero, pero este + `em` anidado es el último! +
      ¡Este `span` anidado tiene estilo!
      ¡Este `b` califica!
      Este es el `div` final.
      diff --git a/files/es/web/css/_colon_first/index.md b/files/es/web/css/_colon_first/index.md index 9f589be97d73f5..3cfba7d0e89cf2 100644 --- a/files/es/web/css/_colon_first/index.md +++ b/files/es/web/css/_colon_first/index.md @@ -47,7 +47,7 @@ p { ```js document.querySelector("button").onclick = function () { window.print(); -} +}; ``` ### Resultado diff --git a/files/es/web/css/_colon_focus-visible/index.md b/files/es/web/css/_colon_focus-visible/index.md index 052453550854d8..76539443fa2083 100644 --- a/files/es/web/css/_colon_focus-visible/index.md +++ b/files/es/web/css/_colon_focus-visible/index.md @@ -22,16 +22,17 @@ Nótese que Firefox soporta una funcionalidad similar a través de una pseudo-cl En este ejemplo, el selector `:focus-visible` usa el comportamiento del UA para deteminar cuándo emparejar. Compara lo que sucede cuando haces clic en los diferentes controles con un ratón con lo que sucede cuando los atraviesas con el teclado. Note la diferencia de comportamiento con respecto a los elementos con estilo `:focus`. ```html -
      -
      -
      -
      -
      +
      +
      +
      +
      +
      ``` ```css -input, button { +input, +button { margin: 10px; } diff --git a/files/es/web/css/_colon_focus-within/index.md b/files/es/web/css/_colon_focus-within/index.md index f89896617c80dd..a6396d76809779 100644 --- a/files/es/web/css/_colon_focus-within/index.md +++ b/files/es/web/css/_colon_focus-within/index.md @@ -31,10 +31,10 @@ En este ejemplo, el formulario recibirá estilos de color especiales cuando cual
      - -
      + +
      - +
      ``` diff --git a/files/es/web/css/_colon_focus/index.md b/files/es/web/css/_colon_focus/index.md index 956ee32c18cc53..6a1a434088db7c 100644 --- a/files/es/web/css/_colon_focus/index.md +++ b/files/es/web/css/_colon_focus/index.md @@ -25,8 +25,10 @@ input:focus { ### HTML ```html -
      - +
      + ``` ### CSS diff --git a/files/es/web/css/_colon_fullscreen/index.md b/files/es/web/css/_colon_fullscreen/index.md index 6a23cdb1a988b0..9f2d7c5fa4d6de 100644 --- a/files/es/web/css/_colon_fullscreen/index.md +++ b/files/es/web/css/_colon_fullscreen/index.md @@ -37,29 +37,34 @@ div:fullscreen { ```html

      Demostración :fullscreen

      -

      Este texto se pondrá grande y rojo cuando el navegador esté en modo de pantalla completa.

      +

      + Este texto se pondrá grande y rojo cuando el navegador esté en modo de + pantalla completa. +

      ``` ```js hidden var fullscreenButton = document.getElementById("fullscreen-button"); -var fullscreenDiv = document.getElementById("fullscreen"); -var fullscreenFunc = fullscreenDiv.requestFullscreen; +var fullscreenDiv = document.getElementById("fullscreen"); +var fullscreenFunc = fullscreenDiv.requestFullscreen; if (!fullscreenFunc) { - ['mozRequestFullScreen', - 'msRequestFullscreen', - 'webkitRequestFullScreen'].forEach(function (req) { - fullscreenFunc = fullscreenFunc || fullscreenDiv[req]; - }); + [ + "mozRequestFullScreen", + "msRequestFullscreen", + "webkitRequestFullScreen", + ].forEach(function (req) { + fullscreenFunc = fullscreenFunc || fullscreenDiv[req]; + }); } function enterFullscreen() { fullscreenFunc.call(fullscreenDiv); } -fullscreenButton.addEventListener('click', enterFullscreen); +fullscreenButton.addEventListener("click", enterFullscreen); ``` ```css hidden @@ -104,7 +109,7 @@ fullscreenButton.addEventListener('click', enterFullscreen); #fullscreen:fullscreen { padding: 42px; background-color: pink; - border:2px solid #f00; + border: 2px solid #f00; font-size: 200%; } diff --git a/files/es/web/css/_colon_has/index.md b/files/es/web/css/_colon_has/index.md index 519f0dbbadb213..fe57b0199d2b74 100644 --- a/files/es/web/css/_colon_has/index.md +++ b/files/es/web/css/_colon_has/index.md @@ -20,7 +20,9 @@ La [pseudo-class](/es/docs/Web/CSS/Pseudo-classes) CSS **`:has()`** representa u El siguiente selector selecciona únicamente los elementos {{HTMLElement("a")}} que contienen {{HTMLElement("img")}} hijo: ```css -a:has(> img) +a:has(> img) { + +} ``` ## Especificaciones diff --git a/files/es/web/css/_colon_host/index.md b/files/es/web/css/_colon_host/index.md index dc1cef457bdfa8..455a002cba28a2 100644 --- a/files/es/web/css/_colon_host/index.md +++ b/files/es/web/css/_colon_host/index.md @@ -27,26 +27,29 @@ Los siguientes fragmentos se toman de nuestro ejemplo de [selectores de host](ht En este ejemplo, tenemos un elemento personalizado simple — `` — que se puede envolver alrededor del texto: ```html -

      Host selectors example

      +

      + Host selectors example +

      ``` Dentro del constructor del elemento, creamos los elementos `style` y `span`, llenamos el `span` con el contenido del elemento personalizado y llenamos el elemento `style` con algunas reglas CSS: ```js -let style = document.createElement('style'); - let span = document.createElement('span'); - span.textContent = this.textContent; - - const shadowRoot = this.attachShadow({mode: 'open'}); - shadowRoot.appendChild(style); - shadowRoot.appendChild(span); - - style.textContent = 'span:hover { text-decoration: underline; }' + - ':host-context(h1) { font-style: italic; }' + - ':host-context(h1):after { content: " - no links in headers!" }' + - ':host-context(article, aside) { color: gray; }' + - ':host(.footer) { color : red; }' + - ':host { background: rgba(0,0,0,0.1); padding: 2px 5px; }'; +let style = document.createElement("style"); +let span = document.createElement("span"); +span.textContent = this.textContent; + +const shadowRoot = this.attachShadow({ mode: "open" }); +shadowRoot.appendChild(style); +shadowRoot.appendChild(span); + +style.textContent = + "span:hover { text-decoration: underline; }" + + ":host-context(h1) { font-style: italic; }" + + ':host-context(h1):after { content: " - no links in headers!" }' + + ":host-context(article, aside) { color: gray; }" + + ":host(.footer) { color : red; }" + + ":host { background: rgba(0,0,0,0.1); padding: 2px 5px; }"; ``` La regla `:host { background: rgba(0,0,0,0.1); padding: 2px 5px; }` estiliza todas las instancias del elemento `` (la sombra host en esta instancia) en el documento. diff --git a/files/es/web/css/_colon_hover/index.md b/files/es/web/css/_colon_hover/index.md index 2f94c07ae26e99..cb20a2d6c44420 100644 --- a/files/es/web/css/_colon_hover/index.md +++ b/files/es/web/css/_colon_hover/index.md @@ -37,7 +37,7 @@ Los estilos definidos por la pseudoclase `:active` serán anulados por cualquier ```css a { background-color: powderblue; - transition: background-color .5s; + transition: background-color 0.5s; } a:hover { diff --git a/files/es/web/css/_colon_in-range/index.md b/files/es/web/css/_colon_in-range/index.md index 1a7428235f5c8d..2cfeb5fe6d57fd 100644 --- a/files/es/web/css/_colon_in-range/index.md +++ b/files/es/web/css/_colon_in-range/index.md @@ -29,9 +29,17 @@ Esta pseudo-clase es útil para dar al usuario una indicación visual de que el ```html
      -
        Los valores entre 1 y 10 son válidos. +
          + Los valores entre 1 y 10 son válidos.
        • - +
        @@ -60,11 +68,11 @@ input:out-of-range { } input:in-range + label::after { - content: 'bien.'; + content: "bien."; } input:out-of-range + label::after { - content: 'fuera de rango!'; + content: "fuera de rango!"; } ``` diff --git a/files/es/web/css/_colon_indeterminate/index.md b/files/es/web/css/_colon_indeterminate/index.md index 04501d5d30de70..0b472fd15b639f 100644 --- a/files/es/web/css/_colon_indeterminate/index.md +++ b/files/es/web/css/_colon_indeterminate/index.md @@ -34,11 +34,11 @@ Este ejemplo aplica estilos especiales a las etiquetas asociadas con campos de f ```html
        - +
        - +
        ``` @@ -70,7 +70,7 @@ for (var i = 0; i < inputs.length; i++) { #### HTML ```html - + ``` #### CSS diff --git a/files/es/web/css/_colon_invalid/index.md b/files/es/web/css/_colon_invalid/index.md index 175abef81756f1..7840f9847960b1 100644 --- a/files/es/web/css/_colon_invalid/index.md +++ b/files/es/web/css/_colon_invalid/index.md @@ -32,8 +32,10 @@ Este ejemplo presenta una forma simple que colorea los elementos en verde cuando

        - - + + ``` @@ -62,7 +64,7 @@ input:required { } input:required:invalid { - border-color: #C00000; + border-color: #c00000; } ``` diff --git a/files/es/web/css/_colon_is/index.md b/files/es/web/css/_colon_is/index.md index c2bb53e362a443..d28df077cd0c5d 100644 --- a/files/es/web/css/_colon_is/index.md +++ b/files/es/web/css/_colon_is/index.md @@ -29,18 +29,54 @@ Por ejemplo, el siguiente CSS: ```css /* Listas desordenadas a tres (o más) niveles de profundidad que usarán viñeta de cuadrado */ -ol ol ul, ol ul ul, ol menu ul, ol dir ul, -ol ol menu, ol ul menu, ol menu menu, ol dir menu, -ol ol dir, ol ul dir, ol menu dir, ol dir dir, -ul ol ul, ul ul ul, ul menu ul, ul dir ul, -ul ol menu, ul ul menu, ul menu menu, ul dir menu, -ul ol dir, ul ul dir, ul menu dir, ul dir dir, -menu ol ul, menu ul ul, menu menu ul, menu dir ul, -menu ol menu, menu ul menu, menu menu menu, menu dir menu, -menu ol dir, menu ul dir, menu menu dir, menu dir dir, -dir ol ul, dir ul ul, dir menu ul, dir dir ul, -dir ol menu, dir ul menu, dir menu menu, dir dir menu, -dir ol dir, dir ul dir, dir menu dir, dir dir dir { +ol ol ul, +ol ul ul, +ol menu ul, +ol dir ul, +ol ol menu, +ol ul menu, +ol menu menu, +ol dir menu, +ol ol dir, +ol ul dir, +ol menu dir, +ol dir dir, +ul ol ul, +ul ul ul, +ul menu ul, +ul dir ul, +ul ol menu, +ul ul menu, +ul menu menu, +ul dir menu, +ul ol dir, +ul ul dir, +ul menu dir, +ul dir dir, +menu ol ul, +menu ul ul, +menu menu ul, +menu dir ul, +menu ol menu, +menu ul menu, +menu menu menu, +menu dir menu, +menu ol dir, +menu ul dir, +menu menu dir, +menu dir dir, +dir ol ul, +dir ul ul, +dir menu ul, +dir dir ul, +dir ol menu, +dir ul menu, +dir menu menu, +dir dir menu, +dir ol dir, +dir ul dir, +dir menu dir, +dir dir dir { list-style-type: square; } ``` @@ -59,7 +95,9 @@ Puede ser reemplazado con: Sin embargo, no se debe usar lo siguiente: (Véase [la sección de rendimiento](#Issues_with_performance_and_specificity) abajo.) ```css -:-moz-any(ol, ul, menu, dir) :-moz-any(ol, ul, menu, dir) :-moz-any(ul, menu, dir) { +:-moz-any(ol, ul, menu, dir) + :-moz-any(ol, ul, menu, dir) + :-moz-any(ul, menu, dir) { list-style-type: square; } ``` @@ -76,14 +114,29 @@ h1 { font-size: 30px; } /* Nivel 1 */ -section h1, article h1, aside h1, nav h1 { +section h1, +article h1, +aside h1, +nav h1 { font-size: 25px; } /* Nivelo 2 */ -section section h1, section article h1, section aside h1, section nav h1, -article section h1, article article h1, article aside h1, article nav h1, -aside section h1, aside article h1, aside aside h1, aside nav h1, -nav section h1, nav article h1, nav aside h1, nav nav h1, { +section section h1, +section article h1, +section aside h1, +section nav h1, +article section h1, +article article h1, +article aside h1, +article nav h1, +aside section h1, +aside article h1, +aside aside h1, +aside nav h1, +nav section h1, +nav article h1, +nav aside h1, +nav nav h1 { font-size: 20px; } /* Level 3 */ @@ -103,13 +156,15 @@ h1 { } /* Nivel 2 */ :-moz-any(section, article, aside, nav) -:-moz-any(section, article, aside, nav) h1 { + :-moz-any(section, article, aside, nav) + h1 { font-size: 20px; } /* Nivel 3 */ :-moz-any(section, article, aside, nav) -:-moz-any(section, article, aside, nav) -:-moz-any(section, article, aside, nav) h1 { + :-moz-any(section, article, aside, nav) + :-moz-any(section, article, aside, nav) + h1 { font-size: 15px; } ``` @@ -121,19 +176,19 @@ h1 { Por ejemplo ```css -.a > :-moz-any(.b, .c) +.a> : -moz-any(.b, .c) {} ``` es más lento que: ```css -.a > .b, .a > .c +.a > .b, .a > .c {} ``` y lo siguiente es rápido: ```css -:-moz-any(.a, .d) > .b, :-moz-any(.a, .d) > .c +:-moz-any(.a, .d) > .b, :-moz-any(.a, .d) > .c {} ``` ## Especificaciones diff --git a/files/es/web/css/_colon_lang/index.md b/files/es/web/css/_colon_lang/index.md index 09823288bc4501..fb24cafbc0b5cb 100644 --- a/files/es/web/css/_colon_lang/index.md +++ b/files/es/web/css/_colon_lang/index.md @@ -10,7 +10,7 @@ La [pseudo-clase](/es/docs/Web/CSS/Pseudo-classes) **`:lang()`** de [CSS](/es/do ```css /* Selecciona cualquier

        en inglés (en) */ p:lang(en) { - quotes: '\201C' '\201D' '\2018' '\2019'; + quotes: "\201C" "\201D" "\2018" "\2019"; } ``` @@ -34,17 +34,29 @@ En este ejemplo, la pseudo-clase `:lang()` se usa para hacer coincidir los eleme ### HTML ```html -

        Esta cita en inglés tiene una cita anidada adentro.
        -
        Esta cita en francés tiene una cita anidada adentro.
        -
        Esta cita en aleman tiene una cita anidada adentro.
        +
        + Esta cita en inglés tiene una cita anidada adentro. +
        +
        + Esta cita en francés tiene una cita anidada adentro. +
        +
        + Esta cita en aleman tiene una cita anidada adentro. +
        ``` ### CSS ```css -:lang(en) > q { quotes: '\201C' '\201D' '\2018' '\2019'; } -:lang(fr) > q { quotes: '« ' ' »'; } -:lang(de) > q { quotes: '»' '«' '\2039' '\203A'; } +:lang(en) > q { + quotes: "\201C" "\201D" "\2018" "\2019"; +} +:lang(fr) > q { + quotes: "« " " »"; +} +:lang(de) > q { + quotes: "»" "«" "\2039" "\203A"; +} ``` ### Resultado diff --git a/files/es/web/css/_colon_last-child/index.md b/files/es/web/css/_colon_last-child/index.md index 8260cce1f4787d..7d8a6d4b60afaf 100644 --- a/files/es/web/css/_colon_last-child/index.md +++ b/files/es/web/css/_colon_last-child/index.md @@ -61,7 +61,8 @@ p:last-child {
        • Artículo 1
        • Artículo 2
        • -
        • Artículo 3 +
        • + Artículo 3
          • Artículo 3.1
          • Artículo 3.2
          • diff --git a/files/es/web/css/_colon_last-of-type/index.md b/files/es/web/css/_colon_last-of-type/index.md index 56f0ebf686ace5..a80b663a71f1d4 100644 --- a/files/es/web/css/_colon_last-of-type/index.md +++ b/files/es/web/css/_colon_last-of-type/index.md @@ -56,7 +56,10 @@ Este ejemplo muestra cómo los elementos anidados también pueden utilizarse. Te
            Este `div` es primero.
            ¡Este 'span' anidado es el último!
            -
            ¡Este `em` anidado es el primero, pero este `em` anidado es el último!
            +
            + ¡Este `em` anidado es el primero, pero este + `em` anidado es el último! +
            ¡Este `b` califica!
            ¡Este es el 'div' final!
            diff --git a/files/es/web/css/_colon_link/index.md b/files/es/web/css/_colon_link/index.md index 0f8186f6db3b3f..b45477fe6f2863 100644 --- a/files/es/web/css/_colon_link/index.md +++ b/files/es/web/css/_colon_link/index.md @@ -29,8 +29,8 @@ Por defecto, la mayoría de los navegadores aplican un valor especial {{cssxref( ### HTML ```html -Este es un enlace ordinario.
            -Ya has visitado este enlace.
            +Este es un enlace ordinario.
            +Ya has visitado este enlace.
            Enlace de marcador de posición (no se personalizará) ``` diff --git a/files/es/web/css/_colon_nth-child/index.md b/files/es/web/css/_colon_nth-child/index.md index 0a44498c10b40c..727bb2a78d7ef8 100644 --- a/files/es/web/css/_colon_nth-child/index.md +++ b/files/es/web/css/_colon_nth-child/index.md @@ -61,8 +61,10 @@ La pseudo-clase `nth-child` se especifica con un único argumento, que represent #### HTML ```html -

            span:nth-child(2n+1), SIN un - <em> entre los hijos.

            +

            + span:nth-child(2n+1), SIN un <em> entre los + hijos. +

            Los hijos 1, 3, 5 y 7 son seleccionados.

            Span 1! @@ -74,13 +76,17 @@ La pseudo-clase `nth-child` se especifica con un único argumento, que represent Span 7!
            -
            - -

            span:nth-child(2n+1), CON un - <em> entre los hijos.

            -

            Los hijos 1, 5 y 7 son seleccionados.
            - 3 se usa en el conteo porque es un hijo, pero - no se selecciona porque no es un <span>.

            +
            + +

            + span:nth-child(2n+1), CON un <em> entre los + hijos. +

            +

            + Los hijos 1, 5 y 7 son seleccionados.
            + 3 se usa en el conteo porque es un hijo, pero no se selecciona porque no es un + <span>. +

            Span! Span @@ -92,14 +98,19 @@ La pseudo-clase `nth-child` se especifica con un único argumento, que represent Span
            -
            - -

            span:nth-of-type(2n+1), CON un - <em> entre los hijos.

            -

            Los hijos 1, 4, 6 y 8 son seleccionados.
            - 3 no se usa en el conteo ni se selecciona porque es un <em>, - no un <span>, y nth-of-type solo selecciona - hijos de ese tipo. El <em> se omite por completo y se ignora.

            +
            + +

            + span:nth-of-type(2n+1), CON un <em> entre los + hijos. +

            +

            + Los hijos 1, 4, 6 y 8 son seleccionados.
            + 3 no se usa en el conteo ni se selecciona porque es un + <em>, no un <span>, y + nth-of-type solo selecciona hijos de ese tipo. El + <em> se omite por completo y se ignora. +

            Span! Span @@ -127,9 +138,9 @@ div em { margin-bottom: 3px; } -.first span:nth-child(2n+1), -.second span:nth-child(2n+1), -.third span:nth-of-type(2n+1) { +.first span:nth-child(2n + 1), +.second span:nth-child(2n + 1), +.third span:nth-of-type(2n + 1) { background-color: lime; } ``` diff --git a/files/es/web/css/_colon_nth-last-child/index.md b/files/es/web/css/_colon_nth-last-child/index.md index 9fb1a4df91caa6..4ad599851c0ee6 100644 --- a/files/es/web/css/_colon_nth-last-child/index.md +++ b/files/es/web/css/_colon_nth-last-child/index.md @@ -93,12 +93,12 @@ table { } /* Selecciona los últimos tres elementos */ -tr:nth-last-child(-n+3) { +tr:nth-last-child(-n + 3) { background-color: pink; } /* Toma todos los elementos a partir del penúltimo elemento */ -tr:nth-last-child(n+2) { +tr:nth-last-child(n + 2) { color: blue; } @@ -141,7 +141,7 @@ tr:nth-last-child(n) { background-color: lightgray; } -tr:nth-last-child(n+1){ +tr:nth-last-child(n + 1) { font-weight: 600; } ``` diff --git a/files/es/web/css/_colon_nth-of-type/index.md b/files/es/web/css/_colon_nth-of-type/index.md index 2ababd81e7a49a..74fb89a8bbe9cc 100644 --- a/files/es/web/css/_colon_nth-of-type/index.md +++ b/files/es/web/css/_colon_nth-of-type/index.md @@ -46,7 +46,7 @@ Ver {{Cssxref(":nth-child")}} para una explicación más detallada de su sintaxi ```css /* Párrafos impares */ -p:nth-of-type(2n+1) { +p:nth-of-type(2n + 1) { color: red; } diff --git a/files/es/web/css/_colon_only-child/index.md b/files/es/web/css/_colon_only-child/index.md index e7a7b6989031eb..c325981a475b81 100644 --- a/files/es/web/css/_colon_only-child/index.md +++ b/files/es/web/css/_colon_only-child/index.md @@ -34,9 +34,11 @@ p:only-child {
            - Yo tengo hermanos.
            - ¡Yo también!
            - Yo también tengo hermanos, pero este es un hijo único. + Yo tengo hermanos.
            + ¡Yo también!
            + Yo también tengo hermanos, pero este es un hijo único.
            ``` @@ -59,19 +61,22 @@ main :only-child { ```html
              -
            1. Primero +
            2. + Primero
                -
              • Esta lista tiene solo un elemento. +
              • Esta lista tiene solo un elemento.
            3. -
            4. Segundo +
            5. + Segundo
                -
              • Esta lista tiene tres elementos. -
              • Esta lista tiene tres elementos. -
              • Esta lista tiene tres elementos. +
              • Esta lista tiene tres elementos.
              • +
              • Esta lista tiene tres elementos.
              • +
              • Esta lista tiene tres elementos.
            6. -
                +
                  +
                ``` #### CSS diff --git a/files/es/web/css/_colon_only-of-type/index.md b/files/es/web/css/_colon_only-of-type/index.md index 6a160fd90f0559..79b2de2d8095ff 100644 --- a/files/es/web/css/_colon_only-of-type/index.md +++ b/files/es/web/css/_colon_only-of-type/index.md @@ -30,7 +30,8 @@ p:only-of-type {
                Soy un `div` #1.

                Yo soy el único `p` entre mis hermanos.

                Soy un `div` #2.
                -
                Soy un `div` #3. +
                + Soy un `div` #3. Yo soy el único hijo `i`. Soy un `em` #1. Soy un `em` #2. diff --git a/files/es/web/css/_colon_out-of-range/index.md b/files/es/web/css/_colon_out-of-range/index.md index da1e5374f85634..0ae5ca52345866 100644 --- a/files/es/web/css/_colon_out-of-range/index.md +++ b/files/es/web/css/_colon_out-of-range/index.md @@ -29,9 +29,17 @@ Esta pseudo-clase es útil para dar al usuario una indicación visual de que el ```html
                -
                  Los valores entre 1 y 10 son válidos. +
                    + Los valores entre 1 y 10 son válidos.
                  • - +
                  @@ -60,11 +68,11 @@ input:out-of-range { } input:in-range + label::after { - content: 'bien.'; + content: "bien."; } input:out-of-range + label::after { - content: '¡fuera de rango!'; + content: "¡fuera de rango!"; } ``` diff --git a/files/es/web/css/_colon_placeholder-shown/index.md b/files/es/web/css/_colon_placeholder-shown/index.md index d414e1a316cf63..3142498060786d 100644 --- a/files/es/web/css/_colon_placeholder-shown/index.md +++ b/files/es/web/css/_colon_placeholder-shown/index.md @@ -25,7 +25,7 @@ La [pseudo-clase](/es/docs/CSS/Pseudo-classes) **`:placeholder-shown`** de [CSS] #### HTML ```html - + ``` #### CSS @@ -52,7 +52,7 @@ En pantallas angostas como teléfonos inteligentes, el ancho de los cuadros de b #### HTML ```html - + ``` #### CSS diff --git a/files/es/web/css/_colon_read-only/index.md b/files/es/web/css/_colon_read-only/index.md index e7e8cda7b4e4a1..30dffc9676fe47 100644 --- a/files/es/web/css/_colon_read-only/index.md +++ b/files/es/web/css/_colon_read-only/index.md @@ -36,8 +36,8 @@ input:read-only { ### HTML ```html - - + +

                  Este es un párrafo normal.

                  Puedes editar este párrafo, ¡inténtalo!

                  ``` @@ -45,13 +45,25 @@ input:read-only { ### CSS ```css -input { min-width: 25em; } -input:-moz-read-only { background: cyan; } -input:read-only { background: cyan; } +input { + min-width: 25em; +} +input:-moz-read-only { + background: cyan; +} +input:read-only { + background: cyan; +} -p:-moz-read-only { background: lightgray; } -p:read-only { background: lightgray; } -p[contenteditable="true"] { color: blue; } +p:-moz-read-only { + background: lightgray; +} +p:read-only { + background: lightgray; +} +p[contenteditable="true"] { + color: blue; +} ``` ### Resultado diff --git a/files/es/web/css/_colon_read-write/index.md b/files/es/web/css/_colon_read-write/index.md index de745c998c1543..78529a79de88c5 100644 --- a/files/es/web/css/_colon_read-write/index.md +++ b/files/es/web/css/_colon_read-write/index.md @@ -31,8 +31,8 @@ input:read-write { ### HTML ```html - - + +

                  Este es un párrafo normal.

                  ¡Puedes editar este párrafo!

                  ``` @@ -40,13 +40,25 @@ input:read-write { ### CSS ```css -input { min-width: 25em; } -input:-moz-read-write { background: cyan; } -input:read-write { background: cyan; } +input { + min-width: 25em; +} +input:-moz-read-write { + background: cyan; +} +input:read-write { + background: cyan; +} -p:-moz-read-write { background: lightgray; } -p:read-write { background: lightgray; } -p[contenteditable="true"] { color: blue; } +p:-moz-read-write { + background: lightgray; +} +p:read-write { + background: lightgray; +} +p[contenteditable="true"] { + color: blue; +} ``` ### Resultado diff --git a/files/es/web/css/_colon_target/index.md b/files/es/web/css/_colon_target/index.md index 331ee9597d77df..ac1e48d9303f32 100644 --- a/files/es/web/css/_colon_target/index.md +++ b/files/es/web/css/_colon_target/index.md @@ -41,17 +41,24 @@ La pseudo-clase `:target` se puede usar para resaltar la parte de una página a ```html

                  Tabla de contenido

                    -
                  1. ¡Salta al primer párrafo!
                  2. -
                  3. ¡Salta al segundo párrafo!
                  4. -
                  5. Este enlace no va a ninguna parte, - porque el objetivo no existe.
                  6. +
                  7. ¡Salta al primer párrafo!
                  8. +
                  9. ¡Salta al segundo párrafo!
                  10. +
                  11. + Este enlace no va a ninguna parte, porque el objetivo no existe. +

                  Mi artículo divertido

                  -

                  Puede orientar elegir como blanco este párrafo utilizando un - fragmento de URL. ¡Haz clic en el enlace de arriba para probar!

                  -

                  Este es otro párrafo, también accesible - desde los enlaces de arriba. ¿No es encantador?

                  +

                  + Puede orientar elegir como blanco este párrafo utilizando un fragmento + de URL. ¡Haz clic en el enlace de arriba para probar! +

                  +

                  + Este es otro párrafo, también accesible desde los enlaces de arriba. + ¿No es encantador? +

                  ``` #### CSS @@ -66,7 +73,7 @@ p:target::before { font: 70% sans-serif; content: "►"; color: limegreen; - margin-right: .25em; + margin-right: 0.25em; } /* Estilo de elementos en cursiva dentro del elemento de destino */ @@ -96,17 +103,20 @@ Puede usar la pseudo-clase `:target` para crear un lightbox sin usar JavaScript. ``` @@ -169,7 +179,7 @@ Puede usar la pseudo-clase `:target` para crear un lightbox sin usar JavaScript. width: 100%; height: 100%; position: fixed; - background-color: rgba(0,0,0,.7); + background-color: rgba(0, 0, 0, 0.7); content: ""; cursor: default; } diff --git a/files/es/web/css/_colon_visited/index.md b/files/es/web/css/_colon_visited/index.md index a967c230821f45..e1008a6a1879f6 100644 --- a/files/es/web/css/_colon_visited/index.md +++ b/files/es/web/css/_colon_visited/index.md @@ -38,7 +38,7 @@ Las propiedades que de otro modo no tendrían ningún color o serían transparen ### HTML ```html -¿Ya has visitado este enlace?
                  +¿Ya has visitado este enlace?
                  Ya has visitado este enlace. ``` diff --git a/files/es/web/css/_doublecolon_-moz-color-swatch/index.md b/files/es/web/css/_doublecolon_-moz-color-swatch/index.md index 001caee48e2945..c9b9cb593636fa 100644 --- a/files/es/web/css/_doublecolon_-moz-color-swatch/index.md +++ b/files/es/web/css/_doublecolon_-moz-color-swatch/index.md @@ -24,7 +24,7 @@ El **`::-moz-color-swatch`** [pdseudo-elemento CSS](/es/docs/Web/CSS) es una [ex ### CSS ```css -input[type=color]::-moz-color-swatch { +input[type="color"]::-moz-color-swatch { border-radius: 10px; border-style: none; } diff --git a/files/es/web/css/_doublecolon_-moz-range-progress/index.md b/files/es/web/css/_doublecolon_-moz-range-progress/index.md index 6dd5593348ceb5..9b81035991e130 100644 --- a/files/es/web/css/_doublecolon_-moz-range-progress/index.md +++ b/files/es/web/css/_doublecolon_-moz-range-progress/index.md @@ -20,7 +20,7 @@ El [pseudo-elemento](/es/docs/Web/CSS/Pseudo-elements) [CSS](/es/docs/Web/CSS) * ### Contenido CSS ```css -input[type=range]::-moz-range-progress { +input[type="range"]::-moz-range-progress { background-color: green; height: 1em; } @@ -29,7 +29,7 @@ input[type=range]::-moz-range-progress { ### Contenido HTML ```html - + ``` ### Salida diff --git a/files/es/web/css/_doublecolon_-moz-range-thumb/index.md b/files/es/web/css/_doublecolon_-moz-range-thumb/index.md index fa1e212b56319b..b4dd933e825e7c 100644 --- a/files/es/web/css/_doublecolon_-moz-range-thumb/index.md +++ b/files/es/web/css/_doublecolon_-moz-range-thumb/index.md @@ -20,7 +20,7 @@ El [pseudo-elemento](/es/docs/Web/CSS/Pseudo-elements) CSS **`::-moz-range-thumb ### Contenido CSS ```css -input[type=range]::-moz-range-thumb { +input[type="range"]::-moz-range-thumb { background-color: green; } ``` @@ -28,7 +28,7 @@ input[type=range]::-moz-range-thumb { ### Contenido HTML ```html - + ``` ### Salida @@ -37,7 +37,7 @@ input[type=range]::-moz-range-thumb { Una barra de progreso que utilizara este estilo se visualizarías de la siguiente manera: -![The thumb of the \ styled in green](screen_shot_2015-12-04_at_13.30.08.png) +![The thumb of the 'input' element with 'type=right', styled in green](screen_shot_2015-12-04_at_13.30.08.png) ## Especificaciones diff --git a/files/es/web/css/_doublecolon_-moz-range-track/index.md b/files/es/web/css/_doublecolon_-moz-range-track/index.md index 411dfe7aa06b51..701553c21f1e59 100644 --- a/files/es/web/css/_doublecolon_-moz-range-track/index.md +++ b/files/es/web/css/_doublecolon_-moz-range-track/index.md @@ -20,7 +20,7 @@ El [pseudo-elemento](/es/docs/Web/CSS/Pseudo-elements) CSS **`::-moz-range-track ### Contenido CSS ```css -input[type=range]::-moz-range-track { +input[type="range"]::-moz-range-track { background-color: green; } ``` @@ -28,7 +28,7 @@ input[type=range]::-moz-range-track { ### Contenido HTML ```html - + ``` ### Salida diff --git a/files/es/web/css/_doublecolon_-webkit-inner-spin-button/index.md b/files/es/web/css/_doublecolon_-webkit-inner-spin-button/index.md index 794e929035b629..2d93bc7999d951 100644 --- a/files/es/web/css/_doublecolon_-webkit-inner-spin-button/index.md +++ b/files/es/web/css/_doublecolon_-webkit-inner-spin-button/index.md @@ -22,7 +22,7 @@ input::-webkit-inner-spin-button { ### Contenido HTML ```html - + ``` {{EmbedLiveSample("Example", 200, 30)}} diff --git a/files/es/web/css/_doublecolon_-webkit-meter-bar/index.md b/files/es/web/css/_doublecolon_-webkit-meter-bar/index.md index 8166d3bbc9156c..ea4856bfd6dfc3 100644 --- a/files/es/web/css/_doublecolon_-webkit-meter-bar/index.md +++ b/files/es/web/css/_doublecolon_-webkit-meter-bar/index.md @@ -17,13 +17,13 @@ La pseudo-clase `::-webkit-meter-bar` establece el estilo para el fondo del elem ```css meter { - /* Resetea a la apariencia por defecto */ + /* Resetea a la apariencia por defecto */ -webkit-appearance: none; -moz-appearance: none; appearance: none; } -meter::-webkit-meter-bar { +meter::-webkit-meter-bar { background: #eee; box-shadow: 0 2px 3px rgba (0, 0, 0, 0.2) inset; border-radius: 3px; diff --git a/files/es/web/css/_doublecolon_-webkit-meter-optimum-value/index.md b/files/es/web/css/_doublecolon_-webkit-meter-optimum-value/index.md index abe000d7205eda..48bc7c9c368dc4 100644 --- a/files/es/web/css/_doublecolon_-webkit-meter-optimum-value/index.md +++ b/files/es/web/css/_doublecolon_-webkit-meter-optimum-value/index.md @@ -20,9 +20,9 @@ El color por defecto es verde. ```css meter::-webkit-meter-bar { /* Necesario para eliminar la propiedad de fondo por defecto */ - background : none; - background-color : whiteSmoke; - box-shadow : 0 5px 5px -5px #333 inset; + background: none; + background-color: whiteSmoke; + box-shadow: 0 5px 5px -5px #333 inset; } meter::-webkit-meter-optimum-value { diff --git a/files/es/web/css/_doublecolon_-webkit-outer-spin-button/index.md b/files/es/web/css/_doublecolon_-webkit-outer-spin-button/index.md index f2ce3396e5d8eb..86fe6fa7bcbbc9 100644 --- a/files/es/web/css/_doublecolon_-webkit-outer-spin-button/index.md +++ b/files/es/web/css/_doublecolon_-webkit-outer-spin-button/index.md @@ -22,7 +22,7 @@ input::-webkit-outer-spin-button { ### Contenido HTML ```html - + ``` {{EmbedLiveSample("Ejemplo", 200, 30)}} diff --git a/files/es/web/css/_doublecolon_-webkit-progress-bar/index.md b/files/es/web/css/_doublecolon_-webkit-progress-bar/index.md index d170acbf8a0768..b13f045748568e 100644 --- a/files/es/web/css/_doublecolon_-webkit-progress-bar/index.md +++ b/files/es/web/css/_doublecolon_-webkit-progress-bar/index.md @@ -21,14 +21,14 @@ progress { } ::-webkit-progress-bar { - background-color: orange; + background-color: orange; } ``` ### Contenido HTML ```html - + ``` ### Resultado diff --git a/files/es/web/css/_doublecolon_-webkit-progress-inner-element/index.md b/files/es/web/css/_doublecolon_-webkit-progress-inner-element/index.md index 5ae3cee16ce1c4..ec84892786fe95 100644 --- a/files/es/web/css/_doublecolon_-webkit-progress-inner-element/index.md +++ b/files/es/web/css/_doublecolon_-webkit-progress-inner-element/index.md @@ -28,7 +28,7 @@ progress { ### Contenido HTML ```html - + ``` ### Salida diff --git a/files/es/web/css/_doublecolon_-webkit-progress-value/index.md b/files/es/web/css/_doublecolon_-webkit-progress-value/index.md index a272c930528c6c..f26b091dfd390a 100644 --- a/files/es/web/css/_doublecolon_-webkit-progress-value/index.md +++ b/files/es/web/css/_doublecolon_-webkit-progress-value/index.md @@ -28,7 +28,7 @@ progress { ### Contenido HTML ```html - + ``` ## Resultado diff --git a/files/es/web/css/_doublecolon_-webkit-scrollbar/index.md b/files/es/web/css/_doublecolon_-webkit-scrollbar/index.md index cd0874e409792a..6a21ed74ffe82c 100644 --- a/files/es/web/css/_doublecolon_-webkit-scrollbar/index.md +++ b/files/es/web/css/_doublecolon_-webkit-scrollbar/index.md @@ -14,7 +14,8 @@ El [pseudo-elemento](/es/docs/Web/CSS/Pseudo-elements) [CSS](/es/docs/Web/CSS) : ## Ejemplo ```css -.visible-scrollbar, .invisible-scrollbar { +.visible-scrollbar, +.invisible-scrollbar { display: block; width: 10em; overflow: auto; @@ -25,8 +26,12 @@ El [pseudo-elemento](/es/docs/Web/CSS/Pseudo-elements) [CSS](/es/docs/Web/CSS) : ``` ```html -
                  Thisisaveeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeerylongword
                  -
                  Thisisaveeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeerylongword
                  +
                  + Thisisaveeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeerylongword +
                  +
                  + Thisisaveeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeerylongword +
                  ``` {{EmbedLiveSample('Ejemplo')}} diff --git a/files/es/web/css/_doublecolon_after/index.md b/files/es/web/css/_doublecolon_after/index.md index c129f8b626bd93..46bfa67eef9a29 100644 --- a/files/es/web/css/_doublecolon_after/index.md +++ b/files/es/web/css/_doublecolon_after/index.md @@ -68,12 +68,12 @@ Podemos estilizar el texto o imágenes de la propiedad {{cssxref("content")}} de ```css .ribbon { - background-color: #5BC8F7; + background-color: #5bc8f7; } .ribbon::after { content: "This is a fancy orange box."; - background-color: #FFBA10; + background-color: #ffba10; border-color: black; border-style: dotted; } @@ -90,9 +90,15 @@ El siguiente ejemplo muestra el uso del [pseudo-elemento](/es/docs/Web/CSS/Pseud #### HTML ```html -

                  Here we have some - text with a few - tooltips. +

                  + Here we have some + text + with a few + tooltips.

                  ``` @@ -102,7 +108,7 @@ El siguiente ejemplo muestra el uso del [pseudo-elemento](/es/docs/Web/CSS/Pseud span[data-descr] { position: relative; text-decoration: underline; - color: #00F; + color: #00f; cursor: help; } diff --git a/files/es/web/css/_doublecolon_before/index.md b/files/es/web/css/_doublecolon_before/index.md index 3be1030241c6ac..d7e0958843244a 100644 --- a/files/es/web/css/_doublecolon_before/index.md +++ b/files/es/web/css/_doublecolon_before/index.md @@ -65,12 +65,12 @@ Podemos estilizar el texto o imágenes en la propiedad {{cssxref("content")}} de ```css .ribbon { - background-color: #5BC8F7; + background-color: #5bc8f7; } .ribbon::before { content: "Look at this orange box."; - background-color: #FFBA10; + background-color: #ffba10; border-color: black; border-style: dotted; } @@ -110,11 +110,11 @@ li { } li.done { - background: #CCFF99; + background: #ccff99; } li.done::before { - content: ''; + content: ""; position: absolute; border-color: #009933; border-style: solid; @@ -131,12 +131,16 @@ li.done::before { #### JavaScript ```js -var list = document.querySelector('ul'); -list.addEventListener('click', function(ev) { - if( ev.target.tagName === 'LI') { - ev.target.classList.toggle('done'); - } -}, false); +var list = document.querySelector("ul"); +list.addEventListener( + "click", + function (ev) { + if (ev.target.tagName === "LI") { + ev.target.classList.toggle("done"); + } + }, + false, +); ``` Aquí se está ejecutando el ejemplo de arriba. Nótese que no se están usando íconos, y la marca de selección en realidad es el pseudoelemento `::before` que ha sido estilizado en CSS. Puedes interactuar con el ejemplo para ver los cambios. @@ -156,7 +160,7 @@ Como esto es CSS y no HTML, **no** se pueden usar entidades de marcado en los va
                • Crack Eggs into bowl
                • Add Milk
                • Add Flour
                • -
                • Mix thoroughly into a smooth batter
                • +
                • Mix thoroughly into a smooth batter
                • Pour a ladleful of batter onto a hot, greased, flat frying pan
                • Fry until the top of the pancake loses its gloss
                • Flip it over and fry for a couple more minutes
                • @@ -167,16 +171,15 @@ Como esto es CSS y no HTML, **no** se pueden usar entidades de marcado en los va #### CSS ```css - li { - padding:0.5em; + padding: 0.5em; } -li[aria-current='step'] { - font-weight:bold; +li[aria-current="step"] { + font-weight: bold; } -li[aria-current='step']::after { +li[aria-current="step"]::after { content: " \21E6"; /* Hexadecimal for Unicode Leftwards white arrow*/ display: inline; } diff --git a/files/es/web/css/_doublecolon_file-selector-button/index.md b/files/es/web/css/_doublecolon_file-selector-button/index.md index 3682e742043919..c52211034d3ed9 100644 --- a/files/es/web/css/_doublecolon_file-selector-button/index.md +++ b/files/es/web/css/_doublecolon_file-selector-button/index.md @@ -31,7 +31,7 @@ selector::file-selector-button ```html - + ``` @@ -46,15 +46,15 @@ form { ``` ```css -input[type=file]::file-selector-button { +input[type="file"]::file-selector-button { border: 2px solid #6c5ce7; - padding: .2em .4em; - border-radius: .2em; + padding: 0.2em 0.4em; + border-radius: 0.2em; background-color: #a29bfe; transition: 1s; } -input[type=file]::file-selector-button:hover { +input[type="file"]::file-selector-button:hover { background-color: #81ecec; border: 2px solid #00cec9; } @@ -75,7 +75,7 @@ Tenga en cuenta que `::file-selector-button` es un elemento completo y, como tal ```html
                  - +
                  ``` @@ -90,40 +90,40 @@ form { ``` ```css -input[type=file]::-ms-browse { +input[type="file"]::-ms-browse { border: 2px solid #6c5ce7; - padding: .2em .4em; - border-radius: .2em; + padding: 0.2em 0.4em; + border-radius: 0.2em; background-color: #a29bfe; } -input[type=file]::-webkit-file-upload-button { +input[type="file"]::-webkit-file-upload-button { border: 2px solid #6c5ce7; - padding: .2em .4em; - border-radius: .2em; + padding: 0.2em 0.4em; + border-radius: 0.2em; background-color: #a29bfe; transition: 1s; } -input[type=file]::file-selector-button { +input[type="file"]::file-selector-button { border: 2px solid #6c5ce7; - padding: .2em .4em; - border-radius: .2em; + padding: 0.2em 0.4em; + border-radius: 0.2em; background-color: #a29bfe; transition: 1s; } -input[type=file]::-ms-browse:hover { +input[type="file"]::-ms-browse:hover { background-color: #81ecec; border: 2px solid #00cec9; } -input[type=file]::-webkit-file-upload-button:hover { +input[type="file"]::-webkit-file-upload-button:hover { background-color: #81ecec; border: 2px solid #00cec9; } -input[type=file]::file-selector-button:hover { +input[type="file"]::file-selector-button:hover { background-color: #81ecec; border: 2px solid #00cec9; } diff --git a/files/es/web/css/_doublecolon_first-letter/index.md b/files/es/web/css/_doublecolon_first-letter/index.md index 828809c8ece250..a38456941468c2 100644 --- a/files/es/web/css/_doublecolon_first-letter/index.md +++ b/files/es/web/css/_doublecolon_first-letter/index.md @@ -45,13 +45,21 @@ Hace que la primera letra de cada párrafo sea roja y grande. ### HTML ```html -

                  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt - ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo - dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est.

                  -

                  Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat.

                  -

                  Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut - aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit - esse molestie consequat.

                  +

                  + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita + kasd gubergren, no sea takimata sanctus est. +

                  +

                  + Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie + consequat. +

                  +

                  + Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit + lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure + dolor in hendrerit in vulputate velit esse molestie consequat. +

                  -El comienzo es un signo de puntuación especial.

                  _El comienzo es un signo de puntuación especial.

                  "El comienzo es un signo de puntuación especial.

                  diff --git a/files/es/web/css/_doublecolon_first-line/index.md b/files/es/web/css/_doublecolon_first-line/index.md index e559509fd337d3..c4ee21dcf7ffb3 100644 --- a/files/es/web/css/_doublecolon_first-line/index.md +++ b/files/es/web/css/_doublecolon_first-line/index.md @@ -35,12 +35,15 @@ Sólo unas pocas propiedades de CSS se pueden usar con el pseudoelemento `::firs ### HTML ```html -

                  Los estilos sólo se aplicarán en la primera línea de este párrafo. -Posteriormente, todo el texto tendrá el estilo normal. -¿Ves?

                  - -La primera línea de este elemento no recibe ningún estilo -especial, porque no es un elemento de bloque. +

                  + Los estilos sólo se aplicarán en la primera línea de este párrafo. + Posteriormente, todo el texto tendrá el estilo normal. ¿Ves? +

                  + +La primera línea de este elemento no recibe ningún estilo especial, porque no + es un elemento de bloque. ``` ### CSS @@ -50,7 +53,6 @@ especial, porque no es un elemento de bloque. color: blue; text-transform: uppercase; - /* ADVERTENCIA: NO USES ESTOS*/ /* Muchas propiedades son inválidas en pseudoelementos ::first-line */ margin-left: 20px; diff --git a/files/es/web/css/_doublecolon_placeholder/index.md b/files/es/web/css/_doublecolon_placeholder/index.md index 390f82a7ae83ec..754217ea964f95 100644 --- a/files/es/web/css/_doublecolon_placeholder/index.md +++ b/files/es/web/css/_doublecolon_placeholder/index.md @@ -29,7 +29,7 @@ Solo el subconjuto de las propiedades CSS que aplican al pseudo-elemento {{cssxr #### HTML ```html - + ``` #### CSS @@ -51,7 +51,7 @@ input::placeholder { #### HTML ```html - + ``` #### CSS @@ -93,7 +93,11 @@ Con esta implementación, el contenido de la sugerencia, esta disponible incluso ```html Example: jane@sample.com - + ``` - [Los textos provisionales en los campos del formulario son dañinos (Placeholders in Form Fields Are Harmful) — Nielsen Norman Group](https://www.nngroup.com/articles/form-design-placeholders/) diff --git a/files/es/web/css/_doublecolon_selection/index.md b/files/es/web/css/_doublecolon_selection/index.md index ceceb78b1a38c6..d0f96b26245ae3 100644 --- a/files/es/web/css/_doublecolon_selection/index.md +++ b/files/es/web/css/_doublecolon_selection/index.md @@ -25,12 +25,24 @@ Gecko es la única máquina que requiere el prefijo. Devido a el factor que las ```css /* dibuja en cualquier texto seleccionado el color amarillo sobre un fondo rojo */ -::-moz-selection { color: gold; background: red; } -::selection { color: gold; background: red; } +::-moz-selection { + color: gold; + background: red; +} +::selection { + color: gold; + background: red; +} /* dibuja el texto seleccionado en un parrafo de color blanco y negro*/ -p::-moz-selection { color: white; background: black; } -p::selection { color: white; background: black; } +p::-moz-selection { + color: white; + background: black; +} +p::selection { + color: white; + background: black; +} ``` ## Especificaciones diff --git a/files/es/web/css/adjacent_sibling_combinator/index.md b/files/es/web/css/adjacent_sibling_combinator/index.md index c74976ce65ffd2..f129dd355b7259 100644 --- a/files/es/web/css/adjacent_sibling_combinator/index.md +++ b/files/es/web/css/adjacent_sibling_combinator/index.md @@ -45,8 +45,8 @@ img + span.caption { que coincidiría con los siguientes elementos {{HTMLElement("span")}} : ```html -The first photo -The second photo +The first photo +The second photo ``` ## Especificaciones diff --git a/files/es/web/css/all/index.md b/files/es/web/css/all/index.md index 2b84b080c39ae4..862951e26382da 100644 --- a/files/es/web/css/all/index.md +++ b/files/es/web/css/all/index.md @@ -48,7 +48,10 @@ all: revert; **HTML** ```html -
                  Lorem ipsum dolor sit amet, consectetur adipiscing elit.
                  Phasellus eget velit sagittis. +
                  + Lorem ipsum dolor sit amet, consectetur adipiscing elit. +
                  +Phasellus eget velit sagittis. ``` **CSS** @@ -56,7 +59,7 @@ all: revert; ```css html { font-size: small; - background-color: #F0F0F0; + background-color: #f0f0f0; color: blue; } @@ -71,12 +74,22 @@ Su resultado es: #### Sin propiedad `all` ```html hidden -
                  Lorem ipsum dolor sit amet, consectetur adipiscing elit.
                  Phasellus eget velit sagittis. +
                  + Lorem ipsum dolor sit amet, consectetur adipiscing elit. +
                  +Phasellus eget velit sagittis. ``` ```css hidden -html { font-size: small; background-color: #F0F0F0; color:blue; } -blockquote { background-color: skyblue; color: red; } +html { + font-size: small; + background-color: #f0f0f0; + color: blue; +} +blockquote { + background-color: skyblue; + color: red; +} ``` {{EmbedLiveSample("ex0", "200", "125")}} @@ -86,13 +99,25 @@ El elemento {{HTMLElement("blockquote")}} usa los estilos predeterminados del na #### `all:unset` ```html hidden -
                  Lorem ipsum dolor sit amet, consectetur adipiscing elit.
                  Phasellus eget velit sagittis. +
                  + Lorem ipsum dolor sit amet, consectetur adipiscing elit. +
                  +Phasellus eget velit sagittis. ``` ```css hidden -html { font-size: small; background-color: #F0F0F0; color:blue; } -blockquote { background-color: skyblue; color: red; } -blockquote { all: unset; } +html { + font-size: small; + background-color: #f0f0f0; + color: blue; +} +blockquote { + background-color: skyblue; + color: red; +} +blockquote { + all: unset; +} ``` {{EmbedLiveSample("ex1", "200", "125")}} @@ -102,13 +127,25 @@ El elemento {{HTMLElement("blockquote")}} no usa los estilos predeterminados del #### `all:initial` ```html hidden -
                  Lorem ipsum dolor sit amet, consectetur adipiscing elit.
                  Phasellus eget velit sagittis. +
                  + Lorem ipsum dolor sit amet, consectetur adipiscing elit. +
                  +Phasellus eget velit sagittis. ``` ```css hidden -html { font-size: small; background-color: #F0F0F0; color:blue; } -blockquote { background-color: skyblue; color: red; } -blockquote { all: initial; } +html { + font-size: small; + background-color: #f0f0f0; + color: blue; +} +blockquote { + background-color: skyblue; + color: red; +} +blockquote { + all: initial; +} ``` {{EmbedLiveSample("ex2", "200", "125")}} @@ -118,13 +155,25 @@ El elemento {{HTMLElement("blockquote")}} no usa los estilos predeterminados del #### `all:inherit` ```html hidden -
                  Lorem ipsum dolor sit amet, consectetur adipiscing elit.
                  Phasellus eget velit sagittis. +
                  + Lorem ipsum dolor sit amet, consectetur adipiscing elit. +
                  +Phasellus eget velit sagittis. ``` ```css hidden -html { font-size: small; background-color: #F0F0F0; color:blue; } -blockquote { background-color: skyblue; color: red; } -blockquote { all: inherit; } +html { + font-size: small; + background-color: #f0f0f0; + color: blue; +} +blockquote { + background-color: skyblue; + color: red; +} +blockquote { + all: inherit; +} ``` {{EmbedLiveSample("ex3", "200", "125")}} diff --git a/files/es/web/css/angle/index.md b/files/es/web/css/angle/index.md index 30ed32e4ceb8c9..1bcdcc2f761c53 100644 --- a/files/es/web/css/angle/index.md +++ b/files/es/web/css/angle/index.md @@ -22,10 +22,10 @@ Aun cuando todas las unidades representan lo mismo para el valor `0`, la unidad ## Ejemplos -| ![Angle90.png](angle90.png) | Ángulo recto: `90deg = 100grad = 0.25turn ≈ 1.5708rad` | -| ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| ![Angle180.png](angle180.png) | Ángulo llano: `180deg = 200grad = 0.5turn ≈ 3.1416rad` | -| ![AngleMinus90.png](angleminus90.png) | Ángulo recto (hacia la izquierda): `-90deg = -100grad = -0.25turn ≈ -1.5708rad` | +| ![Angle90.png](angle90.png) | Ángulo recto: `90deg = 100grad = 0.25turn ≈ 1.5708rad` | +| ------------------------------------- | ---------------------------------------------------------------------------------------------- | +| ![Angle180.png](angle180.png) | Ángulo llano: `180deg = 200grad = 0.5turn ≈ 3.1416rad` | +| ![AngleMinus90.png](angleminus90.png) | Ángulo recto (hacia la izquierda): `-90deg = -100grad = -0.25turn ≈ -1.5708rad` | | ![Angle0.png](angle0.png) | Ángulo nulo: `0deg = 0grad = 0turn = 0rad`

                  Nota: `0` no es un valor de ángulo válido. | ## Especificaciones diff --git a/files/es/web/css/animation-fill-mode/index.md b/files/es/web/css/animation-fill-mode/index.md index 67bfe5dbbe6889..30e0c7c6b796da 100644 --- a/files/es/web/css/animation-fill-mode/index.md +++ b/files/es/web/css/animation-fill-mode/index.md @@ -40,18 +40,18 @@ animation-fill-mode: unset; - : El objeto sobre el que se aplica la animación quedará con los valores y estilos que le aplique el último keyframe de la ejecución de la animación. El último valor dependerá del valor de {{ cssxref("animation-direction") }} y {{ cssxref("animation-iteration-count") }}: | `animation-direction` | `animation-iteration-count` | ultimo keyframe encontrado | | --------------------- | --------------------------- | -------------------------- | - | `normal` | even o odd | `100%` or `to` | - | `reverse` | even o odd | `0%` or `from` | - | `alternate` | even | `0%` or `from` | - | `alternate` | odd | `100%` or `to` | - | `alternate-reverse` | even | `100%` or `to` | - | `alternate-reverse` | odd | `0%` or `from` | + | `normal` | even o odd | `100%` or `to` | + | `reverse` | even o odd | `0%` or `from` | + | `alternate` | even | `0%` or `from` | + | `alternate` | odd | `100%` or `to` | + | `alternate-reverse` | even | `100%` or `to` | + | `alternate-reverse` | odd | `0%` or `from` | - `backwards` - : La animación aplicará los valores definidos en el primer [keyframe](/es/docs/CSS/@keyframes) tan pronto como se aplique al objeto, y los retendrá durante el tiempo de {{ cssxref("animation-delay") }}. El primer keyframe dependerá del valor de {{ cssxref("animation-direction") }}: - | `animation-direction` | primer keyframe | + | `animation-direction` | primer keyframe | | ------------------------------- | --------------- | - | `normal` o `alternate` | `0%` or `from` | - | `reverse` o `alternate-reverse` | `100%` or `to` | + | `normal` o `alternate` | `0%` or `from` | + | `reverse` o `alternate-reverse` | `100%` or `to` | - `both` - : La animación seguirá las reglas de las opciones forwards y backwards, extendiendo las propiedades de la animación en ambas direcciones. @@ -78,26 +78,34 @@ CSS font-family: sans-serif; } @keyframes grow { - 0% { font-size: 0 } - 100% { font-size: 40px } + 0% { + font-size: 0; + } + 100% { + font-size: 40px; + } } @-webkit-keyframes grow { - 0% { font-size: 0 } - 100% { font-size: 40px } + 0% { + font-size: 0; + } + 100% { + font-size: 40px; + } } .demo:hover .grows { - animation-name: grow; - animation-duration: 3s; - -webkit-animation-name: grow; - -webkit-animation-duration: 3s; + animation-name: grow; + animation-duration: 3s; + -webkit-animation-name: grow; + -webkit-animation-duration: 3s; } .demo:hover .growsandstays { - animation-name: grow; - animation-duration: 3s; - animation-fill-mode: forwards; - -webkit-animation-name: grow; - -webkit-animation-duration: 3s; - -webkit-animation-fill-mode: forwards; + animation-name: grow; + animation-duration: 3s; + animation-fill-mode: forwards; + -webkit-animation-name: grow; + -webkit-animation-duration: 3s; + -webkit-animation-fill-mode: forwards; } ``` diff --git a/files/es/web/css/animation-timing-function/index.md b/files/es/web/css/animation-timing-function/index.md index b7f409192e7106..4dd4b6b0c745b4 100644 --- a/files/es/web/css/animation-timing-function/index.md +++ b/files/es/web/css/animation-timing-function/index.md @@ -30,11 +30,11 @@ animation-timing-function: step-start; animation-timing-function: step-end; /* Function values */ -animation-timing-function: cubic-bezier(0.1, 0.7, 1.0, 0.1); +animation-timing-function: cubic-bezier(0.1, 0.7, 1, 0.1); animation-timing-function: steps(4, end); /* Multiple animations */ -animation-timing-function: ease, step-start, cubic-bezier(0.1, 0.7, 1.0, 0.1); +animation-timing-function: ease, step-start, cubic-bezier(0.1, 0.7, 1, 0.1); /* Global values */ animation-timing-function: inherited; diff --git a/files/es/web/css/attr/index.md b/files/es/web/css/attr/index.md index 71c903644e8755..f42f61970debc3 100644 --- a/files/es/web/css/attr/index.md +++ b/files/es/web/css/attr/index.md @@ -23,24 +23,26 @@ Sintaxis formal: attr( attribute-name ? [, ]? ) - `attribute-name` - : Es el nombre de un atributo en el elemento HTML al que se hace referencia en el CSS. Soporte para otros atributos a parte de {{ cssxref("content") }} es {{ experimental_inline() }}. - `` + - : Es una palabra clave que representa o el tipo del valor del atributo, o su unidad, pues en HTML algunos atributos tienen unidades implícitas. Si el uso de `` como valor del atributo especificado no es válido, la expresión `attr()` también será no válida. Si se omite, el valor por defecto es string. La lista de valores válidos son: - | Keyword | Associated type | Comment | Default value | - |------------------------------------------------------------------------------------------------------------------|-----------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------| - | `string` | {{cssxref("<string>")}} | El valor del atributo es tratado como una {{cssxref("<string>")}} de CSS. No se reparsea, y en este caso particular los caracteres son usados tal y como son en vez de convertirlos en diferentes caracteres de CSS. | Cadena vacía | - | `color` {{ experimental_inline() }} | {{cssxref("<color>")}} | El valor del atributo es tratado como hash (3- or 6-value hash) o a una palabra clave. Debe ser un valor válido de una {{cssxref("<string>")}} de CSS. Los espacios iniciales y finales son eliminados. | `currentColor` | - | `url` {{ experimental_inline() }} | {{ cssxref("<uri>") }} | El valor del atributo es tratado como una cadena que se usa en una función `url()` de CSS. URLs relativas se resuelven con respecto al documento original, no respecto a la hoja de estilos. Los espacios iniciales y finales son eliminados. | La url `about:invalid` que apunta a un documento inexistente con una condición de error genérico. | - | `integer` {{ experimental_inline() }} | {{cssxref("<integer>")}} | El valor del atributo es tratado como un {{cssxref("<integer>")}} CSS. Si no es válido, si no es un entero o está fuera del rango aceptado por la propiedad CSS, se usa el valor por defecto. Los espacios iniciales y finales son eliminados. | `0`, or, if `0` is not a valid value for the property, the property's minimum value. | - | `number` {{ experimental_inline() }} | {{cssxref("<number>")}} | El valor del atributo es tratado como {{cssxref("<number>")}}. Si no es válido, si no es un número o está fuera del rango aceptado por la propiedad CSS, se usa el valor por defecto. Los espacios iniciales y finales son eliminados. | `0`, or, if `0` is not a valid value for the property, the property's minimum value. | - | `length` {{ experimental_inline() }} | {{cssxref("<length>")}} | The attribute value is parsed as a CSS {{cssxref("<length>")}} dimension, that is including the unit (e.g. `12.5em`). If it is not valid, that is not a length or out of the range accepted by the CSS property, the default value is used. If the given unit is a relative length, `attr()` computes it to an absolute length. Leading and trailing spaces are stripped. | `0`, or, if `0` is not a valid value for the property, the property's minimum value. | - | `em`, `ex`, `px`, `rem`, `vw`, `vh`, `vmin`, `vmax`, `mm`, `cm`, `in`, `pt`, or `pc` {{ experimental_inline() }} | {{cssxref("<length>")}} | The attribute value is parsed as a CSS {{cssxref("<number>")}}, that is without the unit (e.g. `12.5`), and interpreted as a {{cssxref("<length>")}} with the specified unit. If it is not valid, that is not a number or out of the range accepted by the CSS property, the default value is used. If the given unit is a relative length, `attr()` computes it to an absolute length. Leading and trailing spaces are stripped. | `0`, or, if `0` is not a valid value for the property, the property's minimum value. | - | `angle` {{ experimental_inline() }} | {{ cssxref("<angle>") }} | The attribute value is parsed as a CSS {{ cssxref("<angle>") }} dimension, that is including the unit (e.g. `30.5deg`). If it is not valid, that is not an angle or out of the range accepted by the CSS property, the default value is used. Leading and trailing spaces are stripped. | `0deg`, or, if `0deg` is not a valid value for the property, the property's minimum value. | - | `deg`, `grad`, `rad` {{ experimental_inline() }} | {{ cssxref("<angle>") }} | The attribute value is parsed as a CSS {{cssxref("<number>")}}, that is without the unit (e.g. `12.5`), and interpreted as an {{ cssxref("<angle>") }} with the specified unit. If it is not valid, that is not a number or out of the range accepted by the CSS property, the default value is used. Leading and trailing spaces are stripped. | `0deg`, or, if `0deg` is not a valid value for the property, the property's minimum value. | - | `time` {{ experimental_inline() }} | {{cssxref("<time>")}} | The attribute value is parsed as a CSS {{cssxref("<time>")}} dimension, that is including the unit (e.g. `30.5ms`). If it is not valid, that is not a time or out of the range accepted by the CSS property, the default value is used. Leading and trailing spaces are stripped. | `0s`, or, if `0s` is not a valid value for the property, the property's minimum value. | - | `s`, `ms` {{ experimental_inline() }} | {{cssxref("<time>")}} | The attribute value is parsed as a CSS {{cssxref("<number>")}}, that is without the unit (e.g. `12.5`), and interpreted as an{{cssxref("<time>")}} with the specified unit. If it is not valid, that is not a number or out of the range accepted by the CSS property, the default value is used. Leading and trailing spaces are stripped. | `0s`, or, if `0s` is not a valid value for the property, the property's minimum value. | - | `frequency` {{ experimental_inline() }} | {{cssxref("<frequency>")}} | The attribute value is parsed as a CSS {{cssxref("<frequency>")}} dimension, that is including the unit (e.g. `30.5kHz`). If it is not valid, that is not a frequency or out of the range accepted by the CSS property, the default value is used. | `0Hz`, or, if `0Hz` is not a valid value for the property, the property's minimum value. | - | `Hz`, `kHz` {{ experimental_inline() }} | {{cssxref("<frequency>")}} | The attribute value is parsed as a CSS {{cssxref("<number>")}}, that is without the unit (e.g. `12.5`), and interpreted as a {{cssxref("<frequency>")}} with the specified unit. If it is not valid, that is not a number or out of the range accepted by the CSS property, the default value is used. Leading and trailing spaces are stripped. | `0Hz`, or, if `0Hz` is not a valid value for the property, the property's minimum value. | - | `%` {{ experimental_inline() }} | {{cssxref("<percentage>")}} | The attribute value is parsed as a CSS {{cssxref("<number>")}}, that is without the unit (e.g. `12.5`), and interpreted as a {{cssxref("<percentage>")}}. If it is not valid, that is not a number or out of the range accepted by the CSS property, the default value is used. If the given value is used as a length, `attr()` computes it to an absolute length. Leading and trailing spaces are stripped. | `0%`, or, if `0%` is not a valid value for the property, the property's minimum value. | + | Keyword | Associated type | Comment | Default value | + | ---------------------------------------------------------------------------------------------------------------- | --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | + | `string` | {{cssxref("<string>")}} | El valor del atributo es tratado como una {{cssxref("<string>")}} de CSS. No se reparsea, y en este caso particular los caracteres son usados tal y como son en vez de convertirlos en diferentes caracteres de CSS. | Cadena vacía | + | `color` {{ experimental_inline() }} | {{cssxref("<color>")}} | El valor del atributo es tratado como hash (3- or 6-value hash) o a una palabra clave. Debe ser un valor válido de una {{cssxref("<string>")}} de CSS. Los espacios iniciales y finales son eliminados. | `currentColor` | + | `url` {{ experimental_inline() }} | {{ cssxref("<uri>") }} | El valor del atributo es tratado como una cadena que se usa en una función `url()` de CSS. URLs relativas se resuelven con respecto al documento original, no respecto a la hoja de estilos. Los espacios iniciales y finales son eliminados. | La url `about:invalid` que apunta a un documento inexistente con una condición de error genérico. | + | `integer` {{ experimental_inline() }} | {{cssxref("<integer>")}} | El valor del atributo es tratado como un {{cssxref("<integer>")}} CSS. Si no es válido, si no es un entero o está fuera del rango aceptado por la propiedad CSS, se usa el valor por defecto. Los espacios iniciales y finales son eliminados. | `0`, or, if `0` is not a valid value for the property, the property's minimum value. | + | `number` {{ experimental_inline() }} | {{cssxref("<number>")}} | El valor del atributo es tratado como {{cssxref("<number>")}}. Si no es válido, si no es un número o está fuera del rango aceptado por la propiedad CSS, se usa el valor por defecto. Los espacios iniciales y finales son eliminados. | `0`, or, if `0` is not a valid value for the property, the property's minimum value. | + | `length` {{ experimental_inline() }} | {{cssxref("<length>")}} | The attribute value is parsed as a CSS {{cssxref("<length>")}} dimension, that is including the unit (e.g. `12.5em`). If it is not valid, that is not a length or out of the range accepted by the CSS property, the default value is used. If the given unit is a relative length, `attr()` computes it to an absolute length. Leading and trailing spaces are stripped. | `0`, or, if `0` is not a valid value for the property, the property's minimum value. | + | `em`, `ex`, `px`, `rem`, `vw`, `vh`, `vmin`, `vmax`, `mm`, `cm`, `in`, `pt`, or `pc` {{ experimental_inline() }} | {{cssxref("<length>")}} | The attribute value is parsed as a CSS {{cssxref("<number>")}}, that is without the unit (e.g. `12.5`), and interpreted as a {{cssxref("<length>")}} with the specified unit. If it is not valid, that is not a number or out of the range accepted by the CSS property, the default value is used. If the given unit is a relative length, `attr()` computes it to an absolute length. Leading and trailing spaces are stripped. | `0`, or, if `0` is not a valid value for the property, the property's minimum value. | + | `angle` {{ experimental_inline() }} | {{ cssxref("<angle>") }} | The attribute value is parsed as a CSS {{ cssxref("<angle>") }} dimension, that is including the unit (e.g. `30.5deg`). If it is not valid, that is not an angle or out of the range accepted by the CSS property, the default value is used. Leading and trailing spaces are stripped. | `0deg`, or, if `0deg` is not a valid value for the property, the property's minimum value. | + | `deg`, `grad`, `rad` {{ experimental_inline() }} | {{ cssxref("<angle>") }} | The attribute value is parsed as a CSS {{cssxref("<number>")}}, that is without the unit (e.g. `12.5`), and interpreted as an {{ cssxref("<angle>") }} with the specified unit. If it is not valid, that is not a number or out of the range accepted by the CSS property, the default value is used. Leading and trailing spaces are stripped. | `0deg`, or, if `0deg` is not a valid value for the property, the property's minimum value. | + | `time` {{ experimental_inline() }} | {{cssxref("<time>")}} | The attribute value is parsed as a CSS {{cssxref("<time>")}} dimension, that is including the unit (e.g. `30.5ms`). If it is not valid, that is not a time or out of the range accepted by the CSS property, the default value is used. Leading and trailing spaces are stripped. | `0s`, or, if `0s` is not a valid value for the property, the property's minimum value. | + | `s`, `ms` {{ experimental_inline() }} | {{cssxref("<time>")}} | The attribute value is parsed as a CSS {{cssxref("<number>")}}, that is without the unit (e.g. `12.5`), and interpreted as an{{cssxref("<time>")}} with the specified unit. If it is not valid, that is not a number or out of the range accepted by the CSS property, the default value is used. Leading and trailing spaces are stripped. | `0s`, or, if `0s` is not a valid value for the property, the property's minimum value. | + | `frequency` {{ experimental_inline() }} | {{cssxref("<frequency>")}} | The attribute value is parsed as a CSS {{cssxref("<frequency>")}} dimension, that is including the unit (e.g. `30.5kHz`). If it is not valid, that is not a frequency or out of the range accepted by the CSS property, the default value is used. | `0Hz`, or, if `0Hz` is not a valid value for the property, the property's minimum value. | + | `Hz`, `kHz` {{ experimental_inline() }} | {{cssxref("<frequency>")}} | The attribute value is parsed as a CSS {{cssxref("<number>")}}, that is without the unit (e.g. `12.5`), and interpreted as a {{cssxref("<frequency>")}} with the specified unit. If it is not valid, that is not a number or out of the range accepted by the CSS property, the default value is used. Leading and trailing spaces are stripped. | `0Hz`, or, if `0Hz` is not a valid value for the property, the property's minimum value. | + | `%` {{ experimental_inline() }} | {{cssxref("<percentage>")}} | The attribute value is parsed as a CSS {{cssxref("<number>")}}, that is without the unit (e.g. `12.5`), and interpreted as a {{cssxref("<percentage>")}}. If it is not valid, that is not a number or out of the range accepted by the CSS property, the default value is used. If the given value is used as a length, `attr()` computes it to an absolute length. Leading and trailing spaces are stripped. | `0%`, or, if `0%` is not a valid value for the property, the property's minimum value. | + - `` - : The value to be used if the associated attribute is missing or contains an invalid value. The fallback value must be valid where `attr()` is used, even if it is not used, and must not contain another `attr()` expression. If `attr()` is not the sole component value of a property, its `` value must be of the type defined by ``. If not set, CSS will use the default value defined for each ``. @@ -48,7 +50,7 @@ Sintaxis formal: attr( attribute-name ? [, ]? ) ```css p::before { - content:attr(data-foo) " "; + content: attr(data-foo) " "; } ``` diff --git a/files/es/web/css/attribute_selectors/index.md b/files/es/web/css/attribute_selectors/index.md index b3fce92c905d79..b6be54ccc00851 100644 --- a/files/es/web/css/attribute_selectors/index.md +++ b/files/es/web/css/attribute_selectors/index.md @@ -15,7 +15,8 @@ a[title] { } /* Elementos con un href que coincida con "https://example.org" */ -a[href="https://example.org"] { +a[href="https://example.org"] +{ color: green; } diff --git a/files/es/web/css/backface-visibility/index.md b/files/es/web/css/backface-visibility/index.md index a01227460ccbb1..568e9b76e2d1de 100644 --- a/files/es/web/css/backface-visibility/index.md +++ b/files/es/web/css/backface-visibility/index.md @@ -58,7 +58,10 @@ Esta propiedad puede tener dos valores diferentes (y exclusivos):
                  6
                -

                All the faces are transparent and the three back faces are visible through the front ones.

                +

                + All the faces are transparent and the three back faces are visible + through the front ones. +

                @@ -71,7 +74,9 @@ Esta propiedad puede tener dos valores diferentes (y exclusivos):
                6
    -

    No face is opaque, but the three back faces are always hidden now.

    +

    + No face is opaque, but the three back faces are always hidden now. +

    @@ -153,7 +158,7 @@ Esta propiedad puede tener dos valores diferentes (y exclusivos): .top { background: rgba(196, 196, 0, 0.7); transform: rotateX(90deg) translateZ(50px); - -webkit-transform: rotateX(90deg) translateZ(50px) + -webkit-transform: rotateX(90deg) translateZ(50px); } .bottom { @@ -163,8 +168,10 @@ Esta propiedad puede tener dos valores diferentes (y exclusivos): } /* Make the table a little nicer */ -th, p, td { - background-color: #EEEEEE; +th, +p, +td { + background-color: #eeeeee; margin: 0px; padding: 6px; font-family: sans-serif; diff --git a/files/es/web/css/background-attachment/index.md b/files/es/web/css/background-attachment/index.md index 46a9bfc1c363e6..b7919c2365c264 100644 --- a/files/es/web/css/background-attachment/index.md +++ b/files/es/web/css/background-attachment/index.md @@ -46,10 +46,9 @@ p { ```html

    - There were doors all round the hall, but they were all locked; and when - Alice had been all the way down one side and up the other, trying every - door, she walked sadly down the middle, wondering how she was ever to - get out again. + There were doors all round the hall, but they were all locked; and when Alice + had been all the way down one side and up the other, trying every door, she + walked sadly down the middle, wondering how she was ever to get out again.

    ``` @@ -75,19 +74,17 @@ p { ```html

    - There were doors all round the hall, but they were all locked; and when - Alice had been all the way down one side and up the other, trying every - door, she walked sadly down the middle, wondering how she was ever to - get out again. - - Suddenly she came upon a little three-legged table, all made of solid - glass; there was nothing on it except a tiny golden key, and Alice's - first thought was that it might belong to one of the doors of the hall; - but, alas! either the locks were too large, or the key was too small, - but at any rate it would not open any of them. However, on the second - time round, she came upon a low curtain she had not noticed before, and - behind it was a little door about fifteen inches high: she tried the - little golden key in the lock, and to her great delight it fitted! + There were doors all round the hall, but they were all locked; and when Alice + had been all the way down one side and up the other, trying every door, she + walked sadly down the middle, wondering how she was ever to get out again. + Suddenly she came upon a little three-legged table, all made of solid glass; + there was nothing on it except a tiny golden key, and Alice's first thought + was that it might belong to one of the doors of the hall; but, alas! either + the locks were too large, or the key was too small, but at any rate it would + not open any of them. However, on the second time round, she came upon a low + curtain she had not noticed before, and behind it was a little door about + fifteen inches high: she tried the little golden key in the lock, and to her + great delight it fitted!

    ``` diff --git a/files/es/web/css/background-blend-mode/index.md b/files/es/web/css/background-blend-mode/index.md index 757de27813809d..dfca613fa32e28 100644 --- a/files/es/web/css/background-blend-mode/index.md +++ b/files/es/web/css/background-blend-mode/index.md @@ -59,18 +59,19 @@ background-blend-mode: unset; ```css #div { - width: 300px; - height: 300px; - background: url('br.png'),url('tr.png'); - background-blend-mode: screen; + width: 300px; + height: 300px; + background: url("br.png"), url("tr.png"); + background-blend-mode: screen; } ``` ```js -document.getElementById("select").onchange = function(event) { - document.getElementById("div").style.backgroundBlendMode = document.getElementById("select").selectedOptions[0].innerHTML; -} -console.log(document.getElementById('div')); +document.getElementById("select").onchange = function (event) { + document.getElementById("div").style.backgroundBlendMode = + document.getElementById("select").selectedOptions[0].innerHTML; +}; +console.log(document.getElementById("div")); ``` {{ EmbedLiveSample('Examples', "330", "330") }} diff --git a/files/es/web/css/background-clip/index.md b/files/es/web/css/background-clip/index.md index 496872fafe96b9..03bb0e90c66ec7 100644 --- a/files/es/web/css/background-clip/index.md +++ b/files/es/web/css/background-clip/index.md @@ -42,23 +42,33 @@ background-clip: inherit ```html

    The yellow background extends behind the border.

    -

    The yellow background extends to the inside edge of the border.

    -

    The yellow background extends only to the edge of the content box.

    +

    + The yellow background extends to the inside edge of the border. +

    +

    + The yellow background extends only to the edge of the content box. +

    ``` ### Contenido CSS ```css p { - border: 5px navy; - border-style: dotted double; - margin: 2em; - padding: 2em; - background: #F8D575; + border: 5px navy; + border-style: dotted double; + margin: 2em; + padding: 2em; + background: #f8d575; +} +.border-box { + background-clip: border-box; +} +.padding-box { + background-clip: padding-box; +} +.content-box { + background-clip: content-box; } -.border-box { background-clip: border-box; } -.padding-box { background-clip: padding-box; } -.content-box { background-clip: content-box; } ``` #### Salida diff --git a/files/es/web/css/background-color/index.md b/files/es/web/css/background-color/index.md index b69e225fe06031..2cb88701c1f546 100644 --- a/files/es/web/css/background-color/index.md +++ b/files/es/web/css/background-color/index.md @@ -35,17 +35,11 @@ background-color: color | transparent | inherit ### HTML ```html -
    - Lorem ipsum dolor sit amet, consectetuer -
    +
    Lorem ipsum dolor sit amet, consectetuer
    -
    - Lorem ipsum dolor sit amet, consectetuer -
    +
    Lorem ipsum dolor sit amet, consectetuer
    -
    - Lorem ipsum dolor sit amet, consectetuer -
    +
    Lorem ipsum dolor sit amet, consectetuer
    ``` ### CSS @@ -57,13 +51,13 @@ background-color: color | transparent | inherit } .exampletwo { - background-color: rgb(153,102,153); - color: rgb(255,255,204); + background-color: rgb(153, 102, 153); + color: rgb(255, 255, 204); } .examplethree { background-color: #777799; - color: #FFFFFF; + color: #ffffff; } ``` diff --git a/files/es/web/css/background-repeat/index.md b/files/es/web/css/background-repeat/index.md index a16bd97dc6fd85..42d5ce4fd1d961 100644 --- a/files/es/web/css/background-repeat/index.md +++ b/files/es/web/css/background-repeat/index.md @@ -57,9 +57,9 @@ Por defecto, las imágenes repetidas son ajustadas al tamaño del elemento, pero | `repeat` | La imagen se repite hasta cubrir todo el fondo existente. La última imagen debe ser recortada si no encaja. | | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | - | `space` | La imagen se repite lo máximo posible sin recortarse. La primera y última imagen son fijadas a cada lado del elemento, y el espacio blanco es distribuido igualmente entre las imágenes. La propiedad {{cssxref("background-position")}} es ignorada a menos que una sola imagen pueda ser desplegada sin recortar. El único caso donde se recorta usando `space` es cuando no hay suficiente sitio para desplegar una imagen. | + | `space` | La imagen se repite lo máximo posible sin recortarse. La primera y última imagen son fijadas a cada lado del elemento, y el espacio blanco es distribuido igualmente entre las imágenes. La propiedad {{cssxref("background-position")}} es ignorada a menos que una sola imagen pueda ser desplegada sin recortar. El único caso donde se recorta usando `space` es cuando no hay suficiente sitio para desplegar una imagen. | | `round` | Como el espacio permitido aumenta, las imágenes repetidas se estrechan (sin dejar huecos) hasta que haya espacio suficiente (espacio restante >= la mitad del ancho de la imagen) para que otra sea añadida. Cuando la próxima imagen es añadida, todas las demás son comprimidas al espacio disponible. Ejemplo: Una imagen con un ancho inicial de 260px, se repite 3 veces, debería estirarse hasta que el tamaño sea de 300px, luego otra imagen debe ser añadida. Luego deberían comprimirse hasta los 225px. | - | `no-repeat` | La imagen no se repite (y por lo tanto el area coloreada de la imagen de fondo no debe ser rellenada completamente). La posición del fondo no repetido es definida por la propiedad de CSS {{cssxref("background-position")}}. | + | `no-repeat` | La imagen no se repite (y por lo tanto el area coloreada de la imagen de fondo no debe ser rellenada completamente). La posición del fondo no repetido es definida por la propiedad de CSS {{cssxref("background-position")}}. | ### Sintaxis formal @@ -71,25 +71,32 @@ Por defecto, las imágenes repetidas son ajustadas al tamaño del elemento, pero ```html
      -
    1. no-repeat +
    2. + no-repeat
    3. -
    4. repeat +
    5. + repeat
    6. -
    7. repeat-x +
    8. + repeat-x
    9. -
    10. repeat-y +
    11. + repeat-y
    12. -
    13. space +
    14. + space
    15. -
    16. round +
    17. + round
    18. -
    19. repeat-x, repeat-y (multiple images) +
    20. + repeat-x, repeat-y (multiple images)
    @@ -108,9 +115,9 @@ li { margin-bottom: 12px; } div { - background-image: url(starsolid.gif); - width: 160px; - height: 70px; + background-image: url(starsolid.gif); + width: 160px; + height: 70px; } /* Background repeats */ @@ -135,10 +142,8 @@ div { /* Multiple images */ .seven { - background-image: url(starsolid.gif), - url(favicon32.png); - background-repeat: repeat-x, - repeat-y; + background-image: url(starsolid.gif), url(favicon32.png); + background-repeat: repeat-x, repeat-y; height: 144px; } ```