@itrocks/list 0.0.17 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/list.css +36 -22
  2. package/package.json +1 -1
package/list.css CHANGED
@@ -9,48 +9,62 @@ main > article[data-action=list] > form {
9
9
  grid-template-areas: "table" "footer";
10
10
  grid-template-rows: 1fr min-content;
11
11
  }
12
- main > article[data-action=list] > form > table {
12
+ main > article[data-action=list] > form > footer {
13
+ grid-area: footer;
14
+ position: relative;
15
+ }
16
+ main > article[data-action=list] > form > table.objects > tbody > tr > :not(:first-child) {
17
+ cursor: pointer;
18
+ }
19
+
20
+ table.objects {
13
21
  border-collapse: collapse;
14
22
  display: block;
15
23
  grid-area: table;
16
24
  margin-bottom: -1px;
17
25
  overflow-y: auto;
18
26
  }
19
- main > article[data-action=list] > form > table tr > td, main > article[data-action=list] > form > table tr > th {
27
+ table.objects th {
28
+ background: #f8f8f8;
29
+ }
30
+ table.objects tr td, table.objects tr th {
20
31
  border-bottom: 1px solid #d8d8d8;
21
32
  border-spacing: 0;
22
33
  padding: 0.6em;
23
34
  }
24
- main > article[data-action=list] > form > table tr > td:last-child, main > article[data-action=list] > form > table tr > th:last-child {
35
+ table.objects tr td:last-child, table.objects tr th:last-child {
25
36
  border-right: 1px solid #d8d8d8;
26
37
  }
27
- main > article[data-action=list] > form > table tr > td:not(:first-child), main > article[data-action=list] > form > table tr > th:not(:first-child) {
28
- cursor: pointer;
29
- }
30
- main > article[data-action=list] > form > table > thead > tr > * {
31
- background: #f8f8f8;
32
- }
33
- main > article[data-action=list] > form > table > thead > .properties > .select > input[name=select] {
38
+ table.objects tr.properties > .select > input[name=select] {
34
39
  display: none;
35
40
  }
36
- main > article[data-action=list] > form > table > tbody > tr:nth-child(even) > * {
37
- background: #f8f8f8;
38
- }
39
- main > article[data-action=list] > form > table > tbody > tr:nth-child(odd) > * {
40
- background: white;
41
- }
42
- main > article[data-action=list] > form > table > tbody > tr > td > ul {
41
+ table.objects > tbody > tr > td > ul {
43
42
  display: block;
44
43
  margin: 0;
45
44
  padding: 0;
46
45
  }
47
- main > article[data-action=list] > form > table > tbody > tr > td > ul > li {
46
+ table.objects > tbody > tr > td > ul > li {
48
47
  display: inline-block;
49
48
  }
50
- main > article[data-action=list] > form > table > tbody > tr > td > ul > li:not(:first-child):before {
49
+ table.objects > tbody > tr > td > ul > li:not(:first-child):before {
51
50
  content: ", ";
52
51
  }
53
- main > article[data-action=list] > form > footer {
54
- grid-area: footer;
55
- position: relative;
52
+ table.objects > tbody:first-child > tr:nth-child(even) > td {
53
+ background: white;
54
+ }
55
+ table.objects > tbody:first-child > tr:nth-child(odd) > td {
56
+ background: #f8f8f8;
57
+ }
58
+ table.objects > thead + tbody > tr:nth-child(even) > td {
59
+ background: #f8f8f8;
60
+ }
61
+ table.objects > thead + tbody > tr:nth-child(odd) > td {
62
+ background: white;
63
+ }
64
+
65
+ :not(article, article > form) > table.objects td, :not(article, article > form) > table.objects th {
66
+ border-top: 1px solid #d8d8d8;
67
+ }
68
+ :not(article, article > form) > table.objects td:first-child, :not(article, article > form) > table.objects th:first-child {
69
+ border-left: 1px solid #d8d8d8;
56
70
  }
package/package.json CHANGED
@@ -63,5 +63,5 @@
63
63
  "build:front": "tsc -p esm/tsconfig.json && ../prepare-module/prepare-module.js esm"
64
64
  },
65
65
  "types": "./cjs/list.d.ts",
66
- "version": "0.0.17"
66
+ "version": "0.0.18"
67
67
  }