Skip to content

Commit

Permalink
UI updates:
Browse files Browse the repository at this point in the history
input placecholder
warning button
menu layout
  • Loading branch information
amdomanska committed Dec 2, 2024
1 parent 3e54d82 commit b00bd3f
Show file tree
Hide file tree
Showing 13 changed files with 102 additions and 47 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions .idea/fair-data-repository.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion assets/less/site/collections/menu.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
text-decoration: underline;
text-decoration-color: @primaryColor;
a:not(.ui.button) {
display: inline-block;
color: @primaryColor;
padding: 2rem 1rem;
text-decoration: underline;
Expand Down
6 changes: 6 additions & 0 deletions assets/less/site/elements/button.variables
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,9 @@ disabled button
@disabledButtonBackgroundColor: @whiteSmoke;
@disabledButtonBorderColor: @darkGray;
@disabledButtonTextColor: @darkGray;

/*----------------------------------------
@warningButtonColor: @orange;
@warningButtonBorderColor: @orange;
@warningButtonTextColor: @black;
-------------------------------------------*/
4 changes: 4 additions & 0 deletions assets/less/site/elements/input.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
outline-width: 3px;
outline-offset: 3px;
}
&::placeholder{
color: @darkGray;
}

}

div.ui.search .ui.input input {
Expand Down
76 changes: 37 additions & 39 deletions assets/less/site/globals/site.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -170,45 +170,43 @@ html.cover-page {
color: @primaryColor;
}

#rdm-burger-menu-icon {
@headerOverlayOpenColor: @primaryColor;

.header__inner--inverse & {
@headerOverlayOpenColor: @white;
}
background-color: transparent !important;
border: none !important;
color: none;

span {
top: 1px;

&::before {
top: clamp(0.4375rem, 0.4016rem + 0.1795vw, 0.5625rem); // 7px -> 9px
transition: transform 0.2s;
}

&::after {
top: clamp(0.875rem, 0.8032rem + 0.3591vw, 1.125rem); // 14px -> 18px
transition: none;
}
}

span,
span::before,
span::after {
background-color: var(@headerOverlayOpenColor);
}

&:hover {
background-color: transparent !important;
border: none !important;
transform: rotate(90deg);
span::before {
width: clamp(0.875rem, 0.8032rem + 0.3591vw, 1.125rem); // 14px -> 18px
}
}
}
.header__nav-open {
color: var(--header-overlay-open-color);
margin-inline-start: $space-m;

span {
top: 1px;

&::before {
top: clamp(0.4375rem, 0.4016rem + 0.1795vw, 0.5625rem); // 7px -> 9px
transition: transform 0.2s;
}

&::after {
top: clamp(0.875rem, 0.8032rem + 0.3591vw, 1.125rem); // 14px -> 18px
transition: none;
}
}

span,
span::before,
span::after {
background-color: var(--header-overlay-open-color);
}

&:hover {
--header-overlay-open-color: #{$base-color};

.header__inner--inverse & {
--header-overlay-open-color: #{$base-light};
}

span::before {
left: 1px;
transform: rotate(90deg);
width: clamp(0.875rem, 0.8032rem + 0.3591vw, 1.125rem); // 14px -> 18px
}
}
}

.theme.header {
Expand Down
Binary file added celerybeat-schedule.db
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<div id="rdm-burger-toggle">
<button
id="rdm-burger-menu-icon"
class="ui button transparent mr-0 pr-0"
class="ui button transparent mr-0 pr-0 header__nav-open"
aria-label="{{ _('Menu') }}"
aria-haspopup="menu"
aria-expanded="false"
Expand Down
11 changes: 6 additions & 5 deletions templates/semantic-ui/invenio_app_rdm/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ <h3 class="sr-only">Address</h3>
</div>
<div class="twelve wide tablet twelve wide computer column">
<div class="ui right aligned footer__info">
<div class="email">
<h3>Contact the team</h3>
<a id="contact-us" href="/"
class="ui link right floated contact-us">[email protected]</a>
</div>
<h3 class="sr-only">Site Information</h3>
<ul class="footer__meta">
<li><a href="/">Support</a></li>
<li><a href="/">Accessibility</a></li>
<li><a href="https://www.imperial.ac.uk/about-the-site/use-of-cookies/">Use of cookies</a></li>
</ul>
<p class="footer__copyright right floated">© 2024 Imperial College London</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/semantic-ui/invenio_app_rdm/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<div id="rdm-burger-toggle">
<button
id="rdm-burger-menu-icon"
class="ui button transparent"
class="ui button transparent header__nav-open"
aria-label="{{ _('Menu') }}"
aria-haspopup="menu"
aria-expanded="false"
Expand Down

0 comments on commit b00bd3f

Please sign in to comment.