@tacc/core-styles 2.7.0 → 2.9.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 +9 -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 -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-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 +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 +2 -2
- package/dist/core-styles.portal.css +1 -1
- package/dist/core-styles.settings.css +2 -2
- 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 +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.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 -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--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-image-grid.css +1 -0
- 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/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/package.json +1 -3
- package/src/.postcssrc.base.yml +0 -5
- package/src/lib/_imports/_partials/figure.hbs +7 -10
- package/src/lib/_imports/_partials/img-url.hbs +31 -0
- package/src/lib/_imports/_partials/img.hbs +1 -1
- package/src/lib/_imports/components/c-card.css +0 -2
- package/src/lib/_imports/core-styles.cms.css +4 -4
- package/src/lib/_imports/core-styles.docs.css +4 -4
- 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/table--basic.css +3 -1
- package/src/lib/_imports/objects/o-grid.css +5 -5
- package/src/lib/_imports/settings/border.css +3 -0
- package/src/lib/_imports/settings/space.css +4 -1
- package/src/lib/_imports/tools/x-article-link.css +1 -1
- package/src/lib/_imports/tools/x-grid.css +48 -16
- package/src/lib/_imports/tools/x-truncate.css +8 -8
- package/src/lib/_imports/trumps/s-header.css +32 -17
- package/src/lib/_imports/trumps/s-image-grid/config.yml +4 -0
- package/src/lib/_imports/trumps/s-image-grid/readme.md +12 -0
- package/src/lib/_imports/trumps/s-image-grid/s-image-grid.hbs +145 -0
- package/src/lib/_imports/trumps/s-image-grid.css +45 -0
- 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
|
@@ -13,6 +13,7 @@ Reference:
|
|
|
13
13
|
%x-grid--layout-rows-equal-set-height - Same height rows, default var. height (custom properties: `--height`)
|
|
14
14
|
%x-grid--layout-cols-equal-set-count - Same width columns, auto. column count (custom properties: `--count`)
|
|
15
15
|
%x-grid--layout-cols-equal-min-width - Same width columns, default min. width (custom properties: `--width`)
|
|
16
|
+
%x-grid--layout-cols-equal-min-width-max-count - Same width columns, default min. width, max. column count (custom properties: `--min-width`, `--max-cols`, `--row-height`, `--gap`)
|
|
16
17
|
%x-grid--content-align-center - Align content vert.ly and horz.ly center
|
|
17
18
|
|
|
18
19
|
Styleguide Tools.ExtendsAndMixins.Grid
|
|
@@ -30,7 +31,8 @@ Styleguide Tools.ExtendsAndMixins.Grid
|
|
|
30
31
|
|
|
31
32
|
/* Layout: Columns: Same Width, Preset Col. Count */
|
|
32
33
|
|
|
33
|
-
%x-grid--layout-cols-equal-set-count
|
|
34
|
+
%x-grid--layout-cols-equal-set-count, /* DEPRECATED */
|
|
35
|
+
.x-grid--layout-cols-equal-set-count {
|
|
34
36
|
/* --count */
|
|
35
37
|
|
|
36
38
|
grid-template-columns: repeat(var(--count), auto);
|
|
@@ -38,16 +40,48 @@ Styleguide Tools.ExtendsAndMixins.Grid
|
|
|
38
40
|
|
|
39
41
|
/* Layout: Columns: Same Width, Preset Min. Width */
|
|
40
42
|
|
|
41
|
-
%x-grid--layout-cols-equal-min-width
|
|
43
|
+
%x-grid--layout-cols-equal-min-width, /* DEPRECATED */
|
|
44
|
+
.x-grid--layout-cols-equal-min-width {
|
|
42
45
|
/* --width */
|
|
43
46
|
|
|
44
47
|
grid-template-columns: repeat(auto-fit, minmax(var(--width), 1fr));
|
|
45
48
|
}
|
|
46
|
-
/* Suggestion for User:
|
|
49
|
+
/* Suggestion for User: Avoid content overflow */
|
|
47
50
|
/*
|
|
48
51
|
.x-grid--layout-cols-equal-min-width > * {
|
|
49
|
-
max-width: 100%; \/*
|
|
50
|
-
max-height: 100%; \/*
|
|
52
|
+
max-width: 100%; \/* effectual if cell width is smaller than content *\/
|
|
53
|
+
max-height: 100%; \/* effectual if cell height is smaller than content *\/
|
|
54
|
+
}
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
/* Layout: Columns: Same Width, Preset Col. Count, Preset Min. Width */
|
|
58
|
+
/* https://css-tricks.com/an-auto-filling-css-grid-with-max-columns/ */
|
|
59
|
+
/* TODO: Replace `x-grid--layout-cols-equal-min-width` with this */
|
|
60
|
+
|
|
61
|
+
.x-grid--layout-cols-equal-min-width-max-count {
|
|
62
|
+
/* input */
|
|
63
|
+
--gap: var(--global-space--grid-gap);
|
|
64
|
+
--max-cols: 7;
|
|
65
|
+
--min-width: 250px;
|
|
66
|
+
--row-height: auto;
|
|
67
|
+
/* auto (row height match tallest content in only that row) */
|
|
68
|
+
/* 1fr (row height match tallest content of entire grid) */
|
|
69
|
+
|
|
70
|
+
/* calculated */
|
|
71
|
+
--gap-count: calc(var(--max-cols) - 1);
|
|
72
|
+
--total-gap-width: calc(var(--gap-count) * var(--gap));
|
|
73
|
+
--max-width: calc( ( 100% - var(--total-gap-width) ) / var(--max-cols));
|
|
74
|
+
|
|
75
|
+
display: grid;
|
|
76
|
+
gap: var(--gap);
|
|
77
|
+
grid-template-columns: repeat(auto-fill, minmax(max(var(--min-width), var(--max-width)), 1fr));
|
|
78
|
+
grid-auto-rows: var(--row-height);
|
|
79
|
+
}
|
|
80
|
+
/* Suggestion for User: Avoid content overflow */
|
|
81
|
+
/*
|
|
82
|
+
.x-grid--layout-cols-equal-min-width-max-count > * {
|
|
83
|
+
max-width: 100%; \/* effectual if cell width is smaller than content *\/
|
|
84
|
+
max-height: 100%; \/* effectual if cell height is smaller than content *\/
|
|
51
85
|
}
|
|
52
86
|
*/
|
|
53
87
|
|
|
@@ -57,13 +91,15 @@ Styleguide Tools.ExtendsAndMixins.Grid
|
|
|
57
91
|
|
|
58
92
|
/* Layout: Rows: Same Height (equal to height of tallest content in grid) */
|
|
59
93
|
|
|
60
|
-
%x-grid--layout-rows-equal-max-height
|
|
94
|
+
%x-grid--layout-rows-equal-max-height, /* DEPRECATED */
|
|
95
|
+
.x-grid--layout-rows-equal-max-height {
|
|
61
96
|
grid-auto-rows: 1fr;
|
|
62
97
|
}
|
|
63
98
|
|
|
64
99
|
/* Layout: Rows: Same Height (equal to default, variable value) */
|
|
65
100
|
|
|
66
|
-
%x-grid--layout-rows-equal-set-height
|
|
101
|
+
%x-grid--layout-rows-equal-set-height, /* DEPRECATED */
|
|
102
|
+
.x-grid--layout-rows-equal-set-height {
|
|
67
103
|
/* --height */
|
|
68
104
|
|
|
69
105
|
grid-auto-rows: var(--height);
|
|
@@ -79,7 +115,8 @@ Styleguide Tools.ExtendsAndMixins.Grid
|
|
|
79
115
|
|
|
80
116
|
/* Content: Align Vert/Horz Center */
|
|
81
117
|
|
|
82
|
-
%x-grid--content-align-center
|
|
118
|
+
%x-grid--content-align-center, /* DEPRECATED */
|
|
119
|
+
.x-grid--content-align-center {
|
|
83
120
|
justify-items: center;
|
|
84
121
|
align-items: center;
|
|
85
122
|
}
|
|
@@ -99,17 +136,12 @@ Styleguide Tools.ExtendsAndMixins.Grid
|
|
|
99
136
|
}
|
|
100
137
|
|
|
101
138
|
.user-block--modifier {
|
|
102
|
-
@extend
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
\/* Hide content that does exceed cell size *\/
|
|
106
|
-
.user-block > * {
|
|
107
|
-
overflow: hidden;
|
|
139
|
+
@extend .x-grid--...;
|
|
108
140
|
}
|
|
109
141
|
|
|
110
|
-
\/* Avoid leting
|
|
142
|
+
\/* Avoid leting content size (e.g. image) exceed cell size *\/
|
|
111
143
|
\/* FAQ: An intentionally loose limitation (so user can choose to ignore it) *\/
|
|
112
|
-
.user-block
|
|
144
|
+
.user-block * {
|
|
113
145
|
max-height: 100%;
|
|
114
146
|
max-width: 100%;
|
|
115
147
|
}
|
|
@@ -14,8 +14,8 @@ Styleguide Tools.ExtendsAndMixins.Truncate
|
|
|
14
14
|
/* Many Lines */
|
|
15
15
|
/* WARNING: Relies on proprietary and undocumented rules (that work well) */
|
|
16
16
|
|
|
17
|
-
.x-truncate--many-lines,
|
|
18
|
-
%x-truncate--many-lines {
|
|
17
|
+
.x-truncate--many-lines,
|
|
18
|
+
%x-truncate--many-lines /* DEPRECATED */ {
|
|
19
19
|
--lines: 2;
|
|
20
20
|
|
|
21
21
|
display: -webkit-box;
|
|
@@ -24,23 +24,23 @@ Styleguide Tools.ExtendsAndMixins.Truncate
|
|
|
24
24
|
overflow: hidden;
|
|
25
25
|
-webkit-line-clamp: var(--lines);
|
|
26
26
|
}
|
|
27
|
-
.x-untruncate--many-lines,
|
|
28
|
-
%x-untruncate--many-lines {
|
|
27
|
+
.x-untruncate--many-lines,
|
|
28
|
+
%x-untruncate--many-lines /* DEPRECATED */ {
|
|
29
29
|
overflow: visible;
|
|
30
30
|
-webkit-line-clamp: inherit;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/* One Line */
|
|
34
34
|
|
|
35
|
-
.x-truncate--one-line,
|
|
36
|
-
%x-truncate--one-line {
|
|
35
|
+
.x-truncate--one-line,
|
|
36
|
+
%x-truncate--one-line /* DEPRECATED */ {
|
|
37
37
|
text-overflow: var(--text-overflow, ellipsis);
|
|
38
38
|
|
|
39
39
|
overflow: hidden;
|
|
40
40
|
white-space: nowrap;
|
|
41
41
|
}
|
|
42
|
-
.x-untruncate--one-line,
|
|
43
|
-
%x-untruncate--one-line {
|
|
42
|
+
.x-untruncate--one-line,
|
|
43
|
+
%x-untruncate--one-line /* DEPRECATED */ {
|
|
44
44
|
overflow: visible;
|
|
45
45
|
white-space: normal;
|
|
46
46
|
}
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
A block or list of links that each have an image.
|
|
2
|
+
|
|
3
|
+
The grid supports, without change to layout:
|
|
4
|
+
|
|
5
|
+
- large and small images
|
|
6
|
+
- markup with or without `<ul>` and `<li>`'s
|
|
7
|
+
|
|
8
|
+
The grid supports user input to change layout:
|
|
9
|
+
|
|
10
|
+
- `--row-height`: row height (hint: `1fr` gives equal-height rows)
|
|
11
|
+
- `--min-width`: minimum width (the smallest width for an image)
|
|
12
|
+
- `--max-cols`: maximum columns (the maximum number of columns)
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
<dl>
|
|
2
|
+
<dt>
|
|
3
|
+
Images Use Full-Size URLs<br />
|
|
4
|
+
<small><ul>
|
|
5
|
+
<li>images are larger, so (by default) row height will be taller</li>
|
|
6
|
+
<li>link <code>href</code> matches image </code>src</code> (not sensible, but usage via a cms plugin create such markup if a user does not add links)</li>
|
|
7
|
+
</ul></small>
|
|
8
|
+
</dt>
|
|
9
|
+
<dd>
|
|
10
|
+
<div class="s-image-grid s-image-grid--links-are-automatic">
|
|
11
|
+
<a href="{{> @img-url large=true }}" target="_blank">
|
|
12
|
+
{{> @img large=true }}
|
|
13
|
+
</a>
|
|
14
|
+
<a href="{{> @img-url large=true wide=true }}" target="_blank">
|
|
15
|
+
{{> @img large=true wide=true }}
|
|
16
|
+
</a>
|
|
17
|
+
<a href="{{> @img-url large=true tall=true }}" target="_blank">
|
|
18
|
+
{{> @img large=true tall=true }}
|
|
19
|
+
</a>
|
|
20
|
+
<a href="{{> @img-url large=true }}" target="_blank">
|
|
21
|
+
{{> @img large=true }}
|
|
22
|
+
</a>
|
|
23
|
+
<a href="{{> @img-url large=true wide=true }}" target="_blank">
|
|
24
|
+
{{> @img large=true wide=true }}
|
|
25
|
+
</a>
|
|
26
|
+
<a href="{{> @img-url large=true }}" target="_blank">
|
|
27
|
+
{{> @img large=true }}
|
|
28
|
+
</a>
|
|
29
|
+
<a href="{{> @img-url large=true wide=true }}" target="_blank">
|
|
30
|
+
{{> @img large=true wide=true }}
|
|
31
|
+
</a>
|
|
32
|
+
<a href="{{> @img-url large=true }}" target="_blank">
|
|
33
|
+
{{> @img large=true }}
|
|
34
|
+
</a>
|
|
35
|
+
<a href="{{> @img-url large=true wide=true }}" target="_blank">
|
|
36
|
+
{{> @img large=true wide=true }}
|
|
37
|
+
</a>
|
|
38
|
+
<a href="{{> @img-url large=true tall=true }}" target="_blank">
|
|
39
|
+
{{> @img large=true tall=true }}
|
|
40
|
+
</a>
|
|
41
|
+
</div>
|
|
42
|
+
</dd>
|
|
43
|
+
<dt>
|
|
44
|
+
Images Use Thumbnail URLs<br />
|
|
45
|
+
<small><ul>
|
|
46
|
+
<li>images are smaller, so (by default) row height will be shorter</li>
|
|
47
|
+
<li>link <code>href</code> is to a larger-size image than the image </code>src</code> (expected markup)</li>
|
|
48
|
+
</ul></small>
|
|
49
|
+
</dt>
|
|
50
|
+
<dd>
|
|
51
|
+
<div class="s-image-grid s-image-grid--links-are-manual">
|
|
52
|
+
<a href="{{> @img-url large=true }}" target="_blank">
|
|
53
|
+
{{> @img }}
|
|
54
|
+
</a>
|
|
55
|
+
<a href="{{> @img-url large=true wide=true }}" target="_blank">
|
|
56
|
+
{{> @img wide=true }}
|
|
57
|
+
</a>
|
|
58
|
+
<a href="{{> @img-url large=true tall=true }}" target="_blank">
|
|
59
|
+
{{> @img tall=true }}
|
|
60
|
+
</a>
|
|
61
|
+
<a href="{{> @img-url large=true }}" target="_blank">
|
|
62
|
+
{{> @img }}
|
|
63
|
+
</a>
|
|
64
|
+
<a href="{{> @img-url large=true wide=true }}" target="_blank">
|
|
65
|
+
{{> @img wide=true }}
|
|
66
|
+
</a>
|
|
67
|
+
<a href="{{> @img-url large=true }}" target="_blank">
|
|
68
|
+
{{> @img }}
|
|
69
|
+
</a>
|
|
70
|
+
<a href="{{> @img-url large=true wide=true }}" target="_blank">
|
|
71
|
+
{{> @img wide=true }}
|
|
72
|
+
</a>
|
|
73
|
+
<a href="{{> @img-url large=true }}" target="_blank">
|
|
74
|
+
{{> @img }}
|
|
75
|
+
</a>
|
|
76
|
+
<a href="{{> @img-url large=true wide=true }}" target="_blank">
|
|
77
|
+
{{> @img wide=true }}
|
|
78
|
+
</a>
|
|
79
|
+
<a href="{{> @img-url large=true tall=true }}" target="_blank">
|
|
80
|
+
{{> @img tall=true }}
|
|
81
|
+
</a>
|
|
82
|
+
</div>
|
|
83
|
+
</dd>
|
|
84
|
+
<dt>
|
|
85
|
+
Grid is a List<br />
|
|
86
|
+
<small><ul>
|
|
87
|
+
<li>this grid should look identical to "Images Use Thumbnail URLs"</li>
|
|
88
|
+
<li>the markup is different, though (this uses <ul> and <li>'s)</li>
|
|
89
|
+
</ul></small>
|
|
90
|
+
</dt>
|
|
91
|
+
<dd>
|
|
92
|
+
<ul class="s-image-grid s-image-grid--links-are-manual">
|
|
93
|
+
<li>
|
|
94
|
+
<a href="{{> @img-url large=true }}" target="_blank">
|
|
95
|
+
{{> @img }}
|
|
96
|
+
</a>
|
|
97
|
+
</li>
|
|
98
|
+
<li>
|
|
99
|
+
<a href="{{> @img-url large=true wide=true }}" target="_blank">
|
|
100
|
+
{{> @img wide=true }}
|
|
101
|
+
</a>
|
|
102
|
+
</li>
|
|
103
|
+
<li>
|
|
104
|
+
<a href="{{> @img-url large=true tall=true }}" target="_blank">
|
|
105
|
+
{{> @img tall=true }}
|
|
106
|
+
</a>
|
|
107
|
+
</li>
|
|
108
|
+
<li>
|
|
109
|
+
<a href="{{> @img-url large=true }}" target="_blank">
|
|
110
|
+
{{> @img }}
|
|
111
|
+
</a>
|
|
112
|
+
</li>
|
|
113
|
+
<li>
|
|
114
|
+
<a href="{{> @img-url large=true wide=true }}" target="_blank">
|
|
115
|
+
{{> @img large=true wide=true }}
|
|
116
|
+
</a>
|
|
117
|
+
</li>
|
|
118
|
+
<li>
|
|
119
|
+
<a href="{{> @img-url large=true }}" target="_blank">
|
|
120
|
+
{{> @img }}
|
|
121
|
+
</a>
|
|
122
|
+
</li>
|
|
123
|
+
<li>
|
|
124
|
+
<a href="{{> @img-url large=true wide=true }}" target="_blank">
|
|
125
|
+
{{> @img wide=true }}
|
|
126
|
+
</a>
|
|
127
|
+
</li>
|
|
128
|
+
<li>
|
|
129
|
+
<a href="{{> @img-url large=true }}" target="_blank">
|
|
130
|
+
{{> @img }}
|
|
131
|
+
</a>
|
|
132
|
+
</li>
|
|
133
|
+
<li>
|
|
134
|
+
<a href="{{> @img-url large=true wide=true }}" target="_blank">
|
|
135
|
+
{{> @img wide=true }}
|
|
136
|
+
</a>
|
|
137
|
+
</li>
|
|
138
|
+
<li>
|
|
139
|
+
<a href="{{> @img-url large=true tall=true }}" target="_blank">
|
|
140
|
+
{{> @img tall=true }}
|
|
141
|
+
</a>
|
|
142
|
+
</li>
|
|
143
|
+
</ul>
|
|
144
|
+
</dd>
|
|
145
|
+
</dl>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@import url("../tools/x-grid.css");
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
/* Grid Layout */
|
|
6
|
+
|
|
7
|
+
.s-image-grid {
|
|
8
|
+
@extend .x-grid--layout-cols-equal-min-width-max-count;
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
--gap: var(--global-space--grid-gap);
|
|
12
|
+
--max-cols: 7;
|
|
13
|
+
--min-width: 250px;
|
|
14
|
+
--row-height: auto;
|
|
15
|
+
*/
|
|
16
|
+
}
|
|
17
|
+
.s-image-grid * {
|
|
18
|
+
max-width: 100%; /* effectual if cell width is smaller than content */
|
|
19
|
+
max-height: 100%; /* effectual if cell height is smaller than content */
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
/* List Layout */
|
|
25
|
+
|
|
26
|
+
ul.s-image-grid {
|
|
27
|
+
padding-inline-start: unset; /* undo browser styles */
|
|
28
|
+
margin-bottom: unset; /* undo core-styles.base.css */
|
|
29
|
+
}
|
|
30
|
+
ul.s-image-grid > li {
|
|
31
|
+
list-style: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
/* Image Layout */
|
|
37
|
+
|
|
38
|
+
.s-image-grid > a,
|
|
39
|
+
.s-image-grid > li,
|
|
40
|
+
.s-image-grid > li > a {
|
|
41
|
+
/* So image is horizontally centered */
|
|
42
|
+
align-items: center;
|
|
43
|
+
display: flex; /* FAQ: `grid` would allow overflow; `flex` does not */
|
|
44
|
+
justify-content: center;
|
|
45
|
+
}
|
|
@@ -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
|
-
}
|