--- /dev/null
+/*
+:host /deep/ allows us to share style with child components.
+In this case, the holdings components wants its grid to see
+the CSS we have defined for different row types
+
+See https://v2.angular.io/docs/ts/latest/guide/component-styles.html
+*/
+
+/* grid row colors are bootstrap class="bg-info" with opacity */
+:host /deep/ .holdings-copy-row {
+ color: #004085;
+ background-color: rgb(23,162,184, 0.1);
+}
+
+
+:host /deep/ .holdings-volume-row {
+ color: #004085;
+ background-color: rgb(23,162,184, 0.8);
+}
+
+/*
+:host /deep/ .holdings-org-row {
+ color: #004085;
+ background-color: rgb(23,162,184, 0.7);
+}
+*/
@Component({
selector: 'eg-holdings-maintenance',
- templateUrl: 'holdings.component.html'
+ templateUrl: 'holdings.component.html',
+ styleUrls: ['holdings.component.css']
})
export class HoldingsMaintenanceComponent implements OnInit {
this.contextOrg = this.staffCat.searchContext.searchOrg;
this.rowClassCallback = (row: any): string => {
- if (row.volume && !row.copy) {
- return 'bg-info';
+ if (row.volume) {
+ if (row.copy) {
+ return 'holdings-copy-row';
+ } else {
+ return 'holdings-volume-row';
+ }
+ } else {
+ return 'holdings-org-row';
}
}