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;
|
2020-08-06 02:42:07 +02:00
|
|
|
box-shadow: 0 0 10px hsla(0, 0%, 0%, 0.1);
|
2022-03-16 20:47:08 +01:00
|
|
|
overflow: hidden;
|
2020-06-26 22:10:27 +02:00
|
|
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
|
|
|
.image-block {
|
2022-03-16 20:47:08 +01:00
|
|
|
background-size: contain;
|
2020-06-26 22:10:27 +02:00
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2020-07-15 20:14:13 +02:00
|
|
|
.image-upload-background {
|
2020-08-04 23:58:56 +02:00
|
|
|
content: "";
|
2022-03-16 20:47:08 +01:00
|
|
|
background-color: hsla(0, 0%, 0%, 0.6);
|
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;
|
|
|
|
box-shadow: 0 0 10px hsla(0, 0%, 0%, 0.1);
|
|
|
|
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;
|
|
|
|
color: hsl(0, 0%, 75%);
|
|
|
|
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 {
|
|
|
|
color: hsl(0, 0%, 100%);
|
|
|
|
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 {
|
2020-06-26 22:10:27 +02:00
|
|
|
color: hsl(0, 0%, 100%);
|
|
|
|
}
|
|
|
|
|
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 {
|
2020-06-26 22:10:27 +02:00
|
|
|
color: hsl(0, 0%, 100%);
|
|
|
|
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;
|
|
|
|
color: hsl(0, 0%, 85%);
|
|
|
|
position: absolute;
|
|
|
|
z-index: 99;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2020-07-15 21:20:36 +02:00
|
|
|
.image-upload-text:hover {
|
2020-06-26 22:10:27 +02:00
|
|
|
color: hsl(0, 0%, 100%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.upload-spinner-background {
|
2022-03-16 20:38:04 +01:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2020-06-26 22:10:27 +02:00
|
|
|
background-color: hsl(0, 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;
|
|
|
|
}
|
|
|
|
|
2020-07-15 20:14:13 +02:00
|
|
|
.image-upload-background {
|
2020-06-26 22:10:27 +02:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.user-avatar-section,
|
|
|
|
.realm-logo-section,
|
|
|
|
.realm-icon-section {
|
2022-03-16 20:47:08 +01:00
|
|
|
margin: 20px 0;
|
2020-06-26 22:10:27 +02:00
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
2022-02-25 00:03:20 +01:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.image-disabled-text {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
2020-06-26 22:10:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#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;
|
2020-08-06 02:42:07 +02:00
|
|
|
box-shadow: 0 0 10px hsla(0, 0%, 0%, 0.1);
|
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 {
|
2022-03-16 20:47:08 +01:00
|
|
|
background-color: hsl(0, 100%, 100%);
|
2020-06-26 22:10:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#realm-night-logo-upload-widget {
|
|
|
|
background-color: hsl(212, 28%, 18%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.realm-logo-block {
|
2022-03-16 20:25:51 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0 20px;
|
2020-06-26 22:10:27 +02:00
|
|
|
}
|
|
|
|
|
2022-03-16 20:25:51 +01:00
|
|
|
.realm-logo-group {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-around;
|
|
|
|
flex-wrap: wrap;
|
2020-06-26 22:10:27 +02:00
|
|
|
}
|