Commit 469e8b53 authored by Liam's avatar Liam Committed by Robert Lyon

Bug #1832665: SmartEvidence framework indenting not working on long headings

behatnotneeded

Change-Id: I4f51e3c6dbb2abbac165f14d99e9170afc72a2cc
parent 30ea8c74
......@@ -97,12 +97,7 @@
<td colspan="{$viewcount + $colspan}" class="code">
<div class="shortname-container">
<span class="sr-only">{str tag="headerrow" section="module.framework"}</span>
{for name=foo from=0 to=$option->level step=1}
{if $dwoo.for.foo.index != $option->level}
<span class="matrixindent"></span>
{/if}
{/for}
{$option->shortname}
<span class="matrixindent">{$option->shortname}</span>
<span class="sr-only">{str tag="showelementdetails" section="module.framework"}</span>
<div class="matrixtooltip popover d-none">
<h3 class="popover-title">{$option->name}</h3>
......@@ -118,12 +113,7 @@
<td class="code">
<div class="shortname-container" tabindex="0">
<span class="sr-only">{str tag="headerrow" section="module.framework"}</span>
{for name=foo2 from=0 to=$option->level step=1}
{if $dwoo.for.foo2.index != $option->level}
<span class="matrixindent"></span>
{/if}
{/for}
{$option->shortname}
<span class="matrixindent">{$option->shortname}</span>
<span class="sr-only">{str tag="showelementdetails" section="module.framework"}</span>
<div class="matrixtooltip popover d-none">
<h3 class="popover-title">{$option->name}</h3>
......
......@@ -128,10 +128,16 @@
}
}
}
span.matrixindent {
.matrixindent {
display: inline-block;
width: 5px;
}
$matrix-slug: matrixlevel !default
@for $i from 1 through 5 {
.#{$matrix-slug}#{$i} .matrixindent {
padding-left: 5px * $i
}
}
}
.assessment {
color: $gray-700;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment