Skip to content

Commit 3d66056

Browse files
authored
chore(learn): Remove legacy syntax for rgb()/rgba() (#149)
1 parent 4c372e6 commit 3d66056

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

learn/values-units/color-rgb.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,47 +17,47 @@
1717

1818
<style class="editable">
1919
.one {
20-
background-color: rgb(2, 121, 139);
20+
background-color: rgb(2 121 139);
2121
}
2222

2323
.two {
24-
background-color: rgb(197, 93, 161);
24+
background-color: rgb(197 93 161);
2525
}
2626

2727
.three {
28-
background-color: rgb(18, 138, 125);
28+
background-color: rgb(18 138 125);
2929
}
3030
</style>
3131
</head>
3232

3333
<body>
3434
<section class="preview">
3535
<div class="wrapper">
36-
<div class="box one">rgb(2,121,139)</div>
37-
<div class="box two">rgb(197,93,161)</div>
38-
<div class="box three">rgb(18,138,125)</div>
36+
<div class="box one">rgb(2 121 139)</div>
37+
<div class="box two">rgb(197 93 161)</div>
38+
<div class="box three">rgb(18 138 125)</div>
3939
</div>
4040
</section>
4141

42-
<textarea class="playable playable-css" style="height: 240px;">
42+
<textarea class="playable playable-css" style="height: 240px">
4343
.one {
44-
background-color: rgb(2, 121, 139);
44+
background-color: rgb(2 121 139);
4545
}
4646

4747
.two {
48-
background-color: rgb(197, 93, 161);
48+
background-color: rgb(197 93 161);
4949
}
5050

5151
.three {
52-
background-color: rgb(18, 138, 125);
52+
background-color: rgb(18 138 125);
5353
}
5454
</textarea>
5555

56-
<textarea class="playable playable-html" style="height: 130px;">
56+
<textarea class="playable playable-html" style="height: 130px">
5757
<div class="wrapper">
58-
<div class="box one">rgb(2, 121, 139)</div>
59-
<div class="box two">rgb(197, 93, 161)</div>
60-
<div class="box three">rgb(18, 138, 125)</div>
58+
<div class="box one">rgb(2 121 139)</div>
59+
<div class="box two">rgb(197 93 161)</div>
60+
<div class="box three">rgb(18 138 125)</div>
6161
</div>
6262
</textarea>
6363

learn/values-units/color-rgba.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,47 +21,47 @@
2121

2222
<style class="editable">
2323
.one {
24-
background-color: rgba(2, 121, 139, 0.3);
24+
background-color: rgb(2 121 139 / 0.3);
2525
}
2626

2727
.two {
28-
background-color: rgba(197, 93, 161, 0.7);
28+
background-color: rgb(197 93 161 / 0.7);
2929
}
3030

3131
.three {
32-
background-color: rgba(18, 138, 125, 0.9);
32+
background-color: rgb(18 138 125 / 0.9);
3333
}
3434
</style>
3535
</head>
3636

3737
<body>
3838
<section class="preview">
3939
<div class="wrapper">
40-
<div class="box one">rgba(2, 121, 139, .3)</div>
41-
<div class="box two">rgba(197, 93, 161, .7)</div>
42-
<div class="box three">rgba(18, 138, 125, .9)</div>
40+
<div class="box one">rgb(2 121 139 / .3)</div>
41+
<div class="box two">rgb(197 93 161 / .7)</div>
42+
<div class="box three">rgb(18 138 125 / .9)</div>
4343
</div>
4444
</section>
4545

46-
<textarea class="playable playable-css" style="height: 240px;">
46+
<textarea class="playable playable-css" style="height: 240px">
4747
.one {
48-
background-color: rgba(2, 121, 139, .3);
48+
background-color: rgb(2 121 139 / .3);
4949
}
5050

5151
.two {
52-
background-color: rgba(197, 93, 161, .7);
52+
background-color: rgb(197 93 161 / .7);
5353
}
5454

5555
.three {
56-
background-color: rgba(18, 138, 125, .9);
56+
background-color: rgb(18 138 125 / .9);
5757
}
5858
</textarea>
5959

60-
<textarea class="playable playable-html" style="height: 130px;">
60+
<textarea class="playable playable-html" style="height: 130px">
6161
<div class="wrapper">
62-
<div class="box one">rgba(2, 121, 139, .3)</div>
63-
<div class="box two">rgba(197, 93, 161, .7)</div>
64-
<div class="box three">rgba(18, 138, 125, .9)</div>
62+
<div class="box one">rgb(2 121 139 / .3)</div>
63+
<div class="box two">rgb(197 93 161 / .7)</div>
64+
<div class="box three">rgb(18 138 125 / .9)</div>
6565
</div>
6666
</textarea>
6767

0 commit comments

Comments
 (0)