Skip to content

Commit b069d02

Browse files
Merge branch 'master' into anchor-like-button
2 parents 9839712 + 7378bd2 commit b069d02

File tree

16 files changed

+43
-37
lines changed

16 files changed

+43
-37
lines changed

exercises/00-Welcome/README.es.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ intro: "https://www.youtube.com/watch?v=BDKdUPDez-U"
55
# ¡¡Bienvenido a los ejercicios de CSS!!
66

77
Mi nombre es Alejandro Sanchez [@alesanchezr](https://twitter.com/alesanchezr) ¡Estoy muy contento de que estén aquí! 🎉 😂
8+
89
Aprender a programar es dificil ¡Probablemente necesitarás coaching! Envíame un DM vía Twitter si tienes alguna duda.
910

1011
Durante este curso aprenderás los siguientes conceptos:

exercises/00-Welcome/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ intro: "https://www.youtube.com/watch?v=BDKdUPDez-U"
55
# Welcome to CSS Exercises!!
66

77
My name is Alejandro Sanchez [@alesanchezr](https://twitter.com/alesanchezr). I'm really excited to have you here !! 🎉 😂
8+
89
Learning to code is hard, you will problably need coaching! DM me on twitter if you have any question.
910

1011
During this course you will be learning the following concepts:

exercises/02-Separate-Stylesheet/README.es.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
Si usas la etiqueta html `<link>`, puedes tener tus estilos en un archivo separado que normalmente se llama `styles.css`.
44

5-
Esa es una mejor práctica porque te permite tener un sitio web a sin diseño, puedes cambiar el CSS después y hacer que tu sitio web se vea 100% diferente, pero teniendo exactamente el mismo HTML.
5+
Esa es una mejor práctica porque te permite tener un sitio web sin diseño, puedes cambiar el CSS después y hacer que tu sitio web se vea 100% diferente, pero teniendo exactamente el mismo HTML.
66

77
## 📝 Instrucciones:
88

9-
LLena el `styles.css` con el contenido necesario para que el body del sitio web azul (blue).
9+
LLena el `styles.css` con el contenido necesario para que el body del sitio web sea azul (blue).
1010

1111
## 💡 Pista:
1212

exercises/02.1-Background/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ tutorial: "https://www.youtube.com/watch?v=MJI0-sFmTe8"
66

77
The `background` CSS rule allows us to assign and work with the background of any container. The background values can be a `color` or an `image`.
88

9-
If it is an image, you can specify if you want the image to be repeated horizontally, vertically, or both, or not at all, and you can also specify if you want it to resize and fit the whole container where its being applied, among other properties that can be modified.
9+
If it is an image, you can specify if you want the image to be repeated horizontally, vertically, or both, or not at all, and you can also specify if you want it to resize and fit the whole container where it is being applied, among other properties that can be modified.
1010

1111
## 📝 Instructions:
1212

exercises/03-Inline-Styles/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ tutorial: "https://www.youtube.com/watch?v=jIMPLzpryuI"
44

55
# `03` Inline Styles
66

7-
Inline styles are a very bad idea unless you have no other choice (and that's a very uncommon situation). Sadly, we have to teach you how to do it because you may need to use them at some point.
7+
`Inline` styles are a very bad idea unless you have no other choice (and that's a very uncommon situation). Sadly, we have to teach you how to do it because you may need to use them at some point.
88

99
To use inline styles, instead of declaring a <style> tag in the header of the document, you have to set the "style" attribute of any element with the CSS code you need to apply to that specific element.
1010

exercises/04.1-Combined-Rules/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ border: black 1px solid;
2424

2525
1. Combine the 4 padding rules into just one using the `padding` rule.
2626

27-
2. Combine the all background rules, but the background size, into just one line using the "background:" rule.
27+
2. Combine the all background rules, but the `background-size`, into just one line using the `background:` rule.
2828

29-
*The background size cannot be combined, the browsers don't support it yet.*
29+
*The `background-size` cannot be combined, the browsers don't support it yet.*
3030

3131
## Hint:
3232

exercises/04.2-Apply-several-classes/README.es.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `04.2` Aplica varias clases
22

3-
Hemos preparado un pequeña hoja de estilos CSS que contiene estilos CSS para replicar cartas de poker.
3+
Hemos preparado una pequeña hoja de estilos CSS que contiene estilos CSS para replicar cartas de poker.
44
Vamos a usar clases y aplicarlas al mismo elemento `<div>`.
55

66
```html
@@ -9,7 +9,7 @@ Vamos a usar clases y aplicarlas al mismo elemento `<div>`.
99

1010
La clase `card` contiene las reglas de estilo para hacer que el div se vea como una carta: bordes, ancho, etc.
1111

12-
La clase `spades` contienes las reglas de estilo requeridas para convertir la carta a la pinta de picas (negra con el símbolo de picas).
12+
La clase `spades` contiene las reglas de estilo requeridas para convertir la carta a la pinta de picas (negra con el símbolo de picas).
1313

1414
Hay dos posibles clases de palos/pintas que puedes aplicar al elemento html y hará que se vea como una carta de poker real.
1515

exercises/05-Specificity/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ It's all about the level of Specificity. If you specify that your `div` with `id
1313

1414
## 📝 Instrucciones:
1515

16-
1. Override the background-color of #thirditem without deleting any css code, simply append to the css a more specific rule at the end of the document to override the background-color to green.
16+
1. Override the `background-color` of `#thirditem` without deleting any css code, simply append to the css a more specific rule at the end of the document to override the background-color to green.
1717

1818

1919
### 💡 Hint:
2020

21-
You can use the **important!** annotation:
21+
You can use the **!important** annotation:
2222
https://css-tricks.com/when-using-important-is-the-right-choice/
2323

2424

exercises/06-Practicing-Rules/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ tutorial: "https://www.youtube.com/watch?v=4wguurrl-lU"
1818

1919
6. Add a `left padding` to the whole document of `20px` to make it easier to read.
2020

21-
7. Add a white `semi-transparent background (0.2)` to the `first paragraph` to make it easier to read (you have tu use rgba for that) and write down "3 reasons you know you are learning". Then apply a `padding` of `5px` to all sides of that paragraph.
21+
7. Add a white `semi-transparent background (0.2)` to the `first paragraph` to make it easier to read (you have tu use `rgba` for that) and write down "3 reasons you know you are learning". Then apply a `padding` of `5px` to all sides of that paragraph.
2222

2323
8. Change the `anchor` "hover" color to `green` and remove the underline (you have to actually hover the anchor to test it).
2424

exercises/07-Very-Specific-Rules/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ In this exercise, you can add your code only above the **READ ONLY BLOCK** of th
1313

1414
1. Set the `ul` text color to `red` (override conflicts with specificity).
1515

16-
2. Set the background color of the second `li` of the `ol` to `green` (don't use the #id selector).
16+
2. Set the `background-color` of the second `li` of the `ol` to `green` (don't use the #id selector).
1717

1818
3. Change the odd rows of the tables to a yellow background using `tr:nth-child`.
1919

exercises/07-Very-Specific-Rules/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** Insert your code here **/
22

33
/*********** READ ONLY BLOCK ******
4-
You CAN NOT UPDATE anything from here on,
4+
You CANNOT UPDATE anything from here on,
55
only add lines of code on top of this lines
66
**/
77

exercises/07-Very-Specific-Rules/tests.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ describe("All the styles should be applied", function () {
99
beforeEach(() => {
1010
//here I import the HTML into the document
1111
document.documentElement.innerHTML=html.toString();
12-
1312
//apply the styles from the stylesheet if needed
14-
1513
});
1614
afterEach(() => {
1715
jest.resetModules();
@@ -23,18 +21,13 @@ describe("All the styles should be applied", function () {
2321
"head"
2422
).innerHTML=`<style>${css.toString()}</style>`;
2523
let cssArray=document.styleSheets[0].cssRules;
26-
2724
let orangeHoverSelector="";
2825
for (let i=0; i<cssArray.length; i++) {
29-
30-
if (cssArray[i].selectorText==="ul li") {
26+
if (cssArray[i].selectorText==="ul li" || cssArray[i].selectorText==="ul > li") {
3127
orangeHoverSelector=cssArray[i].style.color;
32-
3328
}
3429
expect(orangeHoverSelector).toBe("red");
3530
}
36-
37-
3831
});
3932
it("The ul second element background should be green", function () {
4033
document.querySelector(
@@ -44,7 +37,7 @@ describe("All the styles should be applied", function () {
4437

4538
let orangeHoverSelector="";
4639
for (let i=0; i<cssArray.length; i++) {
47-
if (cssArray[i].selectorText==="ol li:nth-child(2)") {
40+
if (cssArray[i].selectorText==="ol li:nth-child(2)" || cssArray[i].selectorText==="ol > li:nth-child(2)" ) {
4841
orangeHoverSelector=cssArray[i].style['background-color'];
4942

5043
}
@@ -90,9 +83,4 @@ describe("All the styles should be applied", function () {
9083
let title = head.querySelector('title')
9184
expect(title).not.toBe(null)
9285
})
93-
94-
95-
96-
97-
9886
});

exercises/09-Anchor-Styles/README.es.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `09` Estilos de enlaces (anchor) 3D
22

3-
A las personas les gusta sentir que están haciendo clic en algo, uuna manera de lograrlo es fingir un efecto 3D. Para hacerlo, los diseñadores normalmente juegan con los bordes, por ejemplo:
3+
A las personas les gusta sentir que están haciendo clic en algo, una manera de lograrlo es fingir un efecto 3D. Para hacerlo, los diseñadores normalmente juegan con los bordes, por ejemplo:
44

55
![Example Image](../../.learn/assets/09-1.png?raw=true)
66

exercises/11-Font-Awesome-Icons/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width" />
66
<link rel="stylesheet" type="text/css" href="./styles.css" />
7-
<script src="https://kit.fontawesome.com/78d2a11ad0.js" crossorigin="anonymous"></script>
7+
<script src="https://kit.fontawesome.com/072e5df971.js" crossorigin="anonymous"></script>
88
<title>11 Font Awesome</title>
99
</head>
1010
<body>
1111
<ul>
12-
<li><i class="fa fa-camera-retro"></i> Hello</li>
12+
<li><i class="fas fa-camera-retro"></i> Hello</li>
1313
</ul>
1414
</body>
1515
</html>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width" />
6+
<link rel="stylesheet" type="text/css" href="./styles.css" />
7+
<script src="https://kit.fontawesome.com/072e5df971.js" crossorigin="anonymous"></script>
8+
<title>11 Font Awesome</title>
9+
</head>
10+
<body>
11+
<ul>
12+
<li><i class="fa fa-camera-retro"></i> Hello</li>
13+
<li><i class="fa fa-flag">Flag</i></li>
14+
<li><i class="fa fa-heart">Heart</i></li>
15+
</ul>
16+
</body>
17+
</html>

learn.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
"difficulty": "easy",
1212
"video-solutions": true,
1313
"graded": true,
14-
15-
"disableGrading": false,
16-
"editor": {
17-
"version": "1.0.73"
18-
}
19-
20-
}
14+
"disabledActions": ["test"],
15+
"disableGrading": true,
16+
"editor": {
17+
"version": "1.0.73"
18+
}
19+
}

0 commit comments

Comments
 (0)