@tacc/core-styles 2.23.0 → 2.24.0

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 (255) hide show
  1. package/README.md +6 -2
  2. package/dist/branding_logos.css +1 -1
  3. package/dist/components/README.css +1 -1
  4. package/dist/components/admonition/demo.css +1 -1
  5. package/dist/components/admonition.css +1 -1
  6. package/dist/components/align/demo.css +1 -1
  7. package/dist/components/align.css +1 -1
  8. package/dist/components/bootstrap/bootstrap--form.demo.css +1 -1
  9. package/dist/components/bootstrap/bootstrap--modal.demo.css +1 -1
  10. package/dist/components/bootstrap/demo.css +1 -1
  11. package/dist/components/bootstrap.col.css +1 -1
  12. package/dist/components/bootstrap.container.css +1 -1
  13. package/dist/components/bootstrap.css +1 -1
  14. package/dist/components/bootstrap.figure.css +1 -1
  15. package/dist/components/bootstrap.form.css +1 -1
  16. package/dist/components/bootstrap.modal--cms.css +1 -1
  17. package/dist/components/bootstrap.modal--portal.css +1 -1
  18. package/dist/components/bootstrap.modal.css +1 -1
  19. package/dist/components/bootstrap.nav-tabs.css +1 -1
  20. package/dist/components/bootstrap.pagination.css +1 -1
  21. package/dist/components/bootstrap.row.css +1 -1
  22. package/dist/components/c-button/demo.css +1 -1
  23. package/dist/components/c-button--cms.css +1 -1
  24. package/dist/components/c-button.css +1 -1
  25. package/dist/components/c-button.selectors.css +1 -1
  26. package/dist/components/c-callout.css +1 -1
  27. package/dist/components/c-card/c-card--frontera.demo.css +1 -1
  28. package/dist/components/c-card/c-card.demo.css +1 -1
  29. package/dist/components/c-card/c-card.demo.images.css +1 -1
  30. package/dist/components/c-card--docs.css +1 -1
  31. package/dist/components/c-card--from-tup-cms.css +1 -1
  32. package/dist/components/c-card--frontera-about-page.css +1 -1
  33. package/dist/components/c-card.css +1 -1
  34. package/dist/components/c-card.selectors.css +1 -1
  35. package/dist/components/c-content-block.css +1 -1
  36. package/dist/components/c-data-list.css +1 -1
  37. package/dist/components/c-form--cms.css +1 -1
  38. package/dist/components/c-form--login.css +1 -1
  39. package/dist/components/c-form--portal.css +1 -1
  40. package/dist/components/c-form.css +1 -1
  41. package/dist/components/c-form.selectors.css +1 -1
  42. package/dist/components/c-image-map.css +1 -1
  43. package/dist/components/c-image-map.skin.css +1 -1
  44. package/dist/components/c-image-map.structure.css +1 -1
  45. package/dist/components/c-island/demo.css +1 -1
  46. package/dist/components/c-island.css +1 -1
  47. package/dist/components/c-message/demo.css +1 -1
  48. package/dist/components/c-message--compact.css +1 -1
  49. package/dist/components/c-message--expanded.css +1 -1
  50. package/dist/components/c-message.css +1 -1
  51. package/dist/components/c-message.selectors.css +1 -1
  52. package/dist/components/c-nav/demo.css +1 -1
  53. package/dist/components/c-nav.css +1 -1
  54. package/dist/components/c-page.css +1 -1
  55. package/dist/components/c-pill/demo.css +1 -1
  56. package/dist/components/c-pill.css +1 -1
  57. package/dist/components/c-pill.selectors.css +1 -1
  58. package/dist/components/c-recognition.css +1 -1
  59. package/dist/components/c-see-all-link.css +1 -1
  60. package/dist/components/c-show-more.css +1 -1
  61. package/dist/components/c-tag/demo.css +1 -1
  62. package/dist/components/c-tag.css +1 -1
  63. package/dist/components/c-tag.selectors.css +1 -1
  64. package/dist/components/c-update.css +1 -1
  65. package/dist/components/cortal.icon.css +1 -1
  66. package/dist/components/cortal.icon.font.css +1 -1
  67. package/dist/components/demo.css +1 -1
  68. package/dist/components/django-cms-forms.css +1 -1
  69. package/dist/components/django-cms-forms.hacks.css +1 -1
  70. package/dist/components/django-cms-forms.selectors.css +1 -1
  71. package/dist/components/mui.tabs.css +1 -1
  72. package/dist/components/pymdownx--tabbed.css +1 -1
  73. package/dist/components/pymdownx.css +1 -1
  74. package/dist/components/tacc-docs.css +1 -1
  75. package/dist/core-styles.base.css +3 -3
  76. package/dist/core-styles.cms.css +2 -2
  77. package/dist/core-styles.demo.css +1 -1
  78. package/dist/core-styles.docs.css +2 -2
  79. package/dist/core-styles.header.css +1 -1
  80. package/dist/core-styles.portal.css +2 -2
  81. package/dist/core-styles.settings.css +2 -2
  82. package/dist/core-styles.theme.default.css +1 -1
  83. package/dist/core-styles.theme.has-dark-logo.css +1 -1
  84. package/dist/core-styles.wysiwyg.css +2 -2
  85. package/dist/elements/README.css +1 -1
  86. package/dist/elements/bootstrap.css +1 -1
  87. package/dist/elements/demo.css +1 -1
  88. package/dist/elements/form.css +1 -1
  89. package/dist/elements/headings/demo.css +1 -1
  90. package/dist/elements/headings--cms.css +1 -1
  91. package/dist/elements/headings--docs.css +1 -1
  92. package/dist/elements/html-elements/demo.css +1 -1
  93. package/dist/elements/html-elements.cms.css +1 -1
  94. package/dist/elements/html-elements.css +1 -1
  95. package/dist/elements/html-elements.docs.css +1 -1
  96. package/dist/elements/irregular-link.css +1 -1
  97. package/dist/elements/links.css +1 -1
  98. package/dist/elements/mailto-link.css +1 -1
  99. package/dist/elements/monospace.css +1 -1
  100. package/dist/elements/root--cms.css +1 -1
  101. package/dist/elements/root--demo.css +1 -1
  102. package/dist/elements/root--docs.css +1 -1
  103. package/dist/elements/root--portal.css +1 -1
  104. package/dist/elements/root.css +1 -1
  105. package/dist/elements/sticky-footer/demo.css +1 -1
  106. package/dist/elements/sticky-footer.css +1 -1
  107. package/dist/elements/table--basic.css +1 -1
  108. package/dist/elements/table--nested.css +1 -1
  109. package/dist/elements/table.cms.css +1 -1
  110. package/dist/elements/table.css +1 -1
  111. package/dist/elements/table.docs.css +1 -1
  112. package/dist/elements/table.portal.css +1 -1
  113. package/dist/elements/table.selectors.css +1 -1
  114. package/dist/elements/tacc-search-bar.css +1 -1
  115. package/dist/fractal.server.refresh.css +1 -1
  116. package/dist/generics/README.css +1 -1
  117. package/dist/generics/attributes/demo.css +1 -1
  118. package/dist/generics/attributes.css +1 -1
  119. package/dist/generics/fonts.css +1 -1
  120. package/dist/generics/pseudo-elements.css +1 -1
  121. package/dist/objects/README.css +1 -1
  122. package/dist/objects/o-fixed-header-table/demo.css +1 -1
  123. package/dist/objects/o-fixed-header-table.css +1 -1
  124. package/dist/objects/o-flex-item-table-wrap/demo.css +1 -1
  125. package/dist/objects/o-flex-item-table-wrap.css +1 -1
  126. package/dist/objects/o-float-content.css +1 -1
  127. package/dist/objects/o-grid.css +1 -1
  128. package/dist/objects/o-heading-steps.css +1 -1
  129. package/dist/objects/o-offset-content.css +1 -1
  130. package/dist/objects/o-section/demo.css +1 -1
  131. package/dist/objects/o-section--docs.css +1 -1
  132. package/dist/objects/o-section.css +1 -1
  133. package/dist/objects/o-section.selectors.css +1 -1
  134. package/dist/objects/o-site.css +1 -1
  135. package/dist/objects/o-table-wrap/demo.basic.css +1 -1
  136. package/dist/objects/o-table-wrap/demo.extra.css +1 -1
  137. package/dist/objects/o-table-wrap/example.flexible-horz.css +1 -1
  138. package/dist/objects/o-table-wrap/example.overflow-hidden.css +1 -1
  139. package/dist/objects/o-table-wrap/example.overflow-scroll.css +1 -1
  140. package/dist/objects/o-table-wrap/o-table-wrap--flexible-horz.css +1 -1
  141. package/dist/objects/o-table-wrap/o-table-wrap--flexible-vert.css +1 -1
  142. package/dist/objects/o-table-wrap/o-table-wrap--overflow-hidden.css +1 -1
  143. package/dist/objects/o-table-wrap/o-table-wrap--overflow-scroll-extra.css +1 -1
  144. package/dist/objects/o-table-wrap/o-table-wrap--overflow-scroll.css +1 -1
  145. package/dist/objects/o-table-wrap.css +1 -1
  146. package/dist/settings/README.css +1 -1
  147. package/dist/settings/border.css +1 -1
  148. package/dist/settings/color/demo.css +1 -1
  149. package/dist/settings/color--cms.css +1 -1
  150. package/dist/settings/color--demo.css +1 -1
  151. package/dist/settings/color--docs.css +1 -1
  152. package/dist/settings/color--portal.css +1 -1
  153. package/dist/settings/color.accent--blue.css +1 -1
  154. package/dist/settings/color.accent--purple.css +1 -1
  155. package/dist/settings/color.css +1 -1
  156. package/dist/settings/demo.css +1 -1
  157. package/dist/settings/font/demo-family.css +1 -1
  158. package/dist/settings/font/demo-size.css +1 -1
  159. package/dist/settings/font/demo-style.css +1 -1
  160. package/dist/settings/font/demo-weight.css +1 -1
  161. package/dist/settings/font--cms.css +1 -1
  162. package/dist/settings/font--docs.css +1 -1
  163. package/dist/settings/font--portal.css +1 -1
  164. package/dist/settings/font.css +1 -1
  165. package/dist/settings/max-width.css +1 -1
  166. package/dist/settings/space.css +1 -1
  167. package/dist/tools/README.css +1 -1
  168. package/dist/tools/media-queries.css +1 -1
  169. package/dist/tools/selectors.common.css +1 -1
  170. package/dist/tools/selectors.css +1 -1
  171. package/dist/tools/selectors.form.css +1 -1
  172. package/dist/tools/selectors.monospace.css +1 -1
  173. package/dist/tools/x-article-link.css +1 -1
  174. package/dist/tools/x-blockquote.css +1 -1
  175. package/dist/tools/x-center.css +1 -1
  176. package/dist/tools/x-fake-border.css +1 -1
  177. package/dist/tools/x-figure.css +1 -1
  178. package/dist/tools/x-grid.css +1 -1
  179. package/dist/tools/x-layout.css +1 -1
  180. package/dist/tools/x-link.css +1 -1
  181. package/dist/tools/x-mailto-text-replace.css +1 -1
  182. package/dist/tools/x-overlay.css +1 -1
  183. package/dist/tools/x-tabs/demo.css +1 -1
  184. package/dist/tools/x-tabs.css +1 -1
  185. package/dist/tools/x-tabs.skin.css +1 -1
  186. package/dist/tools/x-tabs.structure.css +1 -1
  187. package/dist/tools/x-truncate.css +1 -1
  188. package/dist/trumps/README.css +1 -1
  189. package/dist/trumps/demo.css +1 -1
  190. package/dist/trumps/s-affixed-input-wrapper/demo.css +1 -1
  191. package/dist/trumps/s-affixed-input-wrapper.css +1 -1
  192. package/dist/trumps/s-article-list.css +1 -1
  193. package/dist/trumps/s-article-preview.css +1 -1
  194. package/dist/trumps/s-blockquote.css +1 -1
  195. package/dist/trumps/s-breadcrumbs.css +1 -1
  196. package/dist/trumps/s-cms-nav.css +1 -1
  197. package/dist/trumps/s-document.css +1 -1
  198. package/dist/trumps/s-drop-cap.css +1 -1
  199. package/dist/trumps/s-footer--thick.css +1 -1
  200. package/dist/trumps/s-footer--thin.css +1 -1
  201. package/dist/trumps/s-footer.css +1 -1
  202. package/dist/trumps/s-footer.properties.css +1 -1
  203. package/dist/trumps/s-form--cms.css +1 -1
  204. package/dist/trumps/s-form--login.css +1 -1
  205. package/dist/trumps/s-form--portal.css +1 -1
  206. package/dist/trumps/s-form-page/demo.css +1 -1
  207. package/dist/trumps/s-form-page/example.css +1 -1
  208. package/dist/trumps/s-form-page.css +1 -1
  209. package/dist/trumps/s-form.css +1 -1
  210. package/dist/trumps/s-form.selectors.css +1 -1
  211. package/dist/trumps/s-guide-doc.css +1 -1
  212. package/dist/trumps/s-header/s-header.demo.css +1 -1
  213. package/dist/trumps/s-header.bootstrap.css +1 -1
  214. package/dist/trumps/s-header.css +1 -1
  215. package/dist/trumps/s-image-grid.css +1 -1
  216. package/dist/trumps/s-inline-dl.css +1 -1
  217. package/dist/trumps/s-irregular-links.css +1 -1
  218. package/dist/trumps/s-paragraph-table.css +1 -1
  219. package/dist/trumps/s-portal-nav.css +1 -1
  220. package/dist/trumps/s-style-guide.css +1 -1
  221. package/dist/trumps/s-system-specs.css +1 -1
  222. package/dist/trumps/s-truncated-table.css +1 -1
  223. package/dist/trumps/tacc-search-bar.css +1 -1
  224. package/dist/trumps/u-empty.css +1 -1
  225. package/dist/trumps/u-hide.css +1 -1
  226. package/dist/trumps/u-highlight/u-highlight.demo.css +1 -1
  227. package/dist/trumps/u-highlight.css +1 -1
  228. package/dist/trumps/u-mailto-text-replace.css +1 -1
  229. package/dist/trumps/u-nested-text-content.css +1 -1
  230. package/fractal.config.js +9 -1
  231. package/package.json +1 -1
  232. package/src/lib/_imports/components/c-button--cms.css +8 -2
  233. package/src/lib/_imports/components/c-button.css +3 -1
  234. package/src/lib/_imports/components/c-card/_c-card--many-variable.hbs +2 -0
  235. package/src/lib/_imports/components/c-card/c-card--images.hbs +16 -16
  236. package/src/lib/_imports/components/c-card/c-card.demo.images.css +8 -14
  237. package/src/lib/_imports/components/c-card/c-card.readme.md +1 -1
  238. package/src/lib/_imports/components/c-card/config.yml +4 -2
  239. package/src/lib/_imports/components/c-card.css +29 -11
  240. package/src/lib/_imports/components/c-tag.css +1 -1
  241. package/src/lib/_imports/components/cortal.icon.css +4 -1
  242. package/src/lib/_imports/core-styles.cms.css +0 -1
  243. package/src/lib/_imports/core-styles.portal.css +0 -2
  244. package/src/lib/_imports/elements/table/config.yml +9 -3
  245. package/src/lib/_imports/elements/table/table.hbs +28 -15
  246. package/src/lib/_imports/elements/table--basic.css +117 -22
  247. package/src/lib/_imports/elements/table--nested.css +57 -33
  248. package/src/lib/_imports/elements/table.cms.css +11 -3
  249. package/src/lib/_imports/settings/font.css +25 -22
  250. package/src/lib/_imports/trumps/s-paragraph-table/readme.md +0 -1
  251. package/src/lib/_imports/elements/table.portal.css +0 -6
  252. package/src/lib/_imports/trumps/s-truncated-table/config.yml +0 -9
  253. package/src/lib/_imports/trumps/s-truncated-table/readme.md +0 -7
  254. package/src/lib/_imports/trumps/s-truncated-table/s-truncated-table.hbs +0 -1
  255. package/src/lib/_imports/trumps/s-truncated-table.css +0 -6
@@ -103,8 +103,15 @@
103
103
  /* Structure */
104
104
 
105
105
  /* Elements */
106
- :--c-card > a:not(:--c-button) {
107
- display: flex;
106
+
107
+ :--c-card > a:not(:--c-button),
108
+ :--c-card > p > a:not(:--c-button) {
109
+ display: inline-flex;
110
+ align-items: baseline;
111
+ }
112
+ /* I.e. one of multiple icon links within a p tag */
113
+ :--c-card > p > a:not(:--c-button):has(.icon):not(:last-child) {
114
+ margin-right: 1rem;
108
115
  }
109
116
  :--c-card > :is(:--action) {
110
117
  vertical-align: middle;
@@ -264,9 +271,11 @@
264
271
 
265
272
  :--c-card--image-top,
266
273
  :--c-card--image-bottom {
267
- --image-height: auto;
268
274
  --global-space--pattern-pad: 15px;
269
275
 
276
+ /* Repeat many times, because element count is unknown */
277
+ grid-template-rows: repeat(10, min-content);
278
+
270
279
  /* Use extra columns to add horizontal padding */
271
280
  grid-template-columns: var(--global-space--pattern-pad) 1fr var(--global-space--pattern-pad);
272
281
  padding-inline: unset;
@@ -284,10 +293,6 @@
284
293
  grid-column-end: -1;
285
294
  }
286
295
 
287
- :--c-card--image-top {
288
- /* Repeat many times, because element count is unknown */
289
- grid-template-rows: repeat(10, min-content) var(--image-height);
290
- }
291
296
  :--c-card--image-top > img {
292
297
  grid-row-start: 1;
293
298
  margin-bottom: var(--global-space--pattern-pad);
@@ -296,10 +301,6 @@
296
301
  margin-top: unset; /* to avoid combining margin with image */
297
302
  }
298
303
 
299
- :--c-card--image-bottom {
300
- /* Repeat many times, because element count is unknown */
301
- grid-template-rows: var(--image-height) repeat(10, min-content);
302
- }
303
304
  :--c-card--image-bottom > img {
304
305
  grid-row-end: -1;
305
306
  margin-top: var(--global-space--pattern-pad);
@@ -307,3 +308,20 @@
307
308
  :--c-card--image-bottom > p:last-of-type {
308
309
  margin-bottom: unset; /* to avoid combining margin with image */
309
310
  }
311
+
312
+ /* Image: Contact Card */
313
+
314
+ :--c-card--image-top h4 {
315
+ margin-bottom: 0.375em;
316
+ }
317
+ :--c-card--image-top h4 ~ p {
318
+ margin-top: 0px;
319
+ margin-bottom: 10px;
320
+ }
321
+
322
+ /* To not let card be wider than image */
323
+ /* NOTE: For now, only applied where problem appears */
324
+ /* HELP: Should this apply to all cards? How to demo it? */
325
+ :--c-card--image-top:has(h4) {
326
+ max-width: fit-content;
327
+ }
@@ -5,7 +5,7 @@
5
5
  /* FAQ: We should not assume the display of an element client controls */
6
6
  /* display: inline-block; */
7
7
 
8
- padding: 0.25em 0.5em;
8
+ padding: 0.25rem 0.5rem 0rem;
9
9
  width: min-content;
10
10
 
11
11
  white-space: nowrap;
@@ -42,9 +42,12 @@ Styleguide Components.Cortal.Icon
42
42
 
43
43
  /* To tweak action icon appearance and layout */
44
44
  :--c-card > :is(:--action) > .icon:first-child,
45
- p > :is(:--action):only-child > .icon:first-child {
45
+ p > :is(:--action) > .icon:first-child {
46
46
  margin-right: 10px;
47
47
  font-size: 1.2em;
48
+
49
+ position: relative;
50
+ top: 0.2em;
48
51
  }
49
52
 
50
53
 
@@ -52,4 +52,3 @@
52
52
  @import url("./trumps/s-drop-cap.css");
53
53
  @import url("./trumps/s-footer.css");
54
54
  @import url("./trumps/s-footer--thick.css");
55
- @import url("./trumps/s-truncated-table.css");
@@ -16,7 +16,6 @@
16
16
  /* ELEMENTS */
17
17
  @import url("./elements/root--portal.css");
18
18
  @import url("./elements/sticky-footer.css");
19
- @import url("./elements/table.portal.css");
20
19
 
21
20
  /* OBJECTS */
22
21
  @import url("./objects/o-flex-item-table-wrap.css");
@@ -34,4 +33,3 @@
34
33
  @import url("./trumps/s-footer.css");
35
34
  @import url("./trumps/s-footer--thin.css");
36
35
  @import url("./trumps/s-form-page.css");
37
- @import url("./trumps/s-truncated-table.css");
@@ -315,7 +315,9 @@ variants:
315
315
  rows:
316
316
  - id: Copper
317
317
  name: Paul Bunyan
318
- name-link: View Team
318
+ name-link:
319
+ - is-button: true
320
+ - text: View Team
319
321
  table:
320
322
  cols:
321
323
  - Systems
@@ -337,7 +339,9 @@ variants:
337
339
  time: 12/01/2019 11:04:19
338
340
  - id: Vermillion
339
341
  name: Nathan Fillion
340
- name-link: View Team
342
+ name-link:
343
+ - is-button: true
344
+ - text: View Team
341
345
  table:
342
346
  cols:
343
347
  - Systems
@@ -359,7 +363,9 @@ variants:
359
363
  time: 12/01/2019 11:04:19
360
364
  - id: Emerald
361
365
  name: Wesley Snipes
362
- name-link: View Team
366
+ name-link:
367
+ - is-button: true
368
+ - text: View Team
363
369
  table:
364
370
  cols:
365
371
  - Systems
@@ -1,6 +1,6 @@
1
- <table class="{{#if table }}has-table{{/if}} {{#if class }}{{ class }}{{/if}}">
1
+ <table class="{{#if data.has-table }}has-table{{/if}} {{#if data.cols}}has-data-cols{{/if}} {{#if class }}{{ class }}{{/if}}">
2
2
  {{#if caption }}
3
- <caption>{{{ caption }}}</catpion>
3
+ <caption>{{{ caption }}}</caption>
4
4
  {{/if}}
5
5
  {{#if data.cols }}
6
6
  <thead>
@@ -18,25 +18,33 @@
18
18
  {{/each}}
19
19
  {{#each data.rows}}
20
20
  <tr>
21
- {{#if id}}<th>{{ id }}</th>{{/if}}
22
- {{#if name}}<th>{{ name }}</th>{{/if}}
23
- {{#if name-link}}<th><a href="#">{{ name-link }}</a></th>{{/if}}
21
+ {{#if id}}<td data-col="{{ getColFromRow this id ../data.cols }}">{{ id }}</td>{{/if}}
22
+ {{#if name}}<td data-col="{{ getColFromRow this name ../data.cols }}">{{ name }}</td>{{/if}}
23
+ {{#if name-link.[0].is-button}}
24
+ <td data-col="{{ getColFromRow this name-link ../data.cols }}"><button class="c-button c-button--secondary">{{ name-link.[1].text }}</button></td>
25
+ {{else}}
26
+ {{#if name-link}}
27
+ <td data-col="{{ getColFromRow this name-link ../data.cols }}">
28
+ <a href="#">{{ name-link }}</a>
29
+ </td>
30
+ {{/if}}
31
+ {{/if}}
24
32
  {{#if paragraph}}
25
- <td title="{{> @text-of-one-paragraph-short }}">
33
+ <td data-col="{{ getColFromRow this paragraph ../data.cols }}" title="{{> @text-of-one-paragraph-short }}">
26
34
  <p>{{> @text-of-one-paragraph-short }}</p>
27
35
  </td>
28
36
  {{/if}}
29
37
  {{#if sentence}}
30
- <td title="{{> @text-of-one-sentence }}">
38
+ <td data-col="{{ getColFromRow this sentence ../data.cols}}" title="{{> @text-of-one-sentence }}">
31
39
  <span>{{> @text-of-one-sentence }}</span>
32
40
  </td>
33
41
  {{/if}}
34
- {{#if custom-1}}<td>{{{ custom-1 }}}</td>{{/if}}
35
- {{#if custom-2}}<td>{{{ custom-2 }}}</td>{{/if}}
36
- {{#if custom-3}}<td>{{{ custom-3 }}}</td>{{/if}}
37
- {{#if time}}<td><time>{{ time }}</time></td>{{/if}}
42
+ {{#if custom-1}}<td data-col="{{ getColFromRow this custom-1 ../data.cols }}">{{{ custom-1 }}}</td>{{/if}}
43
+ {{#if custom-2}}<td data-col="{{ getColFromRow this custom-2 ../data.cols }}">{{{ custom-2 }}}</td>{{/if}}
44
+ {{#if custom-3}}<td data-col="{{ getColFromRow this custom-3 ../data.cols }}">{{{ custom-3 }}}</td>{{/if}}
45
+ {{#if time}}<td data-col="{{ getColFromRow this time ../data.cols }}"><time>{{ time }}</time></td>{{/if}}
38
46
  {{#if acts}}
39
- <td>
47
+ <td data-col="{{ getColFromRow this acts ../data.cols }}">
40
48
  <ul>
41
49
  {{#each acts}}
42
50
  {{#if is-link }}<li><a href="#">{{ text }}</a></li>{{/if}}
@@ -50,11 +58,16 @@
50
58
  </td>
51
59
  {{/if}}
52
60
  {{#if table}}
53
- <td class="has-table">
54
- {{> @table data=table }}
55
- </td>
61
+ <td class="has-table">
62
+ {{> @table data=table class="nested-table"}}
63
+ </td>
56
64
  {{/if}}
57
65
  </tr>
58
66
  {{/each}}
59
67
  </tbody>
60
68
  </table>
69
+
70
+ {{!-- {{#if data.has-table}}
71
+
72
+ {{> @table data=data.table class="nested-table" }}
73
+ {{/if}} --}}
@@ -3,9 +3,8 @@
3
3
  table,
4
4
  :--s-paragraph-table {
5
5
  --font-size: var(--global-font-size--small, 12px);
6
- --cell-pad-vert: 0.6667em; /* 8px if font-size is 12px */
7
- --cell-pad-horz: 1.3333em; /* 16px if font-size is 12px */
8
- --cell-line-height: 1.1;
6
+ --cell-pad-vert: 1em;
7
+ --cell-pad-horz: 2em;
9
8
 
10
9
  /* To prevent borders from being hidden */
11
10
  /* SEE: TABLE WITH A <thead> */
@@ -14,7 +13,10 @@ table,
14
13
 
15
14
  font-family: var(--global-font-family--sans--portal);
16
15
  font-size: var(--font-size);
16
+
17
+ border-bottom: var(--global-border-width--normal) solid var(--global-color-primary--dark);
17
18
  }
19
+
18
20
  :--s-paragraph-table {
19
21
  display: table; /* to mimic shrink-wrap width of real table */
20
22
  }
@@ -26,6 +28,7 @@ table,
26
28
  thead tr:last-child :is(td, th) {
27
29
  border-bottom: var(--global-border-width--normal) solid var(--global-color-primary--dark);
28
30
  }
31
+
29
32
  /* TABLE WITH NO <thead> */
30
33
  /* FAQ: To __avoid__ styling a __nested__ table, must use direct selector `>` */
31
34
  /* FAQ: To __ensure__ border is __visible__:
@@ -33,7 +36,7 @@ thead tr:last-child :is(td, th) {
33
36
  (because table has `border-collapse: separate`) */
34
37
  tbody:not(thead + tbody) > tr:first-child > :is(td, th),
35
38
  :--s-paragraph-table {
36
- border-top: var(--global-border-width--normal) solid var(--global-color-primary--dark);
39
+ border-top: var(--global-border-width--normal) solid var(--global-color-primary--dark);;
37
40
  }
38
41
 
39
42
  /* To add bottom border to rows */
@@ -50,6 +53,7 @@ tr:not(:last-of-type) > :is(td, th),
50
53
  tr:nth-child(odd) :is(th, td) {
51
54
  background: var(--global-color-background--app);
52
55
  }
56
+
53
57
  tr:nth-child(even) :is(th, td),
54
58
  :--s-paragraph-table p:nth-child(even) {
55
59
  background: var(--global-color-primary--x-light);
@@ -63,29 +67,18 @@ tr:nth-child(even) :is(th, td),
63
67
 
64
68
  color: var(--global-color-primary--dark);
65
69
  }
66
- /* To ensure <thead> height matches between browsers */
67
- /* IMPORTANT: More than for consistency; `table--nested.css` requires this */
68
- :is(td, th),
69
- :--s-paragraph-table p {
70
- line-height: var(--cell-line-height);
71
- }
72
- /* To pin first column to left of table even during scroll */
73
- /* WARNING: Design does NOT approve this */
74
- /* TODO: Replace with APCD-CMS "responsive-data-tables" solution */
75
- /* SEE: https://github.com/TACC/Core-CMS-Custom/blob/3bec84b/apcd-cms/src/apps/view_users/static/view_users_table/css/table.css#L65-L129 */
76
- :is(th, td):first-child {
77
- position: sticky;
78
- left: 0;
79
- }
80
70
 
81
71
  th {
82
72
  color: var(--global-color-primary--x-dark);
83
73
 
84
- text-align: inherit; /* copied from Bootstrap 4.0.0 */
74
+ text-align: inherit;
75
+ /* copied from Bootstrap 4.0.0 */
85
76
  }
77
+
86
78
  thead > tr > th {
87
79
  font-weight: var(--bold);
88
80
  }
81
+
89
82
  tbody > tr > th {
90
83
  font-weight: var(--normal);
91
84
  }
@@ -100,8 +93,6 @@ caption {
100
93
  padding-inline: var(--cell-pad-horz);
101
94
  }
102
95
 
103
-
104
-
105
96
  /* Cell Content */
106
97
 
107
98
  /* To override browser */
@@ -110,9 +101,10 @@ td ul {
110
101
  padding-inline-start: 0;
111
102
  margin-block: 0;
112
103
  }
104
+
113
105
  td li:not(:last-of-type) {
114
106
  /* To match line-height of other cells, but still allow space between items */
115
- margin-bottom: 0.5em;
107
+ margin-bottom: 1em;
116
108
  }
117
109
 
118
110
  /* To override browser */
@@ -127,7 +119,110 @@ table p,
127
119
  :--s-paragraph-table p {
128
120
  margin-top: 0;
129
121
  }
122
+
130
123
  table p:last-child,
131
124
  :--s-paragraph-table p {
132
125
  margin-bottom: 0;
133
126
  }
127
+
128
+ /* SEE: https://css-tricks.com/responsive-data-tables/ */
129
+ @media (max-width: 767px) {
130
+ /* overwrite Core CMS site.css */
131
+ table,
132
+ :--s-paragraph-table {
133
+ --font-size: var(--global-font-size--medium, 14px);
134
+ --cell-pad-vert: 1.2em;
135
+ --cell-pad-horz: 2.2em;
136
+
137
+ font-family: var(--global-font-family--sans--portal);
138
+ font-size: var(--font-size);
139
+
140
+ border-top: var(--global-border-width--normal) solid var(--global-color-primary--dark);
141
+ border-bottom: var(--global-border-width--normal) solid var(--global-color-primary--dark);
142
+ }
143
+
144
+
145
+ :is(table, thead, tbody, th, td, tr) {
146
+ display: block;
147
+ }
148
+
149
+ tr:not(:last-of-type) > :is(td, th),
150
+ :--s-paragraph-table p:not(:last-of-type) {
151
+ border-bottom: unset;
152
+ }
153
+
154
+ tr > :is(td, th):not(:last-of-type),
155
+ :--s-paragraph-table p:not(:last-of-type) {
156
+ border-bottom-width: var(--global-border-width--normal);
157
+ border-bottom-style: solid;
158
+ border-bottom-color: var(--global-color-primary--light);
159
+ }
160
+
161
+ tr:not(:last-of-type) {
162
+ border-bottom: var(--global-border-width--normal) solid var(--global-color-primary--light);
163
+ }
164
+
165
+ /* To make cells look like left-aligned labels */
166
+ td:before {
167
+ position: absolute;
168
+ width: calc( 50% - var(--cell-pad-horz) );
169
+ padding-right: 10px;
170
+ white-space: nowrap;
171
+ font-weight: bold;
172
+ overflow: hidden;
173
+ text-overflow: ellipsis;
174
+
175
+ /* To mimic cell padding */
176
+ left: var(--cell-pad-horz);
177
+ }
178
+
179
+ tbody:not(thead + tbody) > tr:first-child > :is(td, th) {
180
+ border-top: none;
181
+ }
182
+
183
+ /* To remove border (that should probably be in Core anyway) */
184
+ table.has-data-cols {
185
+ /* To hide table headers (but not `display: none;`, for a11y) */
186
+ & thead tr {
187
+ position: absolute;
188
+ top: -9999px;
189
+ left: -9999px;
190
+ }
191
+
192
+ /* To make each cell behave like a "row" */
193
+ & td {
194
+ position: relative;
195
+ padding-left: 50%;
196
+ }
197
+
198
+ /* To label the cells */
199
+ /* RFE: Add `data-label` to each cell so we can use `attr(data-label)` */
200
+ & td:before {
201
+ content: attr(data-col);
202
+ }
203
+
204
+ & td:not(:first-child) th:first-child,
205
+ td:not(:first-child) td:first-child {
206
+ padding-inline-start: 50%;
207
+ }
208
+
209
+ & td:not(:last-child) th:last-child,
210
+ td:not(:last-child) td:last-child {
211
+ padding-inline-end: 50%;
212
+ }
213
+
214
+ & .c-pill {
215
+ min-width: unset;
216
+ }
217
+
218
+ & td.has-table {
219
+ padding: 10px;
220
+ }
221
+ }
222
+
223
+ table.has-table {
224
+ & tr :is(td,th):last-child {
225
+ border-bottom: unset;
226
+ }
227
+ }
228
+ }
@@ -29,42 +29,66 @@
29
29
  td.has-table { padding: 0; }
30
30
  }
31
31
 
32
- /* To replace any parent table columns above with nested table columns */
33
- /* FAQ: Pulls nested table up by the height of the parent table head */
34
- thead + tbody tr table {
35
- --offset-distance: calc(
36
- var(--cell-pad-vert) * 2
37
- +
38
- var(--cell-line-height) * var(--font-size)
39
- +
40
- var(--global-border-width--normal)
41
- );
42
- --offset: calc( var(--offset-distance) * -1 );
43
-
44
- transform: translateY(var(--offset));
45
- margin-bottom: var(--offset);
46
- }
47
- /* FAQ: Hides any parent table head underneath nested table head */
48
- thead + tbody tr:first-of-type thead {
49
- background: var(--global-color-background--app);
50
- }
51
- /* FAQ: Hides all successive (thus redundant) nested table heads */
52
- thead + tbody tr:not(:first-of-type) thead {
53
- visibility: hidden;
54
- }
55
32
  /* FAQ: Re-colors border of all successive nested rows (to match parent row) */
56
33
  thead + tbody tr:not(:first-of-type) tbody :is(td,th) {
57
34
  border-color: var(--global-color-primary--light);
58
35
  }
59
36
 
60
- /* To reduce inline padding
61
- at start and end of nested table
62
- unless at start or end of parent table */
63
- td:not(:first-child) th:first-child,
64
- td:not(:first-child) td:first-child {
65
- padding-inline-start: 8px;
66
- }
67
- td:not(:last-child) th:last-child,
68
- td:not(:last-child) td:last-child {
69
- padding-inline-end: 8px;
37
+ table.nested-table {
38
+ border-bottom: unset;
39
+ border-left: var(--global-border-width--normal) solid var(--global-color-primary--light);
40
+ border-right: var(--global-border-width--normal) solid var(--global-color-primary--light);
70
41
  }
42
+
43
+ @media (max-width: 767px) {
44
+
45
+ table.has-table {
46
+ & td:nth-child(3):not(:is(table.nested-table *) > *):before {
47
+ content: none;
48
+ }
49
+
50
+ & td:nth-child(3):not(:is(table.nested-table *) > *) {
51
+ padding-left: unset;
52
+ position: unset;
53
+
54
+ display: flex;
55
+ justify-content: center;
56
+ border-bottom: unset;
57
+ }
58
+
59
+ & td:last-child:not(:is(table.nested-table *) > *) {
60
+ padding-top: unset;
61
+ }
62
+ }
63
+
64
+ table.nested-table {
65
+ border: unset;
66
+
67
+ & tr {
68
+ border: var(--global-border-width--normal) solid var(--global-color-primary--dark);
69
+ }
70
+
71
+ & tr:nth-child(odd) :is(th, td) {
72
+ background-color: rgba(var(--global-color-primary--light-rgb), 0.40)
73
+ }
74
+ & tr:nth-child(odd) :is(th, td):nth-child(even) {
75
+ background-color: var(--global-color-primary--x-light);
76
+ }
77
+
78
+ & tr:nth-child(even) :is(th, td):nth-child(odd) {
79
+ background-color: rgba( var(--global-color-primary--x-light-rgb), 0.50);
80
+ }
81
+ & tr:nth-child(even) > :is(th, td):nth-child(even) {
82
+ background-color: var(--global-color-primary--xx-light);
83
+ }
84
+
85
+ & tr:not(:last-of-type) {
86
+ border-bottom: unset;
87
+ }
88
+ }
89
+
90
+ tr:not(:last-of-type) {
91
+ border-bottom: var(--global-border-width--normal) solid var(--global-color-primary--dark);
92
+ }
93
+
94
+ }
@@ -4,16 +4,16 @@
4
4
  table,
5
5
  :--s-paragraph-table {
6
6
  --font-size: var(--global-font-size--medium);
7
- --cell-line-height: 1.4; /* to match body */
7
+ line-height: 1.4; /* to match body */
8
8
 
9
- border-bottom: var(--global-border-width--thick) solid var(--global-color-primary--dark);
9
+ border-bottom: var(--global-border-width--normal) solid var(--global-color-primary--dark);
10
10
  }
11
11
 
12
12
  /* TABLE WITH NO <thead> */
13
13
  /* To thicken top border */
14
14
  tbody:not(thead + tbody) > tr:first-child > :is(td,th),
15
15
  :--s-paragraph-table {
16
- border-top-width: var(--global-border-width--thick);
16
+ border-top-width: var(--global-border-width--normal);
17
17
  }
18
18
 
19
19
  /* To match row height in design (~40px) */
@@ -21,3 +21,11 @@ tbody:not(thead + tbody) > tr:first-child > :is(td,th),
21
21
  :--s-paragraph-table p {
22
22
  padding-block: 10px;
23
23
  }
24
+
25
+
26
+ @media (max-width: 767px) {
27
+ table {
28
+ border-top: var(--global-border-width--normal) solid var(--global-color-primary--dark);
29
+ }
30
+
31
+ }
@@ -6,9 +6,9 @@ Define standard fonts for a TACC website.
6
6
  Usage:
7
7
  ```
8
8
  .something {
9
- font-family: var(--global-font-family--serif);
10
- font-size: var(--global-font-size--normal);
11
- font-weight: var(--global-font-weight--bold); /* or `var(--bold)` *\/
9
+ font-family: var(--serif);
10
+ font-size: var(--normal);
11
+ font-weight: var(--bold);
12
12
  }
13
13
  ```
14
14
 
@@ -23,26 +23,29 @@ Styleguide Settings.CustomProperties.Font
23
23
 
24
24
  :root {
25
25
  /* Family */
26
- /* https://confluence.tacc.utexas.edu/x/nB4FDg */
27
- --global-font-family--sans--cms: "Benton Sans", "Roboto", sans-serif;
28
- --global-font-family--sans--portal: "Roboto", sans-serif;
29
- --global-font-family--serif: sans-serif;
30
- --global-font-family--mono: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
31
- --sans--cms: var(--global-font-family--sans--cms);
32
- --sans--portal: var(--global-font-family--sans--portal);
33
- --serif: var(--global-font-family--serif);
34
- --mono: var(--global-font-family--mono);
26
+ /* https://tacc-main.atlassian.net/wiki/x/Nw9v */
27
+ --sans--cms: "Benton Sans", "Roboto", sans-serif;
28
+ --sans--portal: "Roboto", sans-serif;
29
+ --serif: sans-serif;
30
+ --mono: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
35
31
 
36
32
  /* Weight */
37
33
  /* https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight */
38
- /* NOTE: Long names to be consistent (opinions welcome) */
39
- --global-font-weight--regular: 400;
40
- --global-font-weight--medium: 500;
41
- --global-font-weight--bold: 700;
42
- --global-font-weight--black: 800;
43
- /* NOTE: Short names to increase adoption (opinions welcome) */
44
- --regular: var(--global-font-weight--regular);
45
- --medium: var(--global-font-weight--medium);
46
- --bold: var(--global-font-weight--bold);
47
- --black: var(--global-font-weight--black);
34
+ --regular: 400;
35
+ --medium: 500;
36
+ --bold: 700;
37
+ --black: 800;
38
+ }
39
+
40
+ /* For backwards-compatibility with v0, v1, v2.23 */
41
+ :root {
42
+ --global-font-family--sans--cms: var(--sans--cms);
43
+ --global-font-family--sans--portal: var(--sans--portal);
44
+ --global-font-family--serif: var(--serif);
45
+ --global-font-family--mono: var(--mono);
46
+
47
+ --global-font-weight--regular: var(--regular);
48
+ --global-font-weight--black: var(--black);
49
+ --global-font-weight--medium: var(--medium);
50
+ --global-font-weight--bold: var(--bold);
48
51
  }
@@ -4,5 +4,4 @@ A [table]({{path './table' }}) that uses [paragraphs](https://developer.mozilla.
4
4
  >
5
5
  > - Text will not truncate. It will wrap.
6
6
  > - Only a single column is supported.
7
-
8
7
  <script src="{{path '/assets/_utils/js/open-ext-links-in-new-window.js'}}" />
@@ -1,6 +0,0 @@
1
- @import url("../trumps/s-truncated-table.css");
2
-
3
- /* Assume portal tables always supports truncation */
4
- table {
5
- @extend .s-truncated-table;
6
- }
@@ -1,9 +0,0 @@
1
- context:
2
- shouldSkipPattern: false
3
- 📝 shouldSkipPattern: because core-styles.base.css does not import this
4
- data:
5
- rows:
6
- - paragraph: true
7
- - paragraph: true
8
- - paragraph: true
9
- - paragraph: true
@@ -1,7 +0,0 @@
1
- A [table]({{path './table' }}) that uses a [table](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table) element, but cell text should be truncated.
2
-
3
- > **ⓘ Notice**
4
- >
5
- > - Text will truncate only if it is in a `<p>` tag.
6
-
7
- <script src="{{path '/assets/_utils/js/open-ext-links-in-new-window.js'}}" />
@@ -1 +0,0 @@
1
- {{> @table class="s-truncated-table" }}
@@ -1,6 +0,0 @@
1
- @import url("../tools/x-truncate.css");
2
-
3
- /* To truncate paragraphs in specific tables */
4
- .s-truncated-table p {
5
- @extend %x-truncate--many-lines;
6
- }