-
Notifications
You must be signed in to change notification settings - Fork 3
/
blur_no-alt.css
32 lines (29 loc) · 1.4 KB
/
blur_no-alt.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.block-editor-writing-flow img:is([alt=""],[alt*='.jpg'],[alt*='.png'],[alt*='.gif']) {
clip-path: inset(0);
filter: blur(8px);
outline: 10px solid red;
outline-offset: -10px;
transition: filter .125s, outline .125s;
}
.block-editor-writing-flow img:is([alt=""],[alt*='.jpg'],[alt*='.png'],[alt*='.gif']):hover,
.block-editor-writing-flow .wp-block-cover:hover img:is([alt=""],[alt*='.jpg'],[alt*='.png'],[alt*='.gif']),
.block-editor-writing-flow :is(.is-selected,.noalt) img:is([alt=""],[alt*='.jpg'],[alt*='.png'],[alt*='.gif']),
.block-editor-writing-flow img.noalt {
filter: blur(0px) ;
outline: 0;
}
/* Media & Text with Image Crop Setting */
/* Selectors must be separate in order to avoid breaking other behavior for older browsers */
.block-editor-writing-flow .wp-block-media-text__media:has(img:is([alt=""],[alt*='.jpg'],[alt*='.png'],[alt*='.gif'])) {
clip-path: inset(0);
filter: blur(8px);
outline: 10px solid red;
outline-offset: -10px;
transition: filter .125s, outline .125s;
}
.block-editor-writing-flow .wp-block-media-text:hover .wp-block-media-text__media:has(img:is([alt=""],[alt*='.jpg'],[alt*='.png'],[alt*='.gif'])),
.block-editor-writing-flow .wp-block-media-text.is-selected .wp-block-media-text__media:has(img:is([alt=""],[alt*='.jpg'],[alt*='.png'],[alt*='.gif'])),
.block-editor-writing-flow .wp-block-media-text.noalt .wp-block-media-text__media {
filter: blur(0px) ;
outline: 0;
}