@tacc/core-styles 0.5.1
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/.postcssrc.base.yml +48 -0
- package/README.md +244 -0
- package/bin/build.js +40 -0
- package/bin/config.js +90 -0
- package/bin/version.js +24 -0
- package/cli.js +77 -0
- package/dist/branding_logos.css +2 -0
- package/dist/components/README.css +1 -0
- package/dist/components/bootstrap.container.css +2 -0
- package/dist/components/bootstrap.figure.css +2 -0
- package/dist/components/bootstrap.pagination.css +2 -0
- package/dist/components/c-button.css +2 -0
- package/dist/components/c-callout.css +2 -0
- package/dist/components/c-card.css +2 -0
- package/dist/components/c-data-list.css +2 -0
- package/dist/components/c-footer.css +2 -0
- package/dist/components/c-image-map.css +2 -0
- package/dist/components/c-image-map.skin.css +1 -0
- package/dist/components/c-image-map.structure.css +2 -0
- package/dist/components/c-nav.css +2 -0
- package/dist/components/c-page.css +2 -0
- package/dist/components/c-recognition.css +2 -0
- package/dist/components/c-see-all-link.css +2 -0
- package/dist/components/c-show-more.css +2 -0
- package/dist/elements/README.css +1 -0
- package/dist/elements/figure.css +2 -0
- package/dist/elements/html-elements.css +2 -0
- package/dist/elements/tacc-search-bar.css +2 -0
- package/dist/generics/README.css +1 -0
- package/dist/objects/README.css +1 -0
- package/dist/objects/o-flex-item-table-wrap.css +2 -0
- package/dist/objects/o-grid.css +2 -0
- package/dist/objects/o-offset-content.css +2 -0
- package/dist/objects/o-section.css +2 -0
- package/dist/objects/o-site.css +2 -0
- package/dist/settings/README.css +1 -0
- package/dist/settings/border.css +2 -0
- package/dist/settings/color.css +2 -0
- package/dist/settings/font.css +2 -0
- package/dist/settings/max-width.css +2 -0
- package/dist/settings/space.css +2 -0
- package/dist/tools/README.css +1 -0
- package/dist/tools/media-queries.css +1 -0
- package/dist/tools/x-article-link.css +2 -0
- package/dist/tools/x-center.css +2 -0
- package/dist/tools/x-fake-border.css +2 -0
- package/dist/tools/x-grid.css +1 -0
- package/dist/tools/x-layout.css +2 -0
- package/dist/tools/x-overlay.css +1 -0
- package/dist/tools/x-truncate.css +2 -0
- package/dist/trumps/README.css +1 -0
- package/dist/trumps/icon.css +2 -0
- package/dist/trumps/icon.fonts.css +2 -0
- package/dist/trumps/s-article-list.css +2 -0
- package/dist/trumps/s-article-preview.css +2 -0
- package/dist/trumps/s-blockquote.css +2 -0
- package/dist/trumps/s-breadcrumbs.css +2 -0
- package/dist/trumps/s-cms-nav.css +1 -0
- package/dist/trumps/s-document.css +2 -0
- package/dist/trumps/s-footer.css +2 -0
- package/dist/trumps/s-guide-doc.css +2 -0
- package/dist/trumps/s-header.css +2 -0
- package/dist/trumps/s-inline-dl.css +2 -0
- package/dist/trumps/s-portal-nav.css +2 -0
- package/dist/trumps/s-style-guide.css +2 -0
- package/dist/trumps/s-system-specs.css +2 -0
- package/dist/trumps/tacc-search-bar.css +2 -0
- package/dist/trumps/u-empty.css +1 -0
- package/dist/trumps/u-hide.css +2 -0
- package/dist/trumps/u-nested-text-content.css +2 -0
- package/index.js +45 -0
- package/package.json +49 -0
- package/source/README.md +8 -0
- package/source/_imports/README.md +47 -0
- package/source/_imports/branding_logos.css +73 -0
- package/source/_imports/components/README.css +26 -0
- package/source/_imports/components/bootstrap.container.css +23 -0
- package/source/_imports/components/bootstrap.figure.css +17 -0
- package/source/_imports/components/bootstrap.pagination.css +29 -0
- package/source/_imports/components/c-button.css +210 -0
- package/source/_imports/components/c-button.html +31 -0
- package/source/_imports/components/c-callout.css +183 -0
- package/source/_imports/components/c-callout.html +52 -0
- package/source/_imports/components/c-card.css +57 -0
- package/source/_imports/components/c-card.html +32 -0
- package/source/_imports/components/c-data-list.css +222 -0
- package/source/_imports/components/c-data-list.html +145 -0
- package/source/_imports/components/c-footer.css +67 -0
- package/source/_imports/components/c-footer.html +3 -0
- package/source/_imports/components/c-image-map.css +26 -0
- package/source/_imports/components/c-image-map.html +4 -0
- package/source/_imports/components/c-image-map.skin.css +1 -0
- package/source/_imports/components/c-image-map.structure.css +285 -0
- package/source/_imports/components/c-nav.css +164 -0
- package/source/_imports/components/c-nav.html +45 -0
- package/source/_imports/components/c-page.css +95 -0
- package/source/_imports/components/c-page.html +192 -0
- package/source/_imports/components/c-recognition.css +102 -0
- package/source/_imports/components/c-see-all-link.css +52 -0
- package/source/_imports/components/c-show-more.css +50 -0
- package/source/_imports/elements/README.css +47 -0
- package/source/_imports/elements/figure.css +23 -0
- package/source/_imports/elements/html-elements.css +386 -0
- package/source/_imports/elements/tacc-search-bar.css +19 -0
- package/source/_imports/elements/tacc-search-bar.md +20 -0
- package/source/_imports/generics/README.css +24 -0
- package/source/_imports/generics/README.md +9 -0
- package/source/_imports/objects/README.css +22 -0
- package/source/_imports/objects/o-flex-item-table-wrap.css +50 -0
- package/source/_imports/objects/o-grid.css +131 -0
- package/source/_imports/objects/o-grid.html +64 -0
- package/source/_imports/objects/o-offset-content.css +51 -0
- package/source/_imports/objects/o-section.css +270 -0
- package/source/_imports/objects/o-section.html +73 -0
- package/source/_imports/objects/o-site.css +26 -0
- package/source/_imports/objects/o-site.html +11 -0
- package/source/_imports/settings/README.css +65 -0
- package/source/_imports/settings/border.css +15 -0
- package/source/_imports/settings/color.css +30 -0
- package/source/_imports/settings/font.css +49 -0
- package/source/_imports/settings/max-width.css +31 -0
- package/source/_imports/settings/space.css +36 -0
- package/source/_imports/tools/README.css +17 -0
- package/source/_imports/tools/media-queries.css +48 -0
- package/source/_imports/tools/x-article-link.css +62 -0
- package/source/_imports/tools/x-center.css +60 -0
- package/source/_imports/tools/x-fake-border.css +72 -0
- package/source/_imports/tools/x-grid.css +116 -0
- package/source/_imports/tools/x-layout.css +86 -0
- package/source/_imports/tools/x-overlay.css +28 -0
- package/source/_imports/tools/x-truncate.css +47 -0
- package/source/_imports/trumps/README.css +79 -0
- package/source/_imports/trumps/icon.css +31 -0
- package/source/_imports/trumps/icon.fonts.css +316 -0
- package/source/_imports/trumps/s-article-list.css +240 -0
- package/source/_imports/trumps/s-article-list.html +20 -0
- package/source/_imports/trumps/s-article-preview.css +253 -0
- package/source/_imports/trumps/s-article-preview.html +30 -0
- package/source/_imports/trumps/s-blockquote.css +45 -0
- package/source/_imports/trumps/s-breadcrumbs.css +69 -0
- package/source/_imports/trumps/s-cms-nav.css +11 -0
- package/source/_imports/trumps/s-cms-nav.html +41 -0
- package/source/_imports/trumps/s-document.css +142 -0
- package/source/_imports/trumps/s-footer.css +16 -0
- package/source/_imports/trumps/s-footer.html +3 -0
- package/source/_imports/trumps/s-guide-doc.css +77 -0
- package/source/_imports/trumps/s-header.css +181 -0
- package/source/_imports/trumps/s-header.html +46 -0
- package/source/_imports/trumps/s-inline-dl.css +35 -0
- package/source/_imports/trumps/s-portal-nav.css +20 -0
- package/source/_imports/trumps/s-portal-nav.html +37 -0
- package/source/_imports/trumps/s-style-guide.css +52 -0
- package/source/_imports/trumps/s-system-specs.css +123 -0
- package/source/_imports/trumps/tacc-search-bar.css +108 -0
- package/source/_imports/trumps/tacc-search-bar.html +11 -0
- package/source/_imports/trumps/u-empty.css +18 -0
- package/source/_imports/trumps/u-hide.css +27 -0
- package/source/_imports/trumps/u-nested-text-content.css +14 -0
- package/source/_tests/README.md +33 -0
- package/source/_tests/postcss-extend.css +80 -0
- package/source/_tests/postcss-preset-env.css +75 -0
- package/source/_tests.css +12 -0
- package/source/_themes/README.md +5 -0
- package/source/_themes/TODO.md +4 -0
- package/source/_themes/default.json +21 -0
- package/source/_themes/has-dark-logo.json +21 -0
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
<!-- Pagination with one page -->
|
|
2
|
+
<div class="c-page-list">
|
|
3
|
+
<button class="
|
|
4
|
+
c-button c-button--as-link
|
|
5
|
+
c-page-end
|
|
6
|
+
" disabled
|
|
7
|
+
type="button">< Previous</button>
|
|
8
|
+
<button class="
|
|
9
|
+
c-button c-button--secondary c-button--is-active c-button--size-small
|
|
10
|
+
c-page-item c-page-link c-page-link--always-click
|
|
11
|
+
"
|
|
12
|
+
type="button">1</button>
|
|
13
|
+
<button class="
|
|
14
|
+
c-button c-button--as-link
|
|
15
|
+
c-page-end
|
|
16
|
+
" disabled
|
|
17
|
+
type="button">Next ></button>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<!-- Pagination with fewer than 7 pages -->
|
|
21
|
+
<div class="c-page-list">
|
|
22
|
+
<button class="
|
|
23
|
+
c-button c-button--as-link
|
|
24
|
+
c-page-end
|
|
25
|
+
"
|
|
26
|
+
type="button">< Previous</button>
|
|
27
|
+
<button class="
|
|
28
|
+
c-button c-button--secondary c-button--size-small
|
|
29
|
+
c-page-item c-page-link c-page-link--always-click
|
|
30
|
+
"
|
|
31
|
+
type="button">1</button>
|
|
32
|
+
<button class="
|
|
33
|
+
c-button c-button--secondary c-button--is-active c-button--size-small
|
|
34
|
+
c-page-item c-page-link c-page-link--always-click
|
|
35
|
+
"
|
|
36
|
+
type="button">2</button>
|
|
37
|
+
<button class="
|
|
38
|
+
c-button c-button--secondary c-button--size-small
|
|
39
|
+
c-page-item c-page-link c-page-link--always-click
|
|
40
|
+
"
|
|
41
|
+
type="button">3</button>
|
|
42
|
+
<button class="
|
|
43
|
+
c-button c-button--secondary c-button--size-small
|
|
44
|
+
c-page-item c-page-link c-page-link--always-click
|
|
45
|
+
"
|
|
46
|
+
type="button">4</button>
|
|
47
|
+
<button class="
|
|
48
|
+
c-button c-button--as-link
|
|
49
|
+
c-page-end
|
|
50
|
+
"
|
|
51
|
+
type="button">Next ></button>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<!-- Pagination with current page near start -->
|
|
55
|
+
<div class="c-page-list">
|
|
56
|
+
<button class="
|
|
57
|
+
c-button c-button--as-link
|
|
58
|
+
c-page-end
|
|
59
|
+
"
|
|
60
|
+
type="button">< Previous</button>
|
|
61
|
+
<button class="
|
|
62
|
+
c-button c-button--secondary c-button--size-small
|
|
63
|
+
c-page-item c-page-link c-page-link--always-click
|
|
64
|
+
"
|
|
65
|
+
type="button">1</button>
|
|
66
|
+
<button class="
|
|
67
|
+
c-button c-button--secondary c-button--size-small
|
|
68
|
+
c-page-item c-page-link c-page-link--always-click
|
|
69
|
+
"
|
|
70
|
+
type="button">2</button>
|
|
71
|
+
<button class="
|
|
72
|
+
c-button c-button--secondary c-button--is-active c-button--size-small
|
|
73
|
+
c-page-item c-page-link c-page-link--always-click
|
|
74
|
+
"
|
|
75
|
+
type="button">3</button>
|
|
76
|
+
<button class="
|
|
77
|
+
c-button c-button--secondary c-button--size-small
|
|
78
|
+
c-page-item c-page-link c-page-link--always-click
|
|
79
|
+
"
|
|
80
|
+
type="button">4</button>
|
|
81
|
+
<button class="
|
|
82
|
+
c-button c-button--secondary c-button--size-small
|
|
83
|
+
c-page-item c-page-link c-page-link--always-click
|
|
84
|
+
"
|
|
85
|
+
type="button">5</button>
|
|
86
|
+
<button class="
|
|
87
|
+
c-button c-button--secondary c-button--size-small
|
|
88
|
+
c-page-item c-page-link c-page-link--always-click
|
|
89
|
+
"
|
|
90
|
+
type="button">6</button>
|
|
91
|
+
<button class="
|
|
92
|
+
c-button c-button--secondary c-button--size-small
|
|
93
|
+
c-page-item c-page-link c-page-link--always-click
|
|
94
|
+
"
|
|
95
|
+
type="button">7</button>
|
|
96
|
+
<button class="
|
|
97
|
+
c-button c-button--secondary c-button--size-small
|
|
98
|
+
c-page-item c-page-link c-page-link--always-click
|
|
99
|
+
"
|
|
100
|
+
type="button">8</button>
|
|
101
|
+
<button class="
|
|
102
|
+
c-button c-button--secondary c-button--size-small
|
|
103
|
+
c-page-item c-page-link c-page-link--always-click
|
|
104
|
+
"
|
|
105
|
+
type="button">9</button>
|
|
106
|
+
<button class="
|
|
107
|
+
c-button c-button--secondary c-button--size-small
|
|
108
|
+
c-page-item c-page-link c-page-link--always-click
|
|
109
|
+
"
|
|
110
|
+
type="button">10</button>
|
|
111
|
+
<span class="c-page-item--etcetera">...</span>
|
|
112
|
+
<button class="
|
|
113
|
+
c-button c-button--secondary c-button--size-small
|
|
114
|
+
c-page-item c-page-link c-page-link--always-click
|
|
115
|
+
"
|
|
116
|
+
type="button">20</button>
|
|
117
|
+
<button class="
|
|
118
|
+
c-button c-button--as-link
|
|
119
|
+
c-page-end
|
|
120
|
+
"
|
|
121
|
+
type="button">Next ></button>
|
|
122
|
+
</div>
|
|
123
|
+
|
|
124
|
+
<!-- Pagination with current page near end -->
|
|
125
|
+
<div class="c-page-list">
|
|
126
|
+
<button class="
|
|
127
|
+
c-button c-button--as-link
|
|
128
|
+
c-page-end
|
|
129
|
+
"
|
|
130
|
+
type="button">< Previous</button>
|
|
131
|
+
<button class="
|
|
132
|
+
c-button c-button--secondary c-button--size-small
|
|
133
|
+
c-page-item c-page-link c-page-link--always-click
|
|
134
|
+
"
|
|
135
|
+
type="button">1</button>
|
|
136
|
+
<span class="c-page-item--etcetera">...</span>
|
|
137
|
+
<button class="
|
|
138
|
+
c-button c-button--secondary c-button--size-small
|
|
139
|
+
c-page-item c-page-link c-page-link--always-click
|
|
140
|
+
"
|
|
141
|
+
type="button">11</button>
|
|
142
|
+
<button class="
|
|
143
|
+
c-button c-button--secondary c-button--size-small
|
|
144
|
+
c-page-item c-page-link c-page-link--always-click
|
|
145
|
+
"
|
|
146
|
+
type="button">12</button>
|
|
147
|
+
<button class="
|
|
148
|
+
c-button c-button--secondary c-button--size-small
|
|
149
|
+
c-page-item c-page-link c-page-link--always-click
|
|
150
|
+
"
|
|
151
|
+
type="button">13</button>
|
|
152
|
+
<button class="
|
|
153
|
+
c-button c-button--secondary c-button--size-small
|
|
154
|
+
c-page-item c-page-link c-page-link--always-click
|
|
155
|
+
"
|
|
156
|
+
type="button">14</button>
|
|
157
|
+
<button class="
|
|
158
|
+
c-button c-button--secondary c-button--size-small
|
|
159
|
+
c-page-item c-page-link c-page-link--always-click
|
|
160
|
+
"
|
|
161
|
+
type="button">15</button>
|
|
162
|
+
<button class="
|
|
163
|
+
c-button c-button--secondary c-button--size-small
|
|
164
|
+
c-page-item c-page-link c-page-link--always-click
|
|
165
|
+
"
|
|
166
|
+
type="button">16</button>
|
|
167
|
+
<button class="
|
|
168
|
+
c-button c-button--secondary c-button--size-small
|
|
169
|
+
c-page-item c-page-link c-page-link--always-click
|
|
170
|
+
"
|
|
171
|
+
type="button">17</button>
|
|
172
|
+
<button class="
|
|
173
|
+
c-button c-button--secondary c-button--is-active c-button--size-small
|
|
174
|
+
c-page-item c-page-link c-page-link--always-click
|
|
175
|
+
"
|
|
176
|
+
type="button">18</button>
|
|
177
|
+
<button class="
|
|
178
|
+
c-button c-button--secondary c-button--size-small
|
|
179
|
+
c-page-item c-page-link c-page-link--always-click
|
|
180
|
+
"
|
|
181
|
+
type="button">19</button>
|
|
182
|
+
<button class="
|
|
183
|
+
c-button c-button--secondary c-button--size-small
|
|
184
|
+
c-page-item c-page-link c-page-link--always-click
|
|
185
|
+
"
|
|
186
|
+
type="button">20</button>
|
|
187
|
+
<button class="
|
|
188
|
+
c-button c-button--as-link
|
|
189
|
+
c-page-end
|
|
190
|
+
"
|
|
191
|
+
type="button">Next ></button>
|
|
192
|
+
</div>
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Recognition
|
|
3
|
+
|
|
4
|
+
A callout (often legal or obligatory) of recognition for an entity.
|
|
5
|
+
|
|
6
|
+
> __⚠️ Warning__: Incompatible on a Bootstrap column element. You can use this pattern *within* a column instead.
|
|
7
|
+
|
|
8
|
+
.c-recognition--style-dark - A dark background and light text
|
|
9
|
+
.c-recognition--style-light - A light background and dark text
|
|
10
|
+
|
|
11
|
+
Markup:
|
|
12
|
+
<aside class="c-recognition {{modifier_class}}">
|
|
13
|
+
<h3>Citation</h3>
|
|
14
|
+
<p>Teams who have NSF Petascale Computational Resource (PRAC) Awards should also acknowledge those awards.</p>
|
|
15
|
+
<p><em>Dan Stanzione, John West, R. Todd Evans, Tommy Minyard, Omar Ghattas, and Dhabaleswar K. Panda. 2020. Frontera: The Evolution of Leadership Computing at the National Science Foundation. In Practice and Experience in Advanced Research Computing (PEARC ’20), July 26–30, 2020, Portland, OR, USA. ACM, New York, NY, USA, 11 pages. https://doi.org/ 10.1145/3311790.3396656</em></p>
|
|
16
|
+
</aside>
|
|
17
|
+
|
|
18
|
+
Styleguide Components.Recognition
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
/* Block */
|
|
26
|
+
|
|
27
|
+
.c-recognition {
|
|
28
|
+
font-size: var(--global-font-size--small);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Overwrite Bootstrap padding but restore it with margin of same dimensions */
|
|
32
|
+
/* NOTE: Ignore Bootstrap `ml-`/`mr-` class cuz they override w/ `!important` */
|
|
33
|
+
.c-recognition {
|
|
34
|
+
padding: 0 2.14em;
|
|
35
|
+
|
|
36
|
+
/* Contain margins of children (there are other one-line solutions) */
|
|
37
|
+
/* SEE: https://stackoverflow.com/q/13573653/11817077 */
|
|
38
|
+
overflow: auto;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
/* Elements */
|
|
46
|
+
|
|
47
|
+
.c-recognition h3 {
|
|
48
|
+
margin-top: 0.7em;
|
|
49
|
+
}
|
|
50
|
+
.c-recognition > p:last-child {
|
|
51
|
+
margin-bottom: 1.4em;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/* Modifiers */
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
/* Modifers: Style: Dark */
|
|
63
|
+
|
|
64
|
+
.c-recognition--style-dark {
|
|
65
|
+
color: var(--global-color-primary--xx-light);
|
|
66
|
+
background-color: var(--global-color-primary--xx-dark);
|
|
67
|
+
}
|
|
68
|
+
.c-recognition--style-dark a {
|
|
69
|
+
color: var(--global-color-link-on-dark--normal);
|
|
70
|
+
}
|
|
71
|
+
.c-recognition--style-dark h1,
|
|
72
|
+
.c-recognition--style-dark h2,
|
|
73
|
+
.c-recognition--style-dark h3,
|
|
74
|
+
.c-recognition--style-dark h4,
|
|
75
|
+
.c-recognition--style-dark h5,
|
|
76
|
+
.c-recognition--style-dark h6 {
|
|
77
|
+
color: var(--global-color-accent--normal);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
/* Modifers: Style: Light */
|
|
83
|
+
|
|
84
|
+
.c-recognition--style-light {
|
|
85
|
+
color: var(--global-color-primary--dark);
|
|
86
|
+
background-color: var(--global-color-primary--xx-light);
|
|
87
|
+
|
|
88
|
+
border-width: var(--global-border-width--normal) 0;
|
|
89
|
+
border-style: solid;
|
|
90
|
+
border-color: var(--global-color-primary--xx-dark);
|
|
91
|
+
}
|
|
92
|
+
.c-recognition--style-light a {
|
|
93
|
+
color: var(--global-color-link-on-light--normal);
|
|
94
|
+
}
|
|
95
|
+
.c-recognition--style-light h1,
|
|
96
|
+
.c-recognition--style-light h2,
|
|
97
|
+
.c-recognition--style-light h3,
|
|
98
|
+
.c-recognition--style-light h4,
|
|
99
|
+
.c-recognition--style-light h5,
|
|
100
|
+
.c-recognition--style-light h6 {
|
|
101
|
+
color: var(--global-color-primary--xx-dark);
|
|
102
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
See All Link
|
|
3
|
+
|
|
4
|
+
A link to all content to which a subset of content before it belongs.
|
|
5
|
+
|
|
6
|
+
Markup:
|
|
7
|
+
<a class="c-see-all-link" href="#">
|
|
8
|
+
<i class="c-see-all-link__icon icon icon-push-right"></i>
|
|
9
|
+
<span class="c-see-all-link__text">See All</span>
|
|
10
|
+
</a>
|
|
11
|
+
|
|
12
|
+
Styleguide Components.SeeAllLink
|
|
13
|
+
*/
|
|
14
|
+
@import url("_imports/tools/x-truncate.css");
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/* Base i.e. Container */
|
|
19
|
+
|
|
20
|
+
.c-see-all-link {
|
|
21
|
+
display: inline-block;
|
|
22
|
+
|
|
23
|
+
padding-top: 1.0em;
|
|
24
|
+
padding-right: 1.0em;
|
|
25
|
+
padding-bottom: 1.0em;
|
|
26
|
+
margin-bottom: -1.0em; /* to "undo" space added from `padding-bottom` */
|
|
27
|
+
|
|
28
|
+
@extend %x-truncate--one-line;
|
|
29
|
+
max-width: 100%; /* SEE: https://stackoverflow.com/a/44521595 */
|
|
30
|
+
|
|
31
|
+
font-size: 1.2rem;
|
|
32
|
+
font-weight: var(--bold);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/* Children */
|
|
38
|
+
|
|
39
|
+
.c-see-all-link__icon {
|
|
40
|
+
margin-right: 0.75em;
|
|
41
|
+
|
|
42
|
+
font-size: 1.167em; /* to get size 14px from 12px base */
|
|
43
|
+
vertical-align: text-bottom;
|
|
44
|
+
|
|
45
|
+
/* To hide the `text-decoration: underline` of the anchor */
|
|
46
|
+
/* SEE: https://stackoverflow.com/a/15688237/11817077 */
|
|
47
|
+
display: inline-block;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.c-see-all-link__text {
|
|
51
|
+
font-size: 1em;
|
|
52
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Show More
|
|
3
|
+
|
|
4
|
+
A CSS-only way to support a "Show More…" feature. It requires a container and three children in order:
|
|
5
|
+
- state checkbox (must be first)
|
|
6
|
+
- target text
|
|
7
|
+
- toggle element
|
|
8
|
+
|
|
9
|
+
.c-show-more--one-line - Truncated text may only be one line tall.
|
|
10
|
+
.c-show-more--many-lines - Truncated text may be many lines tall.
|
|
11
|
+
|
|
12
|
+
Styleguide: Components.ShowMore
|
|
13
|
+
*/
|
|
14
|
+
@import url("_imports/tools/x-truncate.css");
|
|
15
|
+
|
|
16
|
+
/* Truncation */
|
|
17
|
+
|
|
18
|
+
/* Many Lines */
|
|
19
|
+
.c-show-more--many-lines .c-show-more__target {
|
|
20
|
+
@extend .x-truncate--many-lines;
|
|
21
|
+
}
|
|
22
|
+
.c-show-more--many-lines .c-show-more__state:checked ~ .c-show-more__target {
|
|
23
|
+
@extend .x-untruncate--many-lines;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* One Line */
|
|
27
|
+
.c-show-more--one-line .c-show-more__target {
|
|
28
|
+
@extend .x-truncate--one-line;
|
|
29
|
+
}
|
|
30
|
+
.c-show-more--one-line .c-show-more__state:checked ~ .c-show-more__target {
|
|
31
|
+
@extend .x-untruncate--one-line;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Show More / Show Less */
|
|
35
|
+
|
|
36
|
+
/* State */
|
|
37
|
+
.c-show-more__state,
|
|
38
|
+
.c-show-more__on-text,
|
|
39
|
+
.c-show-more__off-text {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
.c-show-more__state:not(:checked) ~ .c-show-more__toggle .c-show-more__on-text,
|
|
43
|
+
.c-show-more__state:checked ~ .c-show-more__toggle .c-show-more__off-text {
|
|
44
|
+
display: block;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* Toggle */
|
|
48
|
+
.c-show-more__toggle {
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* DO NOT ADD STYLES HERE; ADD THEM INSIDE STYLESHEETS IN THIS DIRECTORY */
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
Elements
|
|
5
|
+
|
|
6
|
+
Element styles are those for bare HTML elements (like `<h1>`, `<a>`, etc.). These come with default styling from the browser; we can redefine them here.
|
|
7
|
+
|
|
8
|
+
Reference:
|
|
9
|
+
|
|
10
|
+
- [Creative Bloq: Manage Large CSS Projects With ITCSS](https://www.creativebloq.com/web-design/manage-large-css-projects-itcss-101517528) (find "Elements")
|
|
11
|
+
- [MDN: HTML element reference](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/HTML5_element_list)
|
|
12
|
+
|
|
13
|
+
Rules:
|
|
14
|
+
|
|
15
|
+
- Element tags may be styled.
|
|
16
|
+
- Pseudo classes may be styled.
|
|
17
|
+
- Pseudo elements may be styled.
|
|
18
|
+
|
|
19
|
+
Weight: 4
|
|
20
|
+
|
|
21
|
+
Styleguide Elements
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/* Add styles to the `html-elements.css` stylesheet */
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
/*
|
|
31
|
+
TACC Elements
|
|
32
|
+
|
|
33
|
+
Styles for TACC custom elements (like `<tacc-search-bar>`) and their parts (which may inherit standard HTML element styles).
|
|
34
|
+
|
|
35
|
+
Reference:
|
|
36
|
+
|
|
37
|
+
- [MDN: Web Components: Using custom elements](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements)
|
|
38
|
+
|
|
39
|
+
Rules:
|
|
40
|
+
|
|
41
|
+
- Style via `[part="button"]`.
|
|
42
|
+
- Style via `:host`.
|
|
43
|
+
|
|
44
|
+
Styleguide Elements.TACC
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
/* Add styles to an individual stylesheet for each custom element */
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Figure & Figcaption (Text Content)
|
|
3
|
+
|
|
4
|
+
Element that represents self-contained content, potentially with an optional caption.
|
|
5
|
+
|
|
6
|
+
Reference:
|
|
7
|
+
|
|
8
|
+
- [HTML: Figure | MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure)
|
|
9
|
+
- [HTML: Figcaption | MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption)
|
|
10
|
+
|
|
11
|
+
Styleguide Elements.TextContent.Figure
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
figure > a > img,
|
|
15
|
+
figure > img {
|
|
16
|
+
margin-bottom: 20px;
|
|
17
|
+
}
|
|
18
|
+
figcaption {
|
|
19
|
+
color: var(--global-color-primary--dark);
|
|
20
|
+
font-size: var(--global-font-size--medium);
|
|
21
|
+
border-top: var(--global-border-width--normal) solid var(--global-color-primary--normal);
|
|
22
|
+
padding-top: 12px;
|
|
23
|
+
}
|