-
Notifications
You must be signed in to change notification settings - Fork 17
/
paper-datatable-api-shared-styles.html
100 lines (83 loc) · 2.72 KB
/
paper-datatable-api-shared-styles.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<link rel="import" href="../paper-styles/color.html">
<link rel="import" href="../paper-styles/default-theme.html">
<link rel="import" href="../paper-styles/typography.html">
<dom-module id="paper-datatable-api-shared-styles">
<template>
<style>
:host {
display: block;
}
dom-if {
display: none;
}
table {
width: 100%;
border-spacing: 0px;
border-collapse: seperate;
@apply --paper-font-common-base;
@apply --paper-datatable-api-table;
}
thead th {
font-size: 12px;
color: rgba(0, 0, 0, var(--dark-secondary-opacity));
font-weight: 500;
text-align: left;
white-space: nowrap;
padding: var(--paper-datatable-api-padding, 6px 26px);
height: var(--paper-datable-api-height, 43px);
border-bottom: 1px solid;
border-color: rgba(0, 0, 0, var(--dark-divider-opacity));
@apply --paper-datatable-api-header;
}
thead th.filters div {
cursor: pointer;
}
thead th.customTd {
@apply --paper-datatable-api-custom-td;
}
tbody tr {
@apply --paper-datatable-api-tr;
height: 48px;
}
tbody tr:nth-child(even) {
background-color: var(--paper-datatable-api-tr-even-background-color, none);
}
tbody tr:nth-child(odd) {
background-color: var(--paper-datatable-api-tr-odd-background-color, none);
}
tbody tr:hover {
background: var(--paper-datatable-api-tr-hover-background-color, none);
}
tbody tr.selected {
background-color: var(--paper-datatable-api-tr-selected-background, var(--paper-grey-100));
}
tbody td {
font-size: 13px;
font-weight: normal;
color: rgba(0, 0, 0, var(--dark-primary-opacity));
padding: 6px var(--paper-datatable-api-horizontal-padding, 26px);
}
tbody tr:not(:first-child) td {
border-top: 1px solid;
border-color: rgba(0, 0, 0, var(--dark-divider-opacity));
}
tbody td.customTd {
@apply --paper-datatable-api-custom-td;
}
thead th.selectable {
width: 18px;
}
thead th.selectable,
tbody td.selectable {
padding: 6px 0 6px var(--paper-datatable-api-horizontal-padding, 26px);
@apply --paper-datatable-api-checkbox;
min-width: initial;
}
paper-checkbox {
--paper-checkbox-label-spacing: 0;
--paper-checkbox-checked-color: var(--paper-datatable-api-checked-checkbox-color, --primary-color);
--paper-checkbox-unchecked-color: var(--paper-datatable-api-unchecked-checkbox-color, --primary-text-color);
}
</style>
</template>
</dom-module>