@tacc/core-styles 0.9.0 → 0.11.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 +21 -11
- package/dist/branding_logos.css +1 -2
- package/dist/components/README.css +1 -1
- package/dist/components/bootstrap/bootstrap--form.docs.css +1 -0
- package/dist/components/bootstrap/bootstrap--modal.docs.css +1 -0
- package/dist/components/bootstrap/bootstrap.modal/docs.css +1 -0
- package/dist/components/bootstrap/docs.css +1 -0
- package/dist/components/bootstrap/portal/bootstrap.form/docs.css +1 -0
- package/dist/components/bootstrap--container.css +1 -0
- package/dist/components/bootstrap--form/docs.css +1 -0
- package/dist/components/bootstrap--form.css +1 -0
- package/dist/components/bootstrap--modal/docs.css +1 -0
- package/dist/components/bootstrap--modal.css +1 -0
- package/dist/components/bootstrap.container.css +1 -2
- package/dist/components/bootstrap.css +1 -0
- package/dist/components/bootstrap.figure.css +1 -2
- package/dist/components/bootstrap.form/docs.css +1 -0
- package/dist/components/bootstrap.form.css +1 -2
- package/dist/components/bootstrap.modal/docs.css +1 -0
- package/dist/components/bootstrap.modal.css +1 -2
- package/dist/components/bootstrap.pagination.css +1 -2
- package/dist/components/c-button/docs.css +1 -0
- package/dist/components/c-button.css +1 -2
- package/dist/components/c-callout.css +1 -2
- package/dist/components/c-card.css +1 -2
- package/dist/components/c-data-list.css +1 -2
- package/dist/components/c-footer.css +1 -2
- package/dist/components/c-image-map.css +1 -2
- package/dist/components/c-image-map.skin.css +1 -1
- package/dist/components/c-image-map.structure.css +1 -2
- package/dist/components/c-message.css +1 -2
- package/dist/components/c-nav.css +1 -2
- package/dist/components/c-page.css +1 -2
- package/dist/components/c-recognition.css +1 -2
- package/dist/components/c-see-all-link.css +1 -2
- package/dist/components/c-show-more.css +1 -2
- package/dist/components/cortal.icon.css +1 -2
- package/dist/components/cortal.icon.font.css +1 -2
- package/dist/elements/README.css +1 -1
- package/dist/elements/bootstrap.css +1 -2
- package/dist/elements/form.cms.css +1 -2
- package/dist/elements/html-elements.cms.css +1 -2
- package/dist/elements/links/docs.css +1 -0
- package/dist/elements/links.css +1 -0
- package/dist/elements/table/docs.css +1 -0
- package/dist/elements/table/table.docs.css +1 -0
- package/dist/elements/table copy.css +1 -0
- package/dist/elements/table--basic.css +1 -0
- package/dist/elements/table--nested.css +1 -0
- package/dist/elements/table.css +1 -0
- package/dist/elements/tacc-search-bar.css +1 -2
- package/dist/fonts/fonts/BentonSans-Bold.otf +0 -0
- package/dist/fonts/fonts/BentonSans-Medium.otf +0 -0
- package/dist/fonts/fonts/BentonSans-MediumItalic.otf +0 -0
- package/dist/fonts/fonts/BentonSans-Regular.otf +0 -0
- package/dist/fractal.server.css +1 -0
- package/dist/fractal.server.refresh.css +1 -0
- package/dist/fractal.server.reload.css +1 -0
- package/dist/generics/README.css +1 -1
- package/dist/generics/fonts.css +1 -2
- package/dist/objects/README.css +1 -1
- package/dist/objects/o-fixed-header-table.css +1 -2
- package/dist/objects/o-flex-item-table-wrap.css +1 -2
- package/dist/objects/o-float-content.css +1 -2
- package/dist/objects/o-grid.css +1 -2
- package/dist/objects/o-offset-content.css +1 -2
- package/dist/objects/o-section.css +1 -2
- package/dist/objects/o-site.css +1 -1
- package/dist/settings/README.css +1 -1
- package/dist/settings/border.css +1 -2
- package/dist/settings/color.css +1 -2
- package/dist/settings/font.css +1 -2
- package/dist/settings/max-width.css +1 -2
- package/dist/settings/space.css +1 -2
- package/dist/tools/README.css +1 -1
- package/dist/tools/media-queries.css +1 -1
- package/dist/tools/x-article-link.css +1 -2
- package/dist/tools/x-center.css +1 -2
- package/dist/tools/x-fake-border.css +1 -2
- package/dist/tools/x-grid.css +1 -1
- package/dist/tools/x-layout.css +1 -2
- package/dist/tools/x-link/docs.css +1 -0
- package/dist/tools/x-link.css +1 -0
- 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 -2
- package/dist/trumps/README.css +1 -1
- package/dist/trumps/icon.css +1 -2
- package/dist/trumps/icon.fonts.css +1 -2
- package/dist/trumps/s-affixed-input-wrapper.css +1 -0
- package/dist/trumps/s-article-list.css +1 -2
- package/dist/trumps/s-article-preview.css +1 -2
- package/dist/trumps/s-blockquote.css +1 -2
- package/dist/trumps/s-breadcrumbs.css +1 -2
- package/dist/trumps/s-cms-nav.css +1 -1
- package/dist/trumps/s-document.css +1 -2
- package/dist/trumps/s-footer.css +1 -2
- package/dist/trumps/s-guide-doc.css +1 -2
- package/dist/trumps/s-header.css +1 -2
- package/dist/trumps/s-inline-dl.css +1 -2
- package/dist/trumps/s-irregular-links.css +1 -0
- package/dist/trumps/s-portal-nav.css +1 -2
- package/dist/trumps/s-style-guide.css +1 -2
- package/dist/trumps/s-system-specs.css +1 -2
- package/dist/trumps/tacc-search-bar.css +1 -2
- package/dist/trumps/u-empty.css +1 -1
- package/dist/trumps/u-hide.css +1 -2
- package/dist/trumps/u-mailto-text-replace.css +1 -2
- package/dist/trumps/u-nested-text-content.css +1 -2
- package/fractal.config.js +7 -5
- package/package.json +26 -13
- package/src/lib/_imports/README.md +13 -20
- package/src/lib/_imports/_partials/bootstrap.css.hbs +1 -0
- package/src/lib/_imports/_partials/bootstrap.js.hbs +2 -0
- package/src/lib/_imports/_partials/cms.css.hbs +3 -0
- package/src/lib/_imports/_partials/css.hbs +27 -0
- package/src/lib/_imports/_partials/loremipsum.hbs +18 -0
- package/src/lib/_imports/_partials/text-and-button-as-link.hbs +1 -0
- package/src/lib/_imports/_partials/text-and-link.hbs +1 -0
- package/src/lib/_imports/_partials/text-of-one-paragraph.hbs +1 -0
- package/src/lib/_imports/_preview.bootstrap-cms.hbs +5 -0
- package/src/lib/_imports/_preview.bootstrap.hbs +5 -0
- package/src/lib/_imports/_preview.cms.hbs +3 -0
- package/src/lib/_imports/_preview.hbs +22 -10
- package/src/lib/_imports/components/_components.config.yml +2 -1
- package/src/lib/_imports/components/bootstrap/bootstrap--container.hbs +4 -0
- package/src/lib/_imports/components/bootstrap/bootstrap--container.readme.md +54 -0
- package/src/lib/_imports/components/bootstrap/bootstrap--form.docs.css +5 -0
- package/src/lib/_imports/components/bootstrap/bootstrap--form.hbs +17 -0
- package/src/lib/_imports/components/bootstrap/bootstrap--form.readme.md +17 -0
- package/src/lib/_imports/components/bootstrap/bootstrap--modal.docs.css +12 -0
- package/src/lib/_imports/components/bootstrap/bootstrap--modal.hbs +51 -0
- package/src/lib/_imports/components/bootstrap/bootstrap--modal.readme.md +8 -0
- package/src/lib/_imports/components/bootstrap/bootstrap.hbs +6 -0
- package/src/lib/_imports/components/bootstrap/bootstrap.readme.md +14 -0
- package/src/lib/_imports/components/bootstrap/config.yml +16 -0
- package/src/lib/_imports/components/bootstrap/docs.css +7 -0
- package/src/lib/_imports/components/bootstrap.container.css +3 -11
- package/src/lib/_imports/components/bootstrap.css +3 -0
- package/src/lib/_imports/components/bootstrap.form.css +0 -7
- package/src/lib/_imports/components/bootstrap.modal.css +0 -12
- package/src/lib/_imports/components/c-button/c-button.hbs +22 -18
- package/src/lib/_imports/components/c-button/{c-button.config.yml → config.yml} +2 -0
- package/src/lib/_imports/components/c-button/{c-button_docs.css → docs.css} +2 -0
- package/src/lib/_imports/components/c-button.css +25 -10
- package/src/lib/_imports/elements/_elements.config.yml +2 -1
- package/src/lib/_imports/elements/form.cms.css +50 -0
- package/src/lib/_imports/elements/html-elements.cms.css +3 -66
- package/src/lib/_imports/elements/links/config.yml +3 -0
- package/src/lib/_imports/elements/links/docs.css +6 -0
- package/src/lib/_imports/elements/links/links.hbs +10 -0
- package/src/lib/_imports/elements/links/readme.md +8 -0
- package/src/lib/_imports/elements/links.css +11 -0
- package/src/lib/_imports/elements/table/config.yml +149 -0
- package/src/lib/_imports/elements/table/readme.md +12 -0
- package/src/lib/_imports/elements/table/table--nested.readme.md +12 -0
- package/src/lib/_imports/elements/table/table--paragraph.readme.md +12 -0
- package/src/lib/_imports/elements/table/table.hbs +44 -0
- package/src/lib/_imports/elements/table--basic.css +102 -0
- package/src/lib/_imports/elements/table--nested.css +61 -0
- package/src/lib/_imports/elements/table.css +2 -0
- package/src/lib/_imports/fractal.server.refresh.css +0 -0
- package/src/lib/_imports/generics/_generics.config.yml +2 -1
- package/src/lib/_imports/objects/_objects.config.yml +2 -1
- package/src/lib/_imports/tools/_tools.config.yml +2 -0
- package/src/lib/_imports/tools/x-link/docs.css +6 -0
- package/src/lib/_imports/tools/x-link/readme.md +14 -0
- package/src/lib/_imports/tools/x-link/x-link.hbs +14 -0
- package/src/lib/_imports/tools/x-link.css +38 -0
- package/src/lib/_imports/tools/x-mailto-text-replace.css +6 -4
- package/src/lib/_imports/trumps/_trumps.config.yml +3 -1
- package/src/lib/_imports/trumps/s-affixed-input-wrapper/config.yml +5 -0
- package/src/lib/_imports/trumps/s-affixed-input-wrapper/readme.md +22 -0
- package/src/lib/_imports/trumps/s-affixed-input-wrapper/s-affixed-input-wrapper.hbs +30 -0
- package/src/lib/_imports/trumps/s-affixed-input-wrapper.css +94 -0
- package/src/lib/_imports/trumps/s-irregular-links/config.yml +8 -0
- package/src/lib/_imports/trumps/s-irregular-links/readme.md +29 -0
- package/src/lib/_imports/trumps/s-irregular-links/s-irregular-links.hbs +10 -0
- package/src/lib/_imports/trumps/s-irregular-links.css +14 -0
- package/src/lib/_imports/trumps/u-mailto-text-replace/config.yml +4 -0
- package/src/lib/_imports/trumps/u-mailto-text-replace/readme.md +15 -0
- package/src/lib/_imports/trumps/u-mailto-text-replace.css +1 -1
- package/dist/components/c-button/c-button_docs.css +0 -2
- package/dist/elements/html-elements.css +0 -2
- package/src/lib/_imports/components/_components.preview.hbs +0 -1
- package/src/lib/_imports/elements/_elements.preview.hbs +0 -1
- package/src/lib/_imports/generics/_generics.preview.hbs +0 -1
- package/src/lib/_imports/objects/_objects.preview.hbs +0 -1
- package/src/lib/_imports/trumps/_trumps.preview.hbs +0 -1
- package/src/lib/_imports/trumps/u-mailto-text-replace/u-mailto-text-replace.config.yml +0 -7
- package/src/lib/_tests/README.md +0 -38
- package/src/lib/_tests/postcss-extend.css +0 -80
- package/src/lib/_tests/postcss-preset-env.css +0 -75
- package/src/lib/_tests.css +0 -12
|
@@ -5,10 +5,8 @@ Styles here should be isolated UI patterns and be imported by other stylesheets.
|
|
|
5
5
|
## Rules
|
|
6
6
|
|
|
7
7
|
1. Files **must** be [organized appropriately](#directory-organization).
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
- Styles **should** be for [structure](#structure-vs-skin) and **may** be for [skin](#structure-vs-skin).
|
|
8
|
+
2. Files **must** be [documented appropriately](#documentation-format).
|
|
9
|
+
3. Files **must** follow the [style guide][tacc-style-guide].
|
|
12
10
|
|
|
13
11
|
## Directory Organization
|
|
14
12
|
|
|
@@ -18,30 +16,25 @@ These directories are based on [ITCSS][tacc-itcss].
|
|
|
18
16
|
|
|
19
17
|
## Documentation Format
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
/*
|
|
23
|
-
Styles Name
|
|
24
|
-
|
|
25
|
-
Description of the purpose and use case of styles. Use the `Markup:` property to link to sample markup. The documentation format is [KSS Node](https://github.com/kss-node/kss-node/blob/master/README.md).
|
|
26
|
-
|
|
27
|
-
Markup: x-stylesheet-name.html
|
|
19
|
+
See [Fractal: User Guide: Components][fractal-docs-guide]. (What we call "Patterns", Fractal calls "Components".)
|
|
28
20
|
|
|
29
|
-
|
|
30
|
-
*/
|
|
21
|
+
### Overview
|
|
31
22
|
|
|
32
|
-
.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
23
|
+
1. The `./*/README.md` files describe the type of patterns in its folders.
|
|
24
|
+
2. Underscore-prefixed files and folders are documentation templates.
|
|
25
|
+
3. Nested folders named after patterns have their docs, templates, and config.
|
|
26
|
+
4. Old-style pattern docs are `/* ... Styleguide ... */` and `.html` files.
|
|
36
27
|
|
|
37
28
|
## Style Guide
|
|
38
29
|
|
|
39
30
|
See [TACC: CSS Style Guide][tacc-style-guide].
|
|
40
31
|
|
|
41
|
-
|
|
32
|
+
### Object-Oriented Styles
|
|
42
33
|
|
|
43
|
-
-
|
|
44
|
-
-
|
|
34
|
+
- Pattern developers should understand [container vs. content][tacc-oocss].
|
|
35
|
+
- Most styles will be _only **or** mostly_ for [structure][tacc-oocss].
|
|
36
|
+
- Some styles may be for [skin][tacc-oocss].
|
|
45
37
|
|
|
46
38
|
[tacc-oocss]: https://confluence.tacc.utexas.edu/x/VwALBg 'TACC: Object-Oriented CSS'
|
|
47
39
|
[tacc-style-guide]: https://confluence.tacc.utexas.edu/x/ZQALBg 'TACC: CSS Style Guide'
|
|
40
|
+
[fractal-docs-guide]: https://fractal.build/guide/components/#what-defines-a-component 'Fractal: User Guide: Components'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
|
2
|
+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{{!-- To render library basics consistently regardless of external styles --}}
|
|
2
|
+
{{!-- FAQ: overwrite CMS and/or Bootstrap (if present) --}}
|
|
3
|
+
<style>
|
|
4
|
+
dl dl {
|
|
5
|
+
margin-block: 0;
|
|
6
|
+
}
|
|
7
|
+
dt, dd {
|
|
8
|
+
font-family: Arial, sans;
|
|
9
|
+
color: #484848;
|
|
10
|
+
line-height: normal;
|
|
11
|
+
}
|
|
12
|
+
dt {
|
|
13
|
+
font-weight: normal;
|
|
14
|
+
margin-bottom: 10px;
|
|
15
|
+
}
|
|
16
|
+
dt:not(:first-of-type) {
|
|
17
|
+
margin-top: 20px;
|
|
18
|
+
}
|
|
19
|
+
dd {
|
|
20
|
+
margin-bottom: 10px;
|
|
21
|
+
margin-left: 25px;
|
|
22
|
+
}
|
|
23
|
+
dd > * {
|
|
24
|
+
margin-right: 5px;
|
|
25
|
+
vertical-align: middle;
|
|
26
|
+
}
|
|
27
|
+
</style>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
|
|
2
|
+
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
|
|
3
|
+
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
|
4
|
+
<p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
|
|
5
|
+
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
|
|
6
|
+
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
|
7
|
+
<p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
|
|
8
|
+
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
|
|
9
|
+
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
|
10
|
+
<p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
|
|
11
|
+
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
|
|
12
|
+
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
|
13
|
+
<p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
|
|
14
|
+
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
|
|
15
|
+
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
|
16
|
+
<p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
|
|
17
|
+
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
|
|
18
|
+
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<p>Pack my red box with five dozen quality jugs. A quick brown fox jumps over the <button class="c-button c-button--as-link">lazy dog</button>. A waxy gent chuckled over my fab jazzy quips.</p>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<p>Pack my red box with five dozen quality jugs. A quick brown fox jumps over the <a href="#">lazy dog</a>. A waxy gent chuckled over my fab jazzy quips.</p>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
{{!
|
|
1
|
+
{{! To ensure HTML comments that follow are within the head, not before it }}
|
|
2
|
+
{{! FAQ: Any <link>s, and comments AFTER the first, are migrated to <head> }}
|
|
3
|
+
<link rel='author' href='https://github.com/TACC/Core-Styles' />
|
|
4
|
+
|
|
5
|
+
<!-- styles: support (the current component) -->
|
|
6
|
+
{{#each _target.context.supportStyles}}
|
|
7
|
+
<link rel='stylesheet' href='{{path this}}' />
|
|
8
|
+
{{/each}}
|
|
9
|
+
<!-- styles: base (the current component) -->
|
|
2
10
|
{{#unless styles.shouldSkipBase}}
|
|
3
11
|
<link
|
|
4
12
|
rel='stylesheet'
|
|
5
|
-
href='{{path "/{{ subdir }}/{{ _target.baseHandle }}.css"}}'
|
|
13
|
+
href='{{path "/assets/{{ _target.context.subdir }}/{{ _target.baseHandle }}.css"}}'
|
|
6
14
|
/>
|
|
7
15
|
{{/unless}}
|
|
8
16
|
|
|
9
|
-
|
|
10
|
-
|
|
17
|
+
|
|
18
|
+
<!-- styles: global (for every component) -->
|
|
19
|
+
<!-- (manually configured) -->
|
|
11
20
|
{{#each styles.external.global}}
|
|
12
21
|
<link rel='stylesheet' href='{{this}}' />
|
|
13
22
|
{{/each}}
|
|
@@ -15,8 +24,8 @@
|
|
|
15
24
|
<link rel='stylesheet' href='{{path this}}' />
|
|
16
25
|
{{/each}}
|
|
17
26
|
|
|
18
|
-
|
|
19
|
-
|
|
27
|
+
<!-- styles: local (for current component) -->
|
|
28
|
+
<!-- (automatically found) -->
|
|
20
29
|
{{#each _target.resources.assets}}
|
|
21
30
|
{{#if isCSS}}
|
|
22
31
|
<link
|
|
@@ -25,7 +34,7 @@
|
|
|
25
34
|
/>
|
|
26
35
|
{{/if}}
|
|
27
36
|
{{/each}}
|
|
28
|
-
|
|
37
|
+
<!-- (manually configured) -->
|
|
29
38
|
{{#each styles.external.local}}
|
|
30
39
|
<link rel='stylesheet' href='{{this}}' />
|
|
31
40
|
{{/each}}
|
|
@@ -33,8 +42,11 @@
|
|
|
33
42
|
<link rel='stylesheet' href='{{path this}}' />
|
|
34
43
|
{{/each}}
|
|
35
44
|
|
|
36
|
-
{{!
|
|
37
|
-
{{
|
|
45
|
+
{{! styles: specific to pattern library (so pattern library can override any) }}
|
|
46
|
+
{{> @css }}
|
|
47
|
+
|
|
48
|
+
<!-- scripts: local (for current component) -->
|
|
49
|
+
<!-- (automatically found) -->
|
|
38
50
|
{{#each _target.resources.assets}}
|
|
39
51
|
{{#if isJS}}
|
|
40
52
|
<script
|
|
@@ -43,5 +55,5 @@
|
|
|
43
55
|
{{/if}}
|
|
44
56
|
{{/each}}
|
|
45
57
|
|
|
46
|
-
|
|
58
|
+
<!-- markup (for current component) -->
|
|
47
59
|
{{{yield}}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
context:
|
|
2
|
+
subdir: "components"
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
To add wider [Bootstrap Grid](https://getbootstrap.com/docs/4.0/layout/grid/) containers.
|
|
2
|
+
|
|
3
|
+
> **⚠️ Important**
|
|
4
|
+
>
|
|
5
|
+
> Because Bootstrap grid is so complex, only essential changes are recommended.
|
|
6
|
+
|
|
7
|
+
> **ⓘ Notice**
|
|
8
|
+
>
|
|
9
|
+
> Bootstrap grid is powerful, popular, and present; so we do use it as our grid.
|
|
10
|
+
|
|
11
|
+
<table style="caption-side: bottom;">
|
|
12
|
+
<caption>
|
|
13
|
+
|
|
14
|
+
The columns are added using TACC's `xx-wide` and `xxx-wide` custom properties and media queries.
|
|
15
|
+
|
|
16
|
+
<caption>
|
|
17
|
+
<thead>
|
|
18
|
+
<tr>
|
|
19
|
+
<th></th>
|
|
20
|
+
<th>Extra extra large <br>
|
|
21
|
+
<small>≥1680px</small>
|
|
22
|
+
</th>
|
|
23
|
+
<th>Extra extra extra large <br>
|
|
24
|
+
<small>≥1920px</small>
|
|
25
|
+
</th>
|
|
26
|
+
</tr>
|
|
27
|
+
</thead>
|
|
28
|
+
<tbody>
|
|
29
|
+
<tr>
|
|
30
|
+
<td>Max container width</td>
|
|
31
|
+
<td>1580px</td>
|
|
32
|
+
<td>1800px</td>
|
|
33
|
+
</tr>
|
|
34
|
+
<tr>
|
|
35
|
+
<td># of columns</td>
|
|
36
|
+
<td colspan="2">12</td>
|
|
37
|
+
</tr>
|
|
38
|
+
<tr>
|
|
39
|
+
<td>Gutter width</td>
|
|
40
|
+
<td colspan="2">30px (15px on each side of a column)</td>
|
|
41
|
+
</tr>
|
|
42
|
+
<tr>
|
|
43
|
+
<td>Nestable</td>
|
|
44
|
+
<td colspan="2">Yes</td>
|
|
45
|
+
</tr>
|
|
46
|
+
</tbody>
|
|
47
|
+
</table>
|
|
48
|
+
|
|
49
|
+
<script>
|
|
50
|
+
/* To open external links in new window */
|
|
51
|
+
Array.from(document.links)
|
|
52
|
+
.filter(link => link.hostname != window.location.hostname)
|
|
53
|
+
.forEach(link => link.target = '_blank');
|
|
54
|
+
</script>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<form>
|
|
2
|
+
<label for="field-name">Name</label>
|
|
3
|
+
<input type="text" class="form-control" id="field-name" name="name" placeholder="Jane Doe">
|
|
4
|
+
<br />
|
|
5
|
+
<label for="field-username">Username</label>
|
|
6
|
+
<div class="input-group">
|
|
7
|
+
<div class="input-group-prepend">
|
|
8
|
+
<div class="input-group-text">@</div>
|
|
9
|
+
</div>
|
|
10
|
+
<input type="text" class="form-control" id="field-username" name="username" placeholder="Username">
|
|
11
|
+
</div>
|
|
12
|
+
<br />
|
|
13
|
+
<label for="field-intro">Tell us about yourself</label>
|
|
14
|
+
<textarea class="form-control" id="field-intro" name="intro" rows="3"></textarea>
|
|
15
|
+
<br />
|
|
16
|
+
<button type="submit" class="c-button c-button--primary">Submit</button>
|
|
17
|
+
</form>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
To override and extend [Bootstrap Forms](https://getbootstrap.com/docs/4.3/components/forms/).
|
|
2
|
+
|
|
3
|
+
> **⚠️ WARNING**
|
|
4
|
+
>
|
|
5
|
+
> Core Styles are negligible, because this is used **only on Portal** to extend **its** overrides of Bootstrap.
|
|
6
|
+
|
|
7
|
+
> **→ TO DO**
|
|
8
|
+
>
|
|
9
|
+
> - [ ] **Either** migrate Portal Bootstrap form styling to this component.
|
|
10
|
+
> - [ ] **Or** return these styles to Portal (and remove form Core Styles).
|
|
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>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<dl>
|
|
2
|
+
<dt>Dynamic</dt>
|
|
3
|
+
<dd>
|
|
4
|
+
<button type="button" class="c-button c-button--secondary" data-toggle="modal" data-target="#exampleModalScrollable">
|
|
5
|
+
Launch modal
|
|
6
|
+
</button>
|
|
7
|
+
<div id="exampleModalScrollable" class="modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalScrollableTitle">
|
|
8
|
+
<div class="modal-dialog modal-dialog-scrollable" role="document">
|
|
9
|
+
<div class="modal-content">
|
|
10
|
+
<div class="modal-header">
|
|
11
|
+
<h5 class="modal-title" id="exampleModalScrollableTitle">Modal title</h5>
|
|
12
|
+
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
13
|
+
<span aria-hidden="true">×</span>
|
|
14
|
+
</button>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="modal-body">
|
|
17
|
+
{{> @loremipsum }}
|
|
18
|
+
</div>
|
|
19
|
+
<div class="modal-footer">
|
|
20
|
+
<button type="button" class="c-button c-button--secondary" data-dismiss="modal">
|
|
21
|
+
Close
|
|
22
|
+
</button>
|
|
23
|
+
<button type="button" class="c-button c-button--primary">
|
|
24
|
+
Fake action
|
|
25
|
+
</button>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</dd>
|
|
31
|
+
<dt>Static</dt>
|
|
32
|
+
<dd>
|
|
33
|
+
<div id="exampleModalStatic" class="modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalStaticTitle">
|
|
34
|
+
<div class="modal-dialog" role="document">
|
|
35
|
+
<div class="modal-content">
|
|
36
|
+
<div class="modal-header">
|
|
37
|
+
<h5 class="modal-title" id="exampleModalStaticTitle">Modal title</h5>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="modal-body">
|
|
40
|
+
<p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="modal-footer">
|
|
43
|
+
<button type="button" class="c-button c-button--primary">
|
|
44
|
+
Fake action
|
|
45
|
+
</button>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</dd>
|
|
51
|
+
</dl>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
To override and extend [Bootstrap Modals](https://getbootstrap.com/docs/4.3/components/modal/).
|
|
2
|
+
|
|
3
|
+
<script>
|
|
4
|
+
/* To open external links in new window */
|
|
5
|
+
Array.from(document.links)
|
|
6
|
+
.filter(link => link.hostname != window.location.hostname)
|
|
7
|
+
.forEach(link => link.target = '_blank');
|
|
8
|
+
</script>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
> **ⓘ Notice**
|
|
2
|
+
>
|
|
3
|
+
> [Despite high usage and awareness of Bootstrap, it has low and decreasing satisfaction and interest.](https://2021.stateofcss.com/en-US/technologies/css-frameworks) TACC Core use its components only when building our own would be more work than overwriting Bootstrap.
|
|
4
|
+
|
|
5
|
+
> **ⓘ Notice**
|
|
6
|
+
>
|
|
7
|
+
> Overwriting Bootstrap is cumbersome and **not** the [appropriate way to theme Bootstrap](https://getbootstrap.com/docs/4.0/getting-started/theming/), but TACC Core is **not** using SASS; it uses PostCSS.
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
/* To open external links in new window */
|
|
11
|
+
Array.from(document.links)
|
|
12
|
+
.filter(link => link.hostname != window.location.hostname)
|
|
13
|
+
.forEach(link => link.target = '_blank');
|
|
14
|
+
</script>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
preview: '@preview.bootstrap'
|
|
2
|
+
variants:
|
|
3
|
+
- name: default
|
|
4
|
+
hidden: true
|
|
5
|
+
- name: container
|
|
6
|
+
status: ready
|
|
7
|
+
- name: modal
|
|
8
|
+
context:
|
|
9
|
+
supportStyles:
|
|
10
|
+
- /assets/components/c-button.css
|
|
11
|
+
- name: form
|
|
12
|
+
label: (Portal) Form
|
|
13
|
+
status: prototype
|
|
14
|
+
context:
|
|
15
|
+
supportStyles:
|
|
16
|
+
- /assets/components/c-button.css
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* This CSS is ONLY for the pattern library. It is NOT part of the pattern. */
|
|
2
|
+
|
|
3
|
+
/* All Bootstrap pattern library CSS loads for every component */
|
|
4
|
+
/* FAQ: To support legacy client imports, Bootstrap file organization is odd */
|
|
5
|
+
|
|
6
|
+
@import url("./bootstrap--form.docs.css");
|
|
7
|
+
@import url("./bootstrap--modal.docs.css");
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
Container (Bootstrap)
|
|
3
|
-
|
|
4
|
-
Add to Bootstrap styles. See:
|
|
5
|
-
|
|
6
|
-
- [Bootstrap Grid](https://getbootstrap.com/docs/4.0/layout/grid/)
|
|
7
|
-
|
|
8
|
-
Styleguide Components.Bootstrap.Grid
|
|
9
|
-
*/
|
|
1
|
+
@import url("../settings/max-width.css");
|
|
10
2
|
@import url("../tools/media-queries.css");
|
|
11
3
|
|
|
12
|
-
@media (--
|
|
4
|
+
@media (--xx-wide-and-above) {
|
|
13
5
|
.container { max-width: var(--global-max-width--x-wide); }
|
|
14
6
|
}
|
|
15
|
-
@media (--
|
|
7
|
+
@media (--xxx-wide-and-above) {
|
|
16
8
|
.container { max-width: var(--global-max-width--xx-wide); }
|
|
17
9
|
}
|
|
18
10
|
/* FAQ: We can do this, but Design does not want to stretch this wide */
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Form (Bootstrap)
|
|
3
|
-
Override Bootstrap styles. See:
|
|
4
|
-
- [ReactStrap Forms](https://reactstrap.github.io/components/form/)
|
|
5
|
-
- [Bootstrap Forms](https://getbootstrap.com/docs/4.4/components/forms/)
|
|
6
|
-
Styleguide Components.Bootstrap.Form
|
|
7
|
-
*/
|
|
8
1
|
@import url('../settings/border.css');
|
|
9
2
|
|
|
10
3
|
.form-control {
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
/* TODO: Migrate any other should-be-global Portal modal styles to here */
|
|
2
|
-
/* FP-344: Consider a Modal component and a CSS module */
|
|
3
|
-
/*
|
|
4
|
-
Modal (Bootstrap)
|
|
5
|
-
|
|
6
|
-
Override Bootstrap styles. See:
|
|
7
|
-
|
|
8
|
-
- [ReactStrap Forms](https://reactstrap.github.io/components/modals/)
|
|
9
|
-
- [Bootstrap Forms](https://getbootstrap.com/docs/4.4/components/modal/)
|
|
10
|
-
|
|
11
|
-
Styleguide Components.Bootstrap.Modal
|
|
12
|
-
*/
|
|
13
1
|
@import url('../tools/x-truncate.css');
|
|
14
2
|
|
|
15
3
|
.modal-content,
|