diff --git a/app/assets/stylesheets/alchemy/_variables.scss b/app/assets/stylesheets/alchemy/_variables.scss
index 9cca5266f8..c0d7458ceb 100644
--- a/app/assets/stylesheets/alchemy/_variables.scss
+++ b/app/assets/stylesheets/alchemy/_variables.scss
@@ -174,6 +174,6 @@ $select-hover-text-color: $white !default;
$medium-select-box-width: 90px;
$large-select-box-width: 120px;
-$thumbnail-background-color: opacify($default-border-color, 1) !default;
+$thumbnail-background-color: $medium-gray !default;
$medium-screen-break-point: 700px;
$large-screen-break-point: 1000px;
diff --git a/app/assets/stylesheets/alchemy/archive.scss b/app/assets/stylesheets/alchemy/archive.scss
index e86eee24b7..d0aa22c491 100644
--- a/app/assets/stylesheets/alchemy/archive.scss
+++ b/app/assets/stylesheets/alchemy/archive.scss
@@ -30,7 +30,6 @@
border-bottom: 1px solid $default-border-color;
margin-bottom: 4 * $default-padding;
padding: 4 * $default-padding;
- display: none;
.button {
vertical-align: middle;
@@ -42,7 +41,7 @@
display: flex;
align-items: center;
justify-content: center;
- background-color: $thumbnail-background-color;
+ box-shadow: 0 0 1px 1px $default-border-color;
&:hover {
text-decoration: none;
@@ -51,25 +50,27 @@
.picture_thumbnail {
--picture-thumbnail-border-radius: var(--border-radius_medium);
- max-width: 100%;
- margin: 2 * $default-margin;
- background-color: #fff;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: var(--picture-thumbnail-width);
+ height: var(--picture-thumbnail-height);
position: relative;
- box-shadow: 0 0 1px 1px $default-border-color;
border-radius: var(--picture-thumbnail-border-radius);
+ padding: 2 * $default-padding;
padding-bottom: 2.5em;
+ transition: all $transition-duration;
img,
.thumbnail_background {
- border-top-right-radius: var(--picture-thumbnail-border-radius);
- border-top-left-radius: var(--picture-thumbnail-border-radius);
+ border-radius: var(--picture-thumbnail-border-radius);
}
img {
- &[src$=".svg"] {
- width: auto;
- height: auto;
- }
+ width: auto;
+ height: auto;
+ max-width: 100%;
+ max-height: 100%;
}
.picture_name {
@@ -85,20 +86,57 @@
text-overflow: ellipsis;
}
- &:hover {
+ &:hover,
+ &:focus-within {
.picture_tool,
.picture_tags {
visibility: visible;
opacity: 1;
}
}
+
+ &:hover,
+ &:focus-within,
+ &.active {
+ box-shadow: 0 0 4px 2px $default-border-color;
+
+ .picture_tool.select {
+ visibility: visible;
+ opacity: 1;
+ }
+ }
}
#pictures,
#overlay_picture_list {
- display: flex;
- flex-wrap: wrap;
- align-items: end;
+ --picture-width: 160px;
+ --picture-height: 120px;
+ --picture-thumbnail-width: calc(var(--picture-width) + var(--spacing-2));
+ --picture-thumbnail-height: calc(
+ var(--picture-height) + var(--spacing-2) + 2.5em
+ );
+
+ display: grid;
+ gap: 2 * $default-margin;
+ grid-template-columns: repeat(
+ auto-fit,
+ minmax(var(--picture-thumbnail-width), auto)
+ );
+ justify-items: center;
+
+ &.picture-size--small {
+ --picture-width: 80px;
+ --picture-height: 60px;
+ }
+
+ &.picture-size--large {
+ --picture-width: 240px;
+ --picture-height: 180px;
+ }
+}
+
+#picture_archive {
+ overflow: visible;
}
#pictures {
@@ -182,6 +220,10 @@ div.assign_image_list_image {
max-height: 80%;
padding: $default-padding;
pointer-events: none;
+
+ .tag {
+ box-shadow: 0 0 2px 2px $default-border-color;
+ }
}
.picture_tags,
@@ -234,11 +276,25 @@ div#filter_bar {
#assign_image_list,
#assign_file_list {
position: relative;
- height: 548px;
+ height: 558px;
}
#assign_image_list {
- padding-right: 244px;
+ padding-right: 240px;
+ padding-bottom: 60px;
+}
+
+#overlay_picture_list {
+ height: 100%;
+ overflow: auto;
+
+ .picture_thumbnail:hover {
+ box-shadow: none;
+
+ .thumbnail_background {
+ box-shadow: 0 0 4px 4px $default-border-color;
+ }
+ }
}
#overlay_file_list {
diff --git a/app/assets/stylesheets/alchemy/elements.scss b/app/assets/stylesheets/alchemy/elements.scss
index 0d01ddb3ad..6bab4f064f 100644
--- a/app/assets/stylesheets/alchemy/elements.scss
+++ b/app/assets/stylesheets/alchemy/elements.scss
@@ -537,6 +537,9 @@ alchemy-publish-element-button {
z-index: 0;
width: 100%;
padding: $default-padding;
+ background-color: #fff;
+ border-bottom-left-radius: $default-border-radius;
+ border-bottom-right-radius: $default-border-radius;
.icon_button {
width: 26px;
@@ -559,6 +562,7 @@ alchemy-publish-element-button {
width: 160px;
margin: $default-margin 0;
padding-bottom: 34px;
+ box-shadow: 0 0 1px 1px $default-border-color;
.picture_image {
overflow: hidden;
diff --git a/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb b/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb
index 4208e5bf36..1c137b8956 100644
--- a/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb
+++ b/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb
@@ -5,7 +5,7 @@
<%= page_layout_missing_warning %>
<% elsif layoutpage.locked? %>