Skip to content

Commit

Permalink
class names and minor changes per PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Ducica committed Feb 2, 2024
1 parent a349af9 commit a6dbddf
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 91 deletions.
12 changes: 2 additions & 10 deletions oarepo_ui/templates/components/Searchbar.jinja
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
{# def search_link="/search" #}
{% set options = [
{
"key": "docs",
"title": _("All document records"),
"text": _("in") ~ " " ~ _("All document records"),
"value": search_link
}]
%}
<div class="item p-0 search-bar rel-mr-1">
<div id="header-search-bar" data-options='{{ options | tojson }}'>
<div class="item p-0 search-bar">
<div id="header-search-bar">
<form action="{{ search_link }}" class="ui form" role="search">
<div class="ui fluid action input">
<input type="text" name="q" class="form-control" placeholder="{{ _('Search') }}">
Expand Down
2 changes: 1 addition & 1 deletion oarepo_ui/templates/oarepo_ui/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
free software; you can redistribute it and/or modify it under the terms of the
MIT License; see LICENSE file for more details. #}

<footer class="ui footer-component">
<footer class="ui page-footer">
<div id="nr-footer-container">
<div class="ui container">
<div class="ui middle aligned grid">
Expand Down
2 changes: 1 addition & 1 deletion oarepo_ui/templates/oarepo_ui/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Invenio App RDM is free software; you can redistribute it and/or modify it
under the terms of the MIT License; see LICENSE file for more details.
#}
<header class="ui header-component">
<header class="ui page-header">
{%- block site_banner %}
{%- endblock site_banner %}
<div class="outer-navbar">
Expand Down
6 changes: 3 additions & 3 deletions oarepo_ui/templates/oarepo_ui/header_login.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{%- if plus_menu_items %}
<div
id="quick-create-dropdown"
class="rdm-plus-menu rdm-plus-menu-responsive ui dropdown pr-15 computer only"
class="ui dropdown pr-15 computer only"
>
<a
id="quick-create-dropdown-btn"
Expand All @@ -43,7 +43,7 @@

<div role="menu" aria-labelledby="quick-create-dropdown-btn" id="quick-create-menu" class="menu">
{%- for item in plus_menu_items if item.visible %}
<a role="menuitem" class="item" href="{{ item.url }}">{{ item.text|safe }}</a>
<a role="menuitem" class="item" href="{{ item.url }}">{{ item.text }}</a>
{%- endfor %}
</div>
</div>
Expand All @@ -55,7 +55,7 @@ <h2 class="ui small header">{{ _("Actions") }}</h2>
{%- for item in plus_menu_items if item.visible %}
<a role="menuitem" class="item" href="{{ item.url }}">
<i class="plus icon"></i>
{{ item.text|safe }}
{{ item.text }}
</a>
{%- endfor %}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ name of the component from above)
will allow users to override these values.
*/

.ui.footer-component {
.ui.page-footer {
margin: 0;
min-height: @pageFooterMinHeight;
#nr-footer-container {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ name of the component from above)
will allow users to override these values.
*/

.ui.header-component {
.ui.page-header {
margin-top: 0;
background-color: @pageHeaderBackgroundColor;
border-bottom: @pageHeaderBottomBorder;
Expand Down Expand Up @@ -77,80 +77,6 @@ name of the component from above)
}
}

#invenio-nav.ui.menu {
height: @relative75px;
position: relative;

.ui.menu {
background-color: transparent;
box-shadow: none;

.ui.dropdown.invenio-plus-menu {
padding: 1rem;
}

.item {
padding: 0;

a:not(.ui.button) {
padding: 2rem 1rem;

&:hover {
background-color: rgba(255, 255, 255, 0.2);
color: @white;
text-decoration: none;
}
}
}
}

.item {
&.logo {
padding-right: 1rem;
img {
height: @pageHeaderLogoHeight;
}
}

&.search-bar {
padding-right: 1rem;
}

&:first-of-type {
padding-left: 0;
}

&:last-of-type {
padding-left: 0;
}

&.right.menu {
padding-right: 0;
display: flex;
}
}

.invenio-plus-menu {
padding-right: 15px;
}

#user-profile-dropdown {
width: 13em;

#user-profile-dropdown-btn {
width: inherit;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

#user-profile-menu.ui.menu {
width: inherit;
background-color: rgb(255, 255, 255);
}
}
}

@media all and (max-width: @largestTabletScreen) {
#invenio-nav.ui.menu {
&.active #invenio-menu.ui.menu {
Expand Down

0 comments on commit a6dbddf

Please sign in to comment.