@tacc/core-styles 1.0.0 → 2.0.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/dist/branding_logos.css +1 -1
- package/dist/components/README.css +1 -1
- package/dist/components/admonition/demo.css +1 -0
- package/dist/components/admonition.css +1 -0
- package/dist/components/align/demo.css +1 -0
- package/dist/components/align.css +1 -0
- 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.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-callout.css +1 -1
- package/dist/components/c-card/c-card--frontera.demo.css +1 -0
- package/dist/components/c-card/c-card.demo.css +1 -0
- package/dist/components/c-card--frontera-about-page.css +1 -0
- package/dist/components/c-card.css +1 -1
- package/dist/components/c-card.selectors.css +1 -0
- package/dist/components/c-data-list.css +1 -1
- package/dist/components/c-footer.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-message/demo.css +1 -0
- package/dist/components/c-message.css +1 -1
- package/dist/components/c-message.portal.css +1 -0
- 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/cortal.icon.css +1 -1
- package/dist/components/cortal.icon.font.css +1 -1
- package/dist/components/demo.css +1 -0
- 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/tacc-docs.css +1 -0
- package/dist/core-styles.base.css +3 -3
- package/dist/core-styles.cms.css +2 -2
- package/dist/core-styles.demo.css +2 -2
- package/dist/core-styles.docs.css +2 -0
- package/dist/core-styles.header.css +2 -2
- package/dist/core-styles.header.theme-has-dark-logo.css +2 -0
- package/dist/core-styles.portal.css +2 -2
- package/dist/core-styles.settings.css +2 -2
- package/dist/elements/README.css +1 -1
- package/dist/elements/bootstrap.css +1 -1
- package/dist/{tools/x-link/demo.css → elements/c-card.selectors.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 -0
- package/dist/elements/headings--cms.css +1 -0
- package/dist/elements/html-elements/demo.css +1 -0
- 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 -0
- package/dist/elements/links.css +1 -1
- package/dist/elements/monospace.css +1 -0
- package/dist/elements/root.css +1 -0
- package/dist/elements/sticky-footer.css +1 -0
- package/dist/elements/table--basic.css +1 -1
- package/dist/elements/table--nested.css +1 -1
- package/dist/elements/table.cms.css +1 -0
- package/dist/elements/table.css +1 -1
- package/dist/elements/table.selectors.css +1 -0
- 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/fonts.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 -0
- package/dist/objects/o-section.css +1 -1
- package/dist/objects/o-section.selectors.css +1 -0
- 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/{extra.flexible-horz.css → example.flexible-horz.css} +1 -1
- package/dist/objects/o-table-wrap/example.overflow-hidden.css +1 -0
- package/dist/objects/o-table-wrap/example.overflow-scroll.css +1 -0
- 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.css +1 -1
- package/dist/settings/demo.css +1 -0
- package/dist/settings/font/demo-family.css +1 -0
- package/dist/settings/font/demo-size.css +1 -0
- package/dist/settings/font/demo-style.css +1 -0
- package/dist/settings/font/demo-weight.css +1 -0
- package/dist/settings/font--cms.css +1 -0
- package/dist/settings/font--docs.css +1 -0
- package/dist/settings/font--portal.css +1 -0
- 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 -0
- package/dist/tools/selectors.css +1 -0
- package/dist/tools/selectors.monospace.css +1 -0
- package/dist/tools/x-article-link.css +1 -1
- package/dist/tools/x-center.css +1 -1
- package/dist/tools/x-fake-border.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-truncate.css +1 -1
- package/dist/trumps/README.css +1 -1
- package/dist/trumps/demo.css +1 -0
- 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 -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 -0
- 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 -0
- 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/docs/index.md +3 -0
- package/fractal.config.js +29 -5
- package/package.json +5 -6
- package/src/.postcssrc.base.yml +1 -0
- package/src/bin/build.js +4 -2
- package/src/lib/_imports/_partials/blockquote.hbs +5 -0
- package/src/lib/_imports/_partials/figure.hbs +15 -0
- package/src/lib/_imports/_partials/img.hbs +5 -0
- package/src/lib/_imports/_partials/loremipsum-paragraphs.hbs +15 -0
- package/src/lib/_imports/_partials/text-and-link-no-href.hbs +1 -0
- package/src/lib/_imports/_partials/text-of-one-paragraph-long.hbs +1 -0
- package/src/lib/_imports/_partials/text-of-one-paragraph-medium.hbs +1 -0
- package/src/lib/_imports/_partials/text-of-one-paragraph-short.hbs +1 -0
- package/src/lib/_imports/_partials/text-of-one-paragraph-with-tags.hbs +1 -0
- package/src/lib/_imports/_preview.hbs +49 -31
- package/src/lib/_imports/components/admonition/admonition.hbs +39 -0
- package/src/lib/_imports/components/admonition/config.yml +2 -0
- package/src/lib/_imports/components/admonition/demo.css +5 -0
- package/src/lib/_imports/components/admonition/readme.md +14 -0
- package/src/lib/_imports/components/admonition.css +35 -0
- package/src/lib/_imports/components/align/align.hbs +51 -0
- package/src/lib/_imports/components/align/config.yml +3 -0
- package/src/lib/_imports/components/align/demo.css +7 -0
- package/src/lib/_imports/components/align/readme.md +31 -0
- package/src/lib/_imports/components/align.css +33 -0
- package/src/lib/_imports/components/bootstrap/bootstrap--container.hbs +1 -1
- package/src/lib/_imports/components/bootstrap/bootstrap--modal.hbs +1 -1
- package/src/lib/_imports/components/c-button.css +6 -1
- package/src/lib/_imports/components/c-card/_c-card--many-variable.hbs +107 -0
- package/src/lib/_imports/components/c-card/_c-card--one-image.hbs +6 -0
- package/src/lib/_imports/components/c-card/_c-card--one-plain.hbs +4 -0
- package/src/lib/_imports/components/c-card/_c-card--one-standard.hbs +15 -0
- package/src/lib/_imports/components/c-card/_c-card--one-transparent.hbs +4 -0
- package/src/lib/_imports/components/c-card/_c-card--one-with-grid.hbs +26 -0
- package/src/lib/_imports/components/c-card/c-card--frontera.demo.css +5 -0
- package/src/lib/_imports/components/{c-card.html → c-card/c-card--frontera.hbs} +7 -6
- package/src/lib/_imports/components/c-card/c-card--frontera.readme.md +5 -0
- package/src/lib/_imports/components/c-card/c-card.demo.css +11 -0
- package/src/lib/_imports/components/c-card/c-card.hbs +36 -0
- package/src/lib/_imports/components/c-card/c-card.readme.md +33 -0
- package/src/lib/_imports/components/c-card/config.yml +23 -0
- package/src/lib/_imports/components/c-card--frontera-about-page.css +48 -0
- package/src/lib/_imports/components/c-card.css +165 -34
- package/src/lib/_imports/components/c-card.selectors.css +38 -0
- package/src/lib/_imports/components/c-data-list/config.yml +9 -0
- package/src/lib/_imports/components/c-data-list/description-list/config.yml +68 -0
- package/src/lib/_imports/components/c-data-list/description-list/description-list.hbs +4 -0
- package/src/lib/_imports/components/c-data-list/description-list/readme.md +8 -0
- package/src/lib/_imports/components/c-data-list/readme.md +8 -0
- package/src/lib/_imports/components/c-data-list/table/config.yml +68 -0
- package/src/lib/_imports/components/c-data-list/table/readme.md +12 -0
- package/src/lib/_imports/components/c-data-list/table/table.hbs +4 -0
- package/src/lib/_imports/components/c-data-list.css +125 -46
- package/src/lib/_imports/components/c-footer.css +3 -50
- package/src/lib/_imports/components/c-form/c-form.hbs +3 -0
- package/src/lib/_imports/components/c-form/config.yml +2 -1
- package/src/lib/_imports/components/c-form.css +1 -1
- package/src/lib/_imports/components/c-message/_c-message--classes.hbs +5 -0
- package/src/lib/_imports/components/c-message/_c-message--intro.hbs +1 -0
- package/src/lib/_imports/components/c-message/_c-message--single.hbs +3 -0
- package/src/lib/_imports/components/c-message/c-message--scope.hbs +15 -0
- package/src/lib/_imports/components/c-message/c-message--scope.readme.md +14 -0
- package/src/lib/_imports/components/c-message/c-message--type.hbs +15 -0
- package/src/lib/_imports/components/c-message/c-message--type.readme.md +12 -0
- package/src/lib/_imports/components/c-message/c-message.hbs +1 -0
- package/src/lib/_imports/components/c-message/config.yml +35 -0
- package/src/lib/_imports/components/c-message/demo.css +12 -0
- package/src/lib/_imports/components/c-message/readme.md +1 -0
- package/src/lib/_imports/components/c-message.css +54 -25
- package/src/lib/_imports/components/c-message.portal.css +5 -0
- package/src/lib/_imports/components/cortal.icon.css +39 -0
- package/src/lib/_imports/components/demo.css +40 -0
- package/src/lib/_imports/components/django-cms-forms/config.yml +4 -3
- package/src/lib/_imports/components/django-cms-forms/django-cms-forms.hbs +3 -0
- package/src/lib/_imports/components/django-cms-forms.css +1 -1
- package/src/lib/_imports/components/tacc-docs/config.yml +3 -0
- package/src/lib/_imports/components/tacc-docs/readme.md +23 -0
- package/src/lib/_imports/components/tacc-docs/tacc-docs.hbs +43 -0
- package/src/lib/_imports/components/tacc-docs.css +11 -0
- package/src/lib/_imports/core-styles.base.css +1 -6
- package/src/lib/_imports/core-styles.cms.css +15 -3
- package/src/lib/_imports/core-styles.demo.css +3 -3
- package/src/lib/_imports/core-styles.docs.css +36 -0
- package/src/lib/_imports/core-styles.portal.css +5 -2
- package/src/lib/_imports/elements/demo.css +78 -45
- package/src/lib/_imports/elements/dl/dl.hbs +6 -0
- package/src/lib/_imports/elements/headings/config.yml +15 -0
- package/src/lib/_imports/elements/headings/demo.css +10 -0
- package/src/lib/_imports/elements/headings/headings--cms.hbs +18 -0
- package/src/lib/_imports/elements/headings/headings.hbs +12 -0
- package/src/lib/_imports/elements/headings/readme.md +12 -0
- package/src/lib/_imports/elements/headings--cms.css +70 -0
- package/src/lib/_imports/elements/html-elements/config.yml +12 -0
- package/src/lib/_imports/elements/html-elements/demo.css +5 -0
- package/src/lib/_imports/elements/html-elements/html-elements.hbs +83 -0
- package/src/lib/_imports/elements/html-elements/readme.md +1 -0
- package/src/lib/_imports/elements/html-elements.cms.css +44 -164
- package/src/lib/_imports/elements/html-elements.css +34 -4
- package/src/lib/_imports/elements/html-elements.docs.css +6 -0
- package/src/lib/_imports/elements/links/links.hbs +7 -1
- package/src/lib/_imports/elements/links.css +7 -3
- package/src/lib/_imports/elements/monospace/config.yml +12 -0
- package/src/lib/_imports/elements/monospace/monospace.hbs +60 -0
- package/src/lib/_imports/elements/monospace.css +95 -0
- package/src/lib/_imports/elements/root.css +41 -0
- package/src/lib/_imports/elements/sticky-footer.css +6 -0
- package/src/lib/_imports/elements/table/config.yml +123 -3
- package/src/lib/_imports/elements/table/table--via-paragraphs.hbs +22 -0
- package/src/lib/_imports/elements/table/table--via-paragraphs.readme.md +17 -0
- package/src/lib/_imports/elements/table/table.hbs +11 -3
- package/src/lib/_imports/elements/table--basic.css +42 -26
- package/src/lib/_imports/elements/table--nested.css +16 -5
- package/src/lib/_imports/elements/table.cms.css +22 -0
- package/src/lib/_imports/elements/table.selectors.css +3 -0
- package/src/lib/_imports/objects/o-fixed-header-table/config.yml +5 -3
- package/src/lib/_imports/objects/o-fixed-header-table/demo.css +2 -3
- package/src/lib/_imports/objects/o-fixed-header-table/o-fixed-header-table.hbs +16 -3
- package/src/lib/_imports/objects/o-fixed-header-table/readme.md +4 -0
- package/src/lib/_imports/objects/o-grid.css +7 -0
- package/src/lib/_imports/objects/o-offset-content.css +16 -17
- package/src/lib/_imports/objects/o-section/_o-section--usage.hbs +1 -0
- package/src/lib/_imports/objects/o-section/config.yml +18 -0
- package/src/lib/_imports/objects/o-section/demo.css +8 -0
- package/src/lib/_imports/objects/o-section/o-section.hbs +57 -0
- package/src/lib/_imports/objects/o-section/readme.md +32 -0
- package/src/lib/_imports/objects/o-section.css +59 -103
- package/src/lib/_imports/objects/o-section.selectors.css +20 -0
- package/src/lib/_imports/objects/o-table-wrap/config.yml +4 -2
- package/src/lib/_imports/objects/o-table-wrap/o-table-wrap.hbs +2 -2
- package/src/lib/_imports/settings/_settings.config.yml +2 -0
- package/src/lib/_imports/settings/color.css +22 -0
- package/src/lib/_imports/settings/demo.css +5 -0
- package/src/lib/_imports/settings/font/_font--family.hbs +13 -0
- package/src/lib/_imports/settings/font/_font--size.hbs +5 -0
- package/src/lib/_imports/settings/font/_font--weight.hbs +33 -0
- package/src/lib/_imports/settings/font/config.yml +16 -0
- package/src/lib/_imports/settings/font/demo-family.css +10 -0
- package/src/lib/_imports/settings/font/demo-size.css +11 -0
- package/src/lib/_imports/settings/font/demo-style.css +2 -0
- package/src/lib/_imports/settings/font/demo-weight.css +20 -0
- package/src/lib/_imports/settings/font/font.hbs +39 -0
- package/src/lib/_imports/settings/font/readme.md +8 -0
- package/src/lib/_imports/settings/font--cms.css +17 -0
- package/src/lib/_imports/settings/font--docs.css +18 -0
- package/src/lib/_imports/settings/font--portal.css +17 -0
- package/src/lib/_imports/settings/font.css +10 -21
- package/src/lib/_imports/settings/space.css +6 -2
- package/src/lib/_imports/tools/selectors.common.css +13 -0
- package/src/lib/_imports/tools/selectors.css +20 -0
- package/src/lib/_imports/tools/selectors.monospace.css +64 -0
- package/src/lib/_imports/tools/x-link/readme.md +1 -0
- package/src/lib/_imports/tools/x-link/x-link.hbs +2 -0
- package/src/lib/_imports/tools/x-link.css +7 -0
- package/src/lib/_imports/{tools/x-link → trumps}/demo.css +3 -2
- package/src/lib/_imports/trumps/s-affixed-input-wrapper/config.yml +3 -2
- package/src/lib/_imports/trumps/s-blockquote/readme.md +12 -0
- package/src/lib/_imports/trumps/s-blockquote/s-blockquote.hbs +4 -0
- package/src/lib/_imports/trumps/s-blockquote.css +3 -25
- package/src/lib/_imports/trumps/s-breadcrumbs.css +18 -10
- package/src/lib/_imports/trumps/s-guide-doc.css +0 -39
- package/src/lib/_imports/trumps/s-header.css +1 -1
- package/src/lib/_imports/trumps/s-irregular-links/config.yml +0 -3
- package/src/lib/_imports/trumps/s-irregular-links/s-irregular-links.hbs +15 -3
- package/src/lib/_imports/trumps/s-paragraph-table/config.yml +7 -0
- package/src/lib/_imports/trumps/s-paragraph-table/readme.md +17 -0
- package/src/lib/_imports/trumps/s-paragraph-table/s-paragraph-table.hbs +7 -0
- package/src/lib/_imports/trumps/s-paragraph-table.css +3 -0
- package/src/main.js +3 -1
- package/dist/elements/links/demo.css +0 -1
- package/dist/objects/o-table-wrap/extra.overflow-hidden.css +0 -1
- package/dist/objects/o-table-wrap/extra.overflow-scroll.css +0 -1
- package/dist/trumps/s-affixed-input-wrapper/demo.css +0 -1
- package/src/lib/_imports/_partials/loremipsum.hbs +0 -18
- package/src/lib/_imports/_partials/text-of-one-paragraph.hbs +0 -1
- package/src/lib/_imports/components/c-data-list.html +0 -131
- package/src/lib/_imports/elements/links/config.yml +0 -3
- package/src/lib/_imports/objects/o-section.html +0 -134
- /package/src/lib/_imports/elements/table/{table--paragraph.readme.md → table--with-paragraphs.readme.md} +0 -0
- /package/src/lib/_imports/objects/o-table-wrap/{extra.flexible-horz.css → example.flexible-horz.css} +0 -0
- /package/src/lib/_imports/objects/o-table-wrap/{extra.overflow-hidden.css → example.overflow-hidden.css} +0 -0
- /package/src/lib/_imports/objects/o-table-wrap/{extra.overflow-scroll.css → example.overflow-scroll.css} +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Main Root & Sectioning Root
|
|
3
|
+
|
|
4
|
+
Elements that represent the root of a document or document content.
|
|
5
|
+
|
|
6
|
+
```
|
|
7
|
+
<html> <body>
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Reference:
|
|
11
|
+
|
|
12
|
+
- [MDN: HTML element reference: Main root](https://developer.mozilla.org/en-US/docs/Web/HTML/Element#Main_root)
|
|
13
|
+
- [MDN: HTML element reference: Sectioning root](https://developer.mozilla.org/en-US/docs/Web/HTML/Element#Sectioning_root)
|
|
14
|
+
|
|
15
|
+
Styleguide Elements.MainSectioningRoots
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
html {
|
|
19
|
+
/* Set base font but support user-defined browser font size */
|
|
20
|
+
/* SEE: https://snook.ca/archives/html_and_css/font-size-with-rem */
|
|
21
|
+
font-size: 62.5%; /* 16px */
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* The webpage must be at least as tall as the viewport */
|
|
25
|
+
html,
|
|
26
|
+
body {
|
|
27
|
+
height: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
body {
|
|
31
|
+
margin: 0;
|
|
32
|
+
|
|
33
|
+
/* To avoid negative whitespace at right on horz scroll on tiny screen */
|
|
34
|
+
min-width: 290px; /* developer-decided value */
|
|
35
|
+
|
|
36
|
+
/* To overwrite Bootstrap */
|
|
37
|
+
color: var(--global-color-primary--x-dark);
|
|
38
|
+
font-family: var(--global-font-family--sans);
|
|
39
|
+
font-size: var(--global-font-size--small);
|
|
40
|
+
line-height: 1.4;
|
|
41
|
+
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
context:
|
|
2
|
-
shouldLoadCMS: true # temporary dependence, until proven to work on Portal
|
|
3
1
|
variants:
|
|
4
2
|
- name: default
|
|
5
3
|
label: Basic
|
|
@@ -39,7 +37,129 @@ variants:
|
|
|
39
37
|
text: View Details
|
|
40
38
|
- is-button: true
|
|
41
39
|
text: Delete
|
|
42
|
-
- name:
|
|
40
|
+
- name: cms
|
|
41
|
+
label: Basic (CMS)
|
|
42
|
+
context:
|
|
43
|
+
shouldLoadCMS: true
|
|
44
|
+
data:
|
|
45
|
+
cols:
|
|
46
|
+
- ID
|
|
47
|
+
- Name
|
|
48
|
+
- Size
|
|
49
|
+
- Time
|
|
50
|
+
- Actions
|
|
51
|
+
rows:
|
|
52
|
+
- id: n234as
|
|
53
|
+
name-link: apple-sauce
|
|
54
|
+
custom-1: 0.5 KB
|
|
55
|
+
time: 12/01/2019 11:04:19
|
|
56
|
+
acts:
|
|
57
|
+
- is-link: true
|
|
58
|
+
text: View Details
|
|
59
|
+
- is-button: true
|
|
60
|
+
text: Delete
|
|
61
|
+
- id: 56l810
|
|
62
|
+
name-link: milk-shake-032
|
|
63
|
+
custom-1: 300.0 KB
|
|
64
|
+
time: 03/22/2021 05:23:01
|
|
65
|
+
acts:
|
|
66
|
+
- is-link: true
|
|
67
|
+
text: View Details
|
|
68
|
+
- is-button: true
|
|
69
|
+
text: Delete
|
|
70
|
+
- id: 3r56xc
|
|
71
|
+
name-link: white-candy-5
|
|
72
|
+
custom-1: 1.5 MB
|
|
73
|
+
time: 12/01/2019 11:04:19
|
|
74
|
+
acts:
|
|
75
|
+
- is-link: true
|
|
76
|
+
text: View Details
|
|
77
|
+
- is-button: true
|
|
78
|
+
text: Delete
|
|
79
|
+
- name: no-header
|
|
80
|
+
context:
|
|
81
|
+
data:
|
|
82
|
+
rows:
|
|
83
|
+
- id: n234as
|
|
84
|
+
name-link: apple-sauce
|
|
85
|
+
custom-1: 0.5 KB
|
|
86
|
+
time: 12/01/2019 11:04:19
|
|
87
|
+
acts:
|
|
88
|
+
- is-link: true
|
|
89
|
+
text: View Details
|
|
90
|
+
- is-button: true
|
|
91
|
+
text: Delete
|
|
92
|
+
- id: 56l810
|
|
93
|
+
name-link: milk-shake-032
|
|
94
|
+
custom-1: 300.0 KB
|
|
95
|
+
time: 03/22/2021 05:23:01
|
|
96
|
+
acts:
|
|
97
|
+
- is-link: true
|
|
98
|
+
text: View Details
|
|
99
|
+
- is-button: true
|
|
100
|
+
text: Delete
|
|
101
|
+
- id: 3r56xc
|
|
102
|
+
name-link: white-candy-5
|
|
103
|
+
custom-1: 1.5 MB
|
|
104
|
+
time: 12/01/2019 11:04:19
|
|
105
|
+
acts:
|
|
106
|
+
- is-link: true
|
|
107
|
+
text: View Details
|
|
108
|
+
- is-button: true
|
|
109
|
+
text: Delete
|
|
110
|
+
- name: no-header-cms
|
|
111
|
+
label: No Header (CMS)
|
|
112
|
+
context:
|
|
113
|
+
shouldLoadCMS: true
|
|
114
|
+
data:
|
|
115
|
+
rows:
|
|
116
|
+
- id: n234as
|
|
117
|
+
name-link: apple-sauce
|
|
118
|
+
custom-1: 0.5 KB
|
|
119
|
+
time: 12/01/2019 11:04:19
|
|
120
|
+
acts:
|
|
121
|
+
- is-link: true
|
|
122
|
+
text: View Details
|
|
123
|
+
- is-button: true
|
|
124
|
+
text: Delete
|
|
125
|
+
- id: 56l810
|
|
126
|
+
name-link: milk-shake-032
|
|
127
|
+
custom-1: 300.0 KB
|
|
128
|
+
time: 03/22/2021 05:23:01
|
|
129
|
+
acts:
|
|
130
|
+
- is-link: true
|
|
131
|
+
text: View Details
|
|
132
|
+
- is-button: true
|
|
133
|
+
text: Delete
|
|
134
|
+
- id: 3r56xc
|
|
135
|
+
name-link: white-candy-5
|
|
136
|
+
custom-1: 1.5 MB
|
|
137
|
+
time: 12/01/2019 11:04:19
|
|
138
|
+
acts:
|
|
139
|
+
- is-link: true
|
|
140
|
+
text: View Details
|
|
141
|
+
- is-button: true
|
|
142
|
+
text: Delete
|
|
143
|
+
- name: via-paragraphs
|
|
144
|
+
context:
|
|
145
|
+
data:
|
|
146
|
+
rows:
|
|
147
|
+
- paragraph: true
|
|
148
|
+
- paragraph: true
|
|
149
|
+
- paragraph: true
|
|
150
|
+
- paragraph: true
|
|
151
|
+
- name: via-paragraphs-cms
|
|
152
|
+
view: 'table--via-paragraphs.hbs'
|
|
153
|
+
label: Via Paragraphs (CMS)
|
|
154
|
+
context:
|
|
155
|
+
shouldLoadCMS: true
|
|
156
|
+
data:
|
|
157
|
+
rows:
|
|
158
|
+
- paragraph: true
|
|
159
|
+
- paragraph: true
|
|
160
|
+
- paragraph: true
|
|
161
|
+
- paragraph: true
|
|
162
|
+
- name: with-paragraphs
|
|
43
163
|
context:
|
|
44
164
|
data:
|
|
45
165
|
cols:
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<h2>Fake Table</h2>
|
|
2
|
+
|
|
3
|
+
{{> @s-paragraph-table class="s-paragraph-table" data=data }}
|
|
4
|
+
|
|
5
|
+
<br />
|
|
6
|
+
<br />
|
|
7
|
+
|
|
8
|
+
<h2>Real Table</h2>
|
|
9
|
+
|
|
10
|
+
<table class="{{#if class }}{{ class }}{{/if}}">
|
|
11
|
+
<tbody>
|
|
12
|
+
{{#each data.rows}}
|
|
13
|
+
<tr>
|
|
14
|
+
{{#if paragraph}}
|
|
15
|
+
<td title="{{> @text-of-one-paragraph-short }}">
|
|
16
|
+
<p>{{> @text-of-one-paragraph-short }}</p>
|
|
17
|
+
</td>
|
|
18
|
+
{{/if}}
|
|
19
|
+
</tr>
|
|
20
|
+
{{/each}}
|
|
21
|
+
</tbody>
|
|
22
|
+
</table>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
A [table]({{path './table' }}) that uses [paragraphs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p) instead of cells.
|
|
2
|
+
|
|
3
|
+
> **ⓘ Notice**
|
|
4
|
+
>
|
|
5
|
+
> - Text will not truncate. It will wrap.
|
|
6
|
+
> - Only a single column is supported.
|
|
7
|
+
|
|
8
|
+
> **⁉ Help**
|
|
9
|
+
>
|
|
10
|
+
> Should text truncate? Ask designers.
|
|
11
|
+
|
|
12
|
+
<script>
|
|
13
|
+
/* To open external links in new window */
|
|
14
|
+
Array.from(document.links)
|
|
15
|
+
.filter(link => link.hostname != window.location.hostname)
|
|
16
|
+
.forEach(link => link.target = '_blank');
|
|
17
|
+
</script>
|
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
<table {{#if
|
|
1
|
+
<table class="{{#if table }}has-table{{/if}} {{#if class }}{{ class }}{{/if}}">
|
|
2
2
|
{{#if caption }}
|
|
3
3
|
<caption>{{{ caption }}}</catpion>
|
|
4
4
|
{{/if}}
|
|
5
|
+
{{#if data.cols }}
|
|
5
6
|
<thead>
|
|
6
7
|
<tr>
|
|
7
8
|
{{#each data.cols}}<th>{{ this }}</th>{{/each}}
|
|
8
9
|
</tr>
|
|
9
10
|
</thead>
|
|
11
|
+
{{/if}}
|
|
10
12
|
<tbody>
|
|
13
|
+
{{#each data.key-value-pairs}}
|
|
14
|
+
<tr>
|
|
15
|
+
{{#if key}}<th class="c-data-list__key">{{ key }}</th>{{/if}}
|
|
16
|
+
{{#if value}}<td class="c-data-list__value">{{ value }}</td>{{/if}}
|
|
17
|
+
</tr>
|
|
18
|
+
{{/each}}
|
|
11
19
|
{{#each data.rows}}
|
|
12
20
|
<tr>
|
|
13
21
|
{{#if id}}<th>{{ id }}</th>{{/if}}
|
|
14
22
|
{{#if name}}<th>{{ name }}</th>{{/if}}
|
|
15
23
|
{{#if name-link}}<th><a href="#">{{ name-link }}</a></th>{{/if}}
|
|
16
24
|
{{#if paragraph}}
|
|
17
|
-
<td title="{{> @text-of-one-paragraph }}">
|
|
18
|
-
<p>{{> @text-of-one-paragraph }}</p>
|
|
25
|
+
<td title="{{> @text-of-one-paragraph-short }}">
|
|
26
|
+
<p>{{> @text-of-one-paragraph-short }}</p>
|
|
19
27
|
</td>
|
|
20
28
|
{{/if}}
|
|
21
29
|
{{#if sentence}}
|
|
@@ -1,23 +1,36 @@
|
|
|
1
1
|
@import url("../tools/x-truncate.css");
|
|
2
2
|
|
|
3
|
-
table
|
|
3
|
+
@import url("./table.selectors.css");
|
|
4
|
+
|
|
5
|
+
table,
|
|
6
|
+
:--s-paragraph-table {
|
|
7
|
+
--font-size: var(--global-font-size--small, 12px);
|
|
8
|
+
--cell-pad-vert: 0.6667em; /* 8px if font-size is 12px */
|
|
9
|
+
--cell-pad-horz: 1.3333em; /* 16px if font-size is 12px */
|
|
10
|
+
--cell-line-height: 1.1;
|
|
11
|
+
|
|
4
12
|
/* To prevent borders from being hidden */
|
|
5
13
|
/* NOTE: Specifically, the right border of pinned columns (narrow windows) */
|
|
6
14
|
border-collapse: separate; /* overwrite Bootstrap */
|
|
7
15
|
border-spacing: 0;
|
|
8
16
|
|
|
9
17
|
font-family: var(--global-font-family--sans--portal);
|
|
10
|
-
font-size: var(--
|
|
18
|
+
font-size: var(--font-size);
|
|
19
|
+
}
|
|
20
|
+
:--s-paragraph-table {
|
|
21
|
+
display: table; /* to mimic shrink-wrap width of real table */
|
|
11
22
|
}
|
|
12
23
|
|
|
13
|
-
/* To add border to
|
|
24
|
+
/* To add top border to tbody (unless nested) */
|
|
14
25
|
/* FAQ: Added to cell, not row, because `border-collapse: separate` */
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
border-
|
|
18
|
-
border-bottom-color: var(--global-color-primary--x-dark);
|
|
26
|
+
tbody > tr:first-child > :is(td, th),
|
|
27
|
+
:--s-paragraph-table {
|
|
28
|
+
border-top: var(--global-border-width--normal) solid var(--global-color-primary--dark);
|
|
19
29
|
}
|
|
20
|
-
|
|
30
|
+
|
|
31
|
+
/* To add bottom border to rows */
|
|
32
|
+
tr:not(:last-of-type) > :is(td, th),
|
|
33
|
+
:--s-paragraph-table p:not(:last-of-type) {
|
|
21
34
|
border-bottom-width: var(--global-border-width--normal);
|
|
22
35
|
border-bottom-style: solid;
|
|
23
36
|
border-bottom-color: var(--global-color-primary--light);
|
|
@@ -29,32 +42,30 @@ tr:not(:last-of-type) > :is(td, th) {
|
|
|
29
42
|
tr:nth-child(odd) :is(th, td) {
|
|
30
43
|
background: var(--global-color-background--app);
|
|
31
44
|
}
|
|
32
|
-
tr:nth-child(even) :is(th, td)
|
|
45
|
+
tr:nth-child(even) :is(th, td),
|
|
46
|
+
:--s-paragraph-table p:nth-child(even) {
|
|
33
47
|
background: var(--global-color-primary--x-light);
|
|
34
48
|
}
|
|
35
49
|
|
|
36
|
-
:is(td, th)
|
|
50
|
+
:is(td, th),
|
|
51
|
+
:--s-paragraph-table p {
|
|
37
52
|
vertical-align: top;
|
|
38
|
-
padding-block:
|
|
39
|
-
padding-inline:
|
|
53
|
+
padding-block: var(--cell-pad-vert);
|
|
54
|
+
padding-inline: var(--cell-pad-horz);
|
|
40
55
|
|
|
41
56
|
color: var(--global-color-primary--dark);
|
|
42
57
|
}
|
|
43
58
|
/* To ensure <thead> height matches between browsers */
|
|
44
|
-
:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/* IMPORTANT: More than for consistency; `table--nested.css` requires this */
|
|
49
|
-
line-height: var(--global-font-size--medium);
|
|
59
|
+
/* IMPORTANT: More than for consistency; `table--nested.css` requires this */
|
|
60
|
+
:is(td, th),
|
|
61
|
+
:--s-paragraph-table p {
|
|
62
|
+
line-height: var(--cell-line-height);
|
|
50
63
|
}
|
|
51
64
|
/* To pin first column to left of table even during scroll */
|
|
52
65
|
/* WARNING: Design has not reviewed this (but not designed responsive table) */
|
|
53
66
|
:is(th, td):first-child {
|
|
54
67
|
position: sticky;
|
|
55
68
|
left: 0;
|
|
56
|
-
|
|
57
|
-
border-right: var(--global-border-width--normal) solid var(--global-color-primary--light);
|
|
58
69
|
}
|
|
59
70
|
|
|
60
71
|
th {
|
|
@@ -70,13 +81,13 @@ tbody > tr > th {
|
|
|
70
81
|
}
|
|
71
82
|
|
|
72
83
|
caption {
|
|
73
|
-
font-size: var(--
|
|
84
|
+
font-size: var(--font-size);
|
|
74
85
|
text-align: unset; /* undo Bootstrap _reboot.css */
|
|
75
86
|
caption-side: top; /* override Bootstrap */
|
|
76
87
|
|
|
77
88
|
/* To mimic table cell */
|
|
78
|
-
padding-block:
|
|
79
|
-
padding-inline:
|
|
89
|
+
padding-block: var(--cell-pad-vert);
|
|
90
|
+
padding-inline: var(--cell-pad-horz);
|
|
80
91
|
}
|
|
81
92
|
|
|
82
93
|
|
|
@@ -95,19 +106,24 @@ td li:not(:last-of-type) {
|
|
|
95
106
|
}
|
|
96
107
|
|
|
97
108
|
/* To override browser */
|
|
98
|
-
td button
|
|
109
|
+
td button,
|
|
110
|
+
:--s-paragraph-table p button {
|
|
99
111
|
/* To match font-size of table cell text and links */
|
|
100
112
|
font-size: inherit;
|
|
101
113
|
}
|
|
102
114
|
|
|
103
115
|
/* To override `site.css` or browser */
|
|
104
|
-
table p
|
|
116
|
+
table p,
|
|
117
|
+
:--s-paragraph-table p {
|
|
105
118
|
margin-top: 0;
|
|
106
119
|
}
|
|
107
|
-
table p:last-child
|
|
120
|
+
table p:last-child,
|
|
121
|
+
:--s-paragraph-table p {
|
|
108
122
|
margin-bottom: 0;
|
|
109
123
|
}
|
|
110
124
|
|
|
125
|
+
/* To truncate paragraphs */
|
|
126
|
+
/* FAQ: Except for :--s-paragraph-table's whose <p> tags we permit to wrap */
|
|
111
127
|
table p {
|
|
112
128
|
@extend %x-truncate--many-lines;
|
|
113
129
|
}
|
|
@@ -31,22 +31,33 @@
|
|
|
31
31
|
td.has-table { padding: 0; }
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
/* To replace parent table columns above with nested table columns */
|
|
34
|
+
/* To replace any parent table columns above with nested table columns */
|
|
35
35
|
/* FAQ: Pulls nested table up by the height of the parent table head */
|
|
36
|
-
tr table {
|
|
37
|
-
--offset: calc(
|
|
36
|
+
thead + tbody tr table {
|
|
37
|
+
--offset-distance: calc(
|
|
38
|
+
var(--cell-pad-vert) * 2
|
|
39
|
+
+
|
|
40
|
+
var(--cell-line-height) * var(--font-size)
|
|
41
|
+
+
|
|
42
|
+
var(--global-border-width--normal)
|
|
43
|
+
);
|
|
44
|
+
--offset: calc( var(--offset-distance) * -1 );
|
|
38
45
|
|
|
39
46
|
transform: translateY(var(--offset));
|
|
40
47
|
margin-bottom: var(--offset);
|
|
41
48
|
}
|
|
42
49
|
/* FAQ: Hides any parent table head underneath nested table head */
|
|
43
|
-
tr:first-of-type thead {
|
|
50
|
+
thead + tbody tr:first-of-type thead {
|
|
44
51
|
background: var(--global-color-background--app);
|
|
45
52
|
}
|
|
46
53
|
/* FAQ: Hides all successive (thus redundant) nested table heads */
|
|
47
|
-
tr:not(:first-of-type) thead {
|
|
54
|
+
thead + tbody tr:not(:first-of-type) thead {
|
|
48
55
|
visibility: hidden;
|
|
49
56
|
}
|
|
57
|
+
/* FAQ: Re-colors border of all successive nested rows (to match parent row) */
|
|
58
|
+
thead + tbody tr:not(:first-of-type) tbody :is(td,th) {
|
|
59
|
+
border-color: var(--global-color-primary--light);
|
|
60
|
+
}
|
|
50
61
|
|
|
51
62
|
/* To reduce inline padding
|
|
52
63
|
at start and end of nested table
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@import url("./table.selectors.css");
|
|
2
|
+
|
|
3
|
+
/* To add bottom border to table */
|
|
4
|
+
table,
|
|
5
|
+
:--s-paragraph-table {
|
|
6
|
+
border-bottom: var(--global-border-width--thick) solid var(--global-color-primary--dark);
|
|
7
|
+
font-size: var(--global-font-size--medium);
|
|
8
|
+
line-height: 1.4;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* To thicken top border of headless table */
|
|
12
|
+
tbody:not(thead + tbody) > tr:first-child > :is(td,th),
|
|
13
|
+
:--s-paragraph-table {
|
|
14
|
+
border-top-width: var(--global-border-width--thick);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* To match row height in design (~40px) */
|
|
18
|
+
:is(td, th),
|
|
19
|
+
:--s-paragraph-table p {
|
|
20
|
+
padding-block: 10px;
|
|
21
|
+
line-height: unset;
|
|
22
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
status:
|
|
1
|
+
status: prototype
|
|
2
2
|
order: 1
|
|
3
3
|
context:
|
|
4
|
-
shouldLoadBootstrap: true
|
|
5
|
-
|
|
4
|
+
shouldLoadBootstrap: true
|
|
5
|
+
📝 shouldLoadBootstrap: >-
|
|
6
|
+
not yet tested without Bootstrap
|
|
7
|
+
(known dependencies: <caption> font color)
|
|
6
8
|
data:
|
|
7
9
|
cols:
|
|
8
10
|
- ID
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<dl>
|
|
2
|
+
<dt>Class Directly on Table</dt>
|
|
3
|
+
<dd>
|
|
4
|
+
<div>
|
|
5
|
+
{{> @table data=data caption="Header stays pinned top top of container on scroll." class="o-fixed-header-table" }}
|
|
6
|
+
</div>
|
|
7
|
+
</dd>
|
|
8
|
+
</dl>
|
|
9
|
+
<dl>
|
|
10
|
+
<dt>Class on Table Wrapper</dt>
|
|
11
|
+
<dd>
|
|
12
|
+
<div class="o-fixed-header-table">
|
|
13
|
+
{{> @table data=data caption="Header stays pinned top top of container on scroll." }}
|
|
14
|
+
</div>
|
|
15
|
+
</dd>
|
|
16
|
+
</dl>
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
A [table]({{path './table' }}) with its header pinned during vertical scroll.
|
|
2
2
|
|
|
3
|
+
> **⚠️ Important**
|
|
4
|
+
>
|
|
5
|
+
> The `<div>` wrapper is **not** required. Do not add unless your use case demands one.
|
|
6
|
+
|
|
3
7
|
> **?⃝ Explanation**
|
|
4
8
|
>
|
|
5
9
|
> [You can’t position: sticky; a `<thead>`. Nor a `<tr>`. But you can sticky a `<th>`…][source]
|
|
@@ -47,6 +47,13 @@ Styleguide Objects.Grid
|
|
|
47
47
|
max-width: 100%;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
/* Avoid figure size shrinking */
|
|
51
|
+
/* HELP: Why does this happen to figure only inside a gid? */
|
|
52
|
+
/* SEE: components/c-card--frontera/c-card--frontera.hbs */
|
|
53
|
+
.o-grid figure {
|
|
54
|
+
width: unset; /* undo html-elements.css */
|
|
55
|
+
}
|
|
56
|
+
|
|
50
57
|
/* Hide content that does exceed cell size */
|
|
51
58
|
.o-grid > * {
|
|
52
59
|
overflow: hidden;
|
|
@@ -9,19 +9,15 @@ Styleguide Objects.OffsetContent
|
|
|
9
9
|
*/
|
|
10
10
|
@import url("../tools/media-queries.css");
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
@custom-selector :--o-offset-content
|
|
15
|
-
.o-offset-content--left,
|
|
16
|
-
.o-offset-content--right;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
:--o-offset-content {
|
|
12
|
+
.o-offset-content--left,
|
|
13
|
+
.o-offset-content--right {
|
|
21
14
|
--offset-distance: min(15vw, 410px);
|
|
22
15
|
--buffer: calc( 2 * var(--global-space--grid-gap) );
|
|
16
|
+
|
|
17
|
+
max-width: 85%;
|
|
23
18
|
}
|
|
24
19
|
|
|
20
|
+
/* To merely float content on narrow screens */
|
|
25
21
|
@media only screen and (--medium-and-above) {
|
|
26
22
|
.o-offset-content--right {
|
|
27
23
|
float: right;
|
|
@@ -35,15 +31,18 @@ Styleguide Objects.OffsetContent
|
|
|
35
31
|
}
|
|
36
32
|
.o-offset-content--left + .o-offset-content--left { clear: left; }
|
|
37
33
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
.figure:is(
|
|
35
|
+
.o-offset-content--left,
|
|
36
|
+
.o-offset-content--right
|
|
37
|
+
) .figure-caption {
|
|
38
|
+
padding-right: 125px;
|
|
39
|
+
}
|
|
41
40
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
|
|
42
|
+
/* To offset content only on wide screens */
|
|
43
|
+
/* HELP: Do designers want to prevent offset on mega-wide screens */
|
|
44
|
+
/* FAQ: M.S. did on texascale.org but that may have been only for that site */
|
|
45
|
+
@media only screen and (--medium-and-above)/* and (--max-wide-and-below) */{
|
|
47
46
|
.o-offset-content--right {
|
|
48
47
|
margin-right: calc( var(--offset-distance) * -1);
|
|
49
48
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
To highlight a row of content with extra spacing.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
context:
|
|
2
|
+
shouldLoadCMS: true
|
|
3
|
+
📝 shouldLoadCMS: this pattern is not intended nor expected for use beyond CMS
|
|
4
|
+
shouldLoadBootstrap: true
|
|
5
|
+
📝 shouldLoadBootstrap: so we can test .container.o-section combo
|
|
6
|
+
variants:
|
|
7
|
+
- name: style-light
|
|
8
|
+
label: (Style) Light
|
|
9
|
+
context:
|
|
10
|
+
modifier: style-light
|
|
11
|
+
- name: style-muted
|
|
12
|
+
label: (Style) Muted
|
|
13
|
+
context:
|
|
14
|
+
modifier: style-muted
|
|
15
|
+
- name: style-dark
|
|
16
|
+
label: (Style) Dark
|
|
17
|
+
context:
|
|
18
|
+
modifier: style-dark
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* This CSS is ONLY for the pattern library. It is NOT part of the pattern. */
|
|
2
|
+
|
|
3
|
+
/* To add bottom space that will actually show up demo */
|
|
4
|
+
/* https://github.com/TACC/Core-Styles/blob/823b7b9/src/lib/_imports/elements/html-elements.css#L61-L63 */
|
|
5
|
+
body > main {
|
|
6
|
+
margin-bottom: unset;
|
|
7
|
+
padding-bottom: var(--global-space--section-gap);
|
|
8
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
|
|
2
|
+
<section class="o-section o-section--{{this._self.name}}">
|
|
3
|
+
<h2>Section</h2>
|
|
4
|
+
{{render '@o-section--usage'}}
|
|
5
|
+
</section>
|
|
6
|
+
|
|
7
|
+
<hr />
|
|
8
|
+
|
|
9
|
+
<section class="o-section o-section--{{this._self.name}}">
|
|
10
|
+
<h2>Section (First of a Pair)</h2>
|
|
11
|
+
<p>{{> @text-of-one-paragraph-medium }}</p>
|
|
12
|
+
</section>
|
|
13
|
+
<section class="o-section o-section--{{this._self.name}}">
|
|
14
|
+
<h2>Section (Second of a Pair)</h2>
|
|
15
|
+
<p>{{> @text-of-one-paragraph-medium }}</p>
|
|
16
|
+
</section>
|
|
17
|
+
|
|
18
|
+
<hr />
|
|
19
|
+
|
|
20
|
+
<section class="o-section o-section--{{this._self.name}}">
|
|
21
|
+
<h2>Section (before Muted Section)</h2>
|
|
22
|
+
<p>{{> @text-of-one-paragraph-medium }}</p>
|
|
23
|
+
</section>
|
|
24
|
+
<section class="o-section o-section--style-muted">
|
|
25
|
+
<h2>Muted Section</h2>
|
|
26
|
+
<p>{{> @text-of-one-paragraph-medium }}</p>
|
|
27
|
+
</section>
|
|
28
|
+
<section class="o-section o-section--{{this._self.name}}">
|
|
29
|
+
<h2>Section (after Muted Section)</h2>
|
|
30
|
+
<p>{{> @text-of-one-paragraph-medium }}</p>
|
|
31
|
+
</section>
|
|
32
|
+
|
|
33
|
+
<hr />
|
|
34
|
+
|
|
35
|
+
<section class="o-section o-section--{{this._self.name}}">
|
|
36
|
+
<h2>Section (with Nested Sections)</h2>
|
|
37
|
+
<p>⚠️ These are not used in any design. They are minimally supported only to prevent layouts from breaking if accidentally used.</p>
|
|
38
|
+
<div class="o-section o-section--style-dark">
|
|
39
|
+
<h3>(Nested) Dark Section</h3>
|
|
40
|
+
<p>{{> @text-of-one-paragraph-short }}</p>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="o-section o-section--style-muted">
|
|
43
|
+
<h3>(Nested) Muted Section</h3>
|
|
44
|
+
<p>{{> @text-of-one-paragraph-short }}</p>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="o-section o-section--style-light">
|
|
47
|
+
<h3>(Nested) Light Section</h3>
|
|
48
|
+
<p>{{> @text-of-one-paragraph-short }}</p>
|
|
49
|
+
</div>
|
|
50
|
+
</section>
|
|
51
|
+
|
|
52
|
+
<hr />
|
|
53
|
+
|
|
54
|
+
<section class="o-section o-section--{{this._self.name}}">
|
|
55
|
+
<h2>Section (at Bottom of Page)</h2>
|
|
56
|
+
<p>At the bottom of a CMS page: a <strong>light</strong> Section will stand out above the Footer, a <strong>muted</strong> Section will stand out above the Footer, a <strong>dark</strong> Section will visually merge with the Footer.</p>
|
|
57
|
+
</section>
|