@tacc/core-styles 2.6.2 → 2.8.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 +14 -8
- 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.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/c-button/demo.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--docs.css +1 -0
- package/dist/components/c-card--from-tup-cms.css +1 -0
- 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-data-list.css +1 -1
- package/dist/components/c-footer.css +1 -1
- package/dist/components/c-form--cms.css +1 -1
- package/dist/components/c-form--portal.css +1 -1
- package/dist/components/c-form.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.css +1 -1
- package/dist/components/c-page.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/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--errors-via-c-message.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/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 +1 -1
- package/dist/core-styles.cms.css +1 -1
- package/dist/core-styles.demo.css +2 -2
- package/dist/core-styles.docs.css +2 -2
- package/dist/core-styles.header.css +2 -2
- package/dist/core-styles.header.theme-has-dark-logo.css +1 -1
- package/dist/core-styles.portal.css +1 -1
- package/dist/core-styles.settings.css +1 -1
- package/dist/core-styles.theme.default.css +1 -0
- package/dist/core-styles.theme.has-dark-logo.css +1 -0
- package/dist/core-styles.wysiwyg.css +1 -1
- 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.cms.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/links.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.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.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/color/_blue.css +1 -1
- package/dist/generics/color/_purple.css +1 -1
- package/dist/generics/color--cms.css +1 -1
- package/dist/generics/color--demo.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-offset-content.css +1 -1
- package/dist/objects/o-section/demo.css +1 -1
- package/dist/objects/o-section--docs.css +1 -0
- 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--docs.css +1 -1
- package/dist/settings/color--portal.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.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.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-footer.css +1 -1
- package/dist/trumps/s-guide-doc.css +1 -1
- package/dist/trumps/s-header.bootstrap.css +1 -1
- package/dist/trumps/s-header.css +1 -1
- package/dist/trumps/s-header.theme-has-dark-logo.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/tacc-search-bar.css +1 -1
- package/dist/trumps/tacc-search-bar.theme-has-dark-logo.css +1 -1
- package/dist/trumps/u-empty.css +1 -1
- package/dist/trumps/u-hide.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 +3 -3
- package/package.json +1 -3
- package/src/.postcssrc.base.yml +0 -5
- package/src/lib/_imports/_partials/figure.hbs +3 -1
- package/src/lib/_imports/_partials/import-client-styles.hbs +17 -0
- package/src/lib/_imports/_partials/message.hbs +16 -0
- package/src/lib/_imports/_preview.hbs +4 -35
- package/src/lib/_imports/components/c-card/_c-card--one-image.hbs +2 -1
- package/src/lib/_imports/components/c-card/_c-card--one-standard.hbs +3 -1
- package/src/lib/_imports/components/c-card/_c-card--one-with-grid.hbs +3 -1
- package/src/lib/_imports/components/c-card/c-card--docs.hbs +50 -0
- package/src/lib/_imports/components/c-card/c-card--docs.readme.md +1 -0
- package/src/lib/_imports/components/c-card/config.yml +6 -0
- package/src/lib/_imports/components/c-card--docs.css +34 -0
- package/src/lib/_imports/components/c-card--from-tup-cms.css +135 -0
- package/src/lib/_imports/components/c-card.selectors.css +16 -2
- package/src/lib/_imports/components/c-form/c-form.hbs +1 -3
- package/src/lib/_imports/components/c-message/_c-message--single.hbs +7 -3
- package/src/lib/_imports/components/django-cms-forms/django-cms-forms.hbs +4 -3
- package/src/lib/_imports/core-styles.cms.css +4 -4
- package/src/lib/_imports/core-styles.demo.css +1 -0
- package/src/lib/_imports/core-styles.docs.css +9 -5
- package/src/lib/_imports/core-styles.theme.default.css +11 -0
- package/src/lib/_imports/core-styles.theme.has-dark-logo.css +11 -0
- package/src/lib/_imports/elements/html-elements.docs.css +0 -5
- package/src/lib/_imports/elements/table--basic.css +3 -1
- package/src/lib/_imports/objects/o-section/config.yml +4 -0
- package/src/lib/_imports/objects/o-section/o-section--docs.hbs +20 -0
- package/src/lib/_imports/objects/o-section/o-section.readme.md +8 -0
- package/src/lib/_imports/objects/o-section--docs.css +45 -0
- package/src/lib/_imports/objects/o-section.selectors.css +3 -0
- package/src/lib/_imports/objects/o-table-wrap/o-table-wrap.hbs +6 -1
- package/src/lib/_imports/settings/font/font.hbs +4 -3
- package/src/lib/_imports/trumps/s-header.css +32 -17
- package/src/lib/_imports/trumps/tacc-search-bar.css +5 -5
- package/src/lib/_themes/README.md +0 -5
- package/src/lib/_themes/TODO.md +0 -4
- package/src/lib/_themes/default.json +0 -21
- package/src/lib/_themes/has-dark-logo.json +0 -21
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
@import url("./c-card.selectors.css");
|
|
2
|
+
|
|
3
|
+
/* FIX CARD */
|
|
4
|
+
|
|
5
|
+
/* XXX: When migrated:
|
|
6
|
+
2. Prevent these styles in apps/tup-ui TicketHistory CSS */
|
|
7
|
+
:--c-card p:last-child {
|
|
8
|
+
margin-bottom: 2rem; /* restore <p> `margin-bottom `*/
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* To more specifically control c-card link font weight */
|
|
12
|
+
/* XXX: When migrated:
|
|
13
|
+
2. Prevent these styles in apps/tup-ui TicketHistory CSS */
|
|
14
|
+
:--c-card a.c-button {
|
|
15
|
+
font-weight: var(--bold);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:--c-card h4 {
|
|
19
|
+
margin-bottom: 1em;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
/* ADD CARD--IMAGE */
|
|
27
|
+
|
|
28
|
+
/* Image */
|
|
29
|
+
|
|
30
|
+
:--c-card--image {
|
|
31
|
+
display: grid;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:--c-card--image-top {
|
|
35
|
+
padding-top: 0;
|
|
36
|
+
}
|
|
37
|
+
:--c-card--image-left {
|
|
38
|
+
padding-left: 0;
|
|
39
|
+
padding-bottom: var(--global-space--pattern-pad);
|
|
40
|
+
}
|
|
41
|
+
:--c-card--image-right {
|
|
42
|
+
padding-right: 0;
|
|
43
|
+
padding-bottom: var(--global-space--pattern-pad);
|
|
44
|
+
}
|
|
45
|
+
:--c-card--image-bottom {
|
|
46
|
+
padding-bottom: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
/* Image: Left & Right */
|
|
52
|
+
|
|
53
|
+
:--c-card--image-left,
|
|
54
|
+
:--c-card--image-right {
|
|
55
|
+
--image-width: 50%;
|
|
56
|
+
|
|
57
|
+
grid-column-gap: var(--global-space--pattern-pad);
|
|
58
|
+
|
|
59
|
+
/* Repeat many times, because element count is unknown */
|
|
60
|
+
grid-template-rows: repeat(10, min-content);
|
|
61
|
+
}
|
|
62
|
+
:--c-card--image-left > img,
|
|
63
|
+
:--c-card--image-right > img {
|
|
64
|
+
grid-row-start: 1;
|
|
65
|
+
grid-row-end: -1;
|
|
66
|
+
|
|
67
|
+
/* To remove card padding */
|
|
68
|
+
margin-block: calc( -1 * var(--global-space--pattern-pad) );
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:--c-card--image-left {
|
|
72
|
+
grid-template-columns: var(--image-width) 1fr; /* to overwrite `.c-card` */
|
|
73
|
+
}
|
|
74
|
+
:--c-card--image-left > img {
|
|
75
|
+
grid-column-start: 1;
|
|
76
|
+
grid-column-end: span 1;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:--c-card--image-right {
|
|
80
|
+
grid-template-columns: 1fr var(--image-width); /* to overwrite `.c-card` */
|
|
81
|
+
}
|
|
82
|
+
:--c-card--image-right > img {
|
|
83
|
+
grid-column-start: 2;
|
|
84
|
+
grid-column-end: span 1;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
/* Image: Top & Bottom */
|
|
90
|
+
|
|
91
|
+
:--c-card--image-top,
|
|
92
|
+
:--c-card--image-bottom {
|
|
93
|
+
--image-height: auto;
|
|
94
|
+
--global-space--pattern-pad: 15px;
|
|
95
|
+
|
|
96
|
+
/* Use extra columns to add horizontal padding */
|
|
97
|
+
grid-template-columns: var(--global-space--pattern-pad) 1fr var(--global-space--pattern-pad);
|
|
98
|
+
padding-inline: unset;
|
|
99
|
+
}
|
|
100
|
+
:--c-card--image-top > :not(img),
|
|
101
|
+
:--c-card--image-bottom > :not(img) {
|
|
102
|
+
/* Span only columns for content */
|
|
103
|
+
grid-column-start: 2;
|
|
104
|
+
grid-column-end: -2;
|
|
105
|
+
}
|
|
106
|
+
:--c-card--image-top > img,
|
|
107
|
+
:--c-card--image-bottom > img {
|
|
108
|
+
/* Span all columns, padding and content */
|
|
109
|
+
grid-column-start: 1;
|
|
110
|
+
grid-column-end: -1;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
:--c-card--image-top {
|
|
114
|
+
/* Repeat many times, because element count is unknown */
|
|
115
|
+
grid-template-rows: repeat(10, min-content) var(--image-height);
|
|
116
|
+
}
|
|
117
|
+
:--c-card--image-top > img {
|
|
118
|
+
grid-row-start: 1;
|
|
119
|
+
margin-bottom: var(--global-space--pattern-pad);
|
|
120
|
+
}
|
|
121
|
+
:--c-card--image-bottom > :is(h1, h2, h3, h4, h5):first-of-type {
|
|
122
|
+
margin-top: unset; /* to avoid combining margin with image */
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
:--c-card--image-bottom {
|
|
126
|
+
/* Repeat many times, because element count is unknown */
|
|
127
|
+
grid-template-rows: var(--image-height) repeat(10, min-content);
|
|
128
|
+
}
|
|
129
|
+
:--c-card--image-bottom > img {
|
|
130
|
+
grid-row-end: -1;
|
|
131
|
+
margin-top: var(--global-space--pattern-pad);
|
|
132
|
+
}
|
|
133
|
+
:--c-card--image-bottom > p:last-of-type {
|
|
134
|
+
margin-bottom: unset; /* to avoid combining margin with image */
|
|
135
|
+
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
/* TODO: When Portal does not load core-styles.cms.css remove the :not(…) */
|
|
8
8
|
.card:not(:is(:--portal-content, .modal) *),
|
|
9
9
|
[class*="card--"];
|
|
10
|
+
|
|
10
11
|
@custom-selector :--c-card--standard
|
|
11
12
|
.c-card--standard,
|
|
12
13
|
.card--standard;
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
.c-card--standard-1,
|
|
24
25
|
.c-card--standard-2,
|
|
25
26
|
.c-card--standard-3;
|
|
27
|
+
|
|
26
28
|
@custom-selector :--c-card--plain
|
|
27
29
|
.c-card--plain,
|
|
28
30
|
.card--plain,
|
|
@@ -33,6 +35,18 @@
|
|
|
33
35
|
@custom-selector :--c-card--plain-hr-bottom
|
|
34
36
|
.c-card--plain-hr-bottom,
|
|
35
37
|
.card--plain-hr-bottom;
|
|
38
|
+
|
|
36
39
|
@custom-selector :--c-card--image
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
[class*="card--image-"];
|
|
41
|
+
@custom-selector :--c-card--image-top
|
|
42
|
+
.c-card--image-top,
|
|
43
|
+
.card--image-top;
|
|
44
|
+
@custom-selector :--c-card--image-bottom
|
|
45
|
+
.c-card--image-bottom,
|
|
46
|
+
.card--image-bottom;
|
|
47
|
+
@custom-selector :--c-card--image-left
|
|
48
|
+
.c-card--image-left,
|
|
49
|
+
.card--image-left;
|
|
50
|
+
@custom-selector :--c-card--image-right
|
|
51
|
+
.c-card--image-right,
|
|
52
|
+
.card--image-right;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
{{> @message
|
|
2
|
+
type=this.type
|
|
3
|
+
scope=this.scope
|
|
4
|
+
title=this.title
|
|
5
|
+
content=this.content
|
|
6
|
+
extra_content='<a href="#">Sample link.</a> And a <button class="c-button c-button--as-link">sample button as link</button>.'
|
|
7
|
+
}}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
</
|
|
1
|
+
{{> @message
|
|
2
|
+
tag="p"
|
|
3
|
+
content='This component is maintained simuiltaneously with <a href="../detail/c-form" target="_parent">C Form</code></a> and should look identical. Eventually, the two should have a single source of truth. To learn more, read <a href="https://confluence.tacc.utexas.edu/x/vJd9E" target="_blank">(Confluence) APCD - Form Markup & Styles</a>.'
|
|
4
|
+
}}
|
|
4
5
|
<div class="forms">
|
|
5
6
|
|
|
6
7
|
<h3 class="title">Title of Form</h3>
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
/* FAQ: Commented out because Core-CMS doc pages load these directly */
|
|
47
47
|
/* IMPORTANT: If CMS docs are moved to TACC-Docs, then kill these stylesheets */
|
|
48
48
|
/*
|
|
49
|
-
@import url("
|
|
50
|
-
@import url("
|
|
51
|
-
@import url("
|
|
52
|
-
@import url("
|
|
49
|
+
@import url("./trumps/s-document.css");
|
|
50
|
+
@import url("./trumps/s-guide-doc.css");
|
|
51
|
+
@import url("./trumps/s-inline-dl.css");
|
|
52
|
+
@import url("./trumps/u-nested-text-content.css");
|
|
53
53
|
*/
|
|
@@ -22,19 +22,23 @@
|
|
|
22
22
|
@import url("./elements/table.docs.css");
|
|
23
23
|
|
|
24
24
|
/* OBJECTS */
|
|
25
|
-
|
|
25
|
+
@import url("./objects/o-section.css");
|
|
26
|
+
@import url("./objects/o-section--docs.css");
|
|
26
27
|
|
|
27
28
|
/* COMPONENTS */
|
|
28
29
|
@import url("./components/pymdownx--tabbed.css");
|
|
29
30
|
@import url("./components/admonition.css");
|
|
30
31
|
@import url("./components/align.css");
|
|
32
|
+
@import url("./components/c-card.css");
|
|
33
|
+
@import url("./components/c-card--from-tup-cms.css");
|
|
34
|
+
@import url("./components/c-card--docs.css");
|
|
31
35
|
@import url("./components/tacc-docs.css");
|
|
32
36
|
|
|
33
37
|
/* TRUMPS */
|
|
34
38
|
/* These styles from Core-CMS doc pages might be useful */
|
|
35
39
|
/*
|
|
36
|
-
@import url("
|
|
37
|
-
@import url("
|
|
38
|
-
@import url("
|
|
39
|
-
@import url("
|
|
40
|
+
@import url("./trumps/s-document.css");
|
|
41
|
+
@import url("./trumps/s-guide-doc.css");
|
|
42
|
+
@import url("./trumps/s-inline-dl.css");
|
|
43
|
+
@import url("./trumps/u-nested-text-content.css");
|
|
40
44
|
*/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--header-text-color: var(--global-color-primary--xx-light);
|
|
3
|
+
--header-bkgd-color: var(--global-color-primary--xx-dark);
|
|
4
|
+
--header-minor-border-color: var(--global-color-primary--normal);
|
|
5
|
+
/* To "hide" border by setting its color to match background color */
|
|
6
|
+
--header-major-border-color: var(--header-bkgd-color);
|
|
7
|
+
--header-search-brdr-color: var(--global-color-primary--dark);
|
|
8
|
+
--header-search-bkgd-color: #313131;
|
|
9
|
+
/* To set the Bootstrap navbar-toggler-icon svg color for current theme */
|
|
10
|
+
--menu-toggle-icon: none;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--header-text-color: var(--global-color-primary--x-dark);
|
|
3
|
+
--header-bkgd-color: var(--global-color-primary--x-light);
|
|
4
|
+
--header-minor-border-color: var(--global-color-primary--normal);
|
|
5
|
+
/* To "show" border between only the light header and content below it */
|
|
6
|
+
--header-major-border-color: var(--global-color-primary--normal);
|
|
7
|
+
--header-search-brdr-color: #D8D8D8;
|
|
8
|
+
--header-search-bkgd-color: var(--global-color-primary--xx-light);
|
|
9
|
+
/* To set the Bootstrap navbar-toggler-icon svg color for current theme */
|
|
10
|
+
--menu-toggle-icon: invert(100%);
|
|
11
|
+
}
|
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
@import url("../tools/x-figure.css");
|
|
3
3
|
@import url("../tools/x-blockquote.css");
|
|
4
4
|
|
|
5
|
-
/* To scope these styles to main content (i.e. not header, not navbar) */
|
|
6
|
-
:--main-content {
|
|
7
|
-
font-size: var(--global-font-size--medium);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
5
|
/* To style elements that have captions */
|
|
11
6
|
figure { @extend .x-figure; }
|
|
12
7
|
figcaption { @extend .x-figure-caption; }
|
|
@@ -62,7 +62,9 @@ tr:nth-child(even) :is(th, td),
|
|
|
62
62
|
line-height: var(--cell-line-height);
|
|
63
63
|
}
|
|
64
64
|
/* To pin first column to left of table even during scroll */
|
|
65
|
-
/* WARNING: Design
|
|
65
|
+
/* WARNING: Design does NOT approve this */
|
|
66
|
+
/* TODO: Replace with APCD-CMS "responsive-data-tables" solution */
|
|
67
|
+
/* 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 */
|
|
66
68
|
:is(th, td):first-child {
|
|
67
69
|
position: sticky;
|
|
68
70
|
left: 0;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{{> @message
|
|
2
|
+
tag="p"
|
|
3
|
+
content="The <code>o-section--has-border</code> feature will be made available for all clients in the future."
|
|
4
|
+
}}
|
|
5
|
+
<section class="o-section o-section--style-light o-section--has-border">
|
|
6
|
+
<h2>Section (Style Light, Has Border)</h2>
|
|
7
|
+
<p>{{> @text-of-one-paragraph-with-actions }}</p>
|
|
8
|
+
</section>
|
|
9
|
+
<section class="o-section o-section--style-muted o-section--has-border">
|
|
10
|
+
<h2>Section (Style Muted, Has Border)</h2>
|
|
11
|
+
<p>{{> @text-of-one-paragraph-with-actions }}</p>
|
|
12
|
+
</section>
|
|
13
|
+
<section class="o-section o-section--style-light o-section--has-border">
|
|
14
|
+
<h2>Section (Style Light, Has Border)</h2>
|
|
15
|
+
<p>{{> @text-of-one-paragraph-with-actions }}</p>
|
|
16
|
+
</section>
|
|
17
|
+
<section class="o-section o-section--style-muted o-section--has-border">
|
|
18
|
+
<h2>Section (Style Muted, Has Border)</h2>
|
|
19
|
+
<p>{{> @text-of-one-paragraph-with-actions }}</p>
|
|
20
|
+
</section>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Adds one fix and one feature to [default sections]({{path './o-section' }}):
|
|
2
|
+
|
|
3
|
+
- Ensures section background is wide enough on "god-wide" viewports.
|
|
4
|
+
- Adds border modifier:
|
|
5
|
+
|
|
6
|
+
| Class (Std.) | Class (Alt.) | Description
|
|
7
|
+
| - | - | - |
|
|
8
|
+
| `.o-section--has-border` | `.section--border` | add top and bottom border
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@import url("./o-section.selectors.css");
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
/* To fix section background on god-wide screens */
|
|
6
|
+
/* CAVEAT: This just pushes the problem to even wider screens */
|
|
7
|
+
:--o-section--muted {
|
|
8
|
+
/* FAQ: Mimics Core-Styles except changes any "50" to "25" */
|
|
9
|
+
--box-shadow--fake-bkgd:
|
|
10
|
+
25vw 0 var(--color--bkgd), -25vw 0 var(--color--bkgd);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
/* To add border to .o-section's */
|
|
16
|
+
:--o-section--border {
|
|
17
|
+
--border-width: var(--global-border-width--normal);
|
|
18
|
+
--border-width-neg: calc( -1 * var(--border-width) );
|
|
19
|
+
--border-color: var(--global-color-primary--dark);
|
|
20
|
+
|
|
21
|
+
--line-top:
|
|
22
|
+
0 var(--border-width-neg) var(--border-color);
|
|
23
|
+
--line-top-left:
|
|
24
|
+
-25vw var(--border-width-neg) var(--border-color);
|
|
25
|
+
--line-top-right:
|
|
26
|
+
25vw var(--border-width-neg) var(--border-color);
|
|
27
|
+
|
|
28
|
+
--line-bottom:
|
|
29
|
+
0 var(--border-width) var(--border-color);
|
|
30
|
+
--line-bottom-left:
|
|
31
|
+
-25vw var(--border-width) var(--border-color);
|
|
32
|
+
--line-bottom-right:
|
|
33
|
+
25vw var(--border-width) var(--border-color);
|
|
34
|
+
|
|
35
|
+
--fake-bkgd: var(--box-shadow--fake-bkgd); /* from core-styles o-section */
|
|
36
|
+
|
|
37
|
+
box-shadow:
|
|
38
|
+
var(--fake-bkgd),
|
|
39
|
+
var(--line-top),
|
|
40
|
+
var(--line-top-left),
|
|
41
|
+
var(--line-top-right),
|
|
42
|
+
var(--line-bottom),
|
|
43
|
+
var(--line-bottom-left),
|
|
44
|
+
var(--line-bottom-right);
|
|
45
|
+
}
|
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
</div>
|
|
4
4
|
{{#> @partial-block}}
|
|
5
5
|
<div>
|
|
6
|
-
|
|
6
|
+
{{> @message
|
|
7
|
+
tag="p"
|
|
8
|
+
type="info"
|
|
9
|
+
scope="section"
|
|
10
|
+
content="To render a table, choose a modifier class from the navigation panel."
|
|
11
|
+
}}
|
|
7
12
|
</div>
|
|
8
13
|
{{/@partial-block}}
|
|
9
14
|
<div>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{{#if shouldShowSizeMessage}}
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
</
|
|
2
|
+
{{> @message
|
|
3
|
+
tag="p"
|
|
4
|
+
content='There are currently <em><strong>no</strong> default font sizes <strong>nor</strong> default font families</em>. A client must load <strong>CMS</strong> styles or <strong>Portal</strong> styles or their own custom font sizes.'
|
|
5
|
+
}}
|
|
5
6
|
{{/if}}
|
|
6
7
|
<dl>
|
|
7
8
|
<dt>Family</dt>
|
|
@@ -36,7 +36,7 @@ Styleguide Trumps.Scopes.Header
|
|
|
36
36
|
-moz-osx-font-smoothing: grayscale;
|
|
37
37
|
|
|
38
38
|
/* To hide border, set this in theme to match `--header-bkgd-color` value */
|
|
39
|
-
border-bottom: 1px solid
|
|
39
|
+
border-bottom: 1px solid var(--header-major-border-color);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/* Affiliation */
|
|
@@ -52,7 +52,7 @@ Styleguide Trumps.Scopes.Header
|
|
|
52
52
|
margin-right: 16px; /* NO-R/EM: 1rem (from Bootstrap via `.navbar-brand`) */
|
|
53
53
|
padding: 0;
|
|
54
54
|
|
|
55
|
-
color:
|
|
55
|
+
color: var(--header-text-color);
|
|
56
56
|
/* text-decoration: none; */ /* already provided by Bootstrap */
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -74,7 +74,7 @@ Styleguide Trumps.Scopes.Header
|
|
|
74
74
|
--nav-padding-vert: 5px;
|
|
75
75
|
--nav-padding-horz: calc(16px + 20px);
|
|
76
76
|
|
|
77
|
-
background-color:
|
|
77
|
+
background-color: var(--header-bkgd-color);
|
|
78
78
|
padding: var(--nav-padding-vert) var(--nav-padding-horz);
|
|
79
79
|
}
|
|
80
80
|
|
|
@@ -109,7 +109,7 @@ Styleguide Trumps.Scopes.Header
|
|
|
109
109
|
#s-header .nav-link,
|
|
110
110
|
/* HACK: Support `span.nav-link` having children `a` and `a.dropdown-toggle-split` */
|
|
111
111
|
#s-header .nav-link > a {
|
|
112
|
-
color:
|
|
112
|
+
color: var(--header-text-color);
|
|
113
113
|
/* text-decoration: none; */ /* already provided by Bootstrap */
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -129,7 +129,7 @@ Styleguide Trumps.Scopes.Header
|
|
|
129
129
|
/* Create a line between search bar and login */
|
|
130
130
|
/* FAQ: The line should only exist if both elements are present */
|
|
131
131
|
.s-header .s-search-bar ~ .s-portal-nav {
|
|
132
|
-
border-left: 1px solid
|
|
132
|
+
border-left: 1px solid var(--header-minor-border-color);
|
|
133
133
|
|
|
134
134
|
margin-left: 12px;
|
|
135
135
|
}
|
|
@@ -154,29 +154,44 @@ Styleguide Trumps.Scopes.Header
|
|
|
154
154
|
/* This will eventually be superceded by GH-101. */
|
|
155
155
|
|
|
156
156
|
/* For black icons:
|
|
157
|
-
- create a
|
|
157
|
+
- create a rule set like this in s-header.css
|
|
158
|
+
(where `--custom-property` is a relevant name):
|
|
159
|
+
|
|
160
|
+
```css
|
|
158
161
|
.selector-target {
|
|
159
|
-
filter:
|
|
162
|
+
filter: var(--custom-property);
|
|
160
163
|
};
|
|
161
|
-
|
|
162
|
-
|
|
164
|
+
```
|
|
165
|
+
- reset the custom property value in a project stylesheet to inverted value:
|
|
166
|
+
|
|
167
|
+
```css
|
|
168
|
+
.selector-target {
|
|
163
169
|
...
|
|
164
|
-
"--
|
|
170
|
+
"--custom-property": "invert(100%)"
|
|
165
171
|
}
|
|
172
|
+
```
|
|
166
173
|
*/
|
|
167
174
|
|
|
168
175
|
/* For themed icons using a color:
|
|
169
|
-
- create a
|
|
176
|
+
- create a rule set like this in s-header.css
|
|
177
|
+
(where `--custom-property` is a relevant name):
|
|
178
|
+
|
|
179
|
+
```css
|
|
170
180
|
.selector-target {
|
|
171
181
|
mix-blend-mode: "overlay";
|
|
172
|
-
filter:
|
|
182
|
+
filter: var(--custom-property);
|
|
173
183
|
};
|
|
174
|
-
|
|
175
|
-
|
|
184
|
+
```
|
|
185
|
+
- reset the custom property value in a project stylesheet to desired color:
|
|
186
|
+
|
|
187
|
+
```css
|
|
188
|
+
.selector-target {
|
|
176
189
|
...
|
|
177
|
-
"--
|
|
178
|
-
}
|
|
190
|
+
"--custom-property": "#ABCDEF"
|
|
191
|
+
}
|
|
192
|
+
```
|
|
193
|
+
*/
|
|
179
194
|
|
|
180
195
|
.navbar-toggler-icon {
|
|
181
|
-
filter:
|
|
196
|
+
filter: var(--menu-toggle-icon);
|
|
182
197
|
}
|
|
@@ -72,7 +72,7 @@ Styleguide Scopes.SearchBar
|
|
|
72
72
|
background-color: transparent;
|
|
73
73
|
border: none;
|
|
74
74
|
|
|
75
|
-
color:
|
|
75
|
+
color: var(--header-text-color);
|
|
76
76
|
font-size: var(--button-font-size);
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -95,14 +95,14 @@ Styleguide Scopes.SearchBar
|
|
|
95
95
|
);
|
|
96
96
|
padding-right: var(--input-horz-pad);
|
|
97
97
|
|
|
98
|
-
background-color:
|
|
99
|
-
border: var(--global-border-width--normal) solid
|
|
98
|
+
background-color: var(--header-search-bkgd-color);
|
|
99
|
+
border: var(--global-border-width--normal) solid var(--header-search-brdr-color);
|
|
100
100
|
border-radius: 5px;
|
|
101
101
|
|
|
102
|
-
color:
|
|
102
|
+
color: var(--header-text-color);
|
|
103
103
|
font-size: var(--input-font-size);
|
|
104
104
|
}
|
|
105
105
|
:host [part="input"]::placeholder {
|
|
106
|
-
color:
|
|
106
|
+
color: var(--header-text-color);
|
|
107
107
|
opacity: 0.5;
|
|
108
108
|
}
|
package/src/lib/_themes/TODO.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"//": "Metadata for humans",
|
|
3
|
-
"format": "https://github.com/csstools/postcss-preset-env#importfrom",
|
|
4
|
-
"name": "default",
|
|
5
|
-
|
|
6
|
-
"environment-variables": {
|
|
7
|
-
"// CMS": "",
|
|
8
|
-
"--cms-toolbar-height": "46px",
|
|
9
|
-
|
|
10
|
-
"// HEADER": "",
|
|
11
|
-
"--header-text-color": "var(--global-color-primary--xx-light)",
|
|
12
|
-
"--header-bkgd-color": "var(--global-color-primary--xx-dark)",
|
|
13
|
-
"--header-minor-border-color": "var(--global-color-primary--normal)",
|
|
14
|
-
"// To 'hide' border by setting its color to match background color": "",
|
|
15
|
-
"--header-major-border-color": "var(--global-color-primary--xx-dark)",
|
|
16
|
-
"--header-search-brdr-color": "var(--global-color-primary--dark)",
|
|
17
|
-
"--header-search-bkgd-color": "#313131",
|
|
18
|
-
"// To set the bootstrap navbar-toggler-icon svg color for current theme": "",
|
|
19
|
-
"--menu-toggle-icon": "none"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"//": "Metadata for humans",
|
|
3
|
-
"format": "https://github.com/csstools/postcss-preset-env#importfrom",
|
|
4
|
-
"name": "has-dark-logo",
|
|
5
|
-
|
|
6
|
-
"environment-variables": {
|
|
7
|
-
"// CMS": "",
|
|
8
|
-
"--cms-toolbar-height": "46px",
|
|
9
|
-
|
|
10
|
-
"// HEADER": "",
|
|
11
|
-
"--header-text-color": "var(--global-color-primary--x-dark)",
|
|
12
|
-
"--header-bkgd-color": "var(--global-color-primary--x-light)",
|
|
13
|
-
"--header-minor-border-color": "var(--global-color-primary--normal)",
|
|
14
|
-
"// To show border between only the light header and content below it": "",
|
|
15
|
-
"--header-major-border-color": "var(--global-color-primary--normal)",
|
|
16
|
-
"--header-search-brdr-color": "#D8D8D8",
|
|
17
|
-
"--header-search-bkgd-color": "var(--global-color-primary--xx-light)",
|
|
18
|
-
"// To set the bootstrap navbar-toggler-icon svg color for current theme": "",
|
|
19
|
-
"--menu-toggle-icon": "invert(100%)"
|
|
20
|
-
}
|
|
21
|
-
}
|