Skip to content

Commit 6d9753d

Browse files
authored
fix: convert rgba() to rgb() (mdn#195)
* fix: convert rgba() to rgb() * convert hsla() to hsl() * convert in gradients * remove redundant opacity value `1`s
1 parent ea6435c commit 6d9753d

File tree

92 files changed

+625
-625
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+625
-625
lines changed

box-alignment/flexbox/auto-margins.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
padding: 20px;
6969
border: 2px solid rgb(96, 139, 168);
7070
border-radius: 5px;
71-
background-color: rgba(96, 139, 168, 0.2);
71+
background-color: rgb(96 139 168 / 0.2);
7272
}
7373
</style>
7474
<style class="editable">

box-alignment/flexbox/gap.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
padding: 20px;
6969
border: 2px solid rgb(96, 139, 168);
7070
border-radius: 5px;
71-
background-color: rgba(96, 139, 168, 0.2);
71+
background-color: rgb(96 139 168 / 0.2);
7272
}
7373
</style>
7474
<style class="editable">

box-alignment/overview/flex-align-items.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
padding: 20px;
6969
border: 2px solid rgb(96, 139, 168);
7070
border-radius: 5px;
71-
background-color: rgba(96, 139, 168, 0.2);
71+
background-color: rgb(96 139 168 / 0.2);
7272
}
7373
</style>
7474
<style class="editable">

box-alignment/overview/grid-align-items.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
padding: 20px;
6969
border: 2px solid rgb(96, 139, 168);
7070
border-radius: 5px;
71-
background-color: rgba(96, 139, 168, 0.2);
71+
background-color: rgb(96 139 168 / 0.2);
7272
}
7373
</style>
7474
<style class="editable">

box-alignment/overview/grid-gap.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
padding: 20px;
6969
border: 2px solid rgb(96, 139, 168);
7070
border-radius: 5px;
71-
background-color: rgba(96, 139, 168, 0.2);
71+
background-color: rgb(96 139 168 / 0.2);
7272
}
7373
</style>
7474
<style class="editable">

display/multi-keyword/inline-block.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
</style>
6767
<style class="editable">
6868
.ib {
69-
background-color: rgba(0, 0, 0, 0.4);
69+
background-color: rgb(0 0 0 / 0.4);
7070
color: #fff;
7171
padding: 10px;
7272
display: inline-block;
@@ -84,7 +84,7 @@
8484
</section>
8585
<textarea class="playable-css" style="height: 180px">
8686
.ib {
87-
background-color: rgba(0,0,0,.4);
87+
background-color: rgb(0 0 0 / .4);
8888
color: #fff;
8989
padding: 10px;
9090
display: inline-block;

display/multi-keyword/inline-flex.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
.flex > div {
6363
border: 2px solid rgb(96, 139, 168);
6464
border-radius: 5px;
65-
background-color: rgba(96, 139, 168, 0.2);
65+
background-color: rgb(96 139 168 / 0.2);
6666
}
6767
</style>
6868
<style class="editable">

display/multi-keyword/multi-keyword-flex.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
.flex > * {
6868
border: 2px solid rgb(96, 139, 168);
6969
border-radius: 5px;
70-
background-color: rgba(96, 139, 168, 0.2);
70+
background-color: rgb(96 139 168 / 0.2);
7171
}
7272
</style>
7373
<style class="editable">

editable-samples-2/css/editable.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ body {
1313
height: 200px;
1414
background-color: white;
1515
padding: 1em 0;
16-
box-shadow: 0px 2px 5px -2px rgba(0, 0, 0, 0.1);
16+
box-shadow: 0px 2px 5px -2px rgb(0 0 0 / 0.1);
1717
}
1818

1919
#example-element {
@@ -49,7 +49,7 @@ body {
4949
.example-choice.selected {
5050
background-color: white;
5151
transition: background-color 0.2s ease-in;
52-
box-shadow: inset 0px 2px 2px -2px rgba(0, 0, 0, 0.2);
52+
box-shadow: inset 0px 2px 2px -2px rgb(0 0 0 / 0.2);
5353
cursor: text;
5454
}
5555

editable-samples-2/pages/border-top-color/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<pre
2323
class="prettyprint lang-css"
24-
id="example-choice-list"><div class=" example-choice">border-top-color: red;</div><div class=" example-choice">border-top-color: rgb(255, 128, 0);</div><div class=" example-choice">border-top-color: hsla(240, 50%, 25%, 0.75);</div><div class=" example-choice">border-top-color: #ffbb00;</div><div class=" example-choice">border-top-color: currentColor;</div><div class=" example-choice">border-top-color: transparent;</div></pre>
24+
id="example-choice-list"><div class=" example-choice">border-top-color: red;</div><div class=" example-choice">border-top-color: rgb(255, 128, 0);</div><div class=" example-choice">border-top-color: hsl(240 50% 25% / 0.75);</div><div class=" example-choice">border-top-color: #ffbb00;</div><div class=" example-choice">border-top-color: currentColor;</div><div class=" example-choice">border-top-color: transparent;</div></pre>
2525

2626
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
2727
<script src="../../js/editable.js"></script>

0 commit comments

Comments
 (0)