@tacc/core-styles 0.6.0 → 0.8.0-beta

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.
Files changed (91) hide show
  1. package/README.md +26 -27
  2. package/dist/branding_logos.css +1 -1
  3. package/dist/components/README.css +1 -1
  4. package/dist/components/bootstrap.container.css +1 -1
  5. package/dist/components/bootstrap.figure.css +1 -1
  6. package/dist/components/bootstrap.pagination.css +1 -1
  7. package/dist/components/c-button/c-button_docs.css +1 -1
  8. package/dist/components/c-button.css +2 -2
  9. package/dist/components/c-callout.css +1 -1
  10. package/dist/components/c-card.css +1 -1
  11. package/dist/components/c-data-list.css +1 -1
  12. package/dist/components/c-footer.css +1 -1
  13. package/dist/components/c-image-map.css +1 -1
  14. package/dist/components/c-image-map.skin.css +1 -1
  15. package/dist/components/c-image-map.structure.css +1 -1
  16. package/dist/components/c-nav.css +1 -1
  17. package/dist/components/c-page.css +1 -1
  18. package/dist/components/c-recognition.css +1 -1
  19. package/dist/components/c-see-all-link.css +1 -1
  20. package/dist/components/c-show-more.css +1 -1
  21. package/dist/elements/README.css +1 -1
  22. package/dist/elements/html-elements.css +1 -1
  23. package/dist/elements/tacc-search-bar.css +1 -1
  24. package/dist/generics/README.css +1 -1
  25. package/dist/objects/README.css +1 -1
  26. package/dist/objects/o-flex-item-table-wrap.css +1 -1
  27. package/dist/objects/o-grid.css +1 -1
  28. package/dist/objects/o-offset-content.css +1 -1
  29. package/dist/objects/o-section.css +2 -2
  30. package/dist/objects/o-site.css +1 -1
  31. package/dist/settings/README.css +1 -1
  32. package/dist/settings/border.css +1 -1
  33. package/dist/settings/color.css +2 -2
  34. package/dist/settings/font.css +1 -1
  35. package/dist/settings/max-width.css +1 -1
  36. package/dist/settings/space.css +2 -2
  37. package/dist/tools/README.css +1 -1
  38. package/dist/tools/media-queries.css +1 -1
  39. package/dist/tools/x-article-link.css +1 -1
  40. package/dist/tools/x-center.css +1 -1
  41. package/dist/tools/x-fake-border.css +1 -1
  42. package/dist/tools/x-grid.css +1 -1
  43. package/dist/tools/x-layout.css +1 -1
  44. package/dist/tools/x-overlay.css +1 -1
  45. package/dist/tools/x-truncate.css +1 -1
  46. package/dist/trumps/README.css +1 -1
  47. package/dist/trumps/icon.css +1 -1
  48. package/dist/trumps/icon.fonts.css +1 -1
  49. package/dist/trumps/s-article-list.css +1 -1
  50. package/dist/trumps/s-article-preview.css +1 -1
  51. package/dist/trumps/s-blockquote.css +1 -1
  52. package/dist/trumps/s-breadcrumbs.css +1 -1
  53. package/dist/trumps/s-cms-nav.css +1 -1
  54. package/dist/trumps/s-document.css +1 -1
  55. package/dist/trumps/s-footer.css +1 -1
  56. package/dist/trumps/s-guide-doc.css +1 -1
  57. package/dist/trumps/s-header.css +1 -1
  58. package/dist/trumps/s-inline-dl.css +1 -1
  59. package/dist/trumps/s-portal-nav.css +1 -1
  60. package/dist/trumps/s-style-guide.css +1 -1
  61. package/dist/trumps/s-system-specs.css +1 -1
  62. package/dist/trumps/tacc-search-bar.css +2 -2
  63. package/dist/trumps/u-empty.css +1 -1
  64. package/dist/trumps/u-hide.css +1 -1
  65. package/dist/trumps/u-nested-text-content.css +1 -1
  66. package/docs/_fractal.md +41 -0
  67. package/docs/index.md +26 -0
  68. package/fractal.config.js +53 -0
  69. package/fractal.theme.js +12 -0
  70. package/package.json +14 -3
  71. package/src/lib/_imports/_preview.hbs +50 -0
  72. package/src/lib/_imports/components/c-button/c-button.config.yml +69 -0
  73. package/src/lib/_imports/components/c-button/c-button.hbs +91 -0
  74. package/src/lib/_imports/components/c-button/c-button_docs.css +3 -0
  75. package/src/lib/_imports/components/c-button.css +6 -19
  76. package/src/lib/_imports/objects/o-section.css +3 -20
  77. package/src/lib/_imports/settings/color.css +31 -2
  78. package/src/lib/_imports/settings/space.css +21 -7
  79. package/dist/all.css +0 -2
  80. package/dist/base.css +0 -1
  81. package/dist/components/bootstrap.form.css +0 -2
  82. package/dist/components/bootstrap.modal.css +0 -2
  83. package/dist/components/c-button/c-button.cms.css +0 -2
  84. package/dist/components/c-button/c-button.css +0 -2
  85. package/dist/components/c-button/c-button_cms.css +0 -2
  86. package/dist/components/cortal.icon.css +0 -2
  87. package/dist/components/cortal.icon.font.css +0 -2
  88. package/dist/elements/figure.css +0 -2
  89. package/dist/objects/o-fixed-header-table.css +0 -2
  90. package/dist/settings/color.cms.css +0 -2
  91. package/src/lib/_imports/components/c-button.html +0 -35
@@ -1,2 +1,2 @@
1
- /*! @tacc/core-styles 0.6.0+ | MIT | github.com/TACC/Core-Styles */
1
+ /*! @tacc/core-styles 0.8.0-beta+ | MIT | github.com/TACC/Core-Styles */
2
2
  .s-system-specs{font-size:var(--global-font-size--small);font-weight:var(--global-font-weight--medium)}@media only screen and (min-width:768px){.s-system-specs{display:flow-root}.s-system-specs>*{display:inline-block}.s-system-specs>figure{float:left}}.s-system-specs{--row-height:32px}.s-system-specs>aside{margin-top:var(--row-height)}@media only screen and (max-width:991px){.s-system-specs>figure{margin-bottom:var(--row-height)}}@media only screen and (min-width:992px){.s-system-specs{--col-width--thin:42%;--col-width--wide:48%;--col-gutter:10%;--col-padding:40px;padding-inline:var(--col-padding)}.s-system-specs>aside,.s-system-specs>div{padding-inline:var(--col-padding)}.s-system-specs>div{width:var(--col-width--thin)}.s-system-specs>figure{width:var(--col-width--wide);margin-right:var(--col-gutter)}}@media only screen and (min-width:1200px){.s-system-specs>aside{width:var(--col-width--thin)}}.s-system-specs>figure>img{width:100%;display:block}.s-system-specs>figure>figcaption{position:relative;margin-top:-40px}@media only screen and (max-width:991px){.s-system-specs>figure>img{width:60%;margin-left:auto;margin-right:auto}}@media only screen and (min-width:992px){.s-system-specs>figure>figcaption{width:80%;margin-left:auto;margin-right:auto}}.s-system-specs .c-data-list__key a{font-weight:var(--medium)}
@@ -1,2 +1,2 @@
1
- /*! @tacc/core-styles 0.6.0+ | MIT | github.com/TACC/Core-Styles */
2
- :host{--button-horz-pad:10px;--input-horz-pad:0.125em;--input-height:26px;--button-font-size:18px;--input-font-size:14px}:host{font-size:0}:host [part=form]{font-family:Roboto;display:flex;align-items:center;position:relative}:host [part=button]{font-size:16px;position:absolute;left:0;top:50%;transform:translateY(-50%);box-sizing:content-box;height:var(--input-height,38px);align-items:center;margin:0;padding:0 var(--button-horz-pad);background-color:transparent;border:none;color:var(--global-color-primary--xx-light);font-size:var(--button-font-size)}:host [part=input]{display:block;width:100%;height:var(--input-height);margin:0;padding-top:0;padding-bottom:0;padding-left:calc(var(--button-horz-pad) + var(--button-font-size) + var(--button-horz-pad) + var(--input-horz-pad));padding-right:var(--input-horz-pad);background-color:#313131;border:var(--global-border-width--normal) solid var(--global-color-primary--dark);border-radius:5px;color:var(--global-color-primary--xx-light);font-size:var(--input-font-size)}:host [part=input]::-moz-placeholder{color:var(--global-color-primary--xx-light);opacity:.5}:host [part=input]:-ms-input-placeholder{color:var(--global-color-primary--xx-light);opacity:.5}:host [part=input]::placeholder{color:var(--global-color-primary--xx-light);opacity:.5}
1
+ /*! @tacc/core-styles 0.8.0-beta+ | MIT | github.com/TACC/Core-Styles */
2
+ :host{--button-horz-pad:10px;--input-horz-pad:0.125em;--input-height:26px;--button-font-size:18px;--input-font-size:14px}:host{font-size:0}:host [part=form]{font-family:Roboto;display:flex;align-items:center;position:relative}:host [part=button]{font-size:16px;position:absolute;left:0;top:50%;transform:translateY(-50%);box-sizing:content-box;height:var(--input-height,38px);align-items:center;margin:0;padding:0 var(--button-horz-pad);background-color:transparent;border:none;color:var(--global-color-primary--xx-light);font-size:var(--button-font-size)}:host [part=input]{display:block;width:100%;height:var(--input-height);margin:0;padding-top:0;padding-bottom:0;padding-left:calc(var(--button-horz-pad) + var(--button-font-size) + var(--button-horz-pad) + var(--input-horz-pad));padding-right:var(--input-horz-pad);background-color:#313131;border:var(--global-border-width--normal) solid var(--global-color-primary--dark);border-radius:5px;color:var(--global-color-primary--xx-light);font-size:var(--input-font-size)}:host [part=input]::-moz-placeholder{color:var(--global-color-primary--xx-light);opacity:.5}:host [part=input]::placeholder{color:var(--global-color-primary--xx-light);opacity:.5}
@@ -1 +1 @@
1
- /*! @tacc/core-styles 0.6.0+ | MIT | github.com/TACC/Core-Styles */
1
+ /*! @tacc/core-styles 0.8.0-beta+ | MIT | github.com/TACC/Core-Styles */
@@ -1,2 +1,2 @@
1
- /*! @tacc/core-styles 0.6.0+ | MIT | github.com/TACC/Core-Styles */
1
+ /*! @tacc/core-styles 0.8.0-beta+ | MIT | github.com/TACC/Core-Styles */
2
2
  .u-hide--visually:not(:focus,:active){clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px;border:none;padding:0}
@@ -1,2 +1,2 @@
1
- /*! @tacc/core-styles 0.6.0+ | MIT | github.com/TACC/Core-Styles */
1
+ /*! @tacc/core-styles 0.8.0-beta+ | MIT | github.com/TACC/Core-Styles */
2
2
  .u-nested-text-content{padding-left:var(--global-space--list-indent)}
@@ -0,0 +1,41 @@
1
+ # TACC Core Styles - Tips for Fractal Component Library
2
+
3
+ ## Debugging
4
+
5
+ ### Preview Templates
6
+
7
+ To see values available in a preview template, adapt this template code:
8
+
9
+ ```html
10
+ <dl>
11
+ {{#each _target}}
12
+ <dt>
13
+ <strong><code>{{@key}}</code></strong>
14
+ </dt>
15
+ <dd><code>{{this}}</code></dd>
16
+ {{/each}}
17
+ </dl>
18
+ ```
19
+
20
+ ### Console Logging
21
+
22
+ To output values (like objects) in the console, adapt this config code:
23
+
24
+ ```js
25
+ const hbs = require('@frctl/handlebars')({
26
+ helpers: {
27
+ debug: function (optionalValue) {
28
+ console.log('Current Context');
29
+ console.log('====================');
30
+ console.log(this);
31
+
32
+ if (optionalValue) {
33
+ console.log('Value');
34
+ console.log('====================');
35
+ console.log(optionalValue);
36
+ }
37
+ },
38
+ },
39
+ });
40
+ fractal.components.engine(hbs);
41
+ ```
package/docs/index.md ADDED
@@ -0,0 +1,26 @@
1
+ ---
2
+ title: TACC UI Patterns
3
+ ---
4
+
5
+ This is the UI pattern library for TACC.
6
+
7
+ The CSS for these patterns is available from [@tacc/core-styles].
8
+
9
+ ---
10
+
11
+ Known Clients:
12
+
13
+ - [TACC/Core-CMS]
14
+ - [TACC/Core-Portal]
15
+ - [@tacc/core-components]
16
+
17
+ [tacc/core-cms]: https://github.com/TACC/Core-CMS
18
+ [tacc/core-portal]: https://github.com/TACC/Core-Portal
19
+ [@tacc/core-components]: https://www.npmjs.com/package/@tacc/core-components
20
+ [@tacc/core-styles]: https://www.npmjs.com/package/@tacc/core-styles
21
+
22
+ <script type="module">
23
+ Array.from(document.body.querySelectorAll('a'))
24
+ .filter(link => link.hostname != window.location.hostname)
25
+ .forEach(link => link.target = '_blank');
26
+ </script>
@@ -0,0 +1,53 @@
1
+ 'use strict';
2
+
3
+ const mandelbrot = require('@frctl/mandelbrot');
4
+ const fractal = require('@frctl/fractal').create();
5
+
6
+ // Get base theme
7
+ const themeConfig = require('./fractal.theme.js');
8
+ const theme = mandelbrot(themeConfig);
9
+
10
+ // Configure UI
11
+ fractal.set('project.title', 'TACC UI Patterns');
12
+ fractal.components.set('label', 'Patterns'); // default is 'Components'
13
+ fractal.components.set('title', 'Patterns'); // default is 'Components'
14
+ fractal.components.set('default.status', 'wip'); // default is 'ready'
15
+
16
+ // Set source paths
17
+ // (for components)
18
+ fractal.components.set('path', __dirname + '/src/lib/_imports');
19
+ fractal.components.set('resources', {
20
+ // Render assets from component folders in a panel
21
+ // WARNING: Undocumented feature
22
+ // https://github.com/frctl/fractal/issues/150#issuecomment-254642411
23
+ // https://github.com/frctl/fractal/issues/93#issuecomment-236429871
24
+ assets: {
25
+ label: 'Assets',
26
+ match: ['**/*.css', '**/*.js'],
27
+ },
28
+ });
29
+ // (for stylesheets)
30
+ fractal.components.set('default.context', {
31
+ styles: {
32
+ internal: {
33
+ local: [
34
+ '/settings/border.css',
35
+ '/settings/color.css',
36
+ '/settings/font.css',
37
+ '/settings/max-width.css',
38
+ '/settings/space.css',
39
+ ],
40
+ },
41
+ },
42
+ });
43
+
44
+ // Set website paths
45
+ fractal.docs.set('path', __dirname + '/docs');
46
+ fractal.web.set('static.path', __dirname + '/dist');
47
+ fractal.web.set('builder.dest', __dirname + '/demo');
48
+
49
+ // Customize theme
50
+ fractal.web.theme(theme);
51
+
52
+ // Export
53
+ module.exports = fractal;
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ // To let any client extend
4
+ module.exports = {
5
+ skin: {
6
+ accent: '#000000',
7
+ complement: '#ffffff',
8
+ links: '#784fe8',
9
+ },
10
+ panels: ['notes', 'html', 'resources', 'context', 'info'],
11
+ nav: ['search', 'docs', 'components'],
12
+ };
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "@tacc/core-styles",
3
- "version": "0.6.0",
3
+ "version": "0.8.0-beta",
4
4
  "license": "MIT",
5
5
  "author": "TACC ACI WMA <wma-portals@gmail.com>",
6
6
  "description": "CSS source and processor for TACC Core-CMS and Core-Portal.",
7
7
  "files": [
8
8
  "dist",
9
+ "docs",
10
+ "fractal.config.js",
11
+ "fractal.theme.js",
12
+ "src/cli.js",
9
13
  "src/bin",
10
14
  "src/lib",
11
15
  "src/.postcssrc.base.yml"
@@ -13,8 +17,11 @@
13
17
  "main": "src/main.js",
14
18
  "bin": "src/cli.js",
15
19
  "scripts": {
16
- "build": "node src/cli.js build -i \"src/lib/_imports/**/*!(README).css\" -o \"./dist\" -m \"src/lib/_imports\"",
17
- "test": "node src/cli.js build -i \"src/lib/_tests\" -o \"./dist\" -m \"src/lib\" && echo \"Test output at 'dist/_tests' (compare to test input)\"",
20
+ "start": "fractal start --sync",
21
+ "build": "npm run build:css && npm run build:demo",
22
+ "build:css": "bin/build-css.js",
23
+ "build:demo": "fractal build",
24
+ "test": "bin/test-css.js && echo \"Test output at 'dist/_tests' (compare to test input)",
18
25
  "prepublishOnly": "npm run build # && npm test && npm run lint"
19
26
  },
20
27
  "engines": {
@@ -46,5 +53,9 @@
46
53
  "postcss-import": "To import CSS files at build-time",
47
54
  "postcss-extend": "To extend CSS rule sets at build-time",
48
55
  "postcss-preset-env": "To use future CSS features now"
56
+ },
57
+ "peerDependencies": {
58
+ "@frctl/fractal": "^1.5.13",
59
+ "@frctl/mandelbrot": "^1.10.1"
49
60
  }
50
61
  }
@@ -0,0 +1,50 @@
1
+ {{! styles: base (the current component) }}
2
+ {{#unless styles.shouldSkipBase}}
3
+ <link
4
+ rel='stylesheet'
5
+ href='{{path "/components/{{ _target.baseHandle }}.css"}}'
6
+ />
7
+ {{/unless}}
8
+
9
+ {{! styles: global (for every component) }}
10
+ {{! (manually configured) }}
11
+ {{#if styles.external.global}}
12
+ {{#each styles.external.global}}
13
+ <link rel='stylesheet' href='{{this}}' />
14
+ {{/each}}
15
+ {{else if styles.internal.global}}
16
+ {{#each styles.internal.global}}
17
+ <link rel='stylesheet' href='{{path this}}' />
18
+ {{/each}}
19
+ {{/if}}
20
+
21
+ {{! styles: local (for current component) }}
22
+ {{! (automatically found) }}
23
+ {{#each _target.resources.assets}}
24
+ {{#if isCSS}}
25
+ <link
26
+ rel='stylesheet'
27
+ href='{{path "/components/raw/{{ _target.baseHandle }}/{{ this.base }}"}}'
28
+ />
29
+ {{/if}}
30
+ {{/each}}
31
+ {{! (manually configured) }}
32
+ {{#each styles.external.local}}
33
+ <link rel='stylesheet' href='{{this}}' />
34
+ {{/each}}
35
+ {{#each styles.internal.local}}
36
+ <link rel='stylesheet' href='{{path this}}' />
37
+ {{/each}}
38
+
39
+ {{! scripts: local (for current component) }}
40
+ {{! (automatically found) }}
41
+ {{#each _target.resources.assets}}
42
+ {{#if isJS}}
43
+ <script
44
+ src='{{path "/components/raw/{{ _target.baseHandle }}/{{ this.base }}"}}'
45
+ ></script>
46
+ {{/if}}
47
+ {{/each}}
48
+
49
+ {{! markup }}
50
+ {{{yield}}}
@@ -0,0 +1,69 @@
1
+ context:
2
+ supports:
3
+ states: true
4
+ icons: true
5
+ width: true
6
+ size: true
7
+ size-small: true
8
+ variants:
9
+ # type
10
+ - name: default
11
+ label: (Unstyled)
12
+ hidden: true
13
+ notes: Incomplete implementation; a type is required
14
+ - name: primary
15
+ notes: For the only or primary action
16
+ context:
17
+ supports:
18
+ size-small: false
19
+ - name: secondary
20
+ notes: For an optional user action
21
+ - name: tertiary
22
+ notes: For inactive buttons among many buttons
23
+ (e.g. pagination buttons to other pages)
24
+ - name: is-active
25
+ notes: For the one active button among many buttons
26
+ (e.g. pagination button for current page)
27
+ - name: as-link
28
+ notes: For a button that resembles a link
29
+ context:
30
+ supports:
31
+ width: false
32
+ size: false
33
+ # state
34
+ - name: is-busy
35
+ notes: For a button whose being clicked started an incomplete process (should have `disabled` attribute)
36
+ context:
37
+ supports:
38
+ states: false
39
+ type: true
40
+ type: c-button--secondary
41
+ disabled: true
42
+ # width
43
+ - name: width-short
44
+ context:
45
+ supports:
46
+ width: false
47
+ type: true
48
+ type: c-button--secondary
49
+ - name: width-medium
50
+ context:
51
+ supports:
52
+ width: false
53
+ type: true
54
+ type: c-button--secondary
55
+ - name: width-long
56
+ context:
57
+ supports:
58
+ width: false
59
+ type: true
60
+ type: c-button--secondary
61
+ # size
62
+ - name: size-small
63
+ notes: For a button in a condensed layout
64
+ context:
65
+ supports:
66
+ size: false
67
+ type: true
68
+ type: c-button--secondary
69
+ small: true
@@ -0,0 +1,91 @@
1
+ <dl>
2
+ {{#if supports.type}}
3
+ <dt>Type</dt>
4
+ <dd>
5
+ <button class="c-button c-button--{{this._self.name}} c-button--secondary"
6
+ {{#if disabled}}disabled{{/if}}>
7
+ <span class="c-button__text">--secondary</span>
8
+ </button>
9
+ {{#if small}}
10
+ <small>(no small primary allowed)</small>
11
+ {{else}}
12
+ <button class="c-button c-button--{{this._self.name}} c-button--primary"
13
+ {{#if disabled}}disabled{{/if}}>
14
+ <span class="c-button__text">--primary</span>
15
+ </button>
16
+ {{/if}}
17
+ <button class="c-button c-button--{{this._self.name}} c-button--tertiary"
18
+ {{#if disabled}}disabled{{/if}}>
19
+ <span class="c-button__text">--tertiary</span>
20
+ </button>
21
+ </dd>
22
+ {{/if}}
23
+
24
+ {{#if supports.states}}
25
+ <dt>States</dt>
26
+ <dd>
27
+ <button class="c-button c-button--{{this._self.name}}
28
+ {{#if type}}{{type}}{{/if}}"
29
+ {{#if disabled}}disabled{{/if}}>
30
+ <span class="c-button__text">default</span>
31
+ </button>
32
+ <button class="c-button c-button--{{this._self.name}} c-button--is-busy
33
+ {{#if type}}{{type}}{{/if}}"
34
+ disabled>
35
+ <span class="c-button__text">--is-busy</span>
36
+ </button>
37
+ </dd>
38
+ {{/if}}
39
+
40
+ {{#if supports.icons}}
41
+ <dt>Icons</dt>
42
+ <dd>
43
+ <button class="c-button c-button--{{this._self.name}}
44
+ {{#if type}}{{type}}{{/if}}"
45
+ {{#if disabled}}disabled{{/if}}>
46
+ <i class="c-button__icon--before" aria-description="validate input">…</i>
47
+ <span class="c-button__text">__icon--before</span>
48
+ </button>
49
+ <button class="c-button c-button--{{this._self.name}}
50
+ {{#if type}}{{type}}{{/if}}"
51
+ {{#if disabled}}disabled{{/if}}>
52
+ <span class="c-button__text">__icon--after</span>
53
+ <i class="c-button__icon--after" aria-description="exit page">X</i>
54
+ </button>
55
+ </dd>
56
+ {{/if}}
57
+
58
+ {{#if supports.width}}
59
+ <dt>Width</dt>
60
+ <dd>
61
+ <button class="c-button c-button--{{this._self.name}} c-button--width-short
62
+ {{#if type}}{{type}}{{/if}}"
63
+ {{#if disabled}}disabled{{/if}}>
64
+ <span class="c-button__text">--width-short</span>
65
+ </button>
66
+ <button class="c-button c-button--{{this._self.name}} c-button--width-medium {{#if type}}{{type}}{{/if}}"
67
+ {{#if disabled}}disabled{{/if}}>
68
+ <span class="c-button__text">--width-medium</span>
69
+ </button>
70
+ <button class="c-button c-button--{{this._self.name}} c-button--width-large {{#if type}}{{type}}{{/if}}"
71
+ {{#if disabled}}disabled{{/if}}>
72
+ <span class="c-button__text">--width-large</span>
73
+ </button>
74
+ </dd>
75
+ {{/if}}
76
+
77
+ {{#if supports.size}}
78
+ <dt>Size</dt>
79
+ <dd>
80
+ {{#if supports.size-small}}
81
+ <button class="c-button c-button--{{this._self.name}} c-button--size-small
82
+ {{#if type}}{{type}}{{/if}}"
83
+ {{#if disabled}}disabled{{/if}}>
84
+ <span class="c-button__text">--size-small</span>
85
+ </button>
86
+ {{else}}
87
+ <small>(no small size allowed)</small>
88
+ {{/if}}
89
+ </dd>
90
+ {{/if}}
91
+ </dl>
@@ -0,0 +1,3 @@
1
+ dd > * {
2
+ margin-right: 0.5em;
3
+ }
@@ -1,19 +1,3 @@
1
- /*
2
- Button
3
-
4
- A button that may have icon(s) before and/or after its text.
5
-
6
- .c-button--primary - A primary (expected) user action
7
- .c-button--secondary - For an optional user action
8
- .c-button--tertiary - A button that represents inactive buttons among many
9
- .c-button--is-active - A button that represents the one active button among many
10
- .c-button--as-link - A button that visually resembles a link
11
- .c-button--is-busy - A clicked button that started an incomplete process
12
-
13
- Markup: c-button.html
14
-
15
- Styleguide Components.Button
16
- */
17
1
  @import url("_imports/tools/x-truncate.css");
18
2
 
19
3
 
@@ -22,12 +6,11 @@ Styleguide Components.Button
22
6
 
23
7
  /* Base */
24
8
 
25
- [class*='c-button'] {
9
+ .c-button {
26
10
  --min-width: 75px;
27
11
  --mid-width: 110px;
28
12
  --max-width: 130px;
29
- }
30
- .c-button {
13
+
31
14
  display: inline-block;
32
15
 
33
16
  border-width: var(--global-border-width--normal);
@@ -58,6 +41,8 @@ Styleguide Components.Button
58
41
 
59
42
  /* Modifiers */
60
43
 
44
+
45
+
61
46
  /* Modifiers: Types */
62
47
 
63
48
  .c-button--primary,
@@ -246,6 +231,8 @@ Styleguide Components.Button
246
231
  opacity: 0.3;
247
232
  }
248
233
 
234
+
235
+
249
236
  /* Modifiers: Sizes */
250
237
 
251
238
  .c-button--width-short {
@@ -67,8 +67,9 @@ Styleguide Objects.Section
67
67
 
68
68
  /* Modifers: Banner */
69
69
 
70
- .o-section--banner[class*="o-section--layout"] { gap: 0; }
71
- .o-section--banner.container { padding-inline: 0; }
70
+ .o-section--banner { overflow: hidden; }
71
+ .o-section--banner [class*="o-section--layout"] { gap: 0; }
72
+ .o-section--banner .container { padding-inline: 0; }
72
73
  .o-section--banner.o-section { padding-block: 0; }
73
74
 
74
75
 
@@ -253,24 +254,6 @@ Styleguide Objects.Section
253
254
 
254
255
 
255
256
 
256
- /* Tricks: Children: Banner Image */
257
- /* FP-1462: Extract to new banner component(s) */
258
-
259
- /* To hide section overflow with minimal side effects */
260
- /* FAQ: Use 'clip', not 'hidden' which can affect opposite 'overflow-' value */
261
- /* NOTE: This selector assumes only a banner section has vertical overflow */
262
- /* CAVEAT: Any banner pop-out el's would NOT overflow atop sibling sections */
263
- [class*="o-section--style"].o-section--banner {
264
- /* To hide vert. overflow */
265
- overflow-y: clip;
266
- }
267
- main {
268
- /* To hide horz. overflow yet support any 'position: sticky' descendant */
269
- overflow-x: clip;
270
- }
271
-
272
-
273
-
274
257
  /* Tricks: Modifers: Style */
275
258
 
276
259
  /* To prevent visibly extra space beneath certain sections and footer */
@@ -13,9 +13,9 @@
13
13
  */
14
14
 
15
15
  :root {
16
- /* The primary colors of any app (for neutral text, borders, backgrounds) */
16
+ /* Neutral */
17
+ /* FAQ: Primary colors of an app (neutral text, borders, backgrounds) */
17
18
  /* IDEA: Rename these from `primary` to `neutral` */
18
-
19
19
  --global-color-primary--xx-light: #FFFFFF;
20
20
  --global-color-primary--xx-light-rgb: 255, 255, 255;
21
21
  --global-color-primary--x-light: #F4F4F4;
@@ -27,4 +27,33 @@
27
27
  --global-color-primary--x-dark-rgb: 72, 72, 72;
28
28
  --global-color-primary--xx-dark: #222222;
29
29
  --global-color-primary--xx-dark-rgb: 34, 34, 34;
30
+
31
+ /* Accent */
32
+ --global-color-accent--x-light: #e3d7fd;
33
+ --global-color-accent--light: #a387ed;
34
+ --global-color-accent--normal: #784fe8;
35
+ --global-color-accent--dark: #6039cc;
36
+ --global-color-accent--x-dark: #3d189b;
37
+
38
+ --global-color-accent--alt: #d2cce7;
39
+ --global-color-accent--weak: #6039cc40; /* similar to #E3D7FD on #f4f4f4 */
40
+
41
+ /* State */
42
+ --global-color-info--dark: var(--global-color-primary--x-dark);
43
+ --global-color-info--normal: var(--global-color-primary--normal);
44
+ --global-color-info--light: var(--global-color-primary--x-light);
45
+ --global-color-success--normal: #43d130;
46
+ --global-color-success--weak: #43d13020;
47
+ --global-color-success--alt: var(--global-color-warning--normal);
48
+ --global-color-success--alt-weak: var(--global-color-warning--weak);
49
+ --global-color-warning--normal: #c7ce1d;
50
+ --global-color-warning--weak: #c7ce1d20;
51
+ --global-color-warning--alt: var(--global-color-accent--dark);
52
+ --global-color-warning--alt-weak: var(--global-color-accent--weak);
53
+ --global-color-danger--dark: #ab1717;
54
+ --global-color-danger--normal: #eb6e6e;
55
+ --global-color-danger--weak: #eb6e6e20;
56
+
57
+ /* Generic */
58
+ --global-color-background--app: var(--global-color-primary--xx-light);
30
59
  }
@@ -10,6 +10,7 @@ _Notice_: We will use Bootstrap values until Design defines values.
10
10
  Usage: `var(--global-space--normal)`
11
11
 
12
12
  Reference:
13
+ - https://confluence.tacc.utexas.edu/x/dYAZCg
13
14
  - https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties
14
15
  - https://getbootstrap.com/docs/4.0/utilities/spacing/
15
16
  - https://getbootstrap.com/docs/4.0/getting-started/theming/#sass-options
@@ -23,14 +24,27 @@ Styleguide Settings.CustomProperties.Space
23
24
  --(…)large: larger value
24
25
  */
25
26
  :root {
26
- --global-space--xx-small: 0.125rem; /* 2px (if base is 16px) */
27
- --global-space--x-small: 0.25rem; /* 4px (if base is 16px) */
28
- --global-space--small: 0.5rem; /* 8px (if base is 16px) */
29
- --global-space--normal: 1.0rem; /* 16px (if base is 16px) */
30
- --global-space--large: 1.5rem; /* 25px (if base is 16px) */
31
- --global-space--x-large: 3.0rem; /* 48px (if base is 16px) */
32
-
27
+ /* Generic */
28
+ --global-space--xx-small: 2px; /* 0.125rem (if base is 16px) */
29
+ --global-space--x-small: 4px; /* 0.25rem (if base is 16px) */
30
+ --global-space--small: 8px; /* 0.5rem (if base is 16px) */
31
+ --global-space--normal: 16px; /* 1.0rem (if base is 16px) */
32
+ --global-space--large: 25px; /* 1.5rem (if base is 16px) */
33
+ --global-space--x-large: 48px; /* 3.0rem (if base is 16px) */
34
+
35
+ /* Miscellaneous */
33
36
  --global-space--list-indent: 40px; /* browser default (Firefox, Edge) */
34
37
  --global-space--section-gap: 45px; /* recurring design doc spacing */
35
38
  --global-space--grid-gap: 15px; /* Bootstrap `.container` & `.row` */
39
+
40
+ /* Applications */
41
+ --global-space--section-top: 12px;
42
+ --global-space--section-bottom: 0;
43
+ --global-space--section-left: 24px;
44
+ --global-space--section-right: 36px;
45
+ --global-space--section:
46
+ var(--global-space--section-top)
47
+ var(--global-space--section-right)
48
+ var(--global-space--section-bottom)
49
+ var(--global-space--section-left);
36
50
  }