Skip to content

Commit

Permalink
Toggle .btn-edit-subj.open class
Browse files Browse the repository at this point in the history
`$show-subject` true for external URIs only
  • Loading branch information
namedgraph committed Oct 25, 2023
1 parent 7291f13 commit 8fcf1f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ li button.btn-edit-constructors, li button.btn-add-data, li button.btn-add-ontol
.btn.dropdown-toggle.btn-acl { text-align: right; font-size: 0; color: transparent; background-image: url('../icons/baseline-remove_red_eye-24px.svg'); background-position: center center; background-repeat: no-repeat; width: 64px; }
.btn.dropdown-toggle.btn-read { text-align: right; font-size: 0; color: transparent; background-image: url('../icons/ic_details_black_24px.svg'); background-position: center center; background-repeat: no-repeat; width: 64px; }
.btn.btn-copy-uri { font-size: 0; color: transparent; background-image: url('../icons/content_copy-24px.svg'); background-position: center center; background-repeat: no-repeat; width: 48px; }
.btn.btn-edit-subj { font-size: 0; color: transparent; background-image: url('../icons/expand_more_black_24dp.svg'); background-position: center center; background-repeat: no-repeat; width: 48px; height: 30px; }
.btn.btn-edit-subj { font-size: 0; color: transparent; background-image: url('../icons/baseline-expand_more-24px.svg'); background-position: center center; background-repeat: no-repeat; width: 48px; height: 30px; }
.btn.btn-edit-subj.open { background-image: url('../icons/baseline-expand_less-24px.svg'); }
.btn.btn-save-as { font-size: 0; color: transparent; background-image: url('../icons/save_black_24dp.svg'); background-position: center center; background-repeat: no-repeat; width: 48px; }
.btn.btn-skolemize { font-size: 0; color: transparent; background-image: url('../icons/link_black_24dp.svg'); background-position: center center; background-repeat: no-repeat; width: 48px; }
.btn.btn-edit { font-size: 0; color: transparent; background-image: url('../icons/ic_create_black_24px.svg'); background-position: center center; background-repeat: no-repeat; width: 48px; padding-left: 0; padding-right: 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@ WHERE
<!-- subject .control group is the first one after <legend> -->
<xsl:variable name="subj-control-group" select="ancestor::legend/following-sibling::div[1][contains-token(@class, 'control-group')]" as="element()"/>

<xsl:sequence select="ixsl:call(ixsl:get(., 'classList'), 'toggle', [ 'open' ])[current-date() lt xs:date('2000-01-01')]"/>

<xsl:for-each select="$subj-control-group">
<xsl:choose>
<xsl:when test="ixsl:style(.)?display = 'none'">
Expand Down

0 comments on commit 8fcf1f8

Please sign in to comment.