Skip to content

Commit

Permalink
image without warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gollenia authored Dec 12, 2023
1 parent b92c2ea commit f0760c4
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions src/blocks/image/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
position: relative;
}

border: 2px dashed rgb(223 0 0);

position: relative;
max-width: 100%;
width: 100%;
Expand All @@ -16,26 +16,7 @@
max-width: 1200px;
}

&::after {
display: grid;
place-items: center;
content: " ";
color: #930000;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgb(226 149 149 / 57%);
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' viewBox='0 96 960 960' width='48'%3E%3Cpath d='m40 936 440-760 440 760H40Zm104-60h672L480 296 144 876Zm340.175-57q12.825 0 21.325-8.675 8.5-8.676 8.5-21.5 0-12.825-8.675-21.325-8.676-8.5-21.5-8.5-12.825 0-21.325 8.675-8.5 8.676-8.5 21.5 0 12.825 8.675 21.325 8.676 8.5 21.5 8.5ZM454 708h60V484h-60v224Zm26-122Z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: center;
font-weight: bold;
font-size: 2rem;
padding: 0.5rem;
pointer-events: none;
}


&--left {
picture,
figure {
Expand Down Expand Up @@ -76,15 +57,15 @@
display: flex;
align-items: center;
gap: 0.5rem;
background: var(--wp--preset--color--warning);

padding: 3px 8px;
border-radius: 5px;
font-size: 12px;
}

&--fatal {
label {
background: var(--wp--preset--color--error);

color: #fff;
}
}
Expand Down

0 comments on commit f0760c4

Please sign in to comment.