Skip to content

Commit

Permalink
fix(deposit-form, detail-page, collections): Improved collection disp…
Browse files Browse the repository at this point in the history
…lay for published records in upload form; Tweaks to detail page publication info display; Added version flag to upload form header
  • Loading branch information
monotasker committed Dec 2, 2024
1 parent e78f85f commit c5f0b22
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 18 deletions.
13 changes: 10 additions & 3 deletions assets/less/site/collections/form.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,6 @@ textarea {
.ui.message {
display: flex;
align-items: center;
.info.icon {
font-size: @huge;
}
p {
margin: 0;
}
Expand Down Expand Up @@ -496,9 +493,19 @@ textarea {
align-items: center;
> .field:first-child > .grid {
align-items: center;
margin-right: 1rem;
overflow-x: auto;
max-height: 10rem;
.ui-small-header {
margin-top: 0;
}
.community-header-logo {
width: 2.5rem;
height: 2.5rem;
max-width: 2.5rem;
max-height: 2.5rem;
object-fit: cover;
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions assets/less/site/collections/menu.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
&:focus,
&:active {
background-color: @mint60 !important;
z-index: 100;
}
}
a,
Expand Down
29 changes: 23 additions & 6 deletions assets/less/site/collections/message.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
color: @verdigrisDark;
box-shadow: none;

p {
flex-grow: 1;
}

&.negative,
&.file-box-message {
border: 1px solid @negativeBorderColor;
Expand Down Expand Up @@ -54,6 +58,9 @@

.file-upload-note {
.ui.message {
.info.icon {
margin-top: 0.2rem;
}
.header {
font-size: 1rem;
margin: 0;
Expand All @@ -64,11 +71,21 @@

.ui.message.file-type-message {
align-items: flex-start; // Aligns the icon to the top of the accordion
.icon {
.large.icon {
color: @infoColor;
margin-top: 0.2rem;
&.dropdown {
color: @infoTextColor;
}
margin-right: 1.5rem;
font-size: 1.5rem !important;
position: relative;
left: 1px;
}
}
}

.file-uploader-container > .column > .column:first-child {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
& + .info.message {
border-top-left-radius: 0;
border-top-right-radius: 0;
border-top: none;
}
}
17 changes: 13 additions & 4 deletions assets/less/site/elements/button.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@

.ui.buttons > .ui.button:not(.inverted),
.ui.buttons:not(.inverted) > .ui.button,
.ui.button {
.ui.button,
.ui.info.message .button,
.ui.info.message .ui.button.icon {
background-color: @white;
color: @ivy;
box-shadow: 0px 0px 0px 1px @verdigris90 inset, 0px 0em 0px 0px @verdigris90 inset;
// &:focus-visible {
// outline: 3px solid @gold !important;
// }

&:hover,
&:active,
&:focus {
Expand Down Expand Up @@ -70,12 +70,21 @@
}

&.positive {
color: @white;
background-color: @positiveColor !important;
box-shadow: none !important;
border: 1px solid @positiveColor;

&:hover,
&:active,
&:focus {
color: @positiveBackgroundColor;
background-color: @positiveColorDown !important;
border: 1px solid @positiveColorDown;
}

.icon {
color: @white;
}
}

Expand Down
6 changes: 6 additions & 0 deletions assets/less/site/elements/image.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
img {
object-fit: cover;
min-height: 80px;
min-width: 80px;
max-height: 80px;
max-width: 80px;
border-radius: @defaultBorderRadius;
box-shadow: 0 0 0.5rem rgb(0 0 0 / 5%);
border: 1px solid @sidebarBorderColor;
Expand All @@ -20,6 +23,9 @@
&.mini {
img {
min-height: 45px;
min-width: 45px;
max-height: 45px;
max-width: 45px;
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -723,13 +723,15 @@ MODULAR_DETAIL_PAGE_SIDEBAR_SECTIONS_RIGHT = [
# {"section": "Resource type"},
{"section": "Published in"},
{"section": "Imprint"},
{"section": "Publisher"},
{"section": "Awarding university"},
{"section": "Conference"},
{"section": "Conference organization"},
{"section": "Publisher"},
{"section": "Publication date"},
{"section": "Languages"},
{"section": "Formats"},
{"section": "Sizes"},
{"section": "Duration"},
{"section": "DOI"},
],
"show_heading": False,
Expand Down
2 changes: 0 additions & 2 deletions site/kcworks/assets/semantic-ui/js/main_ui/main_menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ const UserMenu = ({

return (
<>
<div className="item">
<div
role="menuitem"
id="user-profile-dropdown"
Expand Down Expand Up @@ -213,7 +212,6 @@ const UserMenu = ({

</div>
</div>
</div>

<div className="sub-menu mobile tablet only">
<h2 className="ui small header">{i18next.t("My account")}</h2>
Expand Down

0 comments on commit c5f0b22

Please sign in to comment.