fix(learn): Change width for piano on step 28 (#45673)
* fix: change width on step 28 * fix: update step-33 seed Co-authored-by: Rafael Hernandez <rafaeldavish@Rafaels-MacBook-Pro.local>
This commit is contained in:
committed by
GitHub
parent
4cc20172c5
commit
832eb29c0d
@ -7,7 +7,7 @@ dashedName: step-28
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
Add a new `#piano` selector within your `@media` query, and set the `width` to `335px`.
|
Add a new `#piano` selector within your `@media` query, and set the `width` to `358px`.
|
||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
@ -19,12 +19,12 @@ const piano = rules?.find(rule => rule.selectorText === '#piano');
|
|||||||
assert(piano);
|
assert(piano);
|
||||||
```
|
```
|
||||||
|
|
||||||
Your new `#piano` selector should have a `width` of `335px`.
|
Your new `#piano` selector should have a `width` of `358px`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const rules = new __helpers.CSSHelp(document).getRuleListsWithinMedia('(max-width: 768px)');
|
const rules = new __helpers.CSSHelp(document).getRuleListsWithinMedia('(max-width: 768px)');
|
||||||
const piano = rules?.find(rule => rule.selectorText === '#piano');
|
const piano = rules?.find(rule => rule.selectorText === '#piano');
|
||||||
assert(piano?.style.width === '335px');
|
assert(piano?.style.width === '358px');
|
||||||
```
|
```
|
||||||
|
|
||||||
# --seed--
|
# --seed--
|
||||||
@ -127,7 +127,7 @@ html {
|
|||||||
|
|
||||||
--fcc-editable-region--
|
--fcc-editable-region--
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
|
|
||||||
}
|
}
|
||||||
--fcc-editable-region--
|
--fcc-editable-region--
|
||||||
```
|
```
|
||||||
|
@ -129,7 +129,7 @@ html {
|
|||||||
--fcc-editable-region--
|
--fcc-editable-region--
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
#piano {
|
#piano {
|
||||||
width: 335px;
|
width: 358px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--fcc-editable-region--
|
--fcc-editable-region--
|
||||||
|
@ -128,7 +128,7 @@ html {
|
|||||||
--fcc-editable-region--
|
--fcc-editable-region--
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
#piano {
|
#piano {
|
||||||
width: 335px;
|
width: 358px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.keys {
|
.keys {
|
||||||
|
@ -119,7 +119,7 @@ html {
|
|||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
#piano {
|
#piano {
|
||||||
width: 335px;
|
width: 358px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.keys {
|
.keys {
|
||||||
|
@ -126,7 +126,7 @@ html {
|
|||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
#piano {
|
#piano {
|
||||||
width: 335px;
|
width: 358px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.keys {
|
.keys {
|
||||||
|
@ -146,7 +146,7 @@ html {
|
|||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
#piano {
|
#piano {
|
||||||
width: 335px;
|
width: 358px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.keys {
|
.keys {
|
||||||
@ -264,7 +264,7 @@ html {
|
|||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
#piano {
|
#piano {
|
||||||
width: 335px;
|
width: 358px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.keys {
|
.keys {
|
||||||
|
Reference in New Issue
Block a user