├── Clase 1 ├── index.html ├── styles-dist.css └── styles.css ├── Clase 10 ├── index.html ├── normalize.css └── styles.css ├── Clase 11 ├── index.html ├── normalize.css └── styles.css ├── Clase 12 ├── index.html ├── normalize.css └── styles.css ├── Clase 13 ├── index.html ├── normalize.css └── styles.css ├── Clase 14 ├── index.html ├── normalize.css └── styles.css ├── Clase 15 ├── index.html ├── normalize.css └── styles.css ├── Clase 16 ├── index.html ├── normalize.css └── styles.css ├── Clase 17 ├── index.html ├── normalize.css └── styles.css ├── Clase 18 ├── index.html ├── normalize.css └── styles.css ├── Clase 19 ├── index.html ├── normalize.css └── styles.css ├── Clase 2 ├── index.html ├── styles-dist.css └── styles.css ├── Clase 20 ├── index.html ├── normalize.css └── styles.css ├── Clase 21 ├── index.html ├── normalize.css └── styles.css ├── Clase 22 ├── attachment.jpeg ├── cafe.jpeg ├── index.html ├── logo.png ├── normalize.css └── styles.css ├── Clase 23 ├── index.html ├── normalize.css └── styles.css ├── Clase 24 ├── index.html ├── normalize.css └── styles.css ├── Clase 25 ├── assets │ └── fonts │ │ └── Music Magic Personal Use │ │ └── Music Magic Personal Use.ttf ├── index.html ├── normalize.css └── styles.css ├── Clase 26 ├── check.png ├── index.html ├── normalize.css └── styles.css ├── Clase 27 ├── index.html ├── normalize.css └── styles.css ├── Clase 28 ├── assets │ └── img │ │ ├── attachment.jpeg │ │ ├── cafe.jpeg │ │ └── logo.png ├── index.html ├── normalize.css └── styles.css ├── Clase 29 ├── assets │ └── img │ │ └── cafe.jpeg ├── index.html ├── normalize.css └── styles.css ├── Clase 3 ├── banner.png ├── index.html ├── normalize.css ├── styles-dist.css └── styles.css ├── Clase 30 ├── index.html ├── normalize.css └── styles.css ├── Clase 31 ├── hsl.jpg ├── index.html ├── normalize.css └── styles.css ├── Clase 32 ├── index.html ├── normalize.css └── styles.css ├── Clase 33 ├── index.html ├── normalize.css └── styles.css ├── Clase 34 ├── index.html ├── normalize.css └── styles.css ├── Clase 35 ├── index.html └── styles.css ├── Clase 36 ├── index.html └── styles.css ├── Clase 38 ├── axis.PNG ├── index.html └── styles.css ├── Clase 39 ├── axis.PNG ├── index.html └── styles.css ├── Clase 4 ├── index.html ├── normalize.css ├── styles-dist.css └── styles.css ├── Clase 40 ├── index.html └── styles.css ├── Clase 41 ├── index.html ├── logo.png └── styles.css ├── Clase 42 ├── index.html └── styles.css ├── Clase 43 ├── Captura.PNG ├── index.html └── styles.css ├── Clase 44 ├── index.html └── styles.css ├── Clase 45 ├── index.html └── styles.css ├── Clase 46 ├── index.html └── styles.css ├── Clase 47 ├── index.html └── styles.css ├── Clase 48 ├── index.html └── styles.css ├── Clase 49 ├── index.html └── styles.css ├── Clase 5 ├── index.html └── styles.css ├── Clase 50 ├── index.html └── styles.css ├── Clase 51 ├── images │ ├── 1.jpeg │ ├── 10.jpeg │ ├── 11.jpeg │ ├── 12.jpeg │ ├── 2.jpeg │ ├── 3.jpeg │ ├── 4.jpeg │ ├── 5.jpeg │ ├── 6.jpeg │ ├── 7.jpeg │ ├── 8.jpeg │ └── 9.jpeg ├── index.html ├── links.txt └── styles.css ├── Clase 52 ├── index.html └── styles.css ├── Clase 54 ├── index.html └── styles.css ├── Clase 55 ├── index.html └── styles.css ├── Clase 56 ├── index.html └── styles.css ├── Clase 6 ├── index.html ├── normalize.css └── styles.css ├── Clase 7 ├── index.html ├── normalize.css └── styles.css ├── Clase 8 ├── gamepad.jpeg ├── index.html ├── normalize.css └── styles.css ├── Clase 9 ├── index.html ├── normalize.css └── styles.css └── README.md /Clase 1/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Mi primera web 6 | 24 | 25 | 26 | 27 |

Soy un encabezado principal

28 |

Lorem, ipsum dolor sit amet consectetur adipisicing elit. Odit autem vitae adipisci deserunt repellat. Sit sunt autem, possimus, quas quis architecto molestiae est eligendi quo libero quod eius ratione inventore. Lorem ipsum dolor sit amet consectetur adipisicing elit. Illo error odio atque maxime consectetur odit ab facilis iure, mollitia veritatis fuga ullam exercitationem, vitae at aliquid officiis reprehenderit

29 | 30 |

Soy un encabezado principal

31 |

Lorem, ipsum dolor sit amet consectetur adipisicing elit. Odit autem vitae adipisci deserunt repellat. Sit sunt autem, possimus, quas quis architecto molestiae est eligendi quo libero quod eius ratione inventore.

32 | 33 |

Soy un encabezado principal

34 |

Lorem, ipsum dolor sit amet consectetur adipisicing elit. Odit autem vitae adipisci deserunt repellat. Sit sunt autem, possimus, quas quis architecto molestiae est eligendi quo libero quod eius ratione inventore. Lorem ipsum dolor sit amet consectetur adipisicing elit. Illo error odio atque maxime consectetur odit ab facilis iure, mollitia veritatis fuga ullam exercitationem, vitae at aliquid officiis reprehenderit velit aliquam! Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste aliquid ratione, hic animi magni dolorem cupiditate explicabo, amet nisi corporis, molestiae architecto impedit ex optio minima iusto voluptatibus quae sunt?

35 | 36 | Enlace 1 rojo verde 37 | Enlace 2 rojo 38 | Enlace 3 verde 39 | Enlace 4 verde rojo 40 | 41 | 42 |

Título

43 |

Subtítulo

44 |

Otro subtítulo

45 |

Otro subtítulo más

46 |

Otro subtítulo más más

47 | 48 |
49 |

Lorem ipsum dolor sit, amet consectetur adipisicing elit. Neque magni quidem recusandae non reiciendis ipsum earum, nam, SOY UN SPAN tenetur molestias, quia perferendis eligendi ratione eum at cumque facilis harum! Veritatis, quia.

50 | OTRO SPAN 51 |
52 | 53 | -------------------------------------------------------------------------------- /Clase 1/styles-dist.css: -------------------------------------------------------------------------------- 1 | /* Selector de etiqueta */ 2 | /* p{ 3 | color: red 4 | } 5 | 6 | h1{ 7 | color: blue; 8 | } */ 9 | 10 | /* Selectores de clase */ 11 | /* .title{ 12 | color: green; 13 | } 14 | 15 | .text{ 16 | color: blueviolet 17 | } */ 18 | 19 | /* Selectores de ID */ 20 | /* #title{ 21 | color: aqua; 22 | } 23 | 24 | #text{ 25 | color: blueviolet; 26 | } */ 27 | 28 | /* Selectores universales */ 29 | 30 | /* *{ 31 | color: red; 32 | } */ 33 | 34 | /* Selectores de atributo */ 35 | 36 | /* Seleccionar los elementos que tienen ese atributo */ 37 | [href]{ 38 | color: green; 39 | } 40 | 41 | /* Seleccionar los elementos que tienen ese atributo y ese valor*/ 42 | [href="#"]{ 43 | color: red; 44 | } 45 | 46 | /* Seleccionar los elementos que tienen ese atributo al menos ese valor una vez*/ 47 | [class~="verde"]{ 48 | color: green; 49 | } 50 | 51 | /* Seleccionar los elementos que tienen ese atributo y exactamente ese valor o empieze por el valor seguido de un guión*/ 52 | [class|="verde"]{ 53 | color: blue; 54 | } 55 | 56 | /* Seleccionar los elementos que tienen ese atributo y empiezan por ese valor*/ 57 | [class^="rojo"]{ 58 | color:purple; 59 | } 60 | 61 | /* Seleccionar los elementos que tienen ese atributo y terminan por ese valor*/ 62 | [class$="rojo"]{ 63 | color:steelblue; 64 | } 65 | 66 | /* Seleccionar los elementos que tienen ese atributo y contengan ese valor*/ 67 | [class*="rojo"]{ 68 | color:brown; 69 | } 70 | 71 | /* Selectores combinadores */ 72 | 73 | /* Selector de hermano adyacente */ 74 | 75 | /* Selecciona al hermano que esté justo por debajo de el. El estilo se aplica al hermano inferior */ 76 | h1 + h2{ 77 | color:red; 78 | } 79 | 80 | h2 + h2{ 81 | color: blue; 82 | } 83 | 84 | /* Selector de hermano general */ 85 | 86 | /* Selecciona todos los hermanos que esté por debajo de el. El estilo se aplica a todos los hermanos */ 87 | h1 ~ h3{ 88 | color: green; 89 | } 90 | 91 | /* Selectores descendentes */ 92 | 93 | /* Selecciona todos los hijos. El estilo se aplica a todos los hijos */ 94 | div span{ 95 | color: red; 96 | } 97 | 98 | /* Selector de hijo directo */ 99 | 100 | /* Selecciona todos los hijos que sean directos, es decir que no estén dentro de otras etiquetas. El estilo se aplica a todos los hijos */ 101 | p > span{ 102 | color: blue; 103 | } 104 | 105 | 106 | -------------------------------------------------------------------------------- /Clase 1/styles.css: -------------------------------------------------------------------------------- 1 | /* Selector de etiqueta */ 2 | /* p{ 3 | color: red 4 | } 5 | 6 | h1{ 7 | color: blue; 8 | } */ 9 | 10 | /* Selectores de clase */ 11 | /* .title{ 12 | color: green; 13 | } 14 | 15 | .text{ 16 | color: blueviolet 17 | } */ 18 | 19 | /* Selectores de ID */ 20 | /* #title{ 21 | color: aqua; 22 | } 23 | 24 | #text{ 25 | color: blueviolet; 26 | } */ 27 | 28 | /* Selectores universales */ 29 | 30 | /* *{ 31 | color: red; 32 | } */ 33 | 34 | /* Selectores de atributo */ 35 | 36 | /* Seleccionar los elementos que tienen ese atributo */ 37 | [href]{ 38 | color: green; 39 | } 40 | 41 | /* Seleccionar los elementos que tienen ese atributo y ese valor*/ 42 | [href="#"]{ 43 | color: red; 44 | } 45 | 46 | /* Seleccionar los elementos que tienen ese atributo al menos ese valor una vez*/ 47 | [class~="verde"]{ 48 | color: green; 49 | } 50 | 51 | /* Seleccionar los elementos que tienen ese atributo y exactamente ese valor o empieze por el valor seguido de un guión*/ 52 | [class|="verde"]{ 53 | color: blue; 54 | } 55 | 56 | /* Seleccionar los elementos que tienen ese atributo y empiezan por ese valor*/ 57 | [class^="rojo"]{ 58 | color:purple; 59 | } 60 | 61 | /* Seleccionar los elementos que tienen ese atributo y terminan por ese valor*/ 62 | [class$="rojo"]{ 63 | color:steelblue; 64 | } 65 | 66 | /* Seleccionar los elementos que tienen ese atributo y contengan ese valor*/ 67 | [class*="rojo"]{ 68 | color:brown; 69 | } 70 | 71 | /* Selectores combinadores */ 72 | 73 | /* Selector de hermano adyacente */ 74 | 75 | /* Selecciona al hermano que esté justo por debajo de el. El estilo se aplica al hermano inferior */ 76 | h1 + h2{ 77 | color:red; 78 | } 79 | 80 | h2 + h2{ 81 | color: blue; 82 | } 83 | 84 | /* Selector de hermano general */ 85 | 86 | /* Selecciona todos los hermanos que esté por debajo de el. El estilo se aplica a todos los hermanos */ 87 | h1 ~ h3{ 88 | color: green; 89 | } 90 | 91 | /* Selectores descendentes */ 92 | 93 | /* Selecciona todos los hijos. El estilo se aplica a todos los hijos */ 94 | div span{ 95 | color: red; 96 | } 97 | 98 | /* Selector de hijo directo */ 99 | 100 | /* Selecciona todos los hijos que sean directos, es decir que no estén dentro de otras etiquetas. El estilo se aplica a todos los hijos */ 101 | p > span{ 102 | color: blue; 103 | } 104 | 105 | 106 | -------------------------------------------------------------------------------- /Clase 10/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Position - Relative 7 | 8 | 9 | 10 | 11 | 12 | 14 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Incidunt explicabo architecto commodi accusamus hic? Voluptatem voluptates aliquid excepturi quod quas, modi harum animi autem ex, vitae ut consequuntur numquam non.

15 |
Box 1
16 |

Lorem, ipsum dolor sit amet consectetur adipisicing elit. Sapiente, unde porro! Sit consectetur delectus cumque, sapiente cum eius provident quam ad neque quod, eum suscipit ab similique? Saepe, earum quam!

17 | 18 | -------------------------------------------------------------------------------- /Clase 10/normalize.css: -------------------------------------------------------------------------------- 1 | /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ 2 | 3 | /* Document 4 | ========================================================================== */ 5 | 6 | /** 7 | * 1. Correct the line height in all browsers. 8 | * 2. Prevent adjustments of font size after orientation changes in 9 | * IE on Windows Phone and in iOS. 10 | */ 11 | 12 | *, *:before, *:after{ 13 | box-sizing: border-box; 14 | } 15 | 16 | html { 17 | line-height: 1.15; /* 1 */ 18 | -ms-text-size-adjust: 100%; /* 2 */ 19 | -webkit-text-size-adjust: 100%; /* 2 */ 20 | } 21 | 22 | /* Sections 23 | ========================================================================== */ 24 | 25 | /** 26 | * Remove the margin in all browsers (opinionated). 27 | */ 28 | 29 | body { 30 | margin: 0; 31 | } 32 | 33 | img{ 34 | max-width: 100%; 35 | } 36 | 37 | /** 38 | * Add the correct display in IE 9-. 39 | */ 40 | 41 | article, 42 | aside, 43 | footer, 44 | header, 45 | nav, 46 | section { 47 | display: block; 48 | } 49 | 50 | /** 51 | * Correct the font size and margin on `h1` elements within `section` and 52 | * `article` contexts in Chrome, Firefox, and Safari. 53 | */ 54 | 55 | h1 { 56 | font-size: 2em; 57 | margin: 0.67em 0; 58 | } 59 | 60 | /* Grouping content 61 | ========================================================================== */ 62 | 63 | /** 64 | * Add the correct display in IE 9-. 65 | * 1. Add the correct display in IE. 66 | */ 67 | 68 | figcaption, 69 | figure, 70 | main { /* 1 */ 71 | display: block; 72 | } 73 | 74 | /** 75 | * Add the correct margin in IE 8. 76 | */ 77 | 78 | figure { 79 | margin: 1em 40px; 80 | } 81 | 82 | /** 83 | * 1. Add the correct box sizing in Firefox. 84 | * 2. Show the overflow in Edge and IE. 85 | */ 86 | 87 | hr { 88 | box-sizing: content-box; /* 1 */ 89 | height: 0; /* 1 */ 90 | overflow: visible; /* 2 */ 91 | } 92 | 93 | /** 94 | * 1. Correct the inheritance and scaling of font size in all browsers. 95 | * 2. Correct the odd `em` font sizing in all browsers. 96 | */ 97 | 98 | pre { 99 | font-family: monospace, monospace; /* 1 */ 100 | font-size: 1em; /* 2 */ 101 | } 102 | 103 | /* Text-level semantics 104 | ========================================================================== */ 105 | 106 | /** 107 | * 1. Remove the gray background on active links in IE 10. 108 | * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. 109 | */ 110 | 111 | a { 112 | background-color: transparent; /* 1 */ 113 | -webkit-text-decoration-skip: objects; /* 2 */ 114 | } 115 | 116 | /** 117 | * 1. Remove the bottom border in Chrome 57- and Firefox 39-. 118 | * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. 119 | */ 120 | 121 | abbr[title] { 122 | border-bottom: none; /* 1 */ 123 | text-decoration: underline; /* 2 */ 124 | text-decoration: underline dotted; /* 2 */ 125 | } 126 | 127 | /** 128 | * Prevent the duplicate application of `bolder` by the next rule in Safari 6. 129 | */ 130 | 131 | b, 132 | strong { 133 | font-weight: inherit; 134 | } 135 | 136 | /** 137 | * Add the correct font weight in Chrome, Edge, and Safari. 138 | */ 139 | 140 | b, 141 | strong { 142 | font-weight: bolder; 143 | } 144 | 145 | /** 146 | * 1. Correct the inheritance and scaling of font size in all browsers. 147 | * 2. Correct the odd `em` font sizing in all browsers. 148 | */ 149 | 150 | code, 151 | kbd, 152 | samp { 153 | font-family: monospace, monospace; /* 1 */ 154 | font-size: 1em; /* 2 */ 155 | } 156 | 157 | /** 158 | * Add the correct font style in Android 4.3-. 159 | */ 160 | 161 | dfn { 162 | font-style: italic; 163 | } 164 | 165 | /** 166 | * Add the correct background and color in IE 9-. 167 | */ 168 | 169 | mark { 170 | background-color: #ff0; 171 | color: #000; 172 | } 173 | 174 | /** 175 | * Add the correct font size in all browsers. 176 | */ 177 | 178 | small { 179 | font-size: 80%; 180 | } 181 | 182 | /** 183 | * Prevent `sub` and `sup` elements from affecting the line height in 184 | * all browsers. 185 | */ 186 | 187 | sub, 188 | sup { 189 | font-size: 75%; 190 | line-height: 0; 191 | position: relative; 192 | vertical-align: baseline; 193 | } 194 | 195 | sub { 196 | bottom: -0.25em; 197 | } 198 | 199 | sup { 200 | top: -0.5em; 201 | } 202 | 203 | /* Embedded content 204 | ========================================================================== */ 205 | 206 | /** 207 | * Add the correct display in IE 9-. 208 | */ 209 | 210 | audio, 211 | video { 212 | display: inline-block; 213 | } 214 | 215 | /** 216 | * Add the correct display in iOS 4-7. 217 | */ 218 | 219 | audio:not([controls]) { 220 | display: none; 221 | height: 0; 222 | } 223 | 224 | /** 225 | * Remove the border on images inside links in IE 10-. 226 | */ 227 | 228 | img { 229 | border-style: none; 230 | } 231 | 232 | /** 233 | * Hide the overflow in IE. 234 | */ 235 | 236 | svg:not(:root) { 237 | overflow: hidden; 238 | } 239 | 240 | /* Forms 241 | ========================================================================== */ 242 | 243 | /** 244 | * 1. Change the font styles in all browsers (opinionated). 245 | * 2. Remove the margin in Firefox and Safari. 246 | */ 247 | 248 | button, 249 | input, 250 | optgroup, 251 | select, 252 | textarea { 253 | font-family: sans-serif; /* 1 */ 254 | font-size: 100%; /* 1 */ 255 | line-height: 1.15; /* 1 */ 256 | margin: 0; /* 2 */ 257 | } 258 | 259 | /** 260 | * Show the overflow in IE. 261 | * 1. Show the overflow in Edge. 262 | */ 263 | 264 | button, 265 | input { /* 1 */ 266 | overflow: visible; 267 | } 268 | 269 | /** 270 | * Remove the inheritance of text transform in Edge, Firefox, and IE. 271 | * 1. Remove the inheritance of text transform in Firefox. 272 | */ 273 | 274 | button, 275 | select { /* 1 */ 276 | text-transform: none; 277 | } 278 | 279 | /** 280 | * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` 281 | * controls in Android 4. 282 | * 2. Correct the inability to style clickable types in iOS and Safari. 283 | */ 284 | 285 | button, 286 | html [type="button"], /* 1 */ 287 | [type="reset"], 288 | [type="submit"] { 289 | -webkit-appearance: button; /* 2 */ 290 | } 291 | 292 | /** 293 | * Remove the inner border and padding in Firefox. 294 | */ 295 | 296 | button::-moz-focus-inner, 297 | [type="button"]::-moz-focus-inner, 298 | [type="reset"]::-moz-focus-inner, 299 | [type="submit"]::-moz-focus-inner { 300 | border-style: none; 301 | padding: 0; 302 | } 303 | 304 | /** 305 | * Restore the focus styles unset by the previous rule. 306 | */ 307 | 308 | button:-moz-focusring, 309 | [type="button"]:-moz-focusring, 310 | [type="reset"]:-moz-focusring, 311 | [type="submit"]:-moz-focusring { 312 | outline: 1px dotted ButtonText; 313 | } 314 | 315 | /** 316 | * Correct the padding in Firefox. 317 | */ 318 | 319 | fieldset { 320 | padding: 0.35em 0.75em 0.625em; 321 | } 322 | 323 | /** 324 | * 1. Correct the text wrapping in Edge and IE. 325 | * 2. Correct the color inheritance from `fieldset` elements in IE. 326 | * 3. Remove the padding so developers are not caught out when they zero out 327 | * `fieldset` elements in all browsers. 328 | */ 329 | 330 | legend { 331 | box-sizing: border-box; /* 1 */ 332 | color: inherit; /* 2 */ 333 | display: table; /* 1 */ 334 | max-width: 100%; /* 1 */ 335 | padding: 0; /* 3 */ 336 | white-space: normal; /* 1 */ 337 | } 338 | 339 | /** 340 | * 1. Add the correct display in IE 9-. 341 | * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. 342 | */ 343 | 344 | progress { 345 | display: inline-block; /* 1 */ 346 | vertical-align: baseline; /* 2 */ 347 | } 348 | 349 | /** 350 | * Remove the default vertical scrollbar in IE. 351 | */ 352 | 353 | textarea { 354 | overflow: auto; 355 | } 356 | 357 | /** 358 | * 1. Add the correct box sizing in IE 10-. 359 | * 2. Remove the padding in IE 10-. 360 | */ 361 | 362 | [type="checkbox"], 363 | [type="radio"] { 364 | box-sizing: border-box; /* 1 */ 365 | padding: 0; /* 2 */ 366 | } 367 | 368 | /** 369 | * Correct the cursor style of increment and decrement buttons in Chrome. 370 | */ 371 | 372 | [type="number"]::-webkit-inner-spin-button, 373 | [type="number"]::-webkit-outer-spin-button { 374 | height: auto; 375 | } 376 | 377 | /** 378 | * 1. Correct the odd appearance in Chrome and Safari. 379 | * 2. Correct the outline style in Safari. 380 | */ 381 | 382 | [type="search"] { 383 | -webkit-appearance: textfield; /* 1 */ 384 | outline-offset: -2px; /* 2 */ 385 | } 386 | 387 | /** 388 | * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. 389 | */ 390 | 391 | [type="search"]::-webkit-search-cancel-button, 392 | [type="search"]::-webkit-search-decoration { 393 | -webkit-appearance: none; 394 | } 395 | 396 | /** 397 | * 1. Correct the inability to style clickable types in iOS and Safari. 398 | * 2. Change font properties to `inherit` in Safari. 399 | */ 400 | 401 | ::-webkit-file-upload-button { 402 | -webkit-appearance: button; /* 1 */ 403 | font: inherit; /* 2 */ 404 | } 405 | 406 | /* Interactive 407 | ========================================================================== */ 408 | 409 | /* 410 | * Add the correct display in IE 9-. 411 | * 1. Add the correct display in Edge, IE, and Firefox. 412 | */ 413 | 414 | details, /* 1 */ 415 | menu { 416 | display: block; 417 | } 418 | 419 | /* 420 | * Add the correct display in all browsers. 421 | */ 422 | 423 | summary { 424 | display: list-item; 425 | } 426 | 427 | /* Scripting 428 | ========================================================================== */ 429 | 430 | /** 431 | * Add the correct display in IE 9-. 432 | */ 433 | 434 | canvas { 435 | display: inline-block; 436 | } 437 | 438 | /** 439 | * Add the correct display in IE. 440 | */ 441 | 442 | template { 443 | display: none; 444 | } 445 | 446 | /* Hidden 447 | ========================================================================== */ 448 | 449 | /** 450 | * Add the correct display in IE 10-. 451 | */ 452 | 453 | [hidden] { 454 | display: none; 455 | } 456 | -------------------------------------------------------------------------------- /Clase 10/styles.css: -------------------------------------------------------------------------------- 1 | /* 2 | Position relative 3 | 4 | Su punto de referencia (contexto) es el punto donde aparece en el flujo 5 | 6 | Al ser un elemento posicionado lo podemos mover en los 3 ejes X Y Z 7 | */ 8 | 9 | .box1, .box2{ 10 | width: 250px; 11 | height: 250px; 12 | margin: 1em auto; 13 | font-size: 2.5em; 14 | text-align: center; 15 | } 16 | 17 | .box1{ 18 | background:lightgreen; 19 | position: relative; 20 | /* top right bottom left z-index */ 21 | /* z-index: 1; Si declaramos z-index automaticamente se dibuja por encima por tener un valor mayor que el de por defecto (0)*/ 22 | /* top y left tienen preferencia ante bottom y right */ 23 | /* right: -500px; 24 | bottom: 30px; */ 25 | 26 | top: 500px; 27 | } 28 | 29 | .box2{ 30 | background:lightcoral; 31 | position: relative; 32 | } -------------------------------------------------------------------------------- /Clase 11/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Position - Absolute 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 | 15 |
16 |
17 |
18 |
19 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /Clase 11/normalize.css: -------------------------------------------------------------------------------- 1 | /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ 2 | 3 | /* Document 4 | ========================================================================== */ 5 | 6 | /** 7 | * 1. Correct the line height in all browsers. 8 | * 2. Prevent adjustments of font size after orientation changes in 9 | * IE on Windows Phone and in iOS. 10 | */ 11 | 12 | *, *:before, *:after{ 13 | box-sizing: border-box; 14 | } 15 | 16 | html { 17 | line-height: 1.15; /* 1 */ 18 | -ms-text-size-adjust: 100%; /* 2 */ 19 | -webkit-text-size-adjust: 100%; /* 2 */ 20 | } 21 | 22 | /* Sections 23 | ========================================================================== */ 24 | 25 | /** 26 | * Remove the margin in all browsers (opinionated). 27 | */ 28 | 29 | body { 30 | margin: 0; 31 | } 32 | 33 | img{ 34 | max-width: 100%; 35 | } 36 | 37 | /** 38 | * Add the correct display in IE 9-. 39 | */ 40 | 41 | article, 42 | aside, 43 | footer, 44 | header, 45 | nav, 46 | section { 47 | display: block; 48 | } 49 | 50 | /** 51 | * Correct the font size and margin on `h1` elements within `section` and 52 | * `article` contexts in Chrome, Firefox, and Safari. 53 | */ 54 | 55 | h1 { 56 | font-size: 2em; 57 | margin: 0.67em 0; 58 | } 59 | 60 | /* Grouping content 61 | ========================================================================== */ 62 | 63 | /** 64 | * Add the correct display in IE 9-. 65 | * 1. Add the correct display in IE. 66 | */ 67 | 68 | figcaption, 69 | figure, 70 | main { /* 1 */ 71 | display: block; 72 | } 73 | 74 | /** 75 | * Add the correct margin in IE 8. 76 | */ 77 | 78 | figure { 79 | margin: 1em 40px; 80 | } 81 | 82 | /** 83 | * 1. Add the correct box sizing in Firefox. 84 | * 2. Show the overflow in Edge and IE. 85 | */ 86 | 87 | hr { 88 | box-sizing: content-box; /* 1 */ 89 | height: 0; /* 1 */ 90 | overflow: visible; /* 2 */ 91 | } 92 | 93 | /** 94 | * 1. Correct the inheritance and scaling of font size in all browsers. 95 | * 2. Correct the odd `em` font sizing in all browsers. 96 | */ 97 | 98 | pre { 99 | font-family: monospace, monospace; /* 1 */ 100 | font-size: 1em; /* 2 */ 101 | } 102 | 103 | /* Text-level semantics 104 | ========================================================================== */ 105 | 106 | /** 107 | * 1. Remove the gray background on active links in IE 10. 108 | * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. 109 | */ 110 | 111 | a { 112 | background-color: transparent; /* 1 */ 113 | -webkit-text-decoration-skip: objects; /* 2 */ 114 | } 115 | 116 | /** 117 | * 1. Remove the bottom border in Chrome 57- and Firefox 39-. 118 | * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. 119 | */ 120 | 121 | abbr[title] { 122 | border-bottom: none; /* 1 */ 123 | text-decoration: underline; /* 2 */ 124 | text-decoration: underline dotted; /* 2 */ 125 | } 126 | 127 | /** 128 | * Prevent the duplicate application of `bolder` by the next rule in Safari 6. 129 | */ 130 | 131 | b, 132 | strong { 133 | font-weight: inherit; 134 | } 135 | 136 | /** 137 | * Add the correct font weight in Chrome, Edge, and Safari. 138 | */ 139 | 140 | b, 141 | strong { 142 | font-weight: bolder; 143 | } 144 | 145 | /** 146 | * 1. Correct the inheritance and scaling of font size in all browsers. 147 | * 2. Correct the odd `em` font sizing in all browsers. 148 | */ 149 | 150 | code, 151 | kbd, 152 | samp { 153 | font-family: monospace, monospace; /* 1 */ 154 | font-size: 1em; /* 2 */ 155 | } 156 | 157 | /** 158 | * Add the correct font style in Android 4.3-. 159 | */ 160 | 161 | dfn { 162 | font-style: italic; 163 | } 164 | 165 | /** 166 | * Add the correct background and color in IE 9-. 167 | */ 168 | 169 | mark { 170 | background-color: #ff0; 171 | color: #000; 172 | } 173 | 174 | /** 175 | * Add the correct font size in all browsers. 176 | */ 177 | 178 | small { 179 | font-size: 80%; 180 | } 181 | 182 | /** 183 | * Prevent `sub` and `sup` elements from affecting the line height in 184 | * all browsers. 185 | */ 186 | 187 | sub, 188 | sup { 189 | font-size: 75%; 190 | line-height: 0; 191 | position: relative; 192 | vertical-align: baseline; 193 | } 194 | 195 | sub { 196 | bottom: -0.25em; 197 | } 198 | 199 | sup { 200 | top: -0.5em; 201 | } 202 | 203 | /* Embedded content 204 | ========================================================================== */ 205 | 206 | /** 207 | * Add the correct display in IE 9-. 208 | */ 209 | 210 | audio, 211 | video { 212 | display: inline-block; 213 | } 214 | 215 | /** 216 | * Add the correct display in iOS 4-7. 217 | */ 218 | 219 | audio:not([controls]) { 220 | display: none; 221 | height: 0; 222 | } 223 | 224 | /** 225 | * Remove the border on images inside links in IE 10-. 226 | */ 227 | 228 | img { 229 | border-style: none; 230 | } 231 | 232 | /** 233 | * Hide the overflow in IE. 234 | */ 235 | 236 | svg:not(:root) { 237 | overflow: hidden; 238 | } 239 | 240 | /* Forms 241 | ========================================================================== */ 242 | 243 | /** 244 | * 1. Change the font styles in all browsers (opinionated). 245 | * 2. Remove the margin in Firefox and Safari. 246 | */ 247 | 248 | button, 249 | input, 250 | optgroup, 251 | select, 252 | textarea { 253 | font-family: sans-serif; /* 1 */ 254 | font-size: 100%; /* 1 */ 255 | line-height: 1.15; /* 1 */ 256 | margin: 0; /* 2 */ 257 | } 258 | 259 | /** 260 | * Show the overflow in IE. 261 | * 1. Show the overflow in Edge. 262 | */ 263 | 264 | button, 265 | input { /* 1 */ 266 | overflow: visible; 267 | } 268 | 269 | /** 270 | * Remove the inheritance of text transform in Edge, Firefox, and IE. 271 | * 1. Remove the inheritance of text transform in Firefox. 272 | */ 273 | 274 | button, 275 | select { /* 1 */ 276 | text-transform: none; 277 | } 278 | 279 | /** 280 | * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` 281 | * controls in Android 4. 282 | * 2. Correct the inability to style clickable types in iOS and Safari. 283 | */ 284 | 285 | button, 286 | html [type="button"], /* 1 */ 287 | [type="reset"], 288 | [type="submit"] { 289 | -webkit-appearance: button; /* 2 */ 290 | } 291 | 292 | /** 293 | * Remove the inner border and padding in Firefox. 294 | */ 295 | 296 | button::-moz-focus-inner, 297 | [type="button"]::-moz-focus-inner, 298 | [type="reset"]::-moz-focus-inner, 299 | [type="submit"]::-moz-focus-inner { 300 | border-style: none; 301 | padding: 0; 302 | } 303 | 304 | /** 305 | * Restore the focus styles unset by the previous rule. 306 | */ 307 | 308 | button:-moz-focusring, 309 | [type="button"]:-moz-focusring, 310 | [type="reset"]:-moz-focusring, 311 | [type="submit"]:-moz-focusring { 312 | outline: 1px dotted ButtonText; 313 | } 314 | 315 | /** 316 | * Correct the padding in Firefox. 317 | */ 318 | 319 | fieldset { 320 | padding: 0.35em 0.75em 0.625em; 321 | } 322 | 323 | /** 324 | * 1. Correct the text wrapping in Edge and IE. 325 | * 2. Correct the color inheritance from `fieldset` elements in IE. 326 | * 3. Remove the padding so developers are not caught out when they zero out 327 | * `fieldset` elements in all browsers. 328 | */ 329 | 330 | legend { 331 | box-sizing: border-box; /* 1 */ 332 | color: inherit; /* 2 */ 333 | display: table; /* 1 */ 334 | max-width: 100%; /* 1 */ 335 | padding: 0; /* 3 */ 336 | white-space: normal; /* 1 */ 337 | } 338 | 339 | /** 340 | * 1. Add the correct display in IE 9-. 341 | * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. 342 | */ 343 | 344 | progress { 345 | display: inline-block; /* 1 */ 346 | vertical-align: baseline; /* 2 */ 347 | } 348 | 349 | /** 350 | * Remove the default vertical scrollbar in IE. 351 | */ 352 | 353 | textarea { 354 | overflow: auto; 355 | } 356 | 357 | /** 358 | * 1. Add the correct box sizing in IE 10-. 359 | * 2. Remove the padding in IE 10-. 360 | */ 361 | 362 | [type="checkbox"], 363 | [type="radio"] { 364 | box-sizing: border-box; /* 1 */ 365 | padding: 0; /* 2 */ 366 | } 367 | 368 | /** 369 | * Correct the cursor style of increment and decrement buttons in Chrome. 370 | */ 371 | 372 | [type="number"]::-webkit-inner-spin-button, 373 | [type="number"]::-webkit-outer-spin-button { 374 | height: auto; 375 | } 376 | 377 | /** 378 | * 1. Correct the odd appearance in Chrome and Safari. 379 | * 2. Correct the outline style in Safari. 380 | */ 381 | 382 | [type="search"] { 383 | -webkit-appearance: textfield; /* 1 */ 384 | outline-offset: -2px; /* 2 */ 385 | } 386 | 387 | /** 388 | * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. 389 | */ 390 | 391 | [type="search"]::-webkit-search-cancel-button, 392 | [type="search"]::-webkit-search-decoration { 393 | -webkit-appearance: none; 394 | } 395 | 396 | /** 397 | * 1. Correct the inability to style clickable types in iOS and Safari. 398 | * 2. Change font properties to `inherit` in Safari. 399 | */ 400 | 401 | ::-webkit-file-upload-button { 402 | -webkit-appearance: button; /* 1 */ 403 | font: inherit; /* 2 */ 404 | } 405 | 406 | /* Interactive 407 | ========================================================================== */ 408 | 409 | /* 410 | * Add the correct display in IE 9-. 411 | * 1. Add the correct display in Edge, IE, and Firefox. 412 | */ 413 | 414 | details, /* 1 */ 415 | menu { 416 | display: block; 417 | } 418 | 419 | /* 420 | * Add the correct display in all browsers. 421 | */ 422 | 423 | summary { 424 | display: list-item; 425 | } 426 | 427 | /* Scripting 428 | ========================================================================== */ 429 | 430 | /** 431 | * Add the correct display in IE 9-. 432 | */ 433 | 434 | canvas { 435 | display: inline-block; 436 | } 437 | 438 | /** 439 | * Add the correct display in IE. 440 | */ 441 | 442 | template { 443 | display: none; 444 | } 445 | 446 | /* Hidden 447 | ========================================================================== */ 448 | 449 | /** 450 | * Add the correct display in IE 10-. 451 | */ 452 | 453 | [hidden] { 454 | display: none; 455 | } 456 | -------------------------------------------------------------------------------- /Clase 11/styles.css: -------------------------------------------------------------------------------- 1 | /* 2 | Position absolute 3 | 4 | El elemento no conserva su espacio en el flujo. 5 | 6 | Si no tiene dimensiones declaradas, sus dimensiones se ajustan al contenido. 7 | 8 | Su punto de referencia (contexto) es el elemento que lo contenga posicionado más cercano, si no encuentra ninguno será el viewport (el espacio visible en pantalla) 9 | 10 | Al ser un elemento posicionado lo podemos mover en los 3 ejes X Y Z 11 | */ 12 | 13 | .container { 14 | width: 300px; 15 | height: 300px; 16 | margin-left: auto; 17 | margin-right: auto; 18 | border: 3px solid black; 19 | position: relative; 20 | } 21 | 22 | [class^=box] { 23 | width: 50px; 24 | height: 50px; 25 | } 26 | 27 | .box1 { 28 | border: 4px solid lightcoral; 29 | position: absolute; 30 | top: 0; 31 | left: 0; 32 | } 33 | 34 | .box2 { 35 | border: 4px solid blue; 36 | position: absolute; 37 | top: 0; 38 | right: 0; 39 | } 40 | 41 | .box3 { 42 | border: 4px solid green; 43 | position: absolute; 44 | bottom: 0; 45 | left: 0; 46 | } 47 | 48 | .box4 { 49 | border: 4px solid lightseagreen; 50 | position: absolute; 51 | bottom: 0; 52 | right: 0; 53 | } 54 | 55 | .box5 { 56 | border: 4px solid darkorange; 57 | position: absolute; 58 | top: 0; 59 | left: 0; 60 | right: 0; 61 | bottom: 0; 62 | margin: auto; 63 | } -------------------------------------------------------------------------------- /Clase 12/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Position - Fixed 7 | 8 | 9 | 10 | 11 | 12 | 13 |

Título

14 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

15 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

16 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

17 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

18 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

19 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

20 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

21 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

22 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

23 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

24 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Clase 12/normalize.css: -------------------------------------------------------------------------------- 1 | /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ 2 | 3 | /* Document 4 | ========================================================================== */ 5 | 6 | /** 7 | * 1. Correct the line height in all browsers. 8 | * 2. Prevent adjustments of font size after orientation changes in 9 | * IE on Windows Phone and in iOS. 10 | */ 11 | 12 | *, *:before, *:after{ 13 | box-sizing: border-box; 14 | } 15 | 16 | html { 17 | line-height: 1.15; /* 1 */ 18 | -ms-text-size-adjust: 100%; /* 2 */ 19 | -webkit-text-size-adjust: 100%; /* 2 */ 20 | } 21 | 22 | /* Sections 23 | ========================================================================== */ 24 | 25 | /** 26 | * Remove the margin in all browsers (opinionated). 27 | */ 28 | 29 | body { 30 | margin: 0; 31 | } 32 | 33 | img{ 34 | max-width: 100%; 35 | } 36 | 37 | /** 38 | * Add the correct display in IE 9-. 39 | */ 40 | 41 | article, 42 | aside, 43 | footer, 44 | header, 45 | nav, 46 | section { 47 | display: block; 48 | } 49 | 50 | /** 51 | * Correct the font size and margin on `h1` elements within `section` and 52 | * `article` contexts in Chrome, Firefox, and Safari. 53 | */ 54 | 55 | h1 { 56 | font-size: 2em; 57 | margin: 0.67em 0; 58 | } 59 | 60 | /* Grouping content 61 | ========================================================================== */ 62 | 63 | /** 64 | * Add the correct display in IE 9-. 65 | * 1. Add the correct display in IE. 66 | */ 67 | 68 | figcaption, 69 | figure, 70 | main { /* 1 */ 71 | display: block; 72 | } 73 | 74 | /** 75 | * Add the correct margin in IE 8. 76 | */ 77 | 78 | figure { 79 | margin: 1em 40px; 80 | } 81 | 82 | /** 83 | * 1. Add the correct box sizing in Firefox. 84 | * 2. Show the overflow in Edge and IE. 85 | */ 86 | 87 | hr { 88 | box-sizing: content-box; /* 1 */ 89 | height: 0; /* 1 */ 90 | overflow: visible; /* 2 */ 91 | } 92 | 93 | /** 94 | * 1. Correct the inheritance and scaling of font size in all browsers. 95 | * 2. Correct the odd `em` font sizing in all browsers. 96 | */ 97 | 98 | pre { 99 | font-family: monospace, monospace; /* 1 */ 100 | font-size: 1em; /* 2 */ 101 | } 102 | 103 | /* Text-level semantics 104 | ========================================================================== */ 105 | 106 | /** 107 | * 1. Remove the gray background on active links in IE 10. 108 | * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. 109 | */ 110 | 111 | a { 112 | background-color: transparent; /* 1 */ 113 | -webkit-text-decoration-skip: objects; /* 2 */ 114 | } 115 | 116 | /** 117 | * 1. Remove the bottom border in Chrome 57- and Firefox 39-. 118 | * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. 119 | */ 120 | 121 | abbr[title] { 122 | border-bottom: none; /* 1 */ 123 | text-decoration: underline; /* 2 */ 124 | text-decoration: underline dotted; /* 2 */ 125 | } 126 | 127 | /** 128 | * Prevent the duplicate application of `bolder` by the next rule in Safari 6. 129 | */ 130 | 131 | b, 132 | strong { 133 | font-weight: inherit; 134 | } 135 | 136 | /** 137 | * Add the correct font weight in Chrome, Edge, and Safari. 138 | */ 139 | 140 | b, 141 | strong { 142 | font-weight: bolder; 143 | } 144 | 145 | /** 146 | * 1. Correct the inheritance and scaling of font size in all browsers. 147 | * 2. Correct the odd `em` font sizing in all browsers. 148 | */ 149 | 150 | code, 151 | kbd, 152 | samp { 153 | font-family: monospace, monospace; /* 1 */ 154 | font-size: 1em; /* 2 */ 155 | } 156 | 157 | /** 158 | * Add the correct font style in Android 4.3-. 159 | */ 160 | 161 | dfn { 162 | font-style: italic; 163 | } 164 | 165 | /** 166 | * Add the correct background and color in IE 9-. 167 | */ 168 | 169 | mark { 170 | background-color: #ff0; 171 | color: #000; 172 | } 173 | 174 | /** 175 | * Add the correct font size in all browsers. 176 | */ 177 | 178 | small { 179 | font-size: 80%; 180 | } 181 | 182 | /** 183 | * Prevent `sub` and `sup` elements from affecting the line height in 184 | * all browsers. 185 | */ 186 | 187 | sub, 188 | sup { 189 | font-size: 75%; 190 | line-height: 0; 191 | position: relative; 192 | vertical-align: baseline; 193 | } 194 | 195 | sub { 196 | bottom: -0.25em; 197 | } 198 | 199 | sup { 200 | top: -0.5em; 201 | } 202 | 203 | /* Embedded content 204 | ========================================================================== */ 205 | 206 | /** 207 | * Add the correct display in IE 9-. 208 | */ 209 | 210 | audio, 211 | video { 212 | display: inline-block; 213 | } 214 | 215 | /** 216 | * Add the correct display in iOS 4-7. 217 | */ 218 | 219 | audio:not([controls]) { 220 | display: none; 221 | height: 0; 222 | } 223 | 224 | /** 225 | * Remove the border on images inside links in IE 10-. 226 | */ 227 | 228 | img { 229 | border-style: none; 230 | } 231 | 232 | /** 233 | * Hide the overflow in IE. 234 | */ 235 | 236 | svg:not(:root) { 237 | overflow: hidden; 238 | } 239 | 240 | /* Forms 241 | ========================================================================== */ 242 | 243 | /** 244 | * 1. Change the font styles in all browsers (opinionated). 245 | * 2. Remove the margin in Firefox and Safari. 246 | */ 247 | 248 | button, 249 | input, 250 | optgroup, 251 | select, 252 | textarea { 253 | font-family: sans-serif; /* 1 */ 254 | font-size: 100%; /* 1 */ 255 | line-height: 1.15; /* 1 */ 256 | margin: 0; /* 2 */ 257 | } 258 | 259 | /** 260 | * Show the overflow in IE. 261 | * 1. Show the overflow in Edge. 262 | */ 263 | 264 | button, 265 | input { /* 1 */ 266 | overflow: visible; 267 | } 268 | 269 | /** 270 | * Remove the inheritance of text transform in Edge, Firefox, and IE. 271 | * 1. Remove the inheritance of text transform in Firefox. 272 | */ 273 | 274 | button, 275 | select { /* 1 */ 276 | text-transform: none; 277 | } 278 | 279 | /** 280 | * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` 281 | * controls in Android 4. 282 | * 2. Correct the inability to style clickable types in iOS and Safari. 283 | */ 284 | 285 | button, 286 | html [type="button"], /* 1 */ 287 | [type="reset"], 288 | [type="submit"] { 289 | -webkit-appearance: button; /* 2 */ 290 | } 291 | 292 | /** 293 | * Remove the inner border and padding in Firefox. 294 | */ 295 | 296 | button::-moz-focus-inner, 297 | [type="button"]::-moz-focus-inner, 298 | [type="reset"]::-moz-focus-inner, 299 | [type="submit"]::-moz-focus-inner { 300 | border-style: none; 301 | padding: 0; 302 | } 303 | 304 | /** 305 | * Restore the focus styles unset by the previous rule. 306 | */ 307 | 308 | button:-moz-focusring, 309 | [type="button"]:-moz-focusring, 310 | [type="reset"]:-moz-focusring, 311 | [type="submit"]:-moz-focusring { 312 | outline: 1px dotted ButtonText; 313 | } 314 | 315 | /** 316 | * Correct the padding in Firefox. 317 | */ 318 | 319 | fieldset { 320 | padding: 0.35em 0.75em 0.625em; 321 | } 322 | 323 | /** 324 | * 1. Correct the text wrapping in Edge and IE. 325 | * 2. Correct the color inheritance from `fieldset` elements in IE. 326 | * 3. Remove the padding so developers are not caught out when they zero out 327 | * `fieldset` elements in all browsers. 328 | */ 329 | 330 | legend { 331 | box-sizing: border-box; /* 1 */ 332 | color: inherit; /* 2 */ 333 | display: table; /* 1 */ 334 | max-width: 100%; /* 1 */ 335 | padding: 0; /* 3 */ 336 | white-space: normal; /* 1 */ 337 | } 338 | 339 | /** 340 | * 1. Add the correct display in IE 9-. 341 | * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. 342 | */ 343 | 344 | progress { 345 | display: inline-block; /* 1 */ 346 | vertical-align: baseline; /* 2 */ 347 | } 348 | 349 | /** 350 | * Remove the default vertical scrollbar in IE. 351 | */ 352 | 353 | textarea { 354 | overflow: auto; 355 | } 356 | 357 | /** 358 | * 1. Add the correct box sizing in IE 10-. 359 | * 2. Remove the padding in IE 10-. 360 | */ 361 | 362 | [type="checkbox"], 363 | [type="radio"] { 364 | box-sizing: border-box; /* 1 */ 365 | padding: 0; /* 2 */ 366 | } 367 | 368 | /** 369 | * Correct the cursor style of increment and decrement buttons in Chrome. 370 | */ 371 | 372 | [type="number"]::-webkit-inner-spin-button, 373 | [type="number"]::-webkit-outer-spin-button { 374 | height: auto; 375 | } 376 | 377 | /** 378 | * 1. Correct the odd appearance in Chrome and Safari. 379 | * 2. Correct the outline style in Safari. 380 | */ 381 | 382 | [type="search"] { 383 | -webkit-appearance: textfield; /* 1 */ 384 | outline-offset: -2px; /* 2 */ 385 | } 386 | 387 | /** 388 | * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. 389 | */ 390 | 391 | [type="search"]::-webkit-search-cancel-button, 392 | [type="search"]::-webkit-search-decoration { 393 | -webkit-appearance: none; 394 | } 395 | 396 | /** 397 | * 1. Correct the inability to style clickable types in iOS and Safari. 398 | * 2. Change font properties to `inherit` in Safari. 399 | */ 400 | 401 | ::-webkit-file-upload-button { 402 | -webkit-appearance: button; /* 1 */ 403 | font: inherit; /* 2 */ 404 | } 405 | 406 | /* Interactive 407 | ========================================================================== */ 408 | 409 | /* 410 | * Add the correct display in IE 9-. 411 | * 1. Add the correct display in Edge, IE, and Firefox. 412 | */ 413 | 414 | details, /* 1 */ 415 | menu { 416 | display: block; 417 | } 418 | 419 | /* 420 | * Add the correct display in all browsers. 421 | */ 422 | 423 | summary { 424 | display: list-item; 425 | } 426 | 427 | /* Scripting 428 | ========================================================================== */ 429 | 430 | /** 431 | * Add the correct display in IE 9-. 432 | */ 433 | 434 | canvas { 435 | display: inline-block; 436 | } 437 | 438 | /** 439 | * Add the correct display in IE. 440 | */ 441 | 442 | template { 443 | display: none; 444 | } 445 | 446 | /* Hidden 447 | ========================================================================== */ 448 | 449 | /** 450 | * Add the correct display in IE 10-. 451 | */ 452 | 453 | [hidden] { 454 | display: none; 455 | } 456 | -------------------------------------------------------------------------------- /Clase 12/styles.css: -------------------------------------------------------------------------------- 1 | /* 2 | Position fixed 3 | 4 | El elemento no conserva su espacio en el flujo. 5 | 6 | Si no tiene dimensiones declaradas, sus dimensiones se ajustan al contenido. 7 | 8 | Su punto de referencia (contexto) es el viewport (el espacio visible en pantalla) 9 | 10 | Al ser un elemento posicionado lo podemos mover en los 3 ejes X Y Z 11 | */ 12 | 13 | body{ 14 | padding-top: 6em; 15 | } 16 | 17 | .menu{ 18 | background:darkcyan; 19 | padding: .5em; 20 | text-align: center; 21 | font-size: 2em; 22 | position: fixed; 23 | top: 0; 24 | width: 100%; 25 | } 26 | 27 | .title{ 28 | margin: 0; 29 | } 30 | -------------------------------------------------------------------------------- /Clase 13/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Position - Sticky 7 | 8 | 9 | 10 | 11 | 12 |
SLIDE
13 | 14 |

Título

15 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

16 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

17 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

18 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

19 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

20 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

21 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

22 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

23 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

24 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

25 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore voluptas, et non vero accusantium, quisquam, nam explicabo placeat exercitationem iste ab enim architecto pariatur expedita minus a. Dolorum, inciduntlaborum.

26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Clase 13/normalize.css: -------------------------------------------------------------------------------- 1 | /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ 2 | 3 | /* Document 4 | ========================================================================== */ 5 | 6 | /** 7 | * 1. Correct the line height in all browsers. 8 | * 2. Prevent adjustments of font size after orientation changes in 9 | * IE on Windows Phone and in iOS. 10 | */ 11 | 12 | *, *:before, *:after{ 13 | box-sizing: border-box; 14 | } 15 | 16 | html { 17 | line-height: 1.15; /* 1 */ 18 | -ms-text-size-adjust: 100%; /* 2 */ 19 | -webkit-text-size-adjust: 100%; /* 2 */ 20 | } 21 | 22 | /* Sections 23 | ========================================================================== */ 24 | 25 | /** 26 | * Remove the margin in all browsers (opinionated). 27 | */ 28 | 29 | body { 30 | margin: 0; 31 | } 32 | 33 | img{ 34 | max-width: 100%; 35 | } 36 | 37 | /** 38 | * Add the correct display in IE 9-. 39 | */ 40 | 41 | article, 42 | aside, 43 | footer, 44 | header, 45 | nav, 46 | section { 47 | display: block; 48 | } 49 | 50 | /** 51 | * Correct the font size and margin on `h1` elements within `section` and 52 | * `article` contexts in Chrome, Firefox, and Safari. 53 | */ 54 | 55 | h1 { 56 | font-size: 2em; 57 | margin: 0.67em 0; 58 | } 59 | 60 | /* Grouping content 61 | ========================================================================== */ 62 | 63 | /** 64 | * Add the correct display in IE 9-. 65 | * 1. Add the correct display in IE. 66 | */ 67 | 68 | figcaption, 69 | figure, 70 | main { /* 1 */ 71 | display: block; 72 | } 73 | 74 | /** 75 | * Add the correct margin in IE 8. 76 | */ 77 | 78 | figure { 79 | margin: 1em 40px; 80 | } 81 | 82 | /** 83 | * 1. Add the correct box sizing in Firefox. 84 | * 2. Show the overflow in Edge and IE. 85 | */ 86 | 87 | hr { 88 | box-sizing: content-box; /* 1 */ 89 | height: 0; /* 1 */ 90 | overflow: visible; /* 2 */ 91 | } 92 | 93 | /** 94 | * 1. Correct the inheritance and scaling of font size in all browsers. 95 | * 2. Correct the odd `em` font sizing in all browsers. 96 | */ 97 | 98 | pre { 99 | font-family: monospace, monospace; /* 1 */ 100 | font-size: 1em; /* 2 */ 101 | } 102 | 103 | /* Text-level semantics 104 | ========================================================================== */ 105 | 106 | /** 107 | * 1. Remove the gray background on active links in IE 10. 108 | * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. 109 | */ 110 | 111 | a { 112 | background-color: transparent; /* 1 */ 113 | -webkit-text-decoration-skip: objects; /* 2 */ 114 | } 115 | 116 | /** 117 | * 1. Remove the bottom border in Chrome 57- and Firefox 39-. 118 | * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. 119 | */ 120 | 121 | abbr[title] { 122 | border-bottom: none; /* 1 */ 123 | text-decoration: underline; /* 2 */ 124 | text-decoration: underline dotted; /* 2 */ 125 | } 126 | 127 | /** 128 | * Prevent the duplicate application of `bolder` by the next rule in Safari 6. 129 | */ 130 | 131 | b, 132 | strong { 133 | font-weight: inherit; 134 | } 135 | 136 | /** 137 | * Add the correct font weight in Chrome, Edge, and Safari. 138 | */ 139 | 140 | b, 141 | strong { 142 | font-weight: bolder; 143 | } 144 | 145 | /** 146 | * 1. Correct the inheritance and scaling of font size in all browsers. 147 | * 2. Correct the odd `em` font sizing in all browsers. 148 | */ 149 | 150 | code, 151 | kbd, 152 | samp { 153 | font-family: monospace, monospace; /* 1 */ 154 | font-size: 1em; /* 2 */ 155 | } 156 | 157 | /** 158 | * Add the correct font style in Android 4.3-. 159 | */ 160 | 161 | dfn { 162 | font-style: italic; 163 | } 164 | 165 | /** 166 | * Add the correct background and color in IE 9-. 167 | */ 168 | 169 | mark { 170 | background-color: #ff0; 171 | color: #000; 172 | } 173 | 174 | /** 175 | * Add the correct font size in all browsers. 176 | */ 177 | 178 | small { 179 | font-size: 80%; 180 | } 181 | 182 | /** 183 | * Prevent `sub` and `sup` elements from affecting the line height in 184 | * all browsers. 185 | */ 186 | 187 | sub, 188 | sup { 189 | font-size: 75%; 190 | line-height: 0; 191 | position: relative; 192 | vertical-align: baseline; 193 | } 194 | 195 | sub { 196 | bottom: -0.25em; 197 | } 198 | 199 | sup { 200 | top: -0.5em; 201 | } 202 | 203 | /* Embedded content 204 | ========================================================================== */ 205 | 206 | /** 207 | * Add the correct display in IE 9-. 208 | */ 209 | 210 | audio, 211 | video { 212 | display: inline-block; 213 | } 214 | 215 | /** 216 | * Add the correct display in iOS 4-7. 217 | */ 218 | 219 | audio:not([controls]) { 220 | display: none; 221 | height: 0; 222 | } 223 | 224 | /** 225 | * Remove the border on images inside links in IE 10-. 226 | */ 227 | 228 | img { 229 | border-style: none; 230 | } 231 | 232 | /** 233 | * Hide the overflow in IE. 234 | */ 235 | 236 | svg:not(:root) { 237 | overflow: hidden; 238 | } 239 | 240 | /* Forms 241 | ========================================================================== */ 242 | 243 | /** 244 | * 1. Change the font styles in all browsers (opinionated). 245 | * 2. Remove the margin in Firefox and Safari. 246 | */ 247 | 248 | button, 249 | input, 250 | optgroup, 251 | select, 252 | textarea { 253 | font-family: sans-serif; /* 1 */ 254 | font-size: 100%; /* 1 */ 255 | line-height: 1.15; /* 1 */ 256 | margin: 0; /* 2 */ 257 | } 258 | 259 | /** 260 | * Show the overflow in IE. 261 | * 1. Show the overflow in Edge. 262 | */ 263 | 264 | button, 265 | input { /* 1 */ 266 | overflow: visible; 267 | } 268 | 269 | /** 270 | * Remove the inheritance of text transform in Edge, Firefox, and IE. 271 | * 1. Remove the inheritance of text transform in Firefox. 272 | */ 273 | 274 | button, 275 | select { /* 1 */ 276 | text-transform: none; 277 | } 278 | 279 | /** 280 | * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` 281 | * controls in Android 4. 282 | * 2. Correct the inability to style clickable types in iOS and Safari. 283 | */ 284 | 285 | button, 286 | html [type="button"], /* 1 */ 287 | [type="reset"], 288 | [type="submit"] { 289 | -webkit-appearance: button; /* 2 */ 290 | } 291 | 292 | /** 293 | * Remove the inner border and padding in Firefox. 294 | */ 295 | 296 | button::-moz-focus-inner, 297 | [type="button"]::-moz-focus-inner, 298 | [type="reset"]::-moz-focus-inner, 299 | [type="submit"]::-moz-focus-inner { 300 | border-style: none; 301 | padding: 0; 302 | } 303 | 304 | /** 305 | * Restore the focus styles unset by the previous rule. 306 | */ 307 | 308 | button:-moz-focusring, 309 | [type="button"]:-moz-focusring, 310 | [type="reset"]:-moz-focusring, 311 | [type="submit"]:-moz-focusring { 312 | outline: 1px dotted ButtonText; 313 | } 314 | 315 | /** 316 | * Correct the padding in Firefox. 317 | */ 318 | 319 | fieldset { 320 | padding: 0.35em 0.75em 0.625em; 321 | } 322 | 323 | /** 324 | * 1. Correct the text wrapping in Edge and IE. 325 | * 2. Correct the color inheritance from `fieldset` elements in IE. 326 | * 3. Remove the padding so developers are not caught out when they zero out 327 | * `fieldset` elements in all browsers. 328 | */ 329 | 330 | legend { 331 | box-sizing: border-box; /* 1 */ 332 | color: inherit; /* 2 */ 333 | display: table; /* 1 */ 334 | max-width: 100%; /* 1 */ 335 | padding: 0; /* 3 */ 336 | white-space: normal; /* 1 */ 337 | } 338 | 339 | /** 340 | * 1. Add the correct display in IE 9-. 341 | * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. 342 | */ 343 | 344 | progress { 345 | display: inline-block; /* 1 */ 346 | vertical-align: baseline; /* 2 */ 347 | } 348 | 349 | /** 350 | * Remove the default vertical scrollbar in IE. 351 | */ 352 | 353 | textarea { 354 | overflow: auto; 355 | } 356 | 357 | /** 358 | * 1. Add the correct box sizing in IE 10-. 359 | * 2. Remove the padding in IE 10-. 360 | */ 361 | 362 | [type="checkbox"], 363 | [type="radio"] { 364 | box-sizing: border-box; /* 1 */ 365 | padding: 0; /* 2 */ 366 | } 367 | 368 | /** 369 | * Correct the cursor style of increment and decrement buttons in Chrome. 370 | */ 371 | 372 | [type="number"]::-webkit-inner-spin-button, 373 | [type="number"]::-webkit-outer-spin-button { 374 | height: auto; 375 | } 376 | 377 | /** 378 | * 1. Correct the odd appearance in Chrome and Safari. 379 | * 2. Correct the outline style in Safari. 380 | */ 381 | 382 | [type="search"] { 383 | -webkit-appearance: textfield; /* 1 */ 384 | outline-offset: -2px; /* 2 */ 385 | } 386 | 387 | /** 388 | * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. 389 | */ 390 | 391 | [type="search"]::-webkit-search-cancel-button, 392 | [type="search"]::-webkit-search-decoration { 393 | -webkit-appearance: none; 394 | } 395 | 396 | /** 397 | * 1. Correct the inability to style clickable types in iOS and Safari. 398 | * 2. Change font properties to `inherit` in Safari. 399 | */ 400 | 401 | ::-webkit-file-upload-button { 402 | -webkit-appearance: button; /* 1 */ 403 | font: inherit; /* 2 */ 404 | } 405 | 406 | /* Interactive 407 | ========================================================================== */ 408 | 409 | /* 410 | * Add the correct display in IE 9-. 411 | * 1. Add the correct display in Edge, IE, and Firefox. 412 | */ 413 | 414 | details, /* 1 */ 415 | menu { 416 | display: block; 417 | } 418 | 419 | /* 420 | * Add the correct display in all browsers. 421 | */ 422 | 423 | summary { 424 | display: list-item; 425 | } 426 | 427 | /* Scripting 428 | ========================================================================== */ 429 | 430 | /** 431 | * Add the correct display in IE 9-. 432 | */ 433 | 434 | canvas { 435 | display: inline-block; 436 | } 437 | 438 | /** 439 | * Add the correct display in IE. 440 | */ 441 | 442 | template { 443 | display: none; 444 | } 445 | 446 | /* Hidden 447 | ========================================================================== */ 448 | 449 | /** 450 | * Add the correct display in IE 10-. 451 | */ 452 | 453 | [hidden] { 454 | display: none; 455 | } 456 | -------------------------------------------------------------------------------- /Clase 13/styles.css: -------------------------------------------------------------------------------- 1 | /* 2 | Position sticky 3 | 4 | El elemento conserva su espacio en el flujo. 5 | 6 | Si no tiene dimensiones declaradas, sus dimensiones se ajustan al contenido. 7 | 8 | Su punto de referencia (contexto) es el viewport (el espacio visible en pantalla) 9 | 10 | Al ser un elemento posicionado lo podemos mover en los 3 ejes X Y Z 11 | */ 12 | 13 | .slide{ 14 | height: 300px; 15 | background: grey; 16 | font-size: 3em; 17 | text-align: center; 18 | line-height: 6em; 19 | } 20 | 21 | .menu{ 22 | background:darkcyan; 23 | padding: .5em; 24 | text-align: center; 25 | font-size: 2em; 26 | width: 100%; 27 | position: sticky; 28 | top:0; 29 | } 30 | 31 | .title{ 32 | margin: 0; 33 | } 34 | -------------------------------------------------------------------------------- /Clase 14/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | z.index 7 | 8 | 9 | 10 | 11 | 12 | 16 | 17 |
18 |
Hijo
19 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /Clase 14/normalize.css: -------------------------------------------------------------------------------- 1 | /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ 2 | 3 | /* Document 4 | ========================================================================== */ 5 | 6 | /** 7 | * 1. Correct the line height in all browsers. 8 | * 2. Prevent adjustments of font size after orientation changes in 9 | * IE on Windows Phone and in iOS. 10 | */ 11 | 12 | *, *:before, *:after{ 13 | box-sizing: border-box; 14 | } 15 | 16 | html { 17 | line-height: 1.15; /* 1 */ 18 | -ms-text-size-adjust: 100%; /* 2 */ 19 | -webkit-text-size-adjust: 100%; /* 2 */ 20 | } 21 | 22 | /* Sections 23 | ========================================================================== */ 24 | 25 | /** 26 | * Remove the margin in all browsers (opinionated). 27 | */ 28 | 29 | body { 30 | margin: 0; 31 | } 32 | 33 | img{ 34 | max-width: 100%; 35 | } 36 | 37 | /** 38 | * Add the correct display in IE 9-. 39 | */ 40 | 41 | article, 42 | aside, 43 | footer, 44 | header, 45 | nav, 46 | section { 47 | display: block; 48 | } 49 | 50 | /** 51 | * Correct the font size and margin on `h1` elements within `section` and 52 | * `article` contexts in Chrome, Firefox, and Safari. 53 | */ 54 | 55 | h1 { 56 | font-size: 2em; 57 | margin: 0.67em 0; 58 | } 59 | 60 | /* Grouping content 61 | ========================================================================== */ 62 | 63 | /** 64 | * Add the correct display in IE 9-. 65 | * 1. Add the correct display in IE. 66 | */ 67 | 68 | figcaption, 69 | figure, 70 | main { /* 1 */ 71 | display: block; 72 | } 73 | 74 | /** 75 | * Add the correct margin in IE 8. 76 | */ 77 | 78 | figure { 79 | margin: 1em 40px; 80 | } 81 | 82 | /** 83 | * 1. Add the correct box sizing in Firefox. 84 | * 2. Show the overflow in Edge and IE. 85 | */ 86 | 87 | hr { 88 | box-sizing: content-box; /* 1 */ 89 | height: 0; /* 1 */ 90 | overflow: visible; /* 2 */ 91 | } 92 | 93 | /** 94 | * 1. Correct the inheritance and scaling of font size in all browsers. 95 | * 2. Correct the odd `em` font sizing in all browsers. 96 | */ 97 | 98 | pre { 99 | font-family: monospace, monospace; /* 1 */ 100 | font-size: 1em; /* 2 */ 101 | } 102 | 103 | /* Text-level semantics 104 | ========================================================================== */ 105 | 106 | /** 107 | * 1. Remove the gray background on active links in IE 10. 108 | * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. 109 | */ 110 | 111 | a { 112 | background-color: transparent; /* 1 */ 113 | -webkit-text-decoration-skip: objects; /* 2 */ 114 | } 115 | 116 | /** 117 | * 1. Remove the bottom border in Chrome 57- and Firefox 39-. 118 | * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. 119 | */ 120 | 121 | abbr[title] { 122 | border-bottom: none; /* 1 */ 123 | text-decoration: underline; /* 2 */ 124 | text-decoration: underline dotted; /* 2 */ 125 | } 126 | 127 | /** 128 | * Prevent the duplicate application of `bolder` by the next rule in Safari 6. 129 | */ 130 | 131 | b, 132 | strong { 133 | font-weight: inherit; 134 | } 135 | 136 | /** 137 | * Add the correct font weight in Chrome, Edge, and Safari. 138 | */ 139 | 140 | b, 141 | strong { 142 | font-weight: bolder; 143 | } 144 | 145 | /** 146 | * 1. Correct the inheritance and scaling of font size in all browsers. 147 | * 2. Correct the odd `em` font sizing in all browsers. 148 | */ 149 | 150 | code, 151 | kbd, 152 | samp { 153 | font-family: monospace, monospace; /* 1 */ 154 | font-size: 1em; /* 2 */ 155 | } 156 | 157 | /** 158 | * Add the correct font style in Android 4.3-. 159 | */ 160 | 161 | dfn { 162 | font-style: italic; 163 | } 164 | 165 | /** 166 | * Add the correct background and color in IE 9-. 167 | */ 168 | 169 | mark { 170 | background-color: #ff0; 171 | color: #000; 172 | } 173 | 174 | /** 175 | * Add the correct font size in all browsers. 176 | */ 177 | 178 | small { 179 | font-size: 80%; 180 | } 181 | 182 | /** 183 | * Prevent `sub` and `sup` elements from affecting the line height in 184 | * all browsers. 185 | */ 186 | 187 | sub, 188 | sup { 189 | font-size: 75%; 190 | line-height: 0; 191 | position: relative; 192 | vertical-align: baseline; 193 | } 194 | 195 | sub { 196 | bottom: -0.25em; 197 | } 198 | 199 | sup { 200 | top: -0.5em; 201 | } 202 | 203 | /* Embedded content 204 | ========================================================================== */ 205 | 206 | /** 207 | * Add the correct display in IE 9-. 208 | */ 209 | 210 | audio, 211 | video { 212 | display: inline-block; 213 | } 214 | 215 | /** 216 | * Add the correct display in iOS 4-7. 217 | */ 218 | 219 | audio:not([controls]) { 220 | display: none; 221 | height: 0; 222 | } 223 | 224 | /** 225 | * Remove the border on images inside links in IE 10-. 226 | */ 227 | 228 | img { 229 | border-style: none; 230 | } 231 | 232 | /** 233 | * Hide the overflow in IE. 234 | */ 235 | 236 | svg:not(:root) { 237 | overflow: hidden; 238 | } 239 | 240 | /* Forms 241 | ========================================================================== */ 242 | 243 | /** 244 | * 1. Change the font styles in all browsers (opinionated). 245 | * 2. Remove the margin in Firefox and Safari. 246 | */ 247 | 248 | button, 249 | input, 250 | optgroup, 251 | select, 252 | textarea { 253 | font-family: sans-serif; /* 1 */ 254 | font-size: 100%; /* 1 */ 255 | line-height: 1.15; /* 1 */ 256 | margin: 0; /* 2 */ 257 | } 258 | 259 | /** 260 | * Show the overflow in IE. 261 | * 1. Show the overflow in Edge. 262 | */ 263 | 264 | button, 265 | input { /* 1 */ 266 | overflow: visible; 267 | } 268 | 269 | /** 270 | * Remove the inheritance of text transform in Edge, Firefox, and IE. 271 | * 1. Remove the inheritance of text transform in Firefox. 272 | */ 273 | 274 | button, 275 | select { /* 1 */ 276 | text-transform: none; 277 | } 278 | 279 | /** 280 | * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` 281 | * controls in Android 4. 282 | * 2. Correct the inability to style clickable types in iOS and Safari. 283 | */ 284 | 285 | button, 286 | html [type="button"], /* 1 */ 287 | [type="reset"], 288 | [type="submit"] { 289 | -webkit-appearance: button; /* 2 */ 290 | } 291 | 292 | /** 293 | * Remove the inner border and padding in Firefox. 294 | */ 295 | 296 | button::-moz-focus-inner, 297 | [type="button"]::-moz-focus-inner, 298 | [type="reset"]::-moz-focus-inner, 299 | [type="submit"]::-moz-focus-inner { 300 | border-style: none; 301 | padding: 0; 302 | } 303 | 304 | /** 305 | * Restore the focus styles unset by the previous rule. 306 | */ 307 | 308 | button:-moz-focusring, 309 | [type="button"]:-moz-focusring, 310 | [type="reset"]:-moz-focusring, 311 | [type="submit"]:-moz-focusring { 312 | outline: 1px dotted ButtonText; 313 | } 314 | 315 | /** 316 | * Correct the padding in Firefox. 317 | */ 318 | 319 | fieldset { 320 | padding: 0.35em 0.75em 0.625em; 321 | } 322 | 323 | /** 324 | * 1. Correct the text wrapping in Edge and IE. 325 | * 2. Correct the color inheritance from `fieldset` elements in IE. 326 | * 3. Remove the padding so developers are not caught out when they zero out 327 | * `fieldset` elements in all browsers. 328 | */ 329 | 330 | legend { 331 | box-sizing: border-box; /* 1 */ 332 | color: inherit; /* 2 */ 333 | display: table; /* 1 */ 334 | max-width: 100%; /* 1 */ 335 | padding: 0; /* 3 */ 336 | white-space: normal; /* 1 */ 337 | } 338 | 339 | /** 340 | * 1. Add the correct display in IE 9-. 341 | * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. 342 | */ 343 | 344 | progress { 345 | display: inline-block; /* 1 */ 346 | vertical-align: baseline; /* 2 */ 347 | } 348 | 349 | /** 350 | * Remove the default vertical scrollbar in IE. 351 | */ 352 | 353 | textarea { 354 | overflow: auto; 355 | } 356 | 357 | /** 358 | * 1. Add the correct box sizing in IE 10-. 359 | * 2. Remove the padding in IE 10-. 360 | */ 361 | 362 | [type="checkbox"], 363 | [type="radio"] { 364 | box-sizing: border-box; /* 1 */ 365 | padding: 0; /* 2 */ 366 | } 367 | 368 | /** 369 | * Correct the cursor style of increment and decrement buttons in Chrome. 370 | */ 371 | 372 | [type="number"]::-webkit-inner-spin-button, 373 | [type="number"]::-webkit-outer-spin-button { 374 | height: auto; 375 | } 376 | 377 | /** 378 | * 1. Correct the odd appearance in Chrome and Safari. 379 | * 2. Correct the outline style in Safari. 380 | */ 381 | 382 | [type="search"] { 383 | -webkit-appearance: textfield; /* 1 */ 384 | outline-offset: -2px; /* 2 */ 385 | } 386 | 387 | /** 388 | * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. 389 | */ 390 | 391 | [type="search"]::-webkit-search-cancel-button, 392 | [type="search"]::-webkit-search-decoration { 393 | -webkit-appearance: none; 394 | } 395 | 396 | /** 397 | * 1. Correct the inability to style clickable types in iOS and Safari. 398 | * 2. Change font properties to `inherit` in Safari. 399 | */ 400 | 401 | ::-webkit-file-upload-button { 402 | -webkit-appearance: button; /* 1 */ 403 | font: inherit; /* 2 */ 404 | } 405 | 406 | /* Interactive 407 | ========================================================================== */ 408 | 409 | /* 410 | * Add the correct display in IE 9-. 411 | * 1. Add the correct display in Edge, IE, and Firefox. 412 | */ 413 | 414 | details, /* 1 */ 415 | menu { 416 | display: block; 417 | } 418 | 419 | /* 420 | * Add the correct display in all browsers. 421 | */ 422 | 423 | summary { 424 | display: list-item; 425 | } 426 | 427 | /* Scripting 428 | ========================================================================== */ 429 | 430 | /** 431 | * Add the correct display in IE 9-. 432 | */ 433 | 434 | canvas { 435 | display: inline-block; 436 | } 437 | 438 | /** 439 | * Add the correct display in IE. 440 | */ 441 | 442 | template { 443 | display: none; 444 | } 445 | 446 | /* Hidden 447 | ========================================================================== */ 448 | 449 | /** 450 | * Add the correct display in IE 10-. 451 | */ 452 | 453 | [hidden] { 454 | display: none; 455 | } 456 | -------------------------------------------------------------------------------- /Clase 14/styles.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | z-index 4 | 5 | Nos permite modificar el orden de las capas en el eje z (profundidad) 6 | 7 | Admite valores positivos y negativos 8 | 9 | Es recomendable usar valores no consecutivos. 100, 200, 300… 10 | 11 | Si el padre tiene z-index declarado no podremos poner a un hijo por encima. 12 | 13 | */ 14 | 15 | .box{ 16 | width: 75px; 17 | height: 75px; 18 | font-size: 1.5em; 19 | line-height: 75px; 20 | text-align: center; 21 | position: relative; 22 | } 23 | 24 | .box1{ 25 | background: darkcyan; 26 | z-index: 30; 27 | } 28 | 29 | .box2{ 30 | background: darkkhaki; 31 | top: -38px; 32 | left: 38px; 33 | z-index: 20; 34 | } 35 | 36 | .box3{ 37 | background:darkorchid; 38 | top: -75px; 39 | left: 75px; 40 | z-index: 10; 41 | } 42 | 43 | .box4{ 44 | background: darkgoldenrod; 45 | top: -150px; 46 | left: 50px; 47 | z-index: 15; 48 | } 49 | 50 | .padre{ 51 | width: 200px; 52 | height: 200px; 53 | background: blue; 54 | position: relative; 55 | top: 30px; 56 | /* Si queremos colocar a un hijo por debajo del padre, el padre no puede tener un z-index declarado */ 57 | } 58 | 59 | .hijo{ 60 | width: 50px; 61 | height: 50px; 62 | background: yellow; 63 | position: relative; 64 | top: -30px; 65 | left: 150px; 66 | z-index: -100; 67 | /* El hijo debe tener un z-index negativo */ 68 | } -------------------------------------------------------------------------------- /Clase 15/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Display 7 | 8 | 9 | 10 | 11 | 12 | Soy un elemento en línea 13 | Soy otro elemento en línea 14 |

Soy un elemento de bloque

15 | 16 | 17 | -------------------------------------------------------------------------------- /Clase 15/normalize.css: -------------------------------------------------------------------------------- 1 | /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ 2 | 3 | /* Document 4 | ========================================================================== */ 5 | 6 | /** 7 | * 1. Correct the line height in all browsers. 8 | * 2. Prevent adjustments of font size after orientation changes in 9 | * IE on Windows Phone and in iOS. 10 | */ 11 | 12 | *, *:before, *:after{ 13 | box-sizing: border-box; 14 | } 15 | 16 | html { 17 | line-height: 1.15; /* 1 */ 18 | -ms-text-size-adjust: 100%; /* 2 */ 19 | -webkit-text-size-adjust: 100%; /* 2 */ 20 | } 21 | 22 | /* Sections 23 | ========================================================================== */ 24 | 25 | /** 26 | * Remove the margin in all browsers (opinionated). 27 | */ 28 | 29 | body { 30 | margin: 0; 31 | } 32 | 33 | img{ 34 | max-width: 100%; 35 | } 36 | 37 | /** 38 | * Add the correct display in IE 9-. 39 | */ 40 | 41 | article, 42 | aside, 43 | footer, 44 | header, 45 | nav, 46 | section { 47 | display: block; 48 | } 49 | 50 | /** 51 | * Correct the font size and margin on `h1` elements within `section` and 52 | * `article` contexts in Chrome, Firefox, and Safari. 53 | */ 54 | 55 | h1 { 56 | font-size: 2em; 57 | margin: 0.67em 0; 58 | } 59 | 60 | /* Grouping content 61 | ========================================================================== */ 62 | 63 | /** 64 | * Add the correct display in IE 9-. 65 | * 1. Add the correct display in IE. 66 | */ 67 | 68 | figcaption, 69 | figure, 70 | main { /* 1 */ 71 | display: block; 72 | } 73 | 74 | /** 75 | * Add the correct margin in IE 8. 76 | */ 77 | 78 | figure { 79 | margin: 1em 40px; 80 | } 81 | 82 | /** 83 | * 1. Add the correct box sizing in Firefox. 84 | * 2. Show the overflow in Edge and IE. 85 | */ 86 | 87 | hr { 88 | box-sizing: content-box; /* 1 */ 89 | height: 0; /* 1 */ 90 | overflow: visible; /* 2 */ 91 | } 92 | 93 | /** 94 | * 1. Correct the inheritance and scaling of font size in all browsers. 95 | * 2. Correct the odd `em` font sizing in all browsers. 96 | */ 97 | 98 | pre { 99 | font-family: monospace, monospace; /* 1 */ 100 | font-size: 1em; /* 2 */ 101 | } 102 | 103 | /* Text-level semantics 104 | ========================================================================== */ 105 | 106 | /** 107 | * 1. Remove the gray background on active links in IE 10. 108 | * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. 109 | */ 110 | 111 | a { 112 | background-color: transparent; /* 1 */ 113 | -webkit-text-decoration-skip: objects; /* 2 */ 114 | } 115 | 116 | /** 117 | * 1. Remove the bottom border in Chrome 57- and Firefox 39-. 118 | * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. 119 | */ 120 | 121 | abbr[title] { 122 | border-bottom: none; /* 1 */ 123 | text-decoration: underline; /* 2 */ 124 | text-decoration: underline dotted; /* 2 */ 125 | } 126 | 127 | /** 128 | * Prevent the duplicate application of `bolder` by the next rule in Safari 6. 129 | */ 130 | 131 | b, 132 | strong { 133 | font-weight: inherit; 134 | } 135 | 136 | /** 137 | * Add the correct font weight in Chrome, Edge, and Safari. 138 | */ 139 | 140 | b, 141 | strong { 142 | font-weight: bolder; 143 | } 144 | 145 | /** 146 | * 1. Correct the inheritance and scaling of font size in all browsers. 147 | * 2. Correct the odd `em` font sizing in all browsers. 148 | */ 149 | 150 | code, 151 | kbd, 152 | samp { 153 | font-family: monospace, monospace; /* 1 */ 154 | font-size: 1em; /* 2 */ 155 | } 156 | 157 | /** 158 | * Add the correct font style in Android 4.3-. 159 | */ 160 | 161 | dfn { 162 | font-style: italic; 163 | } 164 | 165 | /** 166 | * Add the correct background and color in IE 9-. 167 | */ 168 | 169 | mark { 170 | background-color: #ff0; 171 | color: #000; 172 | } 173 | 174 | /** 175 | * Add the correct font size in all browsers. 176 | */ 177 | 178 | small { 179 | font-size: 80%; 180 | } 181 | 182 | /** 183 | * Prevent `sub` and `sup` elements from affecting the line height in 184 | * all browsers. 185 | */ 186 | 187 | sub, 188 | sup { 189 | font-size: 75%; 190 | line-height: 0; 191 | position: relative; 192 | vertical-align: baseline; 193 | } 194 | 195 | sub { 196 | bottom: -0.25em; 197 | } 198 | 199 | sup { 200 | top: -0.5em; 201 | } 202 | 203 | /* Embedded content 204 | ========================================================================== */ 205 | 206 | /** 207 | * Add the correct display in IE 9-. 208 | */ 209 | 210 | audio, 211 | video { 212 | display: inline-block; 213 | } 214 | 215 | /** 216 | * Add the correct display in iOS 4-7. 217 | */ 218 | 219 | audio:not([controls]) { 220 | display: none; 221 | height: 0; 222 | } 223 | 224 | /** 225 | * Remove the border on images inside links in IE 10-. 226 | */ 227 | 228 | img { 229 | border-style: none; 230 | } 231 | 232 | /** 233 | * Hide the overflow in IE. 234 | */ 235 | 236 | svg:not(:root) { 237 | overflow: hidden; 238 | } 239 | 240 | /* Forms 241 | ========================================================================== */ 242 | 243 | /** 244 | * 1. Change the font styles in all browsers (opinionated). 245 | * 2. Remove the margin in Firefox and Safari. 246 | */ 247 | 248 | button, 249 | input, 250 | optgroup, 251 | select, 252 | textarea { 253 | font-family: sans-serif; /* 1 */ 254 | font-size: 100%; /* 1 */ 255 | line-height: 1.15; /* 1 */ 256 | margin: 0; /* 2 */ 257 | } 258 | 259 | /** 260 | * Show the overflow in IE. 261 | * 1. Show the overflow in Edge. 262 | */ 263 | 264 | button, 265 | input { /* 1 */ 266 | overflow: visible; 267 | } 268 | 269 | /** 270 | * Remove the inheritance of text transform in Edge, Firefox, and IE. 271 | * 1. Remove the inheritance of text transform in Firefox. 272 | */ 273 | 274 | button, 275 | select { /* 1 */ 276 | text-transform: none; 277 | } 278 | 279 | /** 280 | * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` 281 | * controls in Android 4. 282 | * 2. Correct the inability to style clickable types in iOS and Safari. 283 | */ 284 | 285 | button, 286 | html [type="button"], /* 1 */ 287 | [type="reset"], 288 | [type="submit"] { 289 | -webkit-appearance: button; /* 2 */ 290 | } 291 | 292 | /** 293 | * Remove the inner border and padding in Firefox. 294 | */ 295 | 296 | button::-moz-focus-inner, 297 | [type="button"]::-moz-focus-inner, 298 | [type="reset"]::-moz-focus-inner, 299 | [type="submit"]::-moz-focus-inner { 300 | border-style: none; 301 | padding: 0; 302 | } 303 | 304 | /** 305 | * Restore the focus styles unset by the previous rule. 306 | */ 307 | 308 | button:-moz-focusring, 309 | [type="button"]:-moz-focusring, 310 | [type="reset"]:-moz-focusring, 311 | [type="submit"]:-moz-focusring { 312 | outline: 1px dotted ButtonText; 313 | } 314 | 315 | /** 316 | * Correct the padding in Firefox. 317 | */ 318 | 319 | fieldset { 320 | padding: 0.35em 0.75em 0.625em; 321 | } 322 | 323 | /** 324 | * 1. Correct the text wrapping in Edge and IE. 325 | * 2. Correct the color inheritance from `fieldset` elements in IE. 326 | * 3. Remove the padding so developers are not caught out when they zero out 327 | * `fieldset` elements in all browsers. 328 | */ 329 | 330 | legend { 331 | box-sizing: border-box; /* 1 */ 332 | color: inherit; /* 2 */ 333 | display: table; /* 1 */ 334 | max-width: 100%; /* 1 */ 335 | padding: 0; /* 3 */ 336 | white-space: normal; /* 1 */ 337 | } 338 | 339 | /** 340 | * 1. Add the correct display in IE 9-. 341 | * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. 342 | */ 343 | 344 | progress { 345 | display: inline-block; /* 1 */ 346 | vertical-align: baseline; /* 2 */ 347 | } 348 | 349 | /** 350 | * Remove the default vertical scrollbar in IE. 351 | */ 352 | 353 | textarea { 354 | overflow: auto; 355 | } 356 | 357 | /** 358 | * 1. Add the correct box sizing in IE 10-. 359 | * 2. Remove the padding in IE 10-. 360 | */ 361 | 362 | [type="checkbox"], 363 | [type="radio"] { 364 | box-sizing: border-box; /* 1 */ 365 | padding: 0; /* 2 */ 366 | } 367 | 368 | /** 369 | * Correct the cursor style of increment and decrement buttons in Chrome. 370 | */ 371 | 372 | [type="number"]::-webkit-inner-spin-button, 373 | [type="number"]::-webkit-outer-spin-button { 374 | height: auto; 375 | } 376 | 377 | /** 378 | * 1. Correct the odd appearance in Chrome and Safari. 379 | * 2. Correct the outline style in Safari. 380 | */ 381 | 382 | [type="search"] { 383 | -webkit-appearance: textfield; /* 1 */ 384 | outline-offset: -2px; /* 2 */ 385 | } 386 | 387 | /** 388 | * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. 389 | */ 390 | 391 | [type="search"]::-webkit-search-cancel-button, 392 | [type="search"]::-webkit-search-decoration { 393 | -webkit-appearance: none; 394 | } 395 | 396 | /** 397 | * 1. Correct the inability to style clickable types in iOS and Safari. 398 | * 2. Change font properties to `inherit` in Safari. 399 | */ 400 | 401 | ::-webkit-file-upload-button { 402 | -webkit-appearance: button; /* 1 */ 403 | font: inherit; /* 2 */ 404 | } 405 | 406 | /* Interactive 407 | ========================================================================== */ 408 | 409 | /* 410 | * Add the correct display in IE 9-. 411 | * 1. Add the correct display in Edge, IE, and Firefox. 412 | */ 413 | 414 | details, /* 1 */ 415 | menu { 416 | display: block; 417 | } 418 | 419 | /* 420 | * Add the correct display in all browsers. 421 | */ 422 | 423 | summary { 424 | display: list-item; 425 | } 426 | 427 | /* Scripting 428 | ========================================================================== */ 429 | 430 | /** 431 | * Add the correct display in IE 9-. 432 | */ 433 | 434 | canvas { 435 | display: inline-block; 436 | } 437 | 438 | /** 439 | * Add the correct display in IE. 440 | */ 441 | 442 | template { 443 | display: none; 444 | } 445 | 446 | /* Hidden 447 | ========================================================================== */ 448 | 449 | /** 450 | * Add the correct display in IE 10-. 451 | */ 452 | 453 | [hidden] { 454 | display: none; 455 | } 456 | -------------------------------------------------------------------------------- /Clase 15/styles.css: -------------------------------------------------------------------------------- 1 | /* 2 | -Nos permite definir cómo se comporta una caja. 3 | -De forma natural existen elementos en línea y elementos en bloque 4 | -Los valores de esta propiedad son: 5 | inline – Establece que la caja se comporta como si fuera un elemento en línea. 6 | No admite dimensiones (width y height) 7 | Admiten margin y padding pero no afecta al flujo vertical,sólo al horizontal 8 | block - Establece que la caja se comporta como si fuera un elemento en bloque. 9 | Admite dimensiones (width y height) 10 | Admiten margin y padding y afecta al flujo vertical, sólo al horizontal. 11 | 12 | inline-block - Se comporta como un elemento en línea pero acepta width y heigth 13 | 14 | none – Oculta el elemento pero se sigue renderizando 15 | 16 | table – Imita el comportamiento de una tabla 17 | 18 | list-item - Imita el comportamiento de una lista 19 | 20 | CSS3 21 | flex – maquetar componentes 22 | grid – maquetar layout 23 | */ 24 | 25 | .inline{ 26 | background: lime; 27 | display: none; 28 | } 29 | 30 | .block{ 31 | background: yellow; 32 | margin: 0; 33 | } -------------------------------------------------------------------------------- /Clase 16/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Pseudoelementos 7 | 8 | 9 | 10 | 11 | 12 |

Pseudoelementos

13 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Nesciunt eum impedit dolorum eligendi et, accusantium laudantium deleniti molestias id optio quibusdam rerum architecto atque cupiditate ratione cumque enim nobis voluptatem.

14 |

5

15 | Soy un elemento de línea 16 | 17 | 18 | -------------------------------------------------------------------------------- /Clase 16/styles.css: -------------------------------------------------------------------------------- 1 | /* 2 | Se utilizan para dar estilo a partes específicas de un elemento. 3 | La sintaxis es selector::pseudo-element{ estilos } 4 | 5 | Existen 5 pseudoelementos: 6 | ::first-letter (Elementos de bloque) 7 | ::first-line (Elementos de bloque) 8 | ::selection (Retirado de la especificación) 9 | ::before 10 | ::after 11 | La propiedad content es obligatoria 12 | Son elementos de línea por defecto 13 | Son hijos del elemento al que pertenecen 14 | 15 | */ 16 | 17 | .title::first-letter{ 18 | color: red; 19 | font-size: 2em; 20 | } 21 | 22 | .text::first-line{ 23 | font-size: 2em; 24 | color:blue; 25 | } 26 | 27 | .inline::first-letter{ 28 | color: red; 29 | font-size: 2em; 30 | } 31 | 32 | .text::selection{ 33 | color: lime; 34 | background: red; 35 | } 36 | 37 | .dolar::before, 38 | .dolar::after{ 39 | content: ''; 40 | display: block; 41 | width: 20px; 42 | height: 20px; 43 | background: red; 44 | } 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /Clase 17/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Pseudoclases 7 | 8 | 9 | 10 | 11 | 12 |
13 |

Demostración :fullscreen

14 |

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

15 | 16 |
17 |

Pseudoclases

18 | 20 | 21 | 24 | 25 | 26 | 30 | Hello World 31 | Hola Mundo 32 | 33 | 34 | -------------------------------------------------------------------------------- /Clase 17/styles.css: -------------------------------------------------------------------------------- 1 | /* 2 | Dynamic 3 | :link (links) - Link no visitado 4 | :visited (links) - Link visitado 5 | :active (links) - El momento del click 6 | :hover - Al poner el mouse sobre el elemento 7 | :focus - Cuando el elemento tiene el foco 8 | 9 | Target 10 | :target - Elemento es objetivo de un marcador o ancla 11 | 12 | Language 13 | :lang() - Elemento que contiene el atributo lang que especifiquemos 14 | */ 15 | 16 | /* 17 | ===Ejercicios PSEUDOCLASES I=== 18 | 19 | .link:link { 20 | color: red; 21 | } 22 | 23 | .link:visited { 24 | color: chartreuse 25 | } 26 | 27 | .link:active { 28 | color: cyan; 29 | background: red; 30 | } 31 | 32 | .title:hover { 33 | color: blueviolet; 34 | } 35 | 36 | .button { 37 | text-decoration: none; 38 | display: inline-block; 39 | background: red; 40 | padding: .5em; 41 | border-radius: 10px; 42 | color: #FFF; 43 | } 44 | 45 | .button:active { 46 | transform: scale(.9) 47 | } 48 | 49 | .button:hover { 50 | color: red; 51 | background: #fff; 52 | border: 1px solid; 53 | border-radius: 10px; 54 | } 55 | 56 | .input:focus { 57 | background: green; 58 | } 59 | 60 | .menu { 61 | background: lightblue; 62 | display: block; 63 | padding: 1em; 64 | text-decoration: none; 65 | text-align: center; 66 | position: fixed; 67 | width: 100%; 68 | top: 0; 69 | left: 0; 70 | } 71 | 72 | .text { 73 | margin-top: 500px; 74 | margin-bottom: 500px; 75 | } 76 | 77 | .text:target { 78 | padding-top: 75px; 79 | } 80 | 81 | .span { 82 | display: block; 83 | } 84 | 85 | .span:lang(en) { 86 | color: red; 87 | } 88 | 89 | .span:lang(es) { 90 | color: blue; 91 | } 92 | */ -------------------------------------------------------------------------------- /Clase 18/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Pseudoclases 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
32 | 33 | 34 | -------------------------------------------------------------------------------- /Clase 18/styles.css: -------------------------------------------------------------------------------- 1 | .input, 2 | .label { 3 | display: block; 4 | } 5 | 6 | /* 7 | UI States 8 | :enabled 9 | :disabled 10 | :checked 11 | :in-range 12 | :out-of-range 13 | :required 14 | :optional 15 | :valid 16 | :invalid 17 | :read-only 18 | :read-write 19 | */ 20 | 21 | .input:enabled { 22 | background: red; 23 | } 24 | 25 | .input:disabled { 26 | background: yellow; 27 | border: none; 28 | } 29 | 30 | .input:checked + label{ 31 | font-size: 2em; 32 | } 33 | 34 | .input:in-range{ 35 | background: green; 36 | } 37 | 38 | .input:out-of-range{ 39 | background: blue; 40 | } 41 | 42 | .input:optional{ 43 | background: purple; 44 | } 45 | 46 | .input:required{ 47 | background: lightcoral; 48 | } 49 | 50 | .input:valid{ 51 | background: green; 52 | } 53 | 54 | .input:invalid{ 55 | background: red; 56 | } 57 | 58 | /* 59 | Structural 60 | :root 61 | :nth-child() 62 | :nth-last-child() 63 | :nth-of-type() 64 | :nth-last-of-type() 65 | :first-child 66 | :last-child 67 | :first-of-type 68 | :last-of-type 69 | :only-child 70 | :only-of-type 71 | :empty 72 | 73 | Negation 74 | :not() 75 | */ -------------------------------------------------------------------------------- /Clase 19/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Pseudoclases 7 | 8 | 9 | 10 | 11 | 12 |
13 |
div 1
14 |
div 2
15 |
div 2
16 |
div 2
17 |
div 2
18 |
div 2
19 |

Párrafo 1

20 |

Párrafo 2

21 |

Párrafo 3

22 |

Párrafo 4

23 |

Párrafo 5

24 |

Párrafo 6

25 |

Párrafo 7

26 |

Párrafo 8

27 |

Párrafo 9

28 |

Párrafo 10

29 | 30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /Clase 19/styles.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Structural 4 | :root - Representa la raiz del documento (html) usando una pseudoclase tenemos más especificidad que si usáramos html 5 | 6 | :empty - Esta pseudoclase se aplica para los elementos vacios, es decir, etiquetas que no tienen contenido 7 | 8 | -child 9 | :first-child - Selecciona al primer hijo (independientemente del tipo de etiqueta) 10 | :last-child - Selecciona al ultimo hijo (independientemente del tipo de etiqueta) 11 | 12 | :nth-child(n) - Selecciona al hijo n(independientemente del tipo de etiqueta) 13 | :nth-last-child(n) Selecciona al hijo n empezando a contar desde el último (independientemente del tipo de etiqueta) 14 | :only-child Selecciona al hijo unico(independientemente del tipo de etiqueta) 15 | 16 | -type 17 | :first-of-type 18 | :last-of-type 19 | :nth-of-type() 20 | :nth-last-of-type() 21 | :only-of-type 22 | 23 | Valores posibles: 24 | odd - Impares 25 | even - Pares 26 | numeros enteros - 2,3,4... 27 | equaciones (1n,3n,4n+1,n+4,...) 28 | n es un multiplicador va de 0 hasta que se quede sin elementos 29 | 30 | Negation 31 | :not() - Selecciona al elemento que no cumpla la condición, se puede poner cualquier selector salvo otro :not 32 | */ 33 | 34 | /* .paragraph{ 35 | padding: .5em; 36 | background:lightblue; 37 | } 38 | 39 | .paragraph:empty{ 40 | all:unset; 41 | } */ 42 | 43 | /* .paragraph:first-child { 44 | background: red; 45 | } 46 | 47 | .paragraph:last-child { 48 | background: blue; 49 | } */ 50 | 51 | /* .paragraph:nth-child(odd) { 52 | background: lightcoral; 53 | } */ 54 | 55 | /* .paragraph:nth-child(even) { 56 | background: lightcoral; 57 | } */ 58 | 59 | /* .paragraph:nth-child(3) { 60 | background: lightcoral; 61 | } */ 62 | 63 | /* .paragraph:nth-child(3n) { 64 | /* n primero vale 0, después 1, después 2 y por último 3 65 | background: lightcoral; 66 | } */ 67 | 68 | /* .paragraph:nth-child(3n + 1) { 69 | background: lightcoral; 70 | } */ 71 | 72 | /* .paragraph:nth-child(n + 4) { 73 | background: lightcoral; 74 | } 75 | */ 76 | 77 | /* .paragraph:nth-last-child(n+3) { 78 | background: lightcoral; 79 | } */ 80 | 81 | /* .paragraph:only-child{ 82 | background: lightseagreen; 83 | } */ 84 | 85 | /* .paragraph:first-of-type{ 86 | background: red; 87 | } */ 88 | 89 | .paragraph:not(.first) { 90 | background: green; 91 | } -------------------------------------------------------------------------------- /Clase 2/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Especificidad, herencia y cascada 6 | 7 | 8 | 9 | 10 |

Estamos viendo la herencia en CSS

11 | 12 |

Estamos viendo la cascada en CSS

13 | 14 |

Estamos viendo la cascada en CSS

15 | 16 |

El párrafo que queremos cambiar y no podremos

17 | 18 | -------------------------------------------------------------------------------- /Clase 2/styles-dist.css: -------------------------------------------------------------------------------- 1 | /* Etiqueta -> 1 2 | Clases y pseudoclases -> 10 3 | Id -> 100 4 | Estilos en línea -> 1000 5 | !important -> Gana a todo; 6 | 7 | important -> especificidad -> cascada 8 | */ 9 | 10 | #parrafo{ 11 | color: blueviolet; 12 | } 13 | 14 | .parrafo{ 15 | color: red; 16 | } 17 | 18 | a{ 19 | color: inherit; 20 | } 21 | 22 | .parrafo-2{ 23 | color: black; 24 | } 25 | 26 | p{ 27 | color: green; 28 | } -------------------------------------------------------------------------------- /Clase 2/styles.css: -------------------------------------------------------------------------------- 1 | /* Etiqueta -> 1 2 | Clases y pseudoclases -> 10 3 | Id -> 100 4 | Estilos en línea -> 1000 5 | !important -> Gana a todo; 6 | 7 | important -> especificidad -> cascada 8 | */ 9 | 10 | #parrafo{ 11 | color: blueviolet; 12 | } 13 | 14 | .parrafo{ 15 | color: red; 16 | } 17 | 18 | a{ 19 | color: inherit; 20 | } 21 | 22 | .parrafo-2{ 23 | color: black; 24 | } 25 | 26 | p{ 27 | color: green; 28 | } -------------------------------------------------------------------------------- /Clase 20/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Variables CSS 7 | 8 | 9 | 10 | 11 | 12 |

Variables CSS

13 |
14 |

Párrafo principal

15 |
16 | 17 |
18 |

Otro párrafo

19 |
20 | 21 | 22 |
23 | 24 | 25 | -------------------------------------------------------------------------------- /Clase 20/styles.css: -------------------------------------------------------------------------------- 1 | :root { 2 | --color: blue; 3 | --border: 3px solid yellow; 4 | } 5 | 6 | .paragraph { 7 | color: var(--color) 8 | } 9 | 10 | .article{ 11 | --color:green; 12 | } 13 | 14 | .check:checked + .box{ 15 | --color: purple; 16 | } 17 | 18 | .box{ 19 | width: 100px; 20 | height: 100px; 21 | background: var(--color); 22 | border: var(--border) 23 | } -------------------------------------------------------------------------------- /Clase 21/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Variables CSS 7 | 8 | 9 | 10 | 11 | 12 |

Variables CSS

13 |
14 |

Párrafo principal

15 |
16 | 17 |
18 |

Otro párrafo

19 |
20 | 21 | 22 |
23 | 24 | 25 | -------------------------------------------------------------------------------- /Clase 21/styles.css: -------------------------------------------------------------------------------- 1 | :root { 2 | --color: blue; 3 | --border: 3px solid yellow; 4 | } 5 | 6 | .paragraph { 7 | color: var(--color) 8 | } 9 | 10 | .article{ 11 | --color:green; 12 | } 13 | 14 | .check:checked + .box{ 15 | --color: purple; 16 | } 17 | 18 | .box{ 19 | width: 100px; 20 | height: 100px; 21 | background: var(--color); 22 | border: var(--border) 23 | } -------------------------------------------------------------------------------- /Clase 22/attachment.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DorianDesings/css-basico-2018-1019/5ff750b78c0b06b6df341eab06af123ec9f752d7/Clase 22/attachment.jpeg -------------------------------------------------------------------------------- /Clase 22/cafe.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DorianDesings/css-basico-2018-1019/5ff750b78c0b06b6df341eab06af123ec9f752d7/Clase 22/cafe.jpeg -------------------------------------------------------------------------------- /Clase 22/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Background 7 | 8 | 9 | 10 | 11 | 12 |

Background

13 | 21 |
22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Clase 22/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DorianDesings/css-basico-2018-1019/5ff750b78c0b06b6df341eab06af123ec9f752d7/Clase 22/logo.png -------------------------------------------------------------------------------- /Clase 22/styles.css: -------------------------------------------------------------------------------- 1 | [class^="bg-"] { 2 | display: flex; 3 | flex-wrap: wrap; 4 | width: 50%; 5 | margin: 0 auto; 6 | height: 150px; 7 | border: 1px solid red; 8 | } 9 | 10 | /* 11 | background-color: Establece el color de fondo de la caja 12 | background-image:url(ruta) Establece la imagen de fondo de la caja 13 | background-repeat: Establece si la imagen se repite o no 14 | repeat-x|repeat-y|no-repeat 15 | background-size: Establece el tamaño de la imagen de fondo 16 | x [y]|auto|cover|contain. 17 | el valor en y es opcional, si no se lo ponemos lo calcula automáticamente 18 | cover cubre la caja por completo, aunque la imagen escape del contenedor 19 | contain la imagen se ajusta al contenido 20 | background-position: Establece la posicion de la imagen, si no se especifica un segundo valor será center 21 | left top 22 | left center 23 | left bottom 24 | right top 25 | right center 26 | right bottom 27 | center top 28 | center center 29 | center bottom 30 | x% y% 31 | xpos ypos 32 | initial 33 | inherit 34 | 35 | background-clip: Establece que parte de la caja rellenará el fondo 36 | Muestra la imagen desde donde le decimos, solo oculta, NO redimensiona 37 | border-box|padding-box|content-box 38 | 39 | background-origin: Establece donde comienza el fondo 40 | Redimensiona la imagen para que ocupe la zona que le decimos 41 | border-box|padding-box|content-box 42 | 43 | background-attachment: permite establecer si el fondo se coloca respecto a la caja o al viewport 44 | scroll|fixed 45 | */ 46 | 47 | body { 48 | padding-bottom: 50em; 49 | text-align: center; 50 | } 51 | 52 | .bg-color { 53 | background-color: purple; 54 | } 55 | 56 | .bg-image { 57 | background-image: url(logo.png); 58 | } 59 | 60 | .bg-size { 61 | background-image: url(cafe.jpeg); 62 | background-size: contain; 63 | } 64 | 65 | .bg-repeat { 66 | background-image: url(logo.png); 67 | background-size: 40%; 68 | background-repeat: no-repeat; 69 | } 70 | 71 | .bg-position { 72 | background-image: url(logo.png); 73 | background-size: 20%; 74 | background-repeat: no-repeat; 75 | background-position: 50px 50px; 76 | } 77 | 78 | .bg-origin { 79 | background-origin: border-box; 80 | border: 10px dotted red; 81 | padding: 25px; 82 | background-image: url(cafe.jpeg); 83 | background-size: contain; 84 | background-repeat: no-repeat; 85 | } 86 | 87 | .bg-clip { 88 | background-clip: border-box; 89 | border: 10px dotted red; 90 | background-image: url(cafe.jpeg); 91 | background-size: contain; 92 | background-repeat: no-repeat; 93 | padding: 25px; 94 | } 95 | 96 | .bg-attachment { 97 | width: 100%; 98 | height: 400px; 99 | background-image: url(cafe.jpeg); 100 | background-size: contain; 101 | background-attachment: fixed; 102 | } 103 | 104 | .bg-multiple { 105 | background-image: 106 | url(logo.png), 107 | url(cafe.jpeg); 108 | background-size: 30%, cover; 109 | background-repeat: no-repeat; 110 | background-position: bottom right, center; 111 | } -------------------------------------------------------------------------------- /Clase 23/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Tipografías 7 | 8 | 9 | 10 | 11 |

Tipografías y textos

12 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Impedit dolore amet cupiditate sint, modi sunt odio nisi doloremque voluptatem. Corrupti, natus laudantium. Quis aspernatur repellat vero nemo soluta, expedita tempora.

13 | Soy un enlace 14 | 15 | 16 | 17 |
18 |
ITEM 1
19 |
ITEM 2
20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /Clase 23/styles.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Especificación w3c: 4 | https://www.w3.org/Style/Examples/007/fonts.en.html 5 | https://www.w3.org/TR/CSS22/fonts.html#font-family-prop 6 | 7 | A los tipos de letra que existen se les denomina fuentes o tipografía 8 | 9 | Familias tipográficas 10 | Tienen nombre propio 11 | Arial, Times New Roman, open sans, ubuntu 12 | 13 | Familias genéricas o seguras 14 | Su nombre se basa en sus características 15 | serif: Tienen un adorno en los remates 16 | sans-serif: Tienen un corte seco en los remates 17 | cursive: emulan tipografia manuscrita 18 | fantasy: Letra decorativa 19 | monospace: Todos los caracteres tienen el mismo ancho 20 | 21 | FONT 22 | font-family: Establece la familia tipográfica 23 | Se utiliza el nombre propio de la fuente o una familia genérica, se recomienda utilizar SIEMPRE fuentes de reserva ('Times New Roman', Times, serif) 24 | font-size: Establece el tamaño de fuente 25 | Se define en unidades: 26 | px: pixeles (medida absoluta) 27 | em: medida relativa al contexto (al padre) 28 | rem: medida relativa al html 29 | %: medida relativa al tamaño actual 30 | 31 | vh: medida relativa al height del viewport 32 | vw: media relativa al width del viewport 33 | vmin: medida relativa al valor mínimo de viewport 34 | vmax: medida relativa al valor máximo de viewport 35 | 36 | font-weight: Establece el grosor de la fuente 37 | bold | normal | 100-900 38 | 39 | font-style: Establece el estilo de la tipografía 40 | normal | italic | oblique 41 | 42 | */ 43 | 44 | body { 45 | font-size: 30px; 46 | } 47 | 48 | .title { 49 | font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; 50 | /* font-size: 200%; */ 51 | /* font-size: 10vmin; */ 52 | font-style: oblique; 53 | } 54 | 55 | .span { 56 | /* font-size: 200%; */ 57 | } 58 | 59 | .paragraph{ 60 | font-weight: lighter; 61 | } -------------------------------------------------------------------------------- /Clase 24/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Tipografías 7 | 8 | 9 | 10 | 11 |

Tipografías y textos

12 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Impedit dolore amet cupiditate sint, 13 | modi sunt odio nisi doloremque voluptatem. Corrupti, natus laudantium. Quis aspernatur repellat vero nemo 14 | soluta, expedita tempora.

15 | Soy un enlace 16 | 17 | 18 |
19 |
ITEM 1
20 |
21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Clase 24/styles.css: -------------------------------------------------------------------------------- 1 | /* 2 | TEXT 3 | Text-transform: Transforma el texto a mayúsculas, minúsculas, etc. 4 | lowercase (minusculas) | uppercase (mayusculas) | capitalize (primera letra de cada palabra en mayusculas) 5 | 6 | text-align: Alinea el texto del elemento a la izquierda, derecha, etc. SOLO ELEMENTOS DE BLOQUE (excepto en botones, que aunque sean de elementos en línea funciona) 7 | center | left | right | justify 8 | 9 | text-decoration: Establece la decoración del texto 10 | overline | line-through | underline | none 11 | 12 | text-indent: mueve la primera linea de un de texto. SOLO ELEMENTOS DE BLOQUE 13 | */ 14 | 15 | /* .title { 16 | text-transform: capitalize; 17 | } 18 | 19 | .paragraph { 20 | text-align: justify; 21 | text-indent: 50px; 22 | } 23 | 24 | .link { 25 | text-decoration: none; 26 | } */ 27 | 28 | /* 29 | OTHER 30 | line-height: establece la altura de la linea 31 | letter-spacing: establece la separacion de las letras con una medida en cualquier unidad 32 | */ 33 | 34 | .box { 35 | width: 150px; 36 | height: 150px; 37 | background: red; 38 | } 39 | 40 | .box__item { 41 | text-align: center; 42 | line-height: 150px; 43 | } 44 | 45 | .paragraph { 46 | letter-spacing: 5px; 47 | } -------------------------------------------------------------------------------- /Clase 25/assets/fonts/Music Magic Personal Use/Music Magic Personal Use.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DorianDesings/css-basico-2018-1019/5ff750b78c0b06b6df341eab06af123ec9f752d7/Clase 25/assets/fonts/Music Magic Personal Use/Music Magic Personal Use.ttf -------------------------------------------------------------------------------- /Clase 25/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Google Fonts & Font Face 7 | 8 | 9 | 10 | 11 | 12 |

Google Fonts & Font Face

13 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Impedit dolore amet cupiditate sint, modi sunt odio nisi doloremque voluptatem. Corrupti, natus laudantium. Quis aspernatur repellat vero nemo soluta, expedita tempora.

14 | 15 | 16 | -------------------------------------------------------------------------------- /Clase 25/styles.css: -------------------------------------------------------------------------------- 1 | /* 2 | Sitios gratuitos para fuentes 3 | https://www.dafont.com/es/ 4 | https://www.1001fonts.com/ 5 | 6 | Analizar fuentes web 7 | whatFont 8 | */ 9 | 10 | /* .title { 11 | font-family: 'Raleway', sans-serif; 12 | } 13 | 14 | .paragraph { 15 | font-family: 'Montserrat', sans-serif; 16 | } */ 17 | 18 | @font-face { 19 | src: url('assets/fonts/Music Magic Personal Use/Music Magic Personal Use.ttf'); 20 | font-family: 'myFont'; 21 | } 22 | 23 | .title { 24 | font-family: myFont, serif; 25 | } -------------------------------------------------------------------------------- /Clase 26/check.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DorianDesings/css-basico-2018-1019/5ff750b78c0b06b6df341eab06af123ec9f752d7/Clase 26/check.png -------------------------------------------------------------------------------- /Clase 26/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Listas 7 | 8 | 9 | 10 | 11 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Clase 26/styles.css: -------------------------------------------------------------------------------- 1 | /* 2 | Normalmente necesitamos resetear los estilos por defecto de una lista 3 | margin-top:0; 4 | margin-bottom:0; 5 | padding-left:0; 6 | 7 | Hay tres propiedades para las listas, se pueden aplicar al padre o a los elementos de la lista 8 | 9 | list-style-type: Establece el estilo de viñeta 10 | disc 11 | circle 12 | square 13 | decimal 14 | decimal-leading-zero 15 | lower-roman 16 | upper-roman 17 | lower-greek 18 | lower-latin 19 | upper-latin 20 | armenian 21 | georgian 22 | lower-alpha 23 | upper-alpha 24 | 25 | list-style-position: Hace que las viñetas se coloquen por dentro o por fuera del elemento 26 | outside | inside 27 | 28 | list-style-image: Pone una imagen en lugar de la viñeta, no se suele utilizar porque hay formas mucho más eficientes de hacerlo 29 | url(imagen) 30 | 31 | Normamente se suele usar el shorthand list-style 32 | */ 33 | 34 | /* .list { 35 | list-style-type: lower-latin; 36 | } */ 37 | 38 | /* .list { 39 | list-style-image: url(check.png) 40 | } */ 41 | 42 | .list { 43 | margin-top: 0; 44 | margin-bottom: 0; 45 | padding-left: 0; 46 | list-style: none; 47 | } 48 | 49 | /* .list__item { 50 | background: red; 51 | } */ 52 | 53 | /* .list__item::before { 54 | content: ''; 55 | display: inline-block; 56 | width: 1em; 57 | height: 1em; 58 | background-image: url(check.png); 59 | background-position: center; 60 | background-size: contain; 61 | background-repeat: no-repeat; 62 | padding-right: 1em; 63 | } */ 64 | 65 | .list__item { 66 | /* background-image: url(check.png); 67 | background-position: 0 0; 68 | background-size: contain; 69 | background-repeat: no-repeat; */ 70 | /* padding-left: 2em; 71 | background: url(check.png) 0 0 / contain no-repeat; */ 72 | } 73 | 74 | .list__item{ 75 | float: left; 76 | padding-right: 1em; 77 | } -------------------------------------------------------------------------------- /Clase 27/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Tablas 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 |
Avengers
UsernameEmailCompany
TonyStarktonystark@gmail.comMarvel
Bruce Bannerbrucebanner@gmail.comMarvel
PeterParkerspiderman@gmail.comMarvel
SteveRogersMarvel
47 |
48 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Possimus iste impedit porro reprehenderit ex quibusdam mollitia illo expedita nobis dolorem suscipit magnam, quos excepturi harum enim tempora? Aliquam, ad soluta.

49 | 50 | 51 | -------------------------------------------------------------------------------- /Clase 27/styles.css: -------------------------------------------------------------------------------- 1 | /* 2 | table-layout: Define como se comportan las dimensiones de una tabla y los anchos de las "columnas" 3 | automatic: valor por defecto 4 | fixed: necesita un width declarado, si no se le da un ancho a cada columna se ditribuyen equitativamente 5 | 6 | caption-side: define donde se coloca el caption de una tabla. 7 | top: valor por defecto 8 | bottom: se coloca al pie de la tabla 9 | 10 | border-spacing: Controla el espacio entre las celdas 11 | recibe una medida en cualquier unidad 12 | 13 | border-collapse: Controla si las celdas se mantienen juntas o separadas. 14 | separate: valor por defecto 15 | collapse: junta las celdas para no 16 | 17 | empty-cells: Controla qué hacer con las celdas vacías 18 | show: valor por defecto 19 | hide: oculta las celdas vacías 20 | */ 21 | 22 | /* .table{ 23 | table-layout: fixed; 24 | width: 100%; 25 | text-align: center; 26 | } */ 27 | 28 | /* .table{ 29 | caption-side: bottom; 30 | } */ 31 | 32 | .table, .table__data, .table__head { 33 | border: 1px solid black; 34 | border-spacing: 10px; 35 | } 36 | 37 | .table { 38 | width: 100%; 39 | empty-cells: hide; 40 | } 41 | 42 | .table__data{ 43 | background: lightblue; 44 | } 45 | 46 | .table-container{ 47 | overflow-x: auto; 48 | } -------------------------------------------------------------------------------- /Clase 28/assets/img/attachment.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DorianDesings/css-basico-2018-1019/5ff750b78c0b06b6df341eab06af123ec9f752d7/Clase 28/assets/img/attachment.jpeg -------------------------------------------------------------------------------- /Clase 28/assets/img/cafe.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DorianDesings/css-basico-2018-1019/5ff750b78c0b06b6df341eab06af123ec9f752d7/Clase 28/assets/img/cafe.jpeg -------------------------------------------------------------------------------- /Clase 28/assets/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DorianDesings/css-basico-2018-1019/5ff750b78c0b06b6df341eab06af123ec9f752d7/Clase 28/assets/img/logo.png -------------------------------------------------------------------------------- /Clase 28/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Imágenes 7 | 8 | 9 | 10 | 11 | 14 | 15 | 18 | 19 | 20 | 24 | 25 |
26 | 27 | Lorem ipsum dolor sit amet consectetur adipisicing elit. 28 |
29 | 30 |
31 | 32 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque deleniti voluptatem beatae sit, cumque 33 | soluta sequi corrupti reprehenderit illo! Eum culpa enim aut asperiores corrupti hic, voluptatibus rerum 34 | beatae animi!

35 |
36 | 37 | 38 | -------------------------------------------------------------------------------- /Clase 28/styles.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | No existen propiedades para imágenes en CSS 4 | 5 | 1. Imágenes responsive. En el archivo base se recomienda poner esta regla 6 | img{ 7 | max-width:100%; 8 | } 9 | 10 | 2. Las imágenes por defecto son elementos inline, esto causa un espacio por debajo debido a su line-height, se puede solucionar de dos formas. 11 | Dando un line-height:0 al contenedor o un display:block a la imagen 12 | 13 | 3. Centrado horizontal 14 | imagen con display:block y márgenes laterales automáticos 15 | text-align: center, si la imagen no es de bloque 16 | 17 | 4. Centrado vertical 18 | Flexbox (La mejor opción) 19 | vertical-align: middle. A la imagen y al texto 20 | */ 21 | 22 | /* .img{ 23 | max-width: 100%; 24 | display: block; 25 | margin-left: auto; 26 | margin-right: auto; 27 | } 28 | 29 | .img-container{ 30 | text-align: center; 31 | background: lavender; 32 | }*/ 33 | 34 | /* .img-container img, 35 | .img-container span{ 36 | vertical-align: middle; 37 | } 38 | 39 | .img-container{ 40 | display: table; 41 | } 42 | 43 | .img-container span, 44 | .img-container p{ 45 | display: table-cell; 46 | } */ 47 | 48 | .img-container{ 49 | display: flex; 50 | align-items: center; 51 | } 52 | 53 | -------------------------------------------------------------------------------- /Clase 29/assets/img/cafe.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DorianDesings/css-basico-2018-1019/5ff750b78c0b06b6df341eab06af123ec9f752d7/Clase 29/assets/img/cafe.jpeg -------------------------------------------------------------------------------- /Clase 29/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Imágenes 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Clase 29/styles.css: -------------------------------------------------------------------------------- 1 | /* 2 | object-fit: se usa para especificar cómo se debe cambiar el tamaño de o