Skip to content

Commit

Permalink
css and menu user
Browse files Browse the repository at this point in the history
  • Loading branch information
DarioSacco committed Apr 23, 2024
1 parent 1db861a commit 0c0f33c
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 20 deletions.
23 changes: 23 additions & 0 deletions theme/albe/scss/preset/extra.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,27 @@ z-menu > a {

.btn {
font-family: inherit;
}

#page.drawers {
padding: var(--grid-margin);
margin-top: 0;

& .main-inner {
padding: var(--grid-margin) 0;
margin: 0;
max-width: 100% !important;
}

& div[role="main"] {
padding: 0;
}

& .header-maxwidth {
padding: 0;
}
}

idp-login :is(#divider-container, button#guestbutton) {
display: none !important;
}
16 changes: 4 additions & 12 deletions theme/albe/templates/navbar_menu.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,13 @@
{{#children}}
{{^divider}}
{{#is_action_link}}
<a slot="item" {{#actionattributes}}{{name}}="{{value}}" {{/actionattributes}} href="{{{url}}}{{{action}}}">
{{{text}}}
</a>
<a slot="item" {{#actionattributes}}{{name}}="{{value}}" {{/actionattributes}} href="{{{url}}}{{{action}}}">{{{text}}}</a>
{{#action_link_actions}}
{{> core/actions }}
{{/action_link_actions}}
{{/is_action_link}}
{{^is_action_link}}
<a slot="item" href="{{{url}}}{{{action}}}" {{#isactive}}active{{/isactive}}>
{{{text}}}
</a>
<a slot="item" href="{{{url}}}{{{action}}}" {{#isactive}}active{{/isactive}}>{{{text}}}</a>
{{/is_action_link}}
{{/divider}}
{{#divider}}
Expand All @@ -36,9 +32,7 @@
{{/action_link_actions}}
{{/is_action_link}}
{{^is_action_link}}
<a {{#isactive}}active{{/isactive}} href="{{tab}}" {{#title}}title="{{.}}"{{/title}}>
{{{text}}}
</a>
<a {{#isactive}}active{{/isactive}} href="{{tab}}" {{#title}}title="{{.}}"{{/title}}>{{{text}}}</a>
{{/is_action_link}}
{{/istablist}}
{{^istablist}}
Expand All @@ -51,9 +45,7 @@
{{/action_link_actions}}
{{/is_action_link}}
{{^is_action_link}}
<a href="{{{url}}}{{{action}}}" {{#title}}title="{{.}}"{{/title}} {{#isactive}}active{{/isactive}}>
{{{text}}}
</a>
<a href="{{{url}}}{{{action}}}" {{#title}}title="{{.}}"{{/title}} {{#isactive}}active{{/isactive}}>{{{text}}}</a>
{{/is_action_link}}
{{/istablist}}
</z-menu>
Expand Down
22 changes: 14 additions & 8 deletions theme/albe/templates/navbar_menubar.mustache
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{{#nodecollection}}
{{#children}}
{{> theme_albe/navbar_menu}}
{{/children}}
{{/nodecollection}}
{{#nodearray}}
{{#output.edit_switch}}
{{#nodecollection}}
{{#children}}
{{> theme_albe/navbar_menu}}
{{/children}}
{{/nodecollection}}
{{#nodearray}}
{{> theme_albe/navbar_menu}}
{{/nodearray}}
{{/nodearray}}
{{/output.edit_switch}}

{{#usermenu}}
{{#unauthenticateduser}}
Expand All @@ -16,7 +18,11 @@
{{/url}}
{{/unauthenticateduser}}
{{^unauthenticateduser}}

<div slot="menu">
{{#usermenu}}
{{> core/user_menu }}
{{/usermenu}}
</div>
{{/unauthenticateduser}}
{{/usermenu}}

Expand Down

0 comments on commit 0c0f33c

Please sign in to comment.