fix(curriculum): Learn CSS Variables by Building a City Skyline Step 40 (#48897)
Co-authored-by: auchynnikau <viachaslau_auchynnikau@epam.com> Co-authored-by: Tom <20648924+moT01@users.noreply.github.com> Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com> Closes https://github.com/freeCodeCamp/freeCodeCamp/issues/47568pull/48921/head
parent
74ead7d212
commit
fe70a824c0
|
@ -16,11 +16,11 @@ gradient-type(
|
|||
);
|
||||
```
|
||||
|
||||
In the example, `color1` is solid at the top, `color2` is solid at the bottom, and in between it transitions evenly from one to the next. In `.bb1a`, add a gradient of type `linear-gradient` to the `background` property with `--building-color1` as the first color and `--window-color1` as the second.
|
||||
In the example, `color1` is solid at the top, `color2` is solid at the bottom, and in between it transitions evenly from one to the next. In `.bb1a`, add a `background` property below the `background-color` property. Set it as a gradient of type `linear-gradient` that uses `--building-color1` as the first color and `--window-color1` as the second.
|
||||
|
||||
# --hints--
|
||||
|
||||
You should apply a `background` to `.bb1a`.
|
||||
You should apply a `background` to `.bb1a` right after the `background-color`.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.bb1a')?.background);
|
||||
|
|
Loading…
Reference in New Issue