Skip to content

Commit

Permalink
For #1670: configurable navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
ebruchez committed Nov 30, 2022
1 parent c8a096c commit 7a33f0d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@
}

.orbeon {

body& {
padding-top: 52px;
}

// Use `.btn-link` instead of `.xforms-trigger` to catch cases where used directly in an `<xf:button>`
.btn-link .fa {
color: @textColor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ html {
font-size: 13px; // Bootstrap 5 keeps the 16px browser default
}

body.orbeon {
padding-top: 52px;
}

.orbeon {
.card-footer .xforms-label {
margin-right: .2rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@
</xsl:copy>
</xsl:template>

<xsl:template match="fr:navbar" name="fr-navbar">
<xsl:template match="fr:navbar[not($bs5)]" name="fr-navbar">
<xf:group
xxf:element="div"
model="fr-form-model"
Expand Down Expand Up @@ -491,7 +491,7 @@
</xf:group>
</xsl:template>

<xsl:template match="fr:navbar5" name="fr-navbar5">
<xsl:template match="fr:navbar[$bs5]" name="fr-navbar5">
<xf:group
xxf:element="nav"
model="fr-form-model"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
</xh:head>
<xh:body>
<fr:view fluid="true">
<fr:navbar5/>
<fr:navbar/>
<xh:div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xxl-4 gx-2 gy-2">

<xh:div class="p-2 {'xforms-hidden'[not($cards-tokens = 'quick-links')]}">
Expand Down

0 comments on commit 7a33f0d

Please sign in to comment.