Skip to content

Commit 947aa99

Browse files
committed
Progress bar CSS fix
Don't show block drag handles when left sidebar is displayed
1 parent 527135c commit 947aa99

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/main/webapp/static/com/atomgraph/linkeddatahub/css/bootstrap.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ button.add-typeahead { width: 219px; }
168168
div[typeof="https://w3id.org/atomgraph/linkeddatahub#XHTML"] .main { font-size: larger; line-height: 25px; }
169169
div[typeof="https://w3id.org/atomgraph/linkeddatahub#XHTML"] .form-horizontal .control-label { display: none; }
170170
div[typeof="https://w3id.org/atomgraph/linkeddatahub#XHTML"] .form-horizontal .controls { margin-left: 0; }
171-
.span12.progress > div:first-child { background-color: #e9ecef; }
171+
.span12.progress .row-block-controls { background-color: #e9ecef; }
172+
.span12.progress .bar { height: 20px; }
172173
/* .content .btn.add-typeahead { margin-top: -10px; } */
173174
object { display: block; margin: auto; max-height: 400px; overflow: hidden; width: 100%; }
174175
.chart-canvas { width: 100%; height: 400px; }

src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block.xsl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ exclude-result-prefixes="#all"
179179
</xsl:if>
180180
</xsl:template>
181181

182-
<!-- show drag handle on left edge hover -->
183-
184-
<xsl:template match="div[ac:mode() = '&ldh;ContentMode'][contains-token(@class, 'block')][key('elements-by-class', 'drag-handle', .)][acl:mode() = '&acl;Write']" mode="ixsl:onmousemove" priority="2">
182+
<!-- show drag handle on left edge hover, but not when left sidebar is active -->
183+
184+
<xsl:template match="div[ac:mode() = '&ldh;ContentMode'][contains-token(@class, 'block')][key('elements-by-class', 'drag-handle', .)][acl:mode() = '&acl;Write'][not(ixsl:style(id('left-sidebar', ixsl:page()))?display = 'block')]" mode="ixsl:onmousemove" priority="2">
185185
<xsl:variable name="dom-x" select="ixsl:get(ixsl:event(), 'clientX')" as="xs:double"/>
186186
<xsl:variable name="rect" select="ixsl:call(., 'getBoundingClientRect', [])"/>
187187
<xsl:variable name="offset-x" select="$dom-x - ixsl:get($rect, 'x')" as="xs:double"/>

0 commit comments

Comments
 (0)