Skip to content

Commit

Permalink
Remove role inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
recrwplay committed Oct 24, 2023
1 parent 785b814 commit 64a92d9
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 32 deletions.
16 changes: 16 additions & 0 deletions preview-src/deprecated.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,26 @@ All headers have 'Deprecated' appended.

Lorem ipsum

Simple paragraph.

[.deprecated]
Simple paragraph marked as deprecated.


[.deprecated]

== Deprecated Heading 2

Lorem ipsum

=== Deprecated Heading 2.1

Lorem ipsum

==== Deprecated Heading 2.2

Lorem ipsum

== Deprecated Heading 3

Lorem ipsum
Expand Down
32 changes: 31 additions & 1 deletion preview-src/docs-roles.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
= Docs `code test` flags
:page-role: enterprise-edition not-on-aura
:page-role: not-on-aura
:page-theme: docs
// :page-labels: fabric enterprise-edition alpha test

Expand Down Expand Up @@ -76,6 +76,12 @@ Lorem ipsum

Lorem ipsum

=== H3 inside labeled section

Lorem ipsum

==== H4 inside labeled section

[role=deprecated]
== Deprecated content

Expand All @@ -99,19 +105,43 @@ Example 2 content - this example is deprecated
[role=alpha]
== Alpha content


[.alpha-symbol]
[.tier-note]
This algorithm is in the alpha tier.
For more information on algorithm tiers, see <<algorithms>>.

=== Third level heading in Alpha section

Lorem ipsum


[role=beta]
== Beta content


[.beta-symbol]
[.tier-note]
This algorithm is in the beta tier.
For more information on algorithm tiers, see <<algorithms>>.


=== Third level heading in Beta section

Lorem ipsum


[role=deprecated]
== Deprecated content

Lorem ipsum


=== Third level heading in Deprecated section

Lorem ipsum


== Function symbol

[opts=header,cols="1, 1"]
Expand Down
63 changes: 32 additions & 31 deletions src/css/neo4j-docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ div.roles > span.role {
}
}

.sect1.alpha h2::after,
.sect1.beta h2::after,
.sect2.alpha h3::after,
.sect2.beta h3::after,
.sect1.alpha > h2::after,
.sect1.beta > h2::after,
.sect2.alpha > h3::after,
.sect2.beta > h3::after,
span.alpha::after,
span.beta::after,
body.deprecated article h2::after,
Expand All @@ -71,34 +71,35 @@ div.deprecated h2::after,
div.deprecated h3::after,
div.deprecated h4::after,
body.deprecated article dt::after,
div.deprecated p::after,
p.deprecated::before,
section.deprecated .title::after,
span.deprecated::after,
.deprecated > .title::after,
div.not-on-aura h2::after,
div.not-on-aura h3::after,
div.not-on-aura h4::after,
div.not-on-aura > h2::after,
div.not-on-aura > h3::after,
div.not-on-aura > h4::after,
p.not-on-aura::before,
section.not-on-aura .title::after,
span.not-on-aura::after,
div.aura-db-enterprise h2::after,
div.aura-db-enterprise h3::after,
div.aura-db-enterprise h4::after,
div.aura-db-enterprise > h2::after,
div.aura-db-enterprise > h3::after,
div.aura-db-enterprise > h4::after,
p.aura-db-enterprise::before,
section.aura-db-enterprise.title::after,
span.aura-db-enterprise::after,
section.enterprise-edition .title::after,
div.enterprise-edition h2::after,
div.enterprise-edition h3::after,
div.enterprise-edition h4::after,
div.enterprise-edition > h2::after,
div.enterprise-edition > h3::after,
div.enterprise-edition > h4::after,
p.enterprise-edition::before,
span.enterprise-edition::after,
body.fabric article h2::after,
body.fabric article h3::after,
body.fabric article h4::after,
div.fabric h2::after,
div.fabric h3::after,
div.fabric h4::after,
body.fabric article > h2::after,
body.fabric article > h3::after,
body.fabric article > h4::after,
div.fabric > h2::after,
div.fabric > h3::after,
div.fabric > h4::after,
section.fabric .title::after,
p.fabric::before,
span.fabric::after {
Expand Down Expand Up @@ -184,9 +185,9 @@ span.deprecated::after {
vertical-align: middle;
}

div.not-on-aura h2::after,
div.not-on-aura h3::after,
div.not-on-aura h4::after,
div.not-on-aura > h2::after,
div.not-on-aura > h3::after,
div.not-on-aura > h4::after,
p.not-on-aura::before,
section.not-on-aura .title::after,
span.not-on-aura::after {
Expand All @@ -196,9 +197,9 @@ span.not-on-aura::after {
color: var(--not-on-aura-color);
}

div.aura-db-enterprise h2::after,
div.aura-db-enterprise h3::after,
div.aura-db-enterprise h4::after,
div.aura-db-enterprise > h2::after,
div.aura-db-enterprise > h3::after,
div.aura-db-enterprise > h4::after,
p.aura-db-enterprise::before,
section.aura-db-enterprise.title::after,
span.aura-db-enterprise::after {
Expand All @@ -208,9 +209,9 @@ span.aura-db-enterprise::after {
color: var(--aura-db-enterprise-color);
}

div.enterprise-edition h2::after,
div.enterprise-edition h3::after,
div.enterprise-edition h4::after,
div.enterprise-edition > h2::after,
div.enterprise-edition > h3::after,
div.enterprise-edition > h4::after,
p.enterprise-edition::before,
section.enterprise-edition .title::after,
span.enterprise-edition::after {
Expand All @@ -220,9 +221,9 @@ span.enterprise-edition::after {
color: var(--enterprise-edition-color);
}

div.fabric h2::after,
div.fabric h3::after,
div.fabric h4::after,
div.fabric > h2::after,
div.fabric > h3::after,
div.fabric > h4::after,
p.fabric::before,
section.fabric .title::after,
span.fabric::after {
Expand Down

0 comments on commit 64a92d9

Please sign in to comment.