@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.
- package/README.md +6 -2
- package/dist/branding_logos.css +1 -1
- package/dist/components/README.css +1 -1
- package/dist/components/admonition/demo.css +1 -1
- package/dist/components/admonition.css +1 -1
- package/dist/components/align/demo.css +1 -1
- package/dist/components/align.css +1 -1
- package/dist/components/bootstrap/bootstrap--form.demo.css +1 -1
- package/dist/components/bootstrap/bootstrap--modal.demo.css +1 -1
- package/dist/components/bootstrap/demo.css +1 -1
- package/dist/components/bootstrap.col.css +1 -1
- package/dist/components/bootstrap.container.css +1 -1
- package/dist/components/bootstrap.css +1 -1
- package/dist/components/bootstrap.figure.css +1 -1
- package/dist/components/bootstrap.form.css +1 -1
- package/dist/components/bootstrap.modal--cms.css +1 -1
- package/dist/components/bootstrap.modal--portal.css +1 -1
- package/dist/components/bootstrap.modal.css +1 -1
- package/dist/components/bootstrap.nav-tabs.css +1 -1
- package/dist/components/bootstrap.pagination.css +1 -1
- package/dist/components/bootstrap.row.css +1 -1
- package/dist/components/c-button/demo.css +1 -1
- package/dist/components/c-button--cms.css +1 -1
- package/dist/components/c-button.css +1 -1
- package/dist/components/c-button.selectors.css +1 -1
- package/dist/components/c-callout.css +1 -1
- package/dist/components/c-card/c-card--frontera.demo.css +1 -1
- package/dist/components/c-card/c-card.demo.css +1 -1
- package/dist/components/c-card/c-card.demo.images.css +1 -1
- package/dist/components/c-card--docs.css +1 -1
- package/dist/components/c-card--from-tup-cms.css +1 -1
- package/dist/components/c-card--frontera-about-page.css +1 -1
- package/dist/components/c-card.css +1 -1
- package/dist/components/c-card.selectors.css +1 -1
- package/dist/components/c-content-block.css +1 -1
- package/dist/components/c-data-list.css +1 -1
- package/dist/components/c-form--cms.css +1 -1
- package/dist/components/c-form--login.css +1 -1
- package/dist/components/c-form--portal.css +1 -1
- package/dist/components/c-form.css +1 -1
- package/dist/components/c-form.selectors.css +1 -1
- package/dist/components/c-image-map.css +1 -1
- package/dist/components/c-image-map.skin.css +1 -1
- package/dist/components/c-image-map.structure.css +1 -1
- package/dist/components/c-island/demo.css +1 -1
- package/dist/components/c-island.css +1 -1
- package/dist/components/c-message/demo.css +1 -1
- package/dist/components/c-message--compact.css +1 -1
- package/dist/components/c-message--expanded.css +1 -1
- package/dist/components/c-message.css +1 -1
- package/dist/components/c-message.selectors.css +1 -1
- package/dist/components/c-nav/demo.css +1 -1
- package/dist/components/c-nav.css +1 -1
- package/dist/components/c-page.css +1 -1
- package/dist/components/c-pill/demo.css +1 -1
- package/dist/components/c-pill.css +1 -1
- package/dist/components/c-pill.selectors.css +1 -1
- package/dist/components/c-recognition.css +1 -1
- package/dist/components/c-see-all-link.css +1 -1
- package/dist/components/c-show-more.css +1 -1
- package/dist/components/c-tag/demo.css +1 -1
- package/dist/components/c-tag.css +1 -1
- package/dist/components/c-tag.selectors.css +1 -1
- package/dist/components/c-update.css +1 -1
- package/dist/components/cortal.icon.css +1 -1
- package/dist/components/cortal.icon.font.css +1 -1
- package/dist/components/demo.css +1 -1
- package/dist/components/django-cms-forms.css +1 -1
- package/dist/components/django-cms-forms.hacks.css +1 -1
- package/dist/components/django-cms-forms.selectors.css +1 -1
- package/dist/components/mui.tabs.css +1 -1
- package/dist/components/pymdownx--tabbed.css +1 -1
- package/dist/components/pymdownx.css +1 -1
- package/dist/components/tacc-docs.css +1 -1
- package/dist/core-styles.base.css +3 -3
- package/dist/core-styles.cms.css +2 -2
- package/dist/core-styles.demo.css +1 -1
- package/dist/core-styles.docs.css +2 -2
- package/dist/core-styles.header.css +1 -1
- package/dist/core-styles.portal.css +2 -2
- package/dist/core-styles.settings.css +2 -2
- package/dist/core-styles.theme.default.css +1 -1
- package/dist/core-styles.theme.has-dark-logo.css +1 -1
- package/dist/core-styles.wysiwyg.css +2 -2
- package/dist/elements/README.css +1 -1
- package/dist/elements/bootstrap.css +1 -1
- package/dist/elements/demo.css +1 -1
- package/dist/elements/form.css +1 -1
- package/dist/elements/headings/demo.css +1 -1
- package/dist/elements/headings--cms.css +1 -1
- package/dist/elements/headings--docs.css +1 -1
- package/dist/elements/html-elements/demo.css +1 -1
- package/dist/elements/html-elements.cms.css +1 -1
- package/dist/elements/html-elements.css +1 -1
- package/dist/elements/html-elements.docs.css +1 -1
- package/dist/elements/irregular-link.css +1 -1
- package/dist/elements/links.css +1 -1
- package/dist/elements/mailto-link.css +1 -1
- package/dist/elements/monospace.css +1 -1
- package/dist/elements/root--cms.css +1 -1
- package/dist/elements/root--demo.css +1 -1
- package/dist/elements/root--docs.css +1 -1
- package/dist/elements/root--portal.css +1 -1
- package/dist/elements/root.css +1 -1
- package/dist/elements/sticky-footer/demo.css +1 -1
- package/dist/elements/sticky-footer.css +1 -1
- package/dist/elements/table--basic.css +1 -1
- package/dist/elements/table--nested.css +1 -1
- package/dist/elements/table.cms.css +1 -1
- package/dist/elements/table.css +1 -1
- package/dist/elements/table.docs.css +1 -1
- package/dist/elements/table.portal.css +1 -1
- package/dist/elements/table.selectors.css +1 -1
- package/dist/elements/tacc-search-bar.css +1 -1
- package/dist/fractal.server.refresh.css +1 -1
- package/dist/generics/README.css +1 -1
- package/dist/generics/attributes/demo.css +1 -1
- package/dist/generics/attributes.css +1 -1
- package/dist/generics/fonts.css +1 -1
- package/dist/generics/pseudo-elements.css +1 -1
- package/dist/objects/README.css +1 -1
- package/dist/objects/o-fixed-header-table/demo.css +1 -1
- package/dist/objects/o-fixed-header-table.css +1 -1
- package/dist/objects/o-flex-item-table-wrap/demo.css +1 -1
- package/dist/objects/o-flex-item-table-wrap.css +1 -1
- package/dist/objects/o-float-content.css +1 -1
- package/dist/objects/o-grid.css +1 -1
- package/dist/objects/o-heading-steps.css +1 -1
- package/dist/objects/o-offset-content.css +1 -1
- package/dist/objects/o-section/demo.css +1 -1
- package/dist/objects/o-section--docs.css +1 -1
- package/dist/objects/o-section.css +1 -1
- package/dist/objects/o-section.selectors.css +1 -1
- package/dist/objects/o-site.css +1 -1
- package/dist/objects/o-table-wrap/demo.basic.css +1 -1
- package/dist/objects/o-table-wrap/demo.extra.css +1 -1
- package/dist/objects/o-table-wrap/example.flexible-horz.css +1 -1
- package/dist/objects/o-table-wrap/example.overflow-hidden.css +1 -1
- package/dist/objects/o-table-wrap/example.overflow-scroll.css +1 -1
- package/dist/objects/o-table-wrap/o-table-wrap--flexible-horz.css +1 -1
- package/dist/objects/o-table-wrap/o-table-wrap--flexible-vert.css +1 -1
- package/dist/objects/o-table-wrap/o-table-wrap--overflow-hidden.css +1 -1
- package/dist/objects/o-table-wrap/o-table-wrap--overflow-scroll-extra.css +1 -1
- package/dist/objects/o-table-wrap/o-table-wrap--overflow-scroll.css +1 -1
- package/dist/objects/o-table-wrap.css +1 -1
- package/dist/settings/README.css +1 -1
- package/dist/settings/border.css +1 -1
- package/dist/settings/color/demo.css +1 -1
- package/dist/settings/color--cms.css +1 -1
- package/dist/settings/color--demo.css +1 -1
- package/dist/settings/color--docs.css +1 -1
- package/dist/settings/color--portal.css +1 -1
- package/dist/settings/color.accent--blue.css +1 -1
- package/dist/settings/color.accent--purple.css +1 -1
- package/dist/settings/color.css +1 -1
- package/dist/settings/demo.css +1 -1
- package/dist/settings/font/demo-family.css +1 -1
- package/dist/settings/font/demo-size.css +1 -1
- package/dist/settings/font/demo-style.css +1 -1
- package/dist/settings/font/demo-weight.css +1 -1
- package/dist/settings/font--cms.css +1 -1
- package/dist/settings/font--docs.css +1 -1
- package/dist/settings/font--portal.css +1 -1
- package/dist/settings/font.css +1 -1
- package/dist/settings/max-width.css +1 -1
- package/dist/settings/space.css +1 -1
- package/dist/tools/README.css +1 -1
- package/dist/tools/media-queries.css +1 -1
- package/dist/tools/selectors.common.css +1 -1
- package/dist/tools/selectors.css +1 -1
- package/dist/tools/selectors.form.css +1 -1
- package/dist/tools/selectors.monospace.css +1 -1
- package/dist/tools/x-article-link.css +1 -1
- package/dist/tools/x-blockquote.css +1 -1
- package/dist/tools/x-center.css +1 -1
- package/dist/tools/x-fake-border.css +1 -1
- package/dist/tools/x-figure.css +1 -1
- package/dist/tools/x-grid.css +1 -1
- package/dist/tools/x-layout.css +1 -1
- package/dist/tools/x-link.css +1 -1
- package/dist/tools/x-mailto-text-replace.css +1 -1
- package/dist/tools/x-overlay.css +1 -1
- package/dist/tools/x-tabs/demo.css +1 -1
- package/dist/tools/x-tabs.css +1 -1
- package/dist/tools/x-tabs.skin.css +1 -1
- package/dist/tools/x-tabs.structure.css +1 -1
- package/dist/tools/x-truncate.css +1 -1
- package/dist/trumps/README.css +1 -1
- package/dist/trumps/demo.css +1 -1
- package/dist/trumps/s-affixed-input-wrapper/demo.css +1 -1
- package/dist/trumps/s-affixed-input-wrapper.css +1 -1
- package/dist/trumps/s-article-list.css +1 -1
- package/dist/trumps/s-article-preview.css +1 -1
- package/dist/trumps/s-blockquote.css +1 -1
- package/dist/trumps/s-breadcrumbs.css +1 -1
- package/dist/trumps/s-cms-nav.css +1 -1
- package/dist/trumps/s-document.css +1 -1
- package/dist/trumps/s-drop-cap.css +1 -1
- package/dist/trumps/s-footer--thick.css +1 -1
- package/dist/trumps/s-footer--thin.css +1 -1
- package/dist/trumps/s-footer.css +1 -1
- package/dist/trumps/s-footer.properties.css +1 -1
- package/dist/trumps/s-form--cms.css +1 -1
- package/dist/trumps/s-form--login.css +1 -1
- package/dist/trumps/s-form--portal.css +1 -1
- package/dist/trumps/s-form-page/demo.css +1 -1
- package/dist/trumps/s-form-page/example.css +1 -1
- package/dist/trumps/s-form-page.css +1 -1
- package/dist/trumps/s-form.css +1 -1
- package/dist/trumps/s-form.selectors.css +1 -1
- package/dist/trumps/s-guide-doc.css +1 -1
- package/dist/trumps/s-header/s-header.demo.css +1 -1
- package/dist/trumps/s-header.bootstrap.css +1 -1
- package/dist/trumps/s-header.css +1 -1
- package/dist/trumps/s-image-grid.css +1 -1
- package/dist/trumps/s-inline-dl.css +1 -1
- package/dist/trumps/s-irregular-links.css +1 -1
- package/dist/trumps/s-paragraph-table.css +1 -1
- package/dist/trumps/s-portal-nav.css +1 -1
- package/dist/trumps/s-style-guide.css +1 -1
- package/dist/trumps/s-system-specs.css +1 -1
- package/dist/trumps/s-truncated-table.css +1 -1
- package/dist/trumps/tacc-search-bar.css +1 -1
- package/dist/trumps/u-empty.css +1 -1
- package/dist/trumps/u-hide.css +1 -1
- package/dist/trumps/u-highlight/u-highlight.demo.css +1 -1
- package/dist/trumps/u-highlight.css +1 -1
- package/dist/trumps/u-mailto-text-replace.css +1 -1
- package/dist/trumps/u-nested-text-content.css +1 -1
- package/fractal.config.js +9 -1
- package/package.json +1 -1
- package/src/lib/_imports/components/c-button--cms.css +8 -2
- package/src/lib/_imports/components/c-button.css +3 -1
- package/src/lib/_imports/components/c-card/_c-card--many-variable.hbs +2 -0
- package/src/lib/_imports/components/c-card/c-card--images.hbs +16 -16
- package/src/lib/_imports/components/c-card/c-card.demo.images.css +8 -14
- package/src/lib/_imports/components/c-card/c-card.readme.md +1 -1
- package/src/lib/_imports/components/c-card/config.yml +4 -2
- package/src/lib/_imports/components/c-card.css +29 -11
- package/src/lib/_imports/components/c-tag.css +1 -1
- package/src/lib/_imports/components/cortal.icon.css +4 -1
- package/src/lib/_imports/core-styles.cms.css +0 -1
- package/src/lib/_imports/core-styles.portal.css +0 -2
- package/src/lib/_imports/elements/table/config.yml +9 -3
- package/src/lib/_imports/elements/table/table.hbs +28 -15
- package/src/lib/_imports/elements/table--basic.css +117 -22
- package/src/lib/_imports/elements/table--nested.css +57 -33
- package/src/lib/_imports/elements/table.cms.css +11 -3
- package/src/lib/_imports/settings/font.css +25 -22
- package/src/lib/_imports/trumps/s-paragraph-table/readme.md +0 -1
- package/src/lib/_imports/elements/table.portal.css +0 -6
- package/src/lib/_imports/trumps/s-truncated-table/config.yml +0 -9
- package/src/lib/_imports/trumps/s-truncated-table/readme.md +0 -7
- package/src/lib/_imports/trumps/s-truncated-table/s-truncated-table.hbs +0 -1
- package/src/lib/_imports/trumps/s-truncated-table.css +0 -6
|
@@ -103,8 +103,15 @@
|
|
|
103
103
|
/* Structure */
|
|
104
104
|
|
|
105
105
|
/* Elements */
|
|
106
|
-
|
|
107
|
-
|
|
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
|
+
}
|
|
@@ -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)
|
|
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
|
|
|
@@ -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:
|
|
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:
|
|
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:
|
|
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 }}}</
|
|
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}}<
|
|
22
|
-
{{#if name}}<
|
|
23
|
-
{{#if name-link
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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:
|
|
7
|
-
--cell-pad-horz:
|
|
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;
|
|
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:
|
|
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
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
-
|
|
7
|
+
line-height: 1.4; /* to match body */
|
|
8
8
|
|
|
9
|
-
border-bottom: var(--global-border-width--
|
|
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--
|
|
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(--
|
|
10
|
-
font-size: var(--
|
|
11
|
-
font-weight: var(--
|
|
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://
|
|
27
|
-
--
|
|
28
|
-
--
|
|
29
|
-
--
|
|
30
|
-
--
|
|
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
|
-
|
|
39
|
-
--
|
|
40
|
-
--
|
|
41
|
-
--
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
--
|
|
47
|
-
--
|
|
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
|
}
|
|
@@ -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" }}
|