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 @@ ...@@ -97,12 +97,7 @@
<td colspan="{$viewcount + $colspan}" class="code"> <td colspan="{$viewcount + $colspan}" class="code">
<div class="shortname-container"> <div class="shortname-container">
<span class="sr-only">{str tag="headerrow" section="module.framework"}</span> <span class="sr-only">{str tag="headerrow" section="module.framework"}</span>
{for name=foo from=0 to=$option->level step=1} <span class="matrixindent">{$option->shortname}</span>
{if $dwoo.for.foo.index != $option->level}
<span class="matrixindent"></span>
{/if}
{/for}
{$option->shortname}
<span class="sr-only">{str tag="showelementdetails" section="module.framework"}</span> <span class="sr-only">{str tag="showelementdetails" section="module.framework"}</span>
<div class="matrixtooltip popover d-none"> <div class="matrixtooltip popover d-none">
<h3 class="popover-title">{$option->name}</h3> <h3 class="popover-title">{$option->name}</h3>
...@@ -118,12 +113,7 @@ ...@@ -118,12 +113,7 @@
<td class="code"> <td class="code">
<div class="shortname-container" tabindex="0"> <div class="shortname-container" tabindex="0">
<span class="sr-only">{str tag="headerrow" section="module.framework"}</span> <span class="sr-only">{str tag="headerrow" section="module.framework"}</span>
{for name=foo2 from=0 to=$option->level step=1} <span class="matrixindent">{$option->shortname}</span>
{if $dwoo.for.foo2.index != $option->level}
<span class="matrixindent"></span>
{/if}
{/for}
{$option->shortname}
<span class="sr-only">{str tag="showelementdetails" section="module.framework"}</span> <span class="sr-only">{str tag="showelementdetails" section="module.framework"}</span>
<div class="matrixtooltip popover d-none"> <div class="matrixtooltip popover d-none">
<h3 class="popover-title">{$option->name}</h3> <h3 class="popover-title">{$option->name}</h3>
......
...@@ -128,10 +128,16 @@ ...@@ -128,10 +128,16 @@
} }
} }
} }
span.matrixindent { .matrixindent {
display: inline-block; display: inline-block;
width: 5px;
} }
$matrix-slug: matrixlevel !default
@for $i from 1 through 5 {
.#{$matrix-slug}#{$i} .matrixindent {
padding-left: 5px * $i
}
}
} }
.assessment { .assessment {
color: $gray-700; 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