feat(ImagePreview): add cover slot (#4766)

This commit is contained in:
neverland
2019-10-18 10:30:19 +08:00
committed by GitHub
parent 321905a4b7
commit dc964ac068
6 changed files with 44 additions and 6 deletions
+6 -1
View File
@@ -11,6 +11,12 @@
height: 100%;
}
&__cover {
position: absolute;
top: 0;
left: 0;
}
&__image {
position: absolute;
top: 0;
@@ -30,7 +36,6 @@
left: 50%;
color: @image-preview-index-text-color;
font-size: @image-preview-index-font-size;
letter-spacing: 2px;
transform: translate(-50%, 0);
}