@ks-digital/designsystem-themes 0.0.1-alpha.13 → 0.0.1-alpha.15

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.
@@ -57,4 +57,103 @@ body {
57
57
  border-style: var(--dsc-details-border-block-style);
58
58
  border-color: var(--dsc-details-border-color);
59
59
  }
60
+
61
+ .ds-popover {
62
+ border-color: var(--dsc-popover-border-color);
63
+ border-style: var(--dsc-popover-border-style);
64
+ border-width: var(--dsc-popover-border-width);
65
+ }
66
+
67
+ .ds-popover:before {
68
+ border-left-color: transparent;
69
+ border-top-color: transparent;
70
+ border-width: var(--dsc-popover-border-width);
71
+ }
72
+
73
+ .ds-table {
74
+ --_dsc-table-border-radius--inner: calc(
75
+ var(--dsc-table-border-radius) - var(--dsc-table-border-width)
76
+ );
77
+ border-collapse: separate; /* Using separate mode to enable border-radius */
78
+ border-spacing: 0;
79
+ box-sizing: border-box;
80
+ & > :is(tbody, thead, tfoot) > tr > :is(th, td) {
81
+ border-bottom-width: var(--dsc-table-border-width);
82
+ border-bottom-style: var(--dsc-table-border-style);
83
+ border-color: var(--dsc-table-border-color);
84
+ }
85
+
86
+ & > thead > tr:last-child > :is(th, td) {
87
+ border-bottom-width: var(--dsc-table-divider-border-width);
88
+ border-bottom-style: var(--dsc-table-divider-border-style);
89
+ border-bottom-color: var(--dsc-table-divider-border-color);
90
+ }
91
+
92
+ & > tbody:has(+ tfoot) > tr:last-child > :is(th, td) {
93
+ border-bottom: none; /* Skip border-bottom when followed by <tfoot> */
94
+ }
95
+
96
+ & > tfoot > tr:first-child > :is(th, td) {
97
+ border-top-width: var(--dsc-table-divider-border-width);
98
+ border-top-style: var(--dsc-table-divider-border-style);
99
+ border-top-color: var(--dsc-table-divider-border-color);
100
+ }
101
+
102
+ & > tfoot > tr:last-child > :is(th, td) {
103
+ border-bottom: none;
104
+ }
105
+
106
+ /*
107
+ * Configurations
108
+ */
109
+ &[data-border] {
110
+ border-radius: var(--dsc-table-border-radius);
111
+ border-width: var(--dsc-table-border-width);
112
+ border-style: var(--dsc-table-border-style);
113
+ border-color: var(--dsc-table-border-color);
114
+
115
+ & > :last-child > tr:last-child > :is(th, td) {
116
+ border-bottom: none; /* Skip last border-bottom when <table> has border */
117
+ }
118
+
119
+ /* Add rounded border to first and last row */
120
+
121
+ &
122
+ > :is(
123
+ thead:first-of-type /* If first <thead>, but using :first-of-type to support <caption> */,
124
+ :not(:has(thead)) tbody:first-of-type /* If <tbody> is :first-of-type and not followed by <thead> */
125
+ )
126
+ > tr:first-child
127
+ > :is(th, td) {
128
+ &:first-child {
129
+ border-top-left-radius: var(--_dsc-table-border-radius--inner);
130
+ }
131
+
132
+ &:last-child {
133
+ border-top-right-radius: var(--_dsc-table-border-radius--inner);
134
+ }
135
+ }
136
+
137
+ /* Add rounded border to last row (using :last-of-type to suppoert <caption>) */
138
+ &
139
+ > :is(
140
+ tfoot:last-of-type /* If first <thead>, but using :first-of-type to support <caption> */,
141
+ :not(:has(tfoot)) tbody:last-of-type /* If <tbody> is :first-of-type and not followed by <thead> */
142
+ )
143
+ > tr:last-child
144
+ > :is(th, td) {
145
+ &:first-child {
146
+ border-bottom-left-radius: var(--_dsc-table-border-radius--inner);
147
+ }
148
+
149
+ &:last-child {
150
+ border-bottom-right-radius: var(--_dsc-table-border-radius--inner);
151
+ }
152
+ }
153
+ }
154
+
155
+ &[data-zebra] > tbody > tr > :is(th, td) {
156
+ border-block: 0;
157
+ }
158
+ }
60
159
  }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "https://github.com/ks-no/designsystem.git",
6
6
  "directory": "packages/themes"
7
7
  },
8
- "version": "0.0.1-alpha.13",
8
+ "version": "0.0.1-alpha.15",
9
9
  "license": "MIT",
10
10
  "private": false,
11
11
  "publishConfig": {