Skip to content

Commit

Permalink
Dev: Apply text-right to dual-scale dropdown prefix; add some padding…
Browse files Browse the repository at this point in the history
… to prefix and suffix
  • Loading branch information
olleharstedt committed Apr 15, 2016
1 parent 47a3aa2 commit 898202e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 20 deletions.
Expand Up @@ -15,42 +15,41 @@
<table class="table-in-qanda-10 question subquestion-list questions-list dropdown-list">

<!-- Column groups -->

<col class="answertext" style='width: <?php echo $answerwidth; ?>%;' />

<?php if ($ddprefix != '' || $ddsuffix != ''): ?>
<colgroup style='width: <?php echo $cellwidth; ?>%;' >
<?php endif; ?>

<?php if ($ddprefix != ''): ?>
<col class="ddprefix" />
<?php endif; ?>
<?php if ($ddprefix != ''): ?>
<col class="ddprefix" />
<?php endif; ?>

<col class="dsheader" <?php echo $headcolwidth; ?> />
<col class="dsheader" <?php echo $headcolwidth; ?> />

<?php if ($ddsuffix != ''): ?>
<col class="ddsuffix" />
<?php endif; ?>
<?php if ($ddsuffix != ''): ?>
<col class="ddsuffix" />
<?php endif; ?>

<?php if ($ddprefix != '' || $ddsuffix != ''): ?>
</colgroup>
<?php endif; ?>
<?php if ($ddprefix != '' || $ddsuffix != ''): ?>
</colgroup>
<?php endif; ?>

<col class="ddarrayseparator" style='width: <?php echo $separatorwidth; ?>%'/>

<?php if ($ddprefix != '' || $ddsuffix != ''): ?>
<colgroup style='width: <?php echo $cellwidth; ?>%;' >
<?php endif; ?>

<?php if ($ddprefix != ''): ?>
<col class="ddprefix" />
<?php endif; ?>
<?php if ($ddprefix != ''): ?>
<col class="ddprefix" />
<?php endif; ?>

<col class="dsheader" <?php echo $headcolwidth; ?> />
<col class="dsheader" <?php echo $headcolwidth; ?> />

<?php if ($ddsuffix != ''): ?>
<col class="ddsuffix" />
<?php endif; ?>
<?php if ($ddsuffix != ''): ?>
<col class="ddsuffix" />
<?php endif; ?>

<?php if ($ddprefix != '' || $ddsuffix != ''): ?>
</colgroup>
Expand Down Expand Up @@ -110,7 +109,7 @@
<!-- Prefix -->

<?php if ($ddprefix != ''): ?>
<td class="ddprefix information-item">
<td class="ddprefix information-item text-right">
<?php echo $ddprefix; ?>
</td>
<?php endif; ?>
Expand Down Expand Up @@ -164,7 +163,7 @@ class='form-control'
<!-- Prefix -->

<?php if ($ddprefix != ''): ?>
<td class="ddprefix information-item">
<td class="ddprefix information-item text-right">
<?php echo $ddprefix; ?>
</td>
<?php endif; ?>
Expand Down
8 changes: 8 additions & 0 deletions templates/default/css/template.css
Expand Up @@ -453,6 +453,14 @@ body .navbar-default .navbar-brand:hover {
padding-left: 47px;
}

.ddprefix {
padding-right: 1em;
}

.ddsuffix {
padding-left: 1em;
}

/**
* On big screen only, iPad and up
*/
Expand Down

0 comments on commit 898202e

Please sign in to comment.