Skip to content

Commit

Permalink
Types are collapsed by default, annotations filters use AND logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
jirihybek committed Aug 1, 2019
1 parent 13f2c81 commit 05458c8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nav.nunjucks
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
{% endmacro %}

{% macro typeCategory(categoryName, types) %}
<li class="nav-tree__item nav-tree__item--level-1">
<li class="nav-tree__item nav-tree__item--level-1 nav-tree__item--collapsed">
{{ navGroupItem(categoryName) }}
<ul class="nav-tree">
{% for typeKey, type in types %}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "raml2html-modern-theme",
"version": "1.0.7",
"version": "1.0.8",
"description": "Modern theme for raml2html utility.",
"main": "index.js",
"scripts": {
Expand Down
15 changes: 13 additions & 2 deletions scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ a:hover {
}

&__filter-checkbox {
vertical-align: 1px;
vertical-align: -2px;
margin-right: 2px;
width: 18px;
height: 18px;
}
}

Expand Down Expand Up @@ -1303,6 +1306,7 @@ a:hover {
/*
* Filters
*/
/*
.annot-deprecated { .record__content { display: none; } .record__header__title { opacity: 0.5; filter: saturate(0); } .record__header .section__sidecode { color: #6c727b; } .nav-tree__item__label { opacity: 0.5; filter: saturate(0); } }
.annot-notImplemented { .record__content { display: none; } .record__header__title { opacity: 0.5; filter: saturate(0); } .record__header .section__sidecode { color: #6c727b; } .nav-tree__item__label { opacity: 0.5; filter: saturate(0); } }
.annot-experimental { .record__content { display: none; } .record__header__title { opacity: 0.5; filter: saturate(0); } .record__header .section__sidecode { color: #6c727b; } .nav-tree__item__label { opacity: 0.5; filter: saturate(0); } }
Expand All @@ -1313,4 +1317,11 @@ body:not(.annot-hide-deprecated) .annot-deprecated { .record__content { display:
body:not(.annot-hide-notImplemented) .annot-notImplemented { .record__content { display: block; } .record__header__title { opacity: 1.0; filter: none; } .record__header .section__sidecode { color: #ffffff; } .nav-tree__item__label { opacity: 1.0; filter: none; } }
body:not(.annot-hide-experimental) .annot-experimental { .record__content { display: block; } .record__header__title { opacity: 1.0; filter: none; } .record__header .section__sidecode { color: #ffffff; } .nav-tree__item__label { opacity: 1.0; filter: none; } }
body:not(.annot-hide-breakingChange) .annot-breakingChange { .record__content { display: block; } .record__header__title { opacity: 1.0; filter: none; } .record__header .section__sidecode { color: #ffffff; } .nav-tree__item__label { opacity: 1.0; filter: none; } }
body:not(.annot-hide-proposal) .annot-proposal { .record__content { display: block; } .record__header__title { opacity: 1.0; filter: none; } .record__header .section__sidecode { color: #ffffff; } .nav-tree__item__label { opacity: 1.0; filter: none; } }
body:not(.annot-hide-proposal) .annot-proposal { .record__content { display: block; } .record__header__title { opacity: 1.0; filter: none; } .record__header .section__sidecode { color: #ffffff; } .nav-tree__item__label { opacity: 1.0; filter: none; } }
*/

body.annot-hide-deprecated .annot-deprecated { .record__content { display: none; } .record__header__title { opacity: 0.5; filter: saturate(0); } .record__header .section__sidecode { color: #6c727b; } .nav-tree__item__label { opacity: 0.5; filter: saturate(0); } }
body.annot-hide-notImplemented .annot-notImplemented { .record__content { display: none; } .record__header__title { opacity: 0.5; filter: saturate(0); } .record__header .section__sidecode { color: #6c727b; } .nav-tree__item__label { opacity: 0.5; filter: saturate(0); } }
body.annot-hide-experimental .annot-experimental { .record__content { display: none; } .record__header__title { opacity: 0.5; filter: saturate(0); } .record__header .section__sidecode { color: #6c727b; } .nav-tree__item__label { opacity: 0.5; filter: saturate(0); } }
body.annot-hide-breakingChange .annot-breakingChange { .record__content { display: none; } .record__header__title { opacity: 0.5; filter: saturate(0); } .record__header .section__sidecode { color: #6c727b; } .nav-tree__item__label { opacity: 0.5; filter: saturate(0); } }
body.annot-hide-proposal .annot-proposal { .record__content { display: none; } .record__header__title { opacity: 0.5; filter: saturate(0); } .record__header .section__sidecode { color: #6c727b; } .nav-tree__item__label { opacity: 0.5; filter: saturate(0); } }

0 comments on commit 05458c8

Please sign in to comment.