mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added further tests for navigation
This commit is contained in:
parent
07329f4304
commit
52a3761d65
@ -23,6 +23,6 @@ site_name: Pneumonoultramicroscopicsilicovolcanoconiosis
|
|||||||
pages:
|
pages:
|
||||||
- Pneumonoultramicroscopicsilicovolcanoconiosis: index.md
|
- Pneumonoultramicroscopicsilicovolcanoconiosis: index.md
|
||||||
- Supercalifragilisticexpialidocious:
|
- Supercalifragilisticexpialidocious:
|
||||||
- Pseudopseudohypoparathyroidism: empty.md
|
- Pseudopseudohypoparathyroidism: default.md
|
||||||
- Floccinaucinihilipilification: empty.md
|
- Floccinaucinihilipilification: default.md
|
||||||
- Antidisestablishmentarianism: empty.md
|
- Antidisestablishmentarianism: default.md
|
||||||
|
@ -22,10 +22,10 @@
|
|||||||
site_name: Test/Navigation
|
site_name: Test/Navigation
|
||||||
pages:
|
pages:
|
||||||
- Lorem ipsum dolor sit amet: index.md
|
- Lorem ipsum dolor sit amet: index.md
|
||||||
- Consectetur adipiscing elit: empty.md
|
- Consectetur adipiscing elit: default.md
|
||||||
- Etiam condimentum lacinia urna id vestibulum: empty.md
|
- Etiam condimentum lacinia urna id vestibulum: default.md
|
||||||
- A dapibus turpis iaculis at:
|
- A dapibus turpis iaculis at:
|
||||||
- Donec tortor sem: empty.md
|
- Donec tortor sem: default.md
|
||||||
- Scelerisque ut congue id: empty.md
|
- Scelerisque ut congue id: default.md
|
||||||
- Pretium ac risus: empty.md
|
- Pretium ac risus: default.md
|
||||||
- Maecenas tincidunt nulla dui: empty.md
|
- Maecenas tincidunt nulla dui: default.md
|
||||||
|
@ -79,9 +79,9 @@ spec.generate(__dirname, {
|
|||||||
"states": [
|
"states": [
|
||||||
{ "name": "", "wait": 250, "exec": open }
|
{ "name": "", "wait": 250, "exec": open }
|
||||||
],
|
],
|
||||||
"suites": {
|
"suite": {
|
||||||
|
|
||||||
/* Last list item */ // TODO: this is not captured!
|
/* Last list item */
|
||||||
":last-child": {
|
":last-child": {
|
||||||
"capture":
|
"capture":
|
||||||
".md-nav--primary > .md-nav__list >" +
|
".md-nav--primary > .md-nav__list >" +
|
||||||
@ -101,7 +101,7 @@ spec.generate(__dirname, {
|
|||||||
"states": [
|
"states": [
|
||||||
{ "name": "", "wait": 250, "exec": open }
|
{ "name": "", "wait": 250, "exec": open }
|
||||||
],
|
],
|
||||||
"suites": {
|
"suite": {
|
||||||
|
|
||||||
/* Link inside item that contains a nested list */
|
/* Link inside item that contains a nested list */
|
||||||
"md-nav__link": {
|
"md-nav__link": {
|
||||||
@ -114,19 +114,6 @@ spec.generate(__dirname, {
|
|||||||
{ "name": ":focus", "wait": 250, "exec": open },
|
{ "name": ":focus", "wait": 250, "exec": open },
|
||||||
{ "name": ":hover", "wait": 250, "exec": open }
|
{ "name": ":hover", "wait": 250, "exec": open }
|
||||||
]
|
]
|
||||||
},
|
|
||||||
|
|
||||||
/* Active link inside item that contains a nested list */
|
|
||||||
"md-nav__link--active": {
|
|
||||||
"capture":
|
|
||||||
".md-nav--primary .md-nav__item--nested " +
|
|
||||||
".md-nav__link--active",
|
|
||||||
"break": "+@tablet-landscape",
|
|
||||||
"states": [
|
|
||||||
{ "name": "", "wait": 250, "exec": open },
|
|
||||||
{ "name": ":focus", "wait": 250, "exec": open },
|
|
||||||
{ "name": ":hover", "wait": 250, "exec": open }
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user