Skip to content
Snippets Groups Projects
Commit bb8b7222 authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

remove more inline CSS, re #15

parent 16daed3a
No related branches found
No related tags found
No related merge requests found
......@@ -212,9 +212,11 @@ button.vips_file_upload:hover {
width: 32px;
}
.gradebook_header {
.sortable .gradebook_header {
font-size: smaller;
max-width: 8em;
overflow-x: hidden;
text-align: right;
text-overflow: ellipsis;
white-space: nowrap;
}
......
......@@ -87,8 +87,8 @@
<? endif ?>
</tr>
<tr class="smaller sortable">
<th class="<?= vips_sort_class($sort === 'name', $desc) ?>" style="font-size: initial;">
<tr class="sortable">
<th class="nowrap <?= vips_sort_class($sort === 'name', $desc) ?>">
<a href="<?= $controller->link_for('solutions/participants_overview', ['display' => $display, 'view' => $view, 'sort' => 'name', 'desc' => $sort === 'name' && !$desc]) ?>">
<?= _vips('Nachname, Vorname') ?>
</a>
......@@ -96,22 +96,20 @@
<? foreach ($items as $category => $list) : ?>
<? foreach ($list as $item) : ?>
<th class="gradebook_header" style="text-align: right;">
<span title="<?= htmlReady($item['tooltip']) ?>">
<th class="gradebook_header" title="<?= htmlReady($item['tooltip']) ?>">
<?= htmlReady($item['name']) ?>
</span>
</th>
<? endforeach ?>
<? endforeach ?>
<th class="<?= vips_sort_class($sort === 'sum', $desc) ?>" style="text-align: right;">
<th class="nowrap <?= vips_sort_class($sort === 'sum', $desc) ?>">
<a href="<?= $controller->link_for('solutions/participants_overview', ['display' => $display, 'view' => $view, 'sort' => 'sum', 'desc' => $sort !== 'sum' || !$desc]) ?>">
<?= _vips('Summe') ?>
</a>
</th>
<? if ($display == 'weighting' && $has_grades) : ?>
<th class="<?= vips_sort_class($sort === 'grade', $desc) ?>" style="text-align: right;">
<th class="nowrap <?= vips_sort_class($sort === 'grade', $desc) ?>">
<a href="<?= $controller->link_for('solutions/participants_overview', ['display' => $display, 'sort' => 'grade', 'desc' => $sort !== 'grade' || !$desc]) ?>">
<?= _vips('Note') ?>
</a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment