2020-06-26 22:10:27 +02:00
|
|
|
/* common CSS for all image upload widget's */
|
2020-07-20 22:09:07 +02:00
|
|
|
.image_upload_widget {
|
2020-06-26 22:10:27 +02:00
|
|
|
position: relative;
|
|
|
|
border-radius: 5px;
|
2023-03-20 22:08:47 +01:00
|
|
|
box-shadow: 0 0 10px hsl(0deg 0% 0% / 10%);
|
2022-03-16 20:47:08 +01:00
|
|
|
overflow: hidden;
|
2020-06-26 22:10:27 +02:00
|
|
|
|
|
|
|
.image-block {
|
2022-03-16 20:47:08 +01:00
|
|
|
background-size: contain;
|
2020-06-26 22:10:27 +02:00
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2023-01-03 17:40:55 +01:00
|
|
|
.image-hover-background {
|
2020-08-04 23:58:56 +02:00
|
|
|
content: "";
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(0deg 0% 0% / 60%);
|
2020-06-26 22:10:27 +02:00
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
z-index: 99;
|
|
|
|
position: absolute;
|
|
|
|
display: none;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2022-03-16 20:25:51 +01:00
|
|
|
.image_upload_button {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
text-align: center;
|
|
|
|
justify-content: center;
|
2023-03-20 22:08:47 +01:00
|
|
|
box-shadow: 0 0 10px hsl(0deg 0% 0% / 10%);
|
2022-03-16 20:25:51 +01:00
|
|
|
z-index: 99;
|
|
|
|
}
|
|
|
|
|
2020-07-15 20:58:34 +02:00
|
|
|
.image-delete-button {
|
2021-10-23 18:40:05 +02:00
|
|
|
background: none;
|
|
|
|
border: none;
|
2020-06-26 22:10:27 +02:00
|
|
|
cursor: pointer;
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(0deg 0% 75%);
|
2020-06-26 22:10:27 +02:00
|
|
|
opacity: 0;
|
2022-03-16 20:25:51 +01:00
|
|
|
padding: 0;
|
2020-06-26 22:10:27 +02:00
|
|
|
position: absolute;
|
|
|
|
font-size: 2rem;
|
|
|
|
top: 10px;
|
|
|
|
right: 10px;
|
|
|
|
z-index: 99;
|
2021-06-24 19:25:49 +02:00
|
|
|
line-height: 20px;
|
2020-06-26 22:10:27 +02:00
|
|
|
}
|
|
|
|
|
2022-03-16 20:47:08 +01:00
|
|
|
.image-disabled-text {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(0deg 0% 100%);
|
2022-03-16 20:47:08 +01:00
|
|
|
cursor: not-allowed;
|
|
|
|
position: absolute;
|
|
|
|
text-align: center;
|
|
|
|
visibility: hidden;
|
|
|
|
z-index: 99;
|
|
|
|
}
|
|
|
|
|
2022-03-16 20:25:51 +01:00
|
|
|
.image-delete-text,
|
|
|
|
.image-upload-text,
|
|
|
|
.image-disabled-text {
|
|
|
|
box-sizing: border-box;
|
|
|
|
width: 100%;
|
|
|
|
padding: 0 10px;
|
|
|
|
}
|
|
|
|
|
2021-10-23 18:40:05 +02:00
|
|
|
.image-delete-button:focus,
|
2020-07-15 20:58:34 +02:00
|
|
|
.image-delete-button:hover {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(0deg 0% 100%);
|
2020-06-26 22:10:27 +02:00
|
|
|
}
|
|
|
|
|
2020-07-15 21:20:36 +02:00
|
|
|
.image-delete-button:hover ~ .image-upload-text {
|
2020-06-26 22:10:27 +02:00
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2020-07-15 21:14:31 +02:00
|
|
|
.image-delete-button:hover ~ .image-delete-text {
|
2020-06-26 22:10:27 +02:00
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
|
2020-07-15 21:14:31 +02:00
|
|
|
.image-delete-text {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(0deg 0% 100%);
|
2020-06-26 22:10:27 +02:00
|
|
|
font-size: 0.85rem;
|
|
|
|
position: absolute;
|
|
|
|
visibility: hidden;
|
|
|
|
z-index: 99;
|
|
|
|
}
|
|
|
|
|
2020-07-15 21:20:36 +02:00
|
|
|
.image-upload-text {
|
2020-06-26 22:10:27 +02:00
|
|
|
cursor: pointer;
|
|
|
|
font-size: 0.85rem;
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(0deg 0% 85%);
|
2020-06-26 22:10:27 +02:00
|
|
|
position: absolute;
|
|
|
|
z-index: 99;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2020-07-15 21:20:36 +02:00
|
|
|
.image-upload-text:hover {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(0deg 0% 100%);
|
2020-06-26 22:10:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.upload-spinner-background {
|
2022-03-16 20:38:04 +01:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(0deg 0% 10%);
|
2020-08-04 23:58:56 +02:00
|
|
|
font-size: 0.8rem;
|
2020-06-26 22:10:27 +02:00
|
|
|
width: 100%;
|
|
|
|
opacity: 0.8;
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
visibility: hidden;
|
|
|
|
z-index: 99;
|
|
|
|
cursor: pointer;
|
2022-03-16 20:47:08 +01:00
|
|
|
border-radius: 5px;
|
2020-06-26 22:10:27 +02:00
|
|
|
}
|
|
|
|
|
2022-12-15 07:04:48 +01:00
|
|
|
.hide {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2020-06-26 22:10:27 +02:00
|
|
|
&:hover {
|
2020-07-15 21:20:36 +02:00
|
|
|
.image-upload-text {
|
2020-06-26 22:10:27 +02:00
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
|
2022-02-23 22:53:48 +01:00
|
|
|
.image-delete-button {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2023-01-03 17:40:55 +01:00
|
|
|
.image-disabled-text {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
|
|
|
|
.image-hover-background {
|
2020-06-26 22:10:27 +02:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.user-avatar-section,
|
|
|
|
.realm-icon-section {
|
2022-03-16 20:47:08 +01:00
|
|
|
margin: 20px 0;
|
2020-06-26 22:10:27 +02:00
|
|
|
}
|
|
|
|
|
2024-10-09 20:08:31 +02:00
|
|
|
.realm-logo-section {
|
|
|
|
margin: 0 0 20px;
|
|
|
|
}
|
|
|
|
|
2020-09-15 22:23:01 +02:00
|
|
|
/* CSS related to settings page user avatar upload widget only */
|
2020-06-26 22:10:27 +02:00
|
|
|
#user-avatar-upload-widget {
|
|
|
|
.image-block {
|
|
|
|
width: 200px;
|
|
|
|
height: 200px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#user-avatar-source {
|
|
|
|
font-size: 1em;
|
|
|
|
z-index: 99;
|
2022-02-25 22:00:26 +01:00
|
|
|
margin-top: 10px;
|
2020-06-26 22:10:27 +02:00
|
|
|
}
|
|
|
|
|
2020-09-15 22:23:01 +02:00
|
|
|
/* CSS related to settings page realm icon upload widget only */
|
2020-06-26 22:10:27 +02:00
|
|
|
#realm-icon-upload-widget {
|
2020-06-30 09:15:09 +02:00
|
|
|
width: 100px;
|
|
|
|
height: 100px;
|
2023-03-20 22:08:47 +01:00
|
|
|
box-shadow: 0 0 10px hsl(0deg 0% 0% / 10%);
|
2020-06-26 22:10:27 +02:00
|
|
|
|
2022-03-16 20:47:08 +01:00
|
|
|
.image-delete-button {
|
|
|
|
top: 5px;
|
|
|
|
right: 5px;
|
|
|
|
}
|
2020-06-26 22:10:27 +02:00
|
|
|
}
|
|
|
|
|
2020-09-15 22:23:01 +02:00
|
|
|
/* CSS related to settings page realm day/night logo upload widget only */
|
2020-06-26 22:10:27 +02:00
|
|
|
#realm-day-logo-upload-widget,
|
|
|
|
#realm-night-logo-upload-widget {
|
|
|
|
width: 220px;
|
|
|
|
height: 55px;
|
|
|
|
text-align: center;
|
|
|
|
|
2022-03-16 20:25:51 +01:00
|
|
|
.image-delete-button {
|
|
|
|
top: 5px;
|
|
|
|
right: 5px;
|
|
|
|
}
|
2020-06-26 22:10:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#realm-day-logo-upload-widget {
|
2024-10-09 20:08:31 +02:00
|
|
|
/* Match to light-theme --color-background-navbar. */
|
|
|
|
background-color: hsl(0deg 0% 97%);
|
|
|
|
padding: 5px;
|
2020-06-26 22:10:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#realm-night-logo-upload-widget {
|
2024-10-09 20:08:31 +02:00
|
|
|
/* Match to dark-theme --color-background-navbar. */
|
|
|
|
background-color: hsl(0deg 0% 13%);
|
|
|
|
padding: 5px;
|
2020-06-26 22:10:27 +02:00
|
|
|
}
|
|
|
|
|
2022-03-16 20:25:51 +01:00
|
|
|
.realm-logo-group {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2024-10-09 20:08:31 +02:00
|
|
|
gap: 20px;
|
|
|
|
|
|
|
|
.image_upload_button {
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
}
|
2020-06-26 22:10:27 +02:00
|
|
|
}
|
2023-03-03 18:47:38 +01:00
|
|
|
|
|
|
|
/* CSS related to upload widget's preview image */
|
|
|
|
.upload_widget_image_preview {
|
|
|
|
object-fit: cover;
|
|
|
|
}
|