#82 css improvements

This commit is contained in:
Denys Vuika
2016-06-02 14:47:04 +01:00
parent 1dda8685ce
commit 9b065634ad
2 changed files with 5 additions and 2 deletions

View File

@@ -17,6 +17,9 @@
:host .column-header {
cursor: pointer;
}
:host .non-selectable {
user-select: none;
-webkit-user-select: none; /* Chrome/Safari/Opera */
-moz-user-select: none; /* Firefox */

View File

@@ -13,7 +13,7 @@
<input type="checkbox" id="table-header" class="mdl-checkbox__input" />
</label>
</th>
<th class="mdl-data-table__cell--non-numeric {{col.cssClass}}"
<th class="mdl-data-table__cell--non-numeric non-selectable {{col.cssClass}}"
*ngFor="#col of data.getColumns()"
[class.column-header]="col.title"
[class.mdl-data-table__header--sorted-ascending]="isColumnSorted(col, 'asc')"
@@ -40,7 +40,7 @@
</label>
</td>
<td *ngFor="#col of data.getColumns()" [ngSwitch]="col.type"
class="mdl-data-table__cell--non-numeric data-cell {{col.cssClass}}"
class="mdl-data-table__cell--non-numeric data-cell non-selectable {{col.cssClass}}"
(click)="onRowClick(row, $event)" (dblclick)="onRowDblClick(row, $event)">
<div *ngSwitchWhen="'image'">
<i *ngIf="isIconValue(row, col)" class="material-icons icon-cell">{{asIconValue(row, col)}}</i>