Skip to content

Commit

Permalink
Merge pull request freeCodeCamp#13196 from Manish-Giri/fix/remove-hov…
Browse files Browse the repository at this point in the history
…er-state

Remove hover state requirement
  • Loading branch information
Greenheart authored Feb 7, 2017
2 parents 9297ccb + 9dc5617 commit 9dec4d1
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@
"Here's an example of the CSS to create multiple shadows with some blur, at mostly-transparent black colors:",
"<blockquote>box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);</blockquote>",
"<hr>",
"Use the example CSS values above to place a <code>box-shadow</code> on the card. The element now has an id of <code>thumbnail</code>, use this selector to place the shadows for the hover state."
"The element now has an id of <code>thumbnail</code>. With this selector, use the example CSS values above to place a <code>box-shadow</code> on the card."
],
"challengeSeed": [
"<style>",
Expand Down Expand Up @@ -737,13 +737,11 @@
"</div>"
],
"tests": [
"assert(code.match(/#thumbnail:hover\\s*?{\\s*?box-shadow/g), 'message: Your code should add a <code>box-shadow</code> property for the <code>thumbnail</code> id on its hover state.');",
"assert(code.match(/#thumbnail\\s*?{\\s*?box-shadow/g), 'message: Your code should add a <code>box-shadow</code> property for the <code>thumbnail</code> id.');",
"assert(code.match(/box-shadow:\\s*?0\\s+?10px\\s+?20px\\s+?rgba\\(\\s*?0\\s*?,\\s*?0\\s*?,\\s*?0\\s*?,\\s*?0?\\.19\\),\\s*?0\\s+?6px\\s+?6px\\s+?rgba\\(\\s*?0\\s*?,\\s*?0\\s*?,\\s*?0\\s*?,\\s*?0?\\.23\\)/gi), 'message: You should use the given CSS for the <code>box-shadow</code> value.');"
],
"solutions": [],
"hints": [
"Remember to use the appropriate pseudo-class selector to place the box-shadows only on the hover state."
],
"hints": [],
"type": "waypoint",
"challengeType": 0,
"translations": {}
Expand Down

0 comments on commit 9dec4d1

Please sign in to comment.