better visual style of broken images
This commit is contained in:
+32
-4
@@ -1529,16 +1529,19 @@ i.search {
|
||||
color:#777;
|
||||
}
|
||||
|
||||
/* Inline image style */
|
||||
.inline-image {
|
||||
/* Inline and preview image styles */
|
||||
.inline-image, .image-preview {
|
||||
position: relative;
|
||||
max-width: 36rem;
|
||||
max-height: 24rem;
|
||||
overflow: hidden;
|
||||
border-radius: 0.1rem;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.inline-image {
|
||||
max-width: 36rem;
|
||||
max-height: 24rem;
|
||||
}
|
||||
|
||||
/* Container with upload progress */
|
||||
.inline-image > .rounded-container {
|
||||
position: relative;
|
||||
@@ -1549,6 +1552,31 @@ i.search {
|
||||
border-right: 0.25rem solid transparent;
|
||||
}
|
||||
|
||||
/* Broken image graphics which replaces the stock graphics. */
|
||||
img.inline-image::before, img.image-preview::before {
|
||||
font-size: 0.9rem;
|
||||
font-weight: lighter;
|
||||
color: #666;
|
||||
display:flex;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
justify-content: center;
|
||||
background: center no-repeat #ccc url("../img/broken_image.png");
|
||||
}
|
||||
|
||||
img.inline-image::before {
|
||||
content: attr(alt);
|
||||
background-size: 2rem 2rem;
|
||||
}
|
||||
|
||||
img.image-preview::before {
|
||||
content: " ";
|
||||
background-size: 8rem 8rem;
|
||||
}
|
||||
|
||||
/* Attachment styles */
|
||||
.attachment {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user