-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaqa-vaadin-grid.html
79 lines (64 loc) · 1.8 KB
/
aqa-vaadin-grid.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
<link rel="import" href="../polymer/polymer-element.html">
<link rel="import" href="../aqa-font/aqa-trirong-font.html">
<link rel="import" href="../aqa-font/aqa-mitr-font.html">
<dom-module id="aqa-vaadin-grid" theme-for="vaadin-grid">
<template>
<style>
:host {
/* height: 400px; */
border: 1px solid #ddd;
}
:host [part~="cell"]:not([part~="details-cell"]) ::slotted(vaadin-grid-cell-content) {
white-space: normal;
}
[part~="cell"] {
color: #000;
font-size: 1rem;
padding:5px;
border-right:1px solid #ddd;
font-family: TrirongRegular;
margin:0;
}
[part~="cell"]:last-child {
border-right:0;
}
[part~="cell"]:focus {
outline: none;
}
[part~="header-cell"],
[part~="footer-cell"] {
--lumo-font-size-m: 16px;
color: white;
/* font-size: 1rem; */
/* background-color:#62a8ea; */
/* font-weight: bolder; */
background-image: linear-gradient(to bottom,#62a8ea 2%, #62a8ea 98%);
padding: 0.5rem;
text-align:center;
height: 10px;
font-family: MitrLight;
}
[part~="footer-cell"] {
background-color:#EEE;
color: #555;
}
[part~="body-cell"] {
color: #000;
font-size: 1rem;
padding:5px;
font-family: TrirongRegular;
margin:0;
}
[part~="body-cell"],
[part~="row"]:last-child [part~="header-cell"] {
border-bottom: 1px solid #ddd;
}
[part~="row"]:nth-child(even) [part~="body-cell"] {
background-color:#f3f7f9;
}
[part~="row"]:hover [part~="body-cell"] {
background-color:#ECF9FA;
}
</style>
</template>
</dom-module>