Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hpc-team
strudelv2_spa
Commits
a88e95ea
Commit
a88e95ea
authored
Dec 05, 2019
by
Melvin Luong
Browse files
Updated the format table and font to the account info page.
parent
a3dda2d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/app/accountinfo/accountinfo.component.css
View file @
a88e95ea
.table-header
{
border
:
1px
solid
#a2bae1
;
background-color
:
#f0f0f0
;
width
:
100%
;
padding-top
:
10px
;
padding-bottom
:
10px
;
}
.table-header
span
{
margin-left
:
10px
;
color
:
#1a50a5
;
font-family
:
Raleway
;
font-size
:
22px
;
}
.mat-table
{
font-family
:
Raleway
;
background-color
:
#fafafa
;
}
.mat-header-cell
{
color
:
#11356e
;
font-size
:
18px
;
}
\ No newline at end of file
src/app/accountinfo/accountinfo.component.html
View file @
a88e95ea
...
...
@@ -26,13 +26,12 @@
</mat-list-item>
</div>
<div
*ngIf=
"h.type == 'table'"
>
<
h3
>
{{ h.title }}
</
h3
>
<
div
class=
"table-header"
><span
>
{{ h.title }}
</
span></div
>
<table
mat-table
[dataSource]=
"h.data.rows"
style=
"width: 100%"
>
<ng-container
*ngFor=
"let c of h.data.cols"
matColumnDef=
"{{c.key}}"
>
<th
mat-header-cell
*matHeaderCellDef
style=
"text-align:
righ
t"
>
{{ c.header }}
</th>
<td
mat-cell
*matCellDef=
"let row;"
style=
"text-align:
righ
t"
>
{{row[c.key]}}
</td>
<th
mat-header-cell
*matHeaderCellDef
style=
"text-align:
lef
t"
>
{{ c.header }}
</th>
<td
mat-cell
*matCellDef=
"let row;"
style=
"text-align:
lef
t"
>
{{row[c.key]}}
</td>
</ng-container>
<tr
mat-header-row
*matHeaderRowDef=
"calculateCols(h.data.cols); sticky: true"
></tr>
<tr
mat-row
*matRowDef=
"let row; columns: calculateCols(h.data.cols)"
[ngClass]=
"rowClass(row)"
></tr>
</table>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment