mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
updates
This commit is contained in:
27
step1-02/exercise/answers.css
Normal file
27
step1-02/exercise/answers.css
Normal file
@@ -0,0 +1,27 @@
|
||||
h2 {
|
||||
color: red;
|
||||
}
|
||||
|
||||
h2 + div {
|
||||
color: green;
|
||||
}
|
||||
|
||||
.myList li {
|
||||
border: 1px solid green;
|
||||
}
|
||||
|
||||
.myClass {
|
||||
background: green;
|
||||
}
|
||||
|
||||
#myId {
|
||||
background: yellow;
|
||||
}
|
||||
|
||||
.myClass.otherClass {
|
||||
color: white;
|
||||
}
|
||||
|
||||
section > div:last-child {
|
||||
border: 1px solid pink;
|
||||
}
|
||||
56
step1-02/exercise/index.html
Normal file
56
step1-02/exercise/index.html
Normal file
@@ -0,0 +1,56 @@
|
||||
<html>
|
||||
<body>
|
||||
<div
|
||||
class="codepen"
|
||||
data-theme-id="36294"
|
||||
data-prefill
|
||||
data-editable="true"
|
||||
data-height="100%"
|
||||
data-theme-id="1"
|
||||
data-default-tab="html,result"
|
||||
>
|
||||
<pre data-lang="css">
|
||||
/* 1. */
|
||||
|
||||
/* 2. */
|
||||
|
||||
/* 3. */
|
||||
|
||||
/* 4. */
|
||||
|
||||
/* 5. */
|
||||
|
||||
/* 6. */
|
||||
|
||||
/* Bonus */
|
||||
</pre>
|
||||
<pre data-lang="html">
|
||||
<section>
|
||||
<h2>1. Text Color: Red</h2>
|
||||
<div>2. Color Green (hint: Sibling Selector)</div>
|
||||
<ul class="myList">
|
||||
<li>
|
||||
3. Border Green
|
||||
</li>
|
||||
</ul>
|
||||
<main>
|
||||
<div class="myClass">4. Background Green</div>
|
||||
<div class="myClass otherClass">
|
||||
5. Background Green & Color White
|
||||
(Hint Qualified Selector)
|
||||
</div>
|
||||
<div id="myId" class="otherClass">6. Background Yellow</div>
|
||||
</main>
|
||||
<ul>
|
||||
<li>
|
||||
Don't Style Me
|
||||
</li>
|
||||
</ul>
|
||||
<div>Bonus: Border Pink</div>
|
||||
</section>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<script async src="https://static.codepen.io/assets/embed/ei.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user