style(ImagePreview): adjust index position (#6650)

This commit is contained in:
neverland 2020-06-30 11:43:04 +08:00 committed by GitHub
parent 118d654242
commit 1509795937
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -48,10 +48,11 @@
&__index {
position: absolute;
top: 10px;
top: @padding-md;
left: 50%;
color: @image-preview-index-text-color;
font-size: @image-preview-index-font-size;
line-height: @image-preview-index-line-height;
text-shadow: @image-preview-index-text-shadow;
transform: translate(-50%, 0);
}

View File

@ -423,6 +423,7 @@
// ImagePreview
@image-preview-index-text-color: @white;
@image-preview-index-font-size: @font-size-md;
@image-preview-index-line-height: 22px;
@image-preview-index-text-shadow: 0 1px 1px @gray-8;
@image-preview-overlay-background-color: rgba(0, 0, 0, 0.9);
@image-preview-close-icon-size: 22px;