Commit e4058b40 authored by Pat Kira's avatar Pat Kira

Bug 1686843 - Fix personal information table styles

- Removed extra styles on _user-pages.scss
- Added class for similar table layout

behatnotneeded: styling only

Change-Id: I90bc5894cb5e659fb07519959ee78d32c089549c
parent c99a3f41
{if $hascontent}
<table class="resumecontactinfo fullwidth">
<table class="table resumecontactinfo profile-info">
{if $address}
<tr>
<th class="onethirdwidth">{str tag='address' section='artefact.internal'}</th>
<th>{str tag='address' section='artefact.internal'}</th>
<td>{$address|safe}</td>
</tr>
{/if}
{if $town}
<tr>
<th class="onethirdwidth">{str tag='town' section='artefact.internal'}</th>
<th>{str tag='town' section='artefact.internal'}</th>
<td>{$town|safe}</td>
</tr>
{/if}
{if $city}
<tr>
<th class="onethirdwidth">{str tag='city' section='artefact.internal'}</th>
<th>{str tag='city' section='artefact.internal'}</th>
<td>{$city|safe}</td>
</tr>
{/if}
{if $country}
<tr>
<th class="onethirdwidth">{str tag='country' section='artefact.internal'}</th>
<th>{str tag='country' section='artefact.internal'}</th>
<td>{$country|safe}</td>
</tr>
{/if}
{if $faxnumber}
<tr>
<th class="onethirdwidth">{str tag='faxnumber' section='artefact.internal'}</th>
<th>{str tag='faxnumber' section='artefact.internal'}</th>
<td>{$faxnumber|safe}</td>
</tr>
{/if}
{if $businessnumber}
<tr>
<th class="onethirdwidth">{str tag='businessnumber' section='artefact.internal'}</th>
<th>{str tag='businessnumber' section='artefact.internal'}</th>
<td>{$businessnumber|safe}</td>
</tr>
{/if}
{if $homenumber}
<tr>
<th class="onethirdwidth">{str tag='homenumber' section='artefact.internal'}</th>
<th>{str tag='homenumber' section='artefact.internal'}</th>
<td>{$homenumber|safe}</td>
</tr>
{/if}
{if $mobilenumber}
<tr>
<th class="onethirdwidth">{str tag='mobilenumber' section='artefact.internal'}</th>
<th>{str tag='mobilenumber' section='artefact.internal'}</th>
<td>{$mobilenumber|safe}</td>
</tr>
{/if}
......
<div class="panel-body flush">
<table class="resumepersonalinfo fullwidth panel-body flush">
<table class="table resumepersonalinfo profile-info">
{foreach from=$fields key='field' item='value'}
{if $value}
<tr>
<th class="onethirdwidth">{$field}</th>
<th>{$field}</th>
<td>{$value}</td>
</tr>
{/if}
......
......@@ -58,19 +58,4 @@
.feedcontent h6 {
font-size: $font-size-h3;
}
table {
border-spacing: 0;
border-color: $table-border-color;
border-width: 1px;
}
table,
table td {
border-style: solid;
}
table td {
padding:2px 5px;
}
}
......@@ -262,3 +262,14 @@ table.table tr {
.table>thead>tr>th.groupshortname {
width: 20%;
}
.table.profile-info {
table-layout: fixed;
td,
th {
word-break: break-all;
}
>tbody>tr:first-child>td {
border-top-width: 1px;
}
}
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