File tree Expand file tree Collapse file tree 7 files changed +38
-15
lines changed
_includes/nested-card-tabbed Expand file tree Collapse file tree 7 files changed +38
-15
lines changed Original file line number Diff line number Diff line change 1
- < li class ="nav-item " role =" tab " >
1
+ < li class ="nav-item ">
2
2
< button class ="nav-link krx-card-nav-link {% if include.is_active_tab %}active{% endif %} "
3
3
id ="{{ include.htmlid }} " data-bs-toggle ="tab "
4
4
data-bs-target ="#{{ include.htmlid }}-tab-pane " type ="button "
Original file line number Diff line number Diff line change 2
2
layout: default
3
3
---
4
4
< div class ="row align-items-start justify-content-center my-5 ">
5
- < div class ="col-lg-3 mb-5 ">
5
+ < div class ="col-lg-3 mb-5 " role =" complementary " aria-labelledby =" page-title " >
6
6
< div class ="card px-2 mx-2 ">
7
7
< div class ="card-body ">
8
- < h1 class ="fs-3 " class ="card-title "> {{ page.title }}</ h1 >
8
+ < h1 class ="fs-3 " class ="card-title " id =" page-title " > {{ page.title }}</ h1 >
9
9
< div class ="container g-0 mt-4 ">
10
10
< p class ="card-text ">
11
11
{{ content }}
@@ -14,7 +14,7 @@ <h1 class="fs-3" class="card-title">{{ page.title }}</h1>
14
14
</ div >
15
15
</ div >
16
16
</ div >
17
- < div class ="col-lg-6 ">
17
+ < div class ="col-lg-6 " role =" main " >
18
18
{% if site.paginate %}
19
19
{% assign posts = paginator.posts %}
20
20
{% else %}
@@ -51,7 +51,7 @@ <h2 class="card-title fs-4">
51
51
</ div >
52
52
</ div >
53
53
{% if site.paginate %}
54
- < nav aria-label ="Blog post list navigation ">
54
+ < nav role =" navigation " aria-label ="Blog post list navigation ">
55
55
< ul class ="pagination ">
56
56
{%- if paginator.previous_page %}
57
57
< li class ="page-item ">
Original file line number Diff line number Diff line change 5
5
< div class ="row justify-content-center gx-0 ">
6
6
< div class ="col-lg-3 ">
7
7
< div class ="card shadow my-lg-5 ms-lg-5 me-1 ">
8
- < div class ="card-body mx-2 ">
8
+ < div class ="card-body mx-2 " role =" navigation " aria-label =" {{ page.title }} page navigation " >
9
9
< h1 class ="card-title fs-3 ">
10
10
{{ page.title }}
11
11
</ h1 >
@@ -16,7 +16,7 @@ <h1 class="card-title fs-3">
16
16
</ div >
17
17
</ div >
18
18
</ div >
19
- < div class ="col-lg-9 ">
19
+ < div class ="col-lg-9 " role =" main " >
20
20
< div class ="card shadow my-lg-5 me-lg-5 ms-1 ">
21
21
< div class ="card-body mx-2 ">
22
22
< div class ="row g-0 ">
Original file line number Diff line number Diff line change 7
7
< div class ="row g-0 ">
8
8
< div class ="col-auto ">
9
9
< div class ="card-body ">
10
- < div class ="card-text m-2 ">
10
+ < div class ="card-text m-2 " role =" main " aria-label =" Overview of Kroxylicious " >
11
11
{{ content | markdownify | inject_anchors }}
12
12
</ div >
13
13
</ div >
14
14
</ div >
15
15
</ div >
16
16
</ div >
17
17
</ div >
18
+
19
+ < script >
20
+ document . addEventListener ( "DOMContentLoaded" , function ( ) {
21
+ document . querySelectorAll ( "a.anchor" ) . forEach ( ( anchorElem ) => {
22
+ anchorElem . setAttribute ( "style" , "display: none; visibility: hidden;" ) ;
23
+ } )
24
+ } )
25
+ </ script >
Original file line number Diff line number Diff line change 1
1
---
2
2
layout: default
3
3
---
4
- < div class ="card gx-5 gy-5 m-lg-5 ">
4
+ < div class ="card gx-5 gy-5 m-lg-5 " role =" navigation " aria-label =" Quickstart navigation " >
5
5
< div class ="card-header ">
6
6
< div class ="card-title display-6 mx-2 mt-3 mb-4 "> < i class ="bi bi-stopwatch me-4 "> </ i > Quick Start Guide</ div >
7
7
< ul class ="nav nav-tabs nav-justified fs-5 card-header-tabs " id ="quickstart " role ="tablist ">
8
8
{% for quickstart in site.quickstarts %}
9
9
{% if quickstart.htmlid and quickstart.tab_title %}
10
10
< li class ="nav-item ">
11
- < button class ="nav-link {% if forloop.first %}active{% endif %} "
11
+ < button class ="nav-link krx-card-nav-link {% if forloop.first %}active{% endif %} "
12
12
id ="{{ quickstart.htmlid }} " data-bs-toggle ="tab "
13
13
data-bs-target ="#{{ quickstart.htmlid }}-tab-pane " type ="button "
14
14
role ="tab " aria-controls ="{{ quickstart.htmlid }}-tab-pane "
20
20
{% endfor %}
21
21
</ ul >
22
22
</ div >
23
- < div class ="card-body tab-content p-4 p-lg-5 " id ="quickstartContent ">
23
+ < div class ="card-body tab-content p-4 p-lg-5 " id ="quickstartContent " role =" main " aria-labelledby =" {{ quickstart.htmlid }} " >
24
24
{% for quickstart in site.quickstarts %}
25
25
{% if quickstart.htmlid and quickstart.tab_title %}
26
26
< div class ="tab-pane fade show {% if forloop.first %}active{% endif %} "
Original file line number Diff line number Diff line change 5
5
6
6
< div class ="row justify-content-center ">
7
7
< div class ="col-11 col-lg-8 card shadow gx-5 gy-5 m-lg-5 ">
8
- < div class ="card-body mx-2 ">
8
+ < div class ="card-body mx-2 " role =" main " aria-labelledby =" page-title " >
9
9
< div class ="card-title display-6 mt-3 mb-4 ">
10
- < h1 > Use Cases</ h1 >
10
+ < h1 id =" page-title " > Use Cases</ h1 >
11
11
</ div >
12
12
< div class ="row g-0 ">
13
13
< div class ="col-auto ">
14
14
< div class ="card-text ">
15
15
{% for use_case in site.use_cases %}
16
- < div class ="{{ use_case.name | slugify }}-toc "> {{ use_case.content | toc_only }}</ div >
16
+ < div id ="{{ use_case.name | slugify }}-toc "> {{ use_case.content | toc_only }}</ div >
17
17
{% endfor %}
18
18
{% for use_case in site.use_cases %}
19
- < div class ="{{ use_case.name | slugify }}-content "> {{ use_case.content | markdownify | inject_anchors}}</ div >
19
+ < div id ="{{ use_case.name | slugify }}-content "> {{ use_case.content | markdownify | inject_anchors}}</ div >
20
20
{% endfor %}
21
21
</ div >
22
22
</ div >
@@ -25,3 +25,14 @@ <h1>Use Cases</h1>
25
25
</ div >
26
26
</ div >
27
27
28
+ < script >
29
+ document . addEventListener ( "DOMContentLoaded" , function ( ) {
30
+ document . querySelectorAll ( "#toc" ) . forEach ( ( tocElem ) => {
31
+ var parentID = tocElem . parentElement . getAttribute ( "id" ) ;
32
+ tocElem . setAttribute ( "id" , parentID + "-container" ) ;
33
+ } )
34
+ document . querySelectorAll ( "a.anchor" ) . forEach ( ( anchorElem ) => {
35
+ anchorElem . setAttribute ( "style" , "display: none; visibility: hidden;" ) ;
36
+ } )
37
+ } )
38
+ </ script >
Original file line number Diff line number Diff line change 69
69
text-shadow : 0 0 1rem rgba ($kroxy-light , 0.15 );
70
70
}
71
71
72
+ .krx-card-nav-link {
73
+ color : $kroxy-dark-green ;
74
+ }
75
+
72
76
.krx-footer-license {
73
77
justify-content : flex-end !important ;
74
78
margin-top : 1rem !important ;
You can’t perform that action at this time.
0 commit comments