Skip to content

Commit

Permalink
Use flex in responsive demo
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Jan 11, 2021
1 parent 785a41a commit a0201cd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
1 change: 1 addition & 0 deletions src/app/showcase/components/table/tabledemo.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ <h1>Table</h1>
{{customer.date | date: 'MM/dd/yyyy'}}
</td>
<td>
<span class="p-column-title">Balance</span>
{{customer.balance | currency:'USD':'symbol'}}
</td>
<td>
Expand Down
20 changes: 10 additions & 10 deletions src/app/showcase/components/table/tabledemo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,23 @@

> td {
text-align: left;
display: block;
border: 0 none !important;
width: 100% !important;
float: left;
clear: left;
width: 100%;
display: flex;
align-items: center;
border: 0 none;

.p-column-title {
padding: .4rem;
min-width: 30%;
display: inline-block;
margin: -.4rem 1rem -.4rem -.4rem;
font-weight: bold;
}

.p-progressbar {
margin-top: .5rem;

p-progressbar {
width: 100%;
}

&:last-child {
border-bottom: 1px solid var(--surface-d);
}
}
}
Expand Down
7 changes: 2 additions & 5 deletions src/app/showcase/components/table/tableresponsivedemo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,14 @@

.p-datatable-tbody > tr > td {
text-align: left;
display: block;
width: 100%;
float: left;
clear: left;
display: flex;
align-items: center;
border: 0 none;

.p-column-title {
padding: .4rem;
min-width: 30%;
display: inline-block;
margin: -.4em 1em -.4em -.4rem;
font-weight: bold;
}

Expand Down

0 comments on commit a0201cd

Please sign in to comment.