client/css: prevent thumbnail dragging, fix ff upload thumbnail outline

This commit is contained in:
Eva 2023-05-22 06:45:39 +02:00
parent 571cd90fd2
commit f956d8033c
3 changed files with 21 additions and 29 deletions

View file

@ -106,6 +106,11 @@ form .fa-question-circle-o
background-color: $scrollbar-bg-color background-color: $scrollbar-bg-color
&::-webkit-scrollbar-thumb &::-webkit-scrollbar-thumb
background-color: $scrollbar-thumb-color background-color: $scrollbar-thumb-color
li[data-name=view]
background: $button-enabled-background-color
margin-right: 1em
a
color: $button-enabled-text-color
>.content-wrapper:not(.transparent) >.content-wrapper:not(.transparent)
background: $top-navigation-color background: $top-navigation-color
padding: 1.8em padding: 1.8em
@ -214,8 +219,6 @@ nav
ul li[data-name=settings], ul li[data-name=settings],
ul li[data-name=help] ul li[data-name=help]
float: none float: none
.access-key
text-decoration: underline
.thumbnail .thumbnail
width: 1.5em width: 1.5em
height: 1.5em height: 1.5em
@ -244,9 +247,6 @@ nav
#mobile-navigation-toggle #mobile-navigation-toggle
color: $text-color-darktheme color: $text-color-darktheme
a .access-key
text-decoration: underline
.messages .messages
margin: 0 auto margin: 0 auto
text-align: left text-align: left
@ -284,28 +284,24 @@ a .access-key
/*background-image: attr(data-src url)*/ /* not available yet */ /*background-image: attr(data-src url)*/ /* not available yet */
vertical-align: middle vertical-align: middle
background-repeat: no-repeat background-repeat: no-repeat
background-size: cover background-size: contain
background-position: center background-position: center
display: inline-block display: inline-block
width: 20px width: 20px
height: 20px height: 20px
&.empty &.empty
background-image: background-image:
linear-gradient(45deg, $transparency-grid-square-color 25%, transparent 25%), repeating-linear-gradient(45deg, $window-color, $window-color 10px, #e6e6e6 10px, #e6e6e6 20px)
linear-gradient(-45deg, $transparency-grid-square-color 25%, transparent 25%), img, video
linear-gradient(45deg, transparent 75%, $transparency-grid-square-color 75%),
linear-gradient(-45deg, transparent 75%, $transparency-grid-square-color 75%)
background-position: 0 0, 0 10px, 10px -10px, -10px 0px
background-repeat: repeat
background-size: 20px 20px
img
opacity: 0 opacity: 0
width: auto object-fit: cover
height: 100% width: 100%
video
width: auto
height: 100% height: 100%
.darktheme .thumbnail.empty
background-image:
repeating-linear-gradient(45deg, $window-color-darktheme, $window-color-darktheme 10px, #333 10px, #333 20px)
.flexbox-dummy .flexbox-dummy
height: 0 !important height: 0 !important
padding-top: 0 !important padding-top: 0 !important

View file

@ -62,22 +62,18 @@ $cancel-button-color = tomato
margin: 0 0 1.2em 0 margin: 0 0 1.2em 0
padding-left: 13em padding-left: 13em
img
width: 100%
height: 100%
video
width: 100%
height: 100%
&>.thumbnail-wrapper &>.thumbnail-wrapper
float: left float: left
width: 12em width: 12em
height: 8em height: 8em
margin: 0 0 0 -13em margin: 0 0 0 -13em
.thumbnail a
width: 100% display: block
height: 100% height: 100%
width: 100%
.thumbnail
width: 100%
height: 100%
.uploadable .uploadable
border: 1px solid $upload-border-color border: 1px solid $upload-border-color

View file

@ -49,7 +49,7 @@ function makeThumbnail(url) {
style: `background-image: url(\'${url}\')`, style: `background-image: url(\'${url}\')`,
} }
: { class: "thumbnail empty" }, : { class: "thumbnail empty" },
makeElement("img", { alt: "thumbnail", src: url }) makeElement("img", { alt: "thumbnail", src: url, draggable: "false" })
); );
} }