Skip to content

Commit 809a23d

Browse files
Breadcrumbs: Use full content width for breadcrumb container (#365)
* Breadcrumbs: Use full content width for breadcrumbs * Linting: Add lint ignores for coveo and qualtrics --------- Co-authored-by: Jack Hickey <[email protected]>
1 parent 1e50b95 commit 809a23d

File tree

2 files changed

+34
-17
lines changed

2 files changed

+34
-17
lines changed

assets/css/v2/style.css

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,20 @@ textarea:not([rows]) {
132132
:root {
133133
/* Coveo color overrides */
134134
/* More info: https://docs.coveo.com/en/atomic/latest/usage/themes-and-visual-customization/ */
135+
136+
/* biome-ignore lint: Coveo override */
135137
--atomic-primary: oklch(var(--color-brand)) !important; /* Adjust the primary color */
138+
/* biome-ignore lint: necessary override */
136139
--atomic-ring-primary: oklch(var(--color-brand) / 0.4) !important; /* Adjust the focus color */
140+
/* biome-ignore lint: necessary override */
137141
--atomic-primary-light: oklch(var(--color-brand)) !important;
138142

139143
/* Remove round corners */
144+
/* biome-ignore lint: Coveo override */
140145
--atomic-border-radius-lg: 0 !important;
146+
/* biome-ignore lint: Coveo override */
141147
--atomic-border-radius-md: 0 !important;
148+
/* biome-ignore lint: Coveo override */
142149
--atomic-border-radius: 0 !important;
143150

144151
/* webfonts */
@@ -981,6 +988,7 @@ nav {
981988
max-width: 100%;
982989

983990
.redoc-wrap .menu-content {
991+
/* biome-ignore lint: Redoc override */
984992
top: 4rem !important; /* Override redocly's inline top property */
985993
left: 0;
986994
}
@@ -1035,9 +1043,11 @@ main {
10351043

10361044
.QSIUserDefinedHTML {
10371045
z-index: 1;
1046+
/* biome-ignore lint: Qualtrics override */
10381047
width: 100% !important;
10391048

10401049
* {
1050+
/* biome-ignore lint: Qualtrics override */
10411051
width: 100% !important; /* Override Qualtrics hard-coded width */
10421052
}
10431053
}
@@ -1049,6 +1059,7 @@ main {
10491059
atomic-search-interface#search-v2 {
10501060
position: relative;
10511061
z-index: 1;
1062+
/* biome-ignore lint: Coveo override */
10521063
display: inline-block !important;
10531064
width: 95vw;
10541065
grid-column: 1 / -1;
@@ -1064,23 +1075,27 @@ atomic-search-interface#search-v2 {
10641075
"atomic-section-status"
10651076
"atomic-section-facets"
10661077
"atomic-section-main";
1067-
1078+
/* biome-ignore lint: Coveo override */
10681079
grid-template-columns: minmax(50%, 100%) !important;
10691080

10701081
@media (min-width: 1024px) {
10711082
&:has(atomic-search-box) {
10721083
grid-template-areas:
10731084
"atomic-section-search atomic-section-status"
10741085
"atomic-section-facets atomic-section-main "
1086+
/* biome-ignore lint: Coveo override */
10751087
"atomic-section-facets . " !important;
10761088
}
10771089

10781090
grid-template-areas:
10791091
"atomic-section-facets atomic-section-status"
10801092
"atomic-section-facets atomic-section-main "
1093+
/* biome-ignore lint: Coveo override */
10811094
"atomic-section-facets . " !important;
10821095

1096+
/* biome-ignore lint: Coveo override */
10831097
grid-template-columns: minmax(17rem, 24rem) minmax(50%, 100%) !important;
1098+
/* biome-ignore lint: Coveo override */
10841099
column-gap: calc(1.5rem + 2rem) !important;
10851100
}
10861101

@@ -1105,6 +1120,7 @@ atomic-search-interface#search-v2 {
11051120

11061121
atomic-query-summary {
11071122
&::part(duration) {
1123+
/* biome-ignore lint: Coveo override */
11081124
display: inline-block !important;
11091125
}
11101126
}
@@ -1121,7 +1137,9 @@ atomic-search-interface#search-v2 {
11211137

11221138
atomic-layout-section[section="search"] {
11231139
/* Override Coveo's width to be full */
1140+
/* biome-ignore lint: Coveo override */
11241141
width: 100% !important;
1142+
/* biome-ignore lint: Coveo override */
11251143
max-width: 100% !important;
11261144
}
11271145

@@ -1457,6 +1475,7 @@ p {
14571475

14581476
.breadcrumb li:after {
14591477
padding: 0 0.25rem;
1478+
/* biome-ignore lint: Breadcrumb arrow */
14601479
content: "\E1D7";
14611480
}
14621481

@@ -1511,7 +1530,7 @@ a:hover {
15111530
.headerlink::before {
15121531
display: flex;
15131532
align-items: flex-start;
1514-
height: 100%
1533+
height: 100%;
15151534
}
15161535
}
15171536

layouts/partials/breadcrumb.html

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
<nav aria-label="breadcrumb" class="breadcrumb navbar">
2-
<div class="nav flex-md-row">
3-
<ol class="breadcrumb">
4-
<button class="sidebar__mobile__toggle" aria-label="sidebar__mobile__toggle" aria-expanded="false">{{ partial "lucide" (dict "context" . "icon" "align-justify") }}</button>
5-
<li><a href="/" alt="NGINX Docs Home">Home</a></li>
6-
{{- define "breadcrumb" -}}
7-
{{- with .Parent -}}
8-
{{- template "breadcrumb" . -}}
9-
<li>{{- if .IsHome -}}<a href="{{ .RelPermalink }}">{{ .Site.Title}}</a>{{ else }}<a href="{{ .RelPermalink }}">{{ .Title }}{{ end }}</a></li>
10-
{{- end -}}
1+
<nav aria-label="breadcrumb" class="breadcrumb" data-grid="wide">
2+
<ol class="breadcrumb">
3+
<button class="sidebar__mobile__toggle" aria-label="sidebar__mobile__toggle" aria-expanded="false">{{ partial "lucide" (dict "context" . "icon" "align-justify") }}</button>
4+
<li><a href="/" alt="NGINX Docs Home">Home</a></li>
5+
{{- define "breadcrumb" -}}
6+
{{- with .Parent -}}
7+
{{- template "breadcrumb" . -}}
8+
<li>{{- if .IsHome -}}<a href="{{ .RelPermalink }}">{{ .Site.Title}}</a>{{ else }}<a href="{{ .RelPermalink }}">{{ .Title }}{{ end }}</a></li>
119
{{- end -}}
12-
{{- if not .IsHome -}}
13-
{{- template "breadcrumb" . -}}
14-
{{- .Title -}}
15-
</ol>
16-
</div>
10+
{{- end -}}
11+
{{- if not .IsHome -}}
12+
{{- template "breadcrumb" . -}}
13+
{{- .Title -}}
14+
</ol>
1715
</nav>
1816
{{ end }}

0 commit comments

Comments
 (0)