Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
0a40709
Use component title in place of version selector
recrwplay Feb 28, 2024
0082276
GraphAcademy Top-level Menu (#219)
adam-cowley Mar 6, 2024
7f6ea6d
Updates to Labs menu (#208)
adam-cowley Mar 6, 2024
541e0d1
Add a banner to a page (#217)
recrwplay Mar 6, 2024
37447df
Add color for visited links (#218)
recrwplay Mar 6, 2024
0daad7c
Create labels from roles in docs (#211)
recrwplay Mar 6, 2024
fdb00ee
0.20.1
adam-cowley Mar 6, 2024
366142a
0.21.0
adam-cowley Mar 6, 2024
99c10ce
0.22.0
adam-cowley Mar 6, 2024
372a3f7
0.23.0
adam-cowley Mar 6, 2024
3a54d42
Use full URL for logo
adam-cowley Mar 7, 2024
2522fc6
0.23.1
adam-cowley Mar 7, 2024
11e7468
Roles labels refinement (#220)
recrwplay Mar 8, 2024
27489fa
0.23.2
recrwplay Mar 8, 2024
0d148c1
fix tabs bug (#221)
recrwplay Mar 8, 2024
3587a3b
0.23.3
recrwplay Mar 8, 2024
68b2afd
Add highlight.js language `parameters` as an alias for `json`, for cy…
stefano-ottolenghi Mar 15, 2024
bebbc0b
Ensure `<details>` only has margin-bottom when block element (ex not …
stefano-ottolenghi Apr 18, 2024
01928af
Avoid autoscroll when changing tab in tabbed example. (#226)
stefano-ottolenghi Apr 30, 2024
361a90d
Addition of GDS client to the Docs dropdown menu in the header (#225)
lidiazuin May 7, 2024
cb28e5b
fix kb label color (#227)
recrwplay May 8, 2024
8c0ef1c
Reduce tab-size (#224)
adam-cowley May 8, 2024
d2e188e
Add NVL to dropdown (#228)
recrwplay May 9, 2024
642dd21
0.23.4
recrwplay May 9, 2024
9df9ac6
0.23.5
recrwplay May 9, 2024
da52e9e
Add image class `rounded-corners`. (#229)
stefano-ottolenghi May 16, 2024
1753e90
Center align layout (#230)
adam-cowley May 16, 2024
e6e1228
0.23.6
adam-cowley May 16, 2024
fc81289
0.23.7
adam-cowley May 16, 2024
3c3f008
linting
adam-cowley May 16, 2024
8ec1677
0.23.8
adam-cowley May 16, 2024
889ce26
Allow rounded-corners for videos.
stefano-ottolenghi May 17, 2024
ac1530f
Fix h5 and h6 headers (#231)
JPryce-Aklundh May 20, 2024
1640fe6
Fix bug in label parsing (#232)
recrwplay Jun 3, 2024
e0558ee
Accessibility fixes (1) (#210)
recrwplay Jun 3, 2024
b243875
visited link color
recrwplay Jun 3, 2024
eace9ef
Merge branch 'master' into selector-content
recrwplay Jun 3, 2024
5e84383
Display component name and version separately
recrwplay Jun 3, 2024
df60783
Move version selector below component name
recrwplay Jun 4, 2024
1ed05d8
Merge branch 'master' into selector-content
recrwplay Jul 5, 2024
48697a5
Selectors padding
recrwplay Jul 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/css/cheat-sheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ body.cheat-sheet .nav-panel-versions {
height: auto;
padding: 0;
display: flex;
width: auto;
}

body.cheat-sheet .selectors .dropdown {
Expand Down
8 changes: 4 additions & 4 deletions src/css/nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ html.is-clipped--nav {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding-left: 1.5rem;
padding: 0 1.5rem;
box-shadow: 0 1px 0 var(--nav-panel-divider-color);
}

Expand All @@ -96,7 +96,7 @@ html.is-clipped--nav {
}

.nav .selectors {
padding: 0;
padding: 0.5rem 1rem 0;
}

.nav-panel-menu {
Expand Down Expand Up @@ -490,8 +490,8 @@ html.is-clipped--nav {
}

.nav-panel-versions {
/* padding: 1rem 1.5rem 0.5rem; */
/* width: max-content; */
width: max-content;
padding: 1rem 1.5rem 0.5rem;
padding: 0.25rem 0.5rem;
}

Expand Down
2 changes: 1 addition & 1 deletion src/css/vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
/* links */
--link-font-color: rgba(var(--colors-baltic-50));
--link_hover-font-color: rgba(var(--colors-baltic-55));
--link_visited-font-color: rgba(var(--colors-neutral-60));
--link_visited-font-color: var(--palette-categorical-8);
--link_unresolved-font-color: var(--important-color);

/* abstract */
Expand Down
76 changes: 60 additions & 16 deletions src/partials/nav-cheat-sheet.hbs
Original file line number Diff line number Diff line change
@@ -1,20 +1,64 @@
<div class="nav-panel-types{{#unless page.navigation}} is-active{{/unless}}" data-panel="explore">
<div class="dropdown">
<select id="cheat-sheet-selector" class="cs-selector dropdown-styles">
{{#each page.attributes.cheatsheets}}
{{#if this.default}}
<option value="{{this.class}}" data-label="{{#with (or this.label this.name) }}{{{this}}}{{/with}}" data-product="{{this.class}}" selected>{{this.name}}</option>
{{else}}
<option value="{{this.class}}" data-label="{{#with (or this.label this.name) }}{{{this}}}{{/with}}" data-product="{{this.class}}" {{#if this.label-only }}hidden{{/if}}>{{this.name}}</option>
{{/if}}
{{/each}}
</select>
{{#if (eq page.attributes.theme 'cheat-sheet') }}
<div class="nav-panel-types{{#unless page.navigation}} is-active{{/unless}}" data-panel="explore" data-selector-type="products">
<div class="dropdown">
<select id="cheat-sheet-selector-products" class="cs-selector dropdown-styles" data-label-type="products">
{{!-- <option value="all" data-label="all" data-class="all" data-label-type="products">All</option> --}}
{{#each page.attributes.cheatsheet-products}}
{{#if this.default}}
<option value="{{this.class}}" data-label="{{#with (or this.label this.name) }}{{{this}}}{{/with}}" data-class="{{this.class}}" data-label-type="products" selected>{{this.name}}</option>
{{else}}
<option value="{{this.class}}" data-label="{{#with (or this.label this.name) }}{{{this}}}{{/with}}" data-class="{{this.class}}" data-label-type="products" {{#if this.label-only }}hidden{{/if}}>{{this.name}}</option>
{{/if}}
{{/each}}
</select>
{{!-- <div class="toggle-menu">
<label class="form-item-label cursor-pointer">
<input type="checkbox" role="checkbox" id="products-highlight">
</label>
</div> --}}
</div>
</div>

<aside class="toc sidebar" data-title="{{or page.attributes.toctitle ''}}"
data-levels="{{{or page.attributes.toclevels 2}}}">
<div class="toc-menu">
<div class="toc-menu-placeholder"></div>
{{#if page.attributes.cheatsheet-categories}}
<div class="nav-panel-types{{#unless page.navigation}} is-active{{/unless}}" data-panel="explore" data-selector-type="categories">
{{!-- categories - eg read, write, structure, general --}}
<div class="dropdown">
<select id="cheat-sheet-selector-categories" class="cs-selector dropdown-styles" data-label-type="categories">
<option value="all" data-label="all" data-class="all" data-label-type="categories">All</option>
{{#each page.attributes.cheatsheet-categories}}
{{#if this.default}}
<option value="{{this.class}}" data-label="{{#with (or this.label this.name) }}{{{this}}}{{/with}}" data-class="{{this.class}}" data-label-type="categories" selected>{{this.name}}</option>
{{else}}
<option value="{{this.class}}" data-label="{{#with (or this.label this.name) }}{{{this}}}{{/with}}" data-class="{{this.class}}" data-label-type="categories" {{#if this.label-only }}hidden{{/if}}>{{this.name}}</option>
{{/if}}
{{/each}}
</select>

<div class="toggle-menu">
<label class="form-item-label cursor-pointer">
<input type="checkbox" role="checkbox" id="categories-highlight" checked="true">
</label>
</div>
</div>
</div>
{{/if}}

{{!-- {{#if page.attributes.cheatsheet-labels}}
<div class="nav-panel-types{{#unless page.navigation}} is-active{{/unless}}" data-panel="explore" data-selector-type="labels">
<div class="dropdown">
<select id="cheat-sheet-selector-labels" class="cs-selector dropdown-styles" data-label-type="labels">
<option value="all" data-label="all" data-class="all" data-label-type="labels">All</option>
{{#each page.attributes.cheatsheet-labels}}
{{#if this.default}}
<option value="{{this.class}}" data-label="{{#with (or this.label this.name) }}{{{this}}}{{/with}}" data-class="{{this.class}}" data-label-type="labels" selected>{{this.name}}</option>
{{else}}
<option value="{{this.class}}" data-label="{{#with (or this.label this.name) }}{{{this}}}{{/with}}" data-class="{{this.class}}" data-label-type="labels" {{#if this.label-only }}hidden{{/if}}>{{this.name}}</option>
{{/if}}
{{/each}}
</select>
</div>
</aside>
</div>
{{/if}} --}}


{{/if}}
27 changes: 24 additions & 3 deletions src/partials/nav-selectors.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
{{#unless (or @root.page.attributes.nav-hide-site-title (eq @root.page.attributes.theme 'cheat-sheet'))}}
<div class="component">
<div class="nav-product">
<span class="nav-product-name">
{{#with @root.site.homeUrl}}
<a href="{{{relativize this}}}" aria-label="Go to home page">{{#with @root.page.componentVersion}}{{{ ./title }}}{{/with}}</a>
{{/with}}
</span>
</div>
</div>
{{/unless}}

{{!-- {{#unless (eq page.attributes.theme 'cheat-sheet') }} --}}

{{#if page.versions.[1]}}
<div class="selectors">
<div class="nav-panel-versions{{#unless page.navigation}} is-active{{/unless}}" data-panel="explore">

<div class="dropdown">
Expand All @@ -7,7 +22,7 @@
<select data-current="{{@root.page.version}}" class="version-selector dropdown-styles">
{{#with @root.page.componentVersion}}
<option value="" selected>
{{#unless (or @root.page.attributes.nav-hide-component-title (eq @root.page.attributes.theme 'cheat-sheet'))}} {{{ ./title }}} {{/unless}}{{ this.displayVersion }}{{#if (and @root.page.attributes.nav-indicate-latest (eq @root.page.version @root.page.latest.version)) }} (latest){{/if}}
Version {{ this.displayVersion }}{{#if (and @root.page.attributes.nav-indicate-latest (eq @root.page.version @root.page.latest.version)) }} (latest){{/if}}
</option>
{{/with}}
{{#each page.versions}}
Expand All @@ -17,16 +32,20 @@
value="{{{relativize this.url}}}"
{{~#if this.missing}} disabled{{/if}}
>
{{ this.displayVersion }}{{#if (and @root.page.attributes.nav-indicate-latest (eq this.version @root.page.latest.version)) }} (latest){{/if}}
Version {{ this.displayVersion }}{{#if (and @root.page.attributes.nav-indicate-latest (eq this.version @root.page.latest.version)) }} (latest){{/if}}
</option>
{{/unless}}
{{/each}}
</select>
</div>
</div>
</div>
{{/if}}

{{!-- {{/unless}} --}}

{{#if (eq page.attributes.theme 'cheat-sheet') }}
<div class="selectors">
<div class="nav-panel-types{{#unless page.navigation}} is-active{{/unless}}" data-panel="explore" data-selector-type="products">
<div class="dropdown">
<select id="cheat-sheet-selector-products" class="cs-selector dropdown-styles" data-label-type="products">
Expand Down Expand Up @@ -88,5 +107,7 @@
</div>
{{/if}} --}}

</div>
{{/if}}


{{/if}}
4 changes: 1 addition & 3 deletions src/partials/nav.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
<aside class="nav">
<div class="panels">
{{#unless (eq page.attributes.layout 'docs-ndl') }}
<div class="selectors">
{{> nav-selectors}}
</div>
{{> nav-selectors}}
{{/unless}}
{{> nav-menu}}
{{#unless page.attributes.disablefeedback}}
Expand Down