Skip to content

Commit 97897f9

Browse files
committed
fix: additional conversion from rgba to hex
1 parent c221b3f commit 97897f9

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

src/block-components/image/edit.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ import { useBlockEditContext } from '@wordpress/block-editor'
4242
// Note: image drop shadows do not accept negative spread.
4343
export const IMAGE_SHADOWS = [
4444
'none',
45-
'0px 0 1px rgba(120, 120, 120, 0.5)',
46-
'0px 0 2px rgba(120, 120, 120, 0.5)',
47-
'0px 5px 10px rgba(153, 153, 153, 0.35)',
48-
'0px 2px 20px rgba(153, 153, 153, 0.2)',
49-
'25px 10px 30px rgba(18, 63, 82, 0.3)',
50-
'0px 10px 30px rgba(0, 0, 0, 0.1)',
51-
'7px 5px 30px rgba(72, 73, 121, 0.15)',
52-
'0px 10px 60px rgba(0, 0, 0, 0.1)',
53-
'70px 60px 60px rgba(72, 73, 121, 0.2) ',
45+
'0px 0 1px #78787880',
46+
'0px 0 2px #78787880',
47+
'0px 5px 10px #99999959',
48+
'0px 2px 20px #99999933',
49+
'25px 10px 30px #123f524c',
50+
'0px 10px 30px #0000001a',
51+
'7px 5px 30px #48497926',
52+
'0px 10px 60px #0000001a',
53+
'70px 60px 60px #48497933 ',
5454
]
5555

5656
const Controls = props => {

src/block-components/separator/edit.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ import { getAttributeNameFunc } from '~stackable/util'
3131

3232
const SEPARATOR_SHADOWS = [
3333
'none',
34-
'0px 0 1px rgba(120, 120, 120, 0.5)',
35-
'0px 0 2px rgba(120, 120, 120, 0.5)',
34+
'0px 0 1px #78787880',
35+
'0px 0 2px #78787880',
3636
'2px 4px 6px #000', // This is a dark shadow similar to the shadow we used by default in v2.
37-
'0px 5px 10px rgba(153, 153, 153, 0.35)',
38-
'0px 2px 20px rgba(153, 153, 153, 0.2)',
39-
'25px 10px 30px rgba(18, 63, 82, 0.3)',
40-
'0px 10px 30px rgba(0, 0, 0, 0.05)',
41-
'7px 5px 30px rgba(72, 73, 121, 0.15)',
42-
'0px 10px 60px rgba(0, 0, 0, 0.1)',
43-
'70px 130px -60px rgba(72, 73, 121, 0.38) ',
37+
'0px 5px 10px #99999959',
38+
'0px 2px 20px #99999933',
39+
'25px 10px 30px #123f524c',
40+
'0px 10px 30px #0000000d',
41+
'7px 5px 30px #48497926',
42+
'0px 10px 60px #0000001a',
43+
'70px 130px -60px #48497961 ',
4444
]
4545

4646
const SeparatorControls = props => {

0 commit comments

Comments
 (0)