From d2044eca06df9c0222e0a534fd829d057a30b9dc Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Tue, 12 May 2015 15:36:41 -0700 Subject: [PATCH] add some additional coursewares to front end curriculum --- seed_data/coursewares.json | 48 +++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/seed_data/coursewares.json b/seed_data/coursewares.json index 2a9a2e9288..614ae432d3 100644 --- a/seed_data/coursewares.json +++ b/seed_data/coursewares.json @@ -345,7 +345,7 @@ }, { "_id": "bad87fee1348bd9aedf08805", - "name": "Create a Style Tag for CSS", + "name": "Use CSS Selectors to Style Elements", "difficulty": 0.018, "description": [ "Create remove your h2 element's style tag and write the CSS to make all h2 elements blue.", @@ -353,7 +353,7 @@ "When you entered <h2 style=\"color: red\">Cat Photo App<h2>, you were giving that individual h2 element an inline style", "That's one way to add style to an element, but a better way is by using Cascading Style Sheets (CSS).", "At the top of your code, create a style tag like this: <style></style>", - "Inside that style element, you can create a global style for all h2 elements. For example, if you wanted all h2 elements to be red, your style element would look like this: <style>h2 {color: red;}</style>", + "Inside that style element, you can create a css selector for all h2 elements. For example, if you wanted all h2 elements to be red, your style element would look like this: <style>h2 {color: red;}</style>", "Note that it's important to have an opening and closing curly braces ({ and }) around each element's style. You also need to make sure your element's style is between the opening and closing style tags. Finally, be sure to add the semicolon to the end of each of the element's styles." ], "tests": [ @@ -408,8 +408,8 @@ "tests": [ "assert($('h2').css('color') === 'rgb(255, 0, 0)', 'Your h2 element should be red.')", "assert($('h2').hasClass('red-text'), 'You h2 element should have the class \"red-text\".')", - "assert($('p').css('color') === 'rgb(255, 0, 0)', 'Your h2 element should be red.')", - "assert($('p').hasClass('red-text'), 'You h2 element should have the class \"red-text\".')" + "assert($('p').css('color') === 'rgb(255, 0, 0)', 'Your p element should be red.')", + "assert($('p').hasClass('red-text'), 'You p element should have the class \"red-text\".')" ], "challengeSeed": [ "", "", - "

hello world

", - "

cat photo app

", - "

lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

" + "

Cat Photo App

", + "", + "

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

", + "

Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

" ], "challengeType": 0 },