@tacc/core-styles 0.7.0 → 0.8.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.
Files changed (128) hide show
  1. package/README.md +29 -30
  2. package/dist/_fonts/BentonSans-Bold.otf +0 -0
  3. package/dist/_fonts/BentonSans-Medium.otf +0 -0
  4. package/dist/_fonts/BentonSans-MediumItalic.otf +0 -0
  5. package/dist/_fonts/BentonSans-Regular.otf +0 -0
  6. package/dist/_fonts/_fonts/BentonSans-Bold.otf +0 -0
  7. package/dist/_fonts/_fonts/BentonSans-Medium.otf +0 -0
  8. package/dist/_fonts/_fonts/BentonSans-MediumItalic.otf +0 -0
  9. package/dist/_fonts/_fonts/BentonSans-Regular.otf +0 -0
  10. package/dist/branding_logos.css +1 -1
  11. package/dist/components/README.css +1 -1
  12. package/dist/components/bootstrap.container.css +1 -1
  13. package/dist/components/bootstrap.figure.css +1 -1
  14. package/dist/components/bootstrap.form.css +2 -0
  15. package/dist/components/bootstrap.modal.css +2 -0
  16. package/dist/components/bootstrap.pagination.css +1 -1
  17. package/dist/components/c-button/c-button_docs.css +2 -2
  18. package/dist/components/c-button.css +2 -2
  19. package/dist/components/c-callout.css +1 -1
  20. package/dist/components/c-card.css +1 -1
  21. package/dist/components/c-data-list.css +1 -1
  22. package/dist/components/c-footer.css +1 -1
  23. package/dist/components/c-image-map.css +1 -1
  24. package/dist/components/c-image-map.skin.css +1 -1
  25. package/dist/components/c-image-map.structure.css +1 -1
  26. package/dist/components/c-nav.css +1 -1
  27. package/dist/components/c-page.css +1 -1
  28. package/dist/components/c-recognition.css +1 -1
  29. package/dist/components/c-see-all-link.css +1 -1
  30. package/dist/components/c-show-more.css +1 -1
  31. package/dist/components/cortal.icon.css +2 -0
  32. package/dist/components/cortal.icon.font.css +2 -0
  33. package/dist/elements/README.css +1 -1
  34. package/dist/elements/bootstrap.css +2 -0
  35. package/dist/elements/form.cms.css +2 -0
  36. package/dist/elements/html-elements.cms.css +2 -0
  37. package/dist/elements/html-elements.css +1 -1
  38. package/dist/elements/tacc-search-bar.css +1 -1
  39. package/dist/fonts/BentonSans-Bold.otf +0 -0
  40. package/dist/fonts/BentonSans-Medium.otf +0 -0
  41. package/dist/fonts/BentonSans-MediumItalic.otf +0 -0
  42. package/dist/fonts/BentonSans-Regular.otf +0 -0
  43. package/dist/fonts/fonts/BentonSans-Bold.otf +0 -0
  44. package/dist/fonts/fonts/BentonSans-Medium.otf +0 -0
  45. package/dist/fonts/fonts/BentonSans-MediumItalic.otf +0 -0
  46. package/dist/fonts/fonts/BentonSans-Regular.otf +0 -0
  47. package/dist/generics/README.css +1 -1
  48. package/dist/generics/fonts.css +2 -0
  49. package/dist/objects/README.css +1 -1
  50. package/dist/objects/o-fixed-header-table.css +2 -0
  51. package/dist/objects/o-flex-item-table-wrap.css +1 -1
  52. package/dist/objects/o-grid.css +1 -1
  53. package/dist/objects/o-offset-content.css +1 -1
  54. package/dist/objects/o-section.css +1 -1
  55. package/dist/objects/o-site.css +1 -1
  56. package/dist/settings/README.css +1 -1
  57. package/dist/settings/border.css +1 -1
  58. package/dist/settings/color.css +1 -1
  59. package/dist/settings/font.css +2 -2
  60. package/dist/settings/max-width.css +1 -1
  61. package/dist/settings/space.css +1 -1
  62. package/dist/tools/README.css +1 -1
  63. package/dist/tools/media-queries.css +1 -1
  64. package/dist/tools/x-article-link.css +1 -1
  65. package/dist/tools/x-center.css +1 -1
  66. package/dist/tools/x-fake-border.css +1 -1
  67. package/dist/tools/x-grid.css +1 -1
  68. package/dist/tools/x-layout.css +1 -1
  69. package/dist/tools/x-overlay.css +1 -1
  70. package/dist/tools/x-truncate.css +1 -1
  71. package/dist/trumps/README.css +1 -1
  72. package/dist/trumps/icon.css +1 -1
  73. package/dist/trumps/icon.fonts.css +1 -1
  74. package/dist/trumps/s-article-list.css +1 -1
  75. package/dist/trumps/s-article-preview.css +1 -1
  76. package/dist/trumps/s-blockquote.css +1 -1
  77. package/dist/trumps/s-breadcrumbs.css +1 -1
  78. package/dist/trumps/s-cms-nav.css +1 -1
  79. package/dist/trumps/s-document.css +1 -1
  80. package/dist/trumps/s-footer.css +1 -1
  81. package/dist/trumps/s-guide-doc.css +1 -1
  82. package/dist/trumps/s-header.css +1 -1
  83. package/dist/trumps/s-inline-dl.css +1 -1
  84. package/dist/trumps/s-portal-nav.css +1 -1
  85. package/dist/trumps/s-style-guide.css +1 -1
  86. package/dist/trumps/s-system-specs.css +1 -1
  87. package/dist/trumps/tacc-search-bar.css +2 -2
  88. package/dist/trumps/u-empty.css +1 -1
  89. package/dist/trumps/u-hide.css +1 -1
  90. package/dist/trumps/u-nested-text-content.css +1 -1
  91. package/docs/_fractal.md +41 -0
  92. package/docs/index.md +26 -0
  93. package/fractal.config.js +53 -0
  94. package/fractal.theme.js +12 -0
  95. package/package.json +14 -3
  96. package/src/lib/_imports/_preview.hbs +47 -0
  97. package/src/lib/_imports/components/bootstrap.container.css +1 -1
  98. package/src/lib/_imports/components/bootstrap.form.css +21 -0
  99. package/src/lib/_imports/components/bootstrap.modal.css +74 -0
  100. package/src/lib/_imports/components/bootstrap.pagination.css +1 -1
  101. package/src/lib/_imports/components/c-button/c-button.config.yml +69 -0
  102. package/src/lib/_imports/components/c-button/c-button.hbs +185 -0
  103. package/src/lib/_imports/components/c-button/c-button_docs.css +8 -0
  104. package/src/lib/_imports/components/c-button.css +33 -29
  105. package/src/lib/_imports/components/c-callout.css +2 -2
  106. package/src/lib/_imports/components/c-card.css +1 -1
  107. package/src/lib/_imports/components/c-data-list.css +1 -1
  108. package/src/lib/_imports/components/c-nav.css +1 -1
  109. package/src/lib/_imports/components/c-see-all-link.css +1 -1
  110. package/src/lib/_imports/components/c-show-more.css +1 -1
  111. package/src/lib/_imports/components/cortal.icon.css +79 -0
  112. package/src/lib/_imports/components/cortal.icon.font.css +464 -0
  113. package/src/lib/_imports/components/cortal.icon.font.md +3 -0
  114. package/src/lib/_imports/objects/o-fixed-header-table.css +33 -0
  115. package/src/lib/_imports/objects/o-grid.css +2 -2
  116. package/src/lib/_imports/objects/o-offset-content.css +1 -1
  117. package/src/lib/_imports/objects/o-section.css +3 -3
  118. package/src/lib/_imports/settings/font.css +7 -0
  119. package/src/lib/_imports/tools/x-layout.css +1 -1
  120. package/src/lib/_imports/trumps/s-article-list.css +3 -3
  121. package/src/lib/_imports/trumps/s-article-preview.css +2 -2
  122. package/src/lib/_imports/trumps/s-breadcrumbs.css +1 -1
  123. package/src/lib/_imports/trumps/s-header.css +1 -1
  124. package/src/lib/_imports/trumps/s-system-specs.css +1 -1
  125. package/src/lib/_tests.css +1 -1
  126. package/dist/components/c-button/c-button_cms.css +0 -2
  127. package/dist/settings/color.cms.css +0 -2
  128. package/src/lib/_imports/components/c-button.html +0 -35
@@ -1,2 +1,2 @@
1
- /*! @tacc/core-styles 0.7.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]::placeholder{color:var(--global-color-primary--xx-light);opacity:.5}
1
+ /*! @tacc/core-styles 0.8.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 +1 @@
1
- /*! @tacc/core-styles 0.7.0+ | MIT | github.com/TACC/Core-Styles */
1
+ /*! @tacc/core-styles 0.8.0+ | MIT | github.com/TACC/Core-Styles */
@@ -1,2 +1,2 @@
1
- /*! @tacc/core-styles 0.7.0+ | MIT | github.com/TACC/Core-Styles */
1
+ /*! @tacc/core-styles 0.8.0+ | 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.7.0+ | MIT | github.com/TACC/Core-Styles */
1
+ /*! @tacc/core-styles 0.8.0+ | 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.7.0",
3
+ "version": "0.8.0",
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.js",
23
+ "build:demo": "fractal build",
24
+ "test": "bin/test.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
+ "devDependencies": {
58
+ "@frctl/fractal": "^1.5.13",
59
+ "@frctl/mandelbrot": "^1.10.1"
49
60
  }
50
61
  }
@@ -0,0 +1,47 @@
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
+ {{#each styles.external.global}}
12
+ <link rel='stylesheet' href='{{this}}' />
13
+ {{/each}}
14
+ {{#each styles.internal.global}}
15
+ <link rel='stylesheet' href='{{path this}}' />
16
+ {{/each}}
17
+
18
+ {{! styles: local (for current component) }}
19
+ {{! (automatically found) }}
20
+ {{#each _target.resources.assets}}
21
+ {{#if isCSS}}
22
+ <link
23
+ rel='stylesheet'
24
+ href='{{path "/components/raw/{{ _target.baseHandle }}/{{ this.base }}"}}'
25
+ />
26
+ {{/if}}
27
+ {{/each}}
28
+ {{! (manually configured) }}
29
+ {{#each styles.external.local}}
30
+ <link rel='stylesheet' href='{{this}}' />
31
+ {{/each}}
32
+ {{#each styles.internal.local}}
33
+ <link rel='stylesheet' href='{{path this}}' />
34
+ {{/each}}
35
+
36
+ {{! scripts: local (for current component) }}
37
+ {{! (automatically found) }}
38
+ {{#each _target.resources.assets}}
39
+ {{#if isJS}}
40
+ <script
41
+ src='{{path "/components/raw/{{ _target.baseHandle }}/{{ this.base }}"}}'
42
+ ></script>
43
+ {{/if}}
44
+ {{/each}}
45
+
46
+ {{! markup }}
47
+ {{{yield}}}
@@ -7,7 +7,7 @@ Add to Bootstrap styles. See:
7
7
 
8
8
  Styleguide Components.Bootstrap.Grid
9
9
  */
10
- @import url("_imports/tools/media-queries.css");
10
+ @import url("../tools/media-queries.css");
11
11
 
12
12
  @media (--x-wide-and-above) {
13
13
  .container { max-width: var(--global-max-width--x-wide); }
@@ -0,0 +1,21 @@
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
+ @import url('../settings/border.css');
9
+
10
+ .form-control {
11
+ border: var(--global-border--normal);
12
+ border-radius: 0;
13
+ }
14
+ input.form-control,
15
+ textarea.form-control {
16
+ /* FAQ: Vertical padding reduced by 1px each to near input height of design * 1.2 */
17
+ padding: 6px 12px; /* 6px 10px design * 1.2 design-to-app ratio */
18
+ }
19
+ .input-group-prepend {
20
+ z-index: 1; /* so child button border is above sibling input border */
21
+ }
@@ -0,0 +1,74 @@
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
+ @import url('../tools/x-truncate.css');
14
+
15
+ .modal-content,
16
+ .modal-header,
17
+ .modal-body,
18
+ .modal-footer {
19
+ border-radius: 0;
20
+ }
21
+ .modal-content,
22
+ .modal-header,
23
+ .modal-body {
24
+ border: none;
25
+ }
26
+ .modal-footer {
27
+ border-left: none;
28
+ border-right: none;
29
+ border-bottom: none;
30
+ }
31
+
32
+ .modal-header {
33
+ background-color: var(--global-color-primary--x-light);
34
+ padding: 1.35rem 1.75rem; /* (18px 23.5px design * 1.2 design-to-app ratio) */
35
+ }
36
+ .modal-title {
37
+ color: var(--global-color-primary--xx-dark);
38
+ font-weight: normal;
39
+ font-size: 1.2rem; /* 16px design * 1.2 design-to-app ratio */
40
+
41
+ @extend .x-truncate--one-line;
42
+ }
43
+
44
+ /* To darken close button */
45
+ .modal-header .close {
46
+ color: var(--global-color-primary--x-dark);
47
+ opacity: 1;
48
+ }
49
+ /* FAQ: The specificity matches Bootstrap */
50
+ .modal-header .close:not(:disabled):not(.disabled):focus,
51
+ .modal-header .close:not(:disabled):not(.disabled):hover {
52
+ color: var(--global-color-primary--xx-dark);
53
+ opacity: 1;
54
+ }
55
+
56
+ /* To render modal close button icon as a Cortal icon */
57
+ /* CAVEAT: Pass `charCode="&#xe912;"` to `<ModalHeader>` */
58
+ .modal-header .close span {
59
+ /* To mimic `.icon` styles without `@extend` or `composes` (unavailable) */
60
+ /* HACK: Copied (and reduced and edited) from `src/styles/trumps/icon...` */
61
+ font-size: 1.5rem; /* bigger to match header text font height (like design) */
62
+ font-family: Cortal-Icons !important;
63
+ }
64
+
65
+ .modal-header.has-MuiTabs {
66
+ flex-direction: row;
67
+ position: relative;
68
+ height: 63.5px;
69
+ border-bottom: 1px solid #afafaf;
70
+ padding: 5px;
71
+ }
72
+ .modal-header.has-MuiTabs .close {
73
+ transform: translate(-25%, 25%);
74
+ }
@@ -7,7 +7,7 @@ Style Bootstrap pagination. See:
7
7
 
8
8
  Styleguide Components.Bootstrap.Pagination
9
9
  */
10
- @import url("_imports/components/c-page.css");
10
+ @import url("../components/c-page.css");
11
11
 
12
12
 
13
13
 
@@ -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,185 @@
1
+ <dl>
2
+ {{#if supports.type}}
3
+ <dt>Type</dt>
4
+ <dd><dl>
5
+ <dt><code>&lt;button&gt;</code></dt>
6
+ <dd>
7
+ <button class="c-button c-button--{{this._self.name}} c-button--secondary"
8
+ {{#if disabled}}disabled{{/if}}>
9
+ <span class="c-button__text">--secondary</span>
10
+ </button>
11
+ {{#if small}}
12
+ <small>(no small primary allowed)</small>
13
+ {{else}}
14
+ <button class="c-button c-button--{{this._self.name}} c-button--primary"
15
+ {{#if disabled}}disabled{{/if}}>
16
+ <span class="c-button__text">--primary</span>
17
+ </button>
18
+ {{/if}}
19
+ <button class="c-button c-button--{{this._self.name}} c-button--tertiary"
20
+ {{#if disabled}}disabled{{/if}}>
21
+ <span class="c-button__text">--tertiary</span>
22
+ </button>
23
+ </dd>
24
+
25
+ <dt><code>&lt;a&gt;</code></dt>
26
+ <dd>
27
+ <a href="#" class="c-button c-button--{{this._self.name}} c-button--secondary"
28
+ {{#if disabled}}disabled{{/if}}>
29
+ <span class="c-button__text">--secondary</span>
30
+ </a>
31
+ {{#if small}}
32
+ <small>(no small primary allowed)</small>
33
+ {{else}}
34
+ <a href="#" class="c-button c-button--{{this._self.name}} c-button--primary"
35
+ {{#if disabled}}disabled{{/if}}>
36
+ <span class="c-button__text">--primary</span>
37
+ </a>
38
+ {{/if}}
39
+ <a href="#" class="c-button c-button--{{this._self.name}} c-button--tertiary"
40
+ {{#if disabled}}disabled{{/if}}>
41
+ <span class="c-button__text">--tertiary</span>
42
+ </a>
43
+ </dd>
44
+ </dl><dd>
45
+ {{/if}}
46
+
47
+ {{#if supports.states}}
48
+ <dt>States</dt>
49
+ <dd><dl>
50
+ <dt><code>&lt;button&gt;</code></dt>
51
+ <dd>
52
+ <button class="c-button c-button--{{this._self.name}}
53
+ {{#if type}}{{type}}{{/if}}"
54
+ {{#if disabled}}disabled{{/if}}>
55
+ <span class="c-button__text">default</span>
56
+ </button>
57
+ <button class="c-button c-button--{{this._self.name}} c-button--is-busy
58
+ {{#if type}}{{type}}{{/if}}"
59
+ disabled>
60
+ <span class="c-button__text">--is-busy</span>
61
+ </dd>
62
+
63
+ <dt><code>&lt;a&gt;</code></dt>
64
+ <dd>
65
+ <a href="#" class="c-button c-button--{{this._self.name}}
66
+ {{#if type}}{{type}}{{/if}}"
67
+ {{#if disabled}}disabled{{/if}}>
68
+ <span class="c-button__text">default</span>
69
+ </a>
70
+ <a href="#" class="c-button c-button--{{this._self.name}} c-button--is-busy
71
+ {{#if type}}{{type}}{{/if}}"
72
+ disabled>
73
+ <span class="c-button__text">--is-busy</span>
74
+ </a>
75
+ </dd>
76
+ </dl><dd>
77
+ {{/if}}
78
+
79
+ {{#if supports.icons}}
80
+ <dt>Icons</dt>
81
+ <dd><dl>
82
+ <dt><code>&lt;button&gt;</code></dt>
83
+ <dd>
84
+ <button class="c-button c-button--{{this._self.name}}
85
+ {{#if supports.width}}c-button--width-long{{/if}}
86
+ {{#if type}}{{type}}{{/if}}"
87
+ {{#if disabled}}disabled{{/if}}>
88
+ <i class="c-button__icon--before" aria-description="validate input">…</i>
89
+ <span class="c-button__text">__icon--before</span>
90
+ </button>
91
+ <button class="c-button c-button--{{this._self.name}}
92
+ {{#if supports.width}}c-button--width-long{{/if}}
93
+ {{#if type}}{{type}}{{/if}}"
94
+ {{#if disabled}}disabled{{/if}}>
95
+ <span class="c-button__text">__icon--after</span>
96
+ <i class="c-button__icon--after" aria-description="exit page">X</i>
97
+ </dd>
98
+
99
+ <dt><code>&lt;a&gt;</code></dt>
100
+ <dd>
101
+ <a href="#" class="c-button c-button--{{this._self.name}}
102
+ {{#if supports.width}}c-button--width-long{{/if}}
103
+ {{#if type}}{{type}}{{/if}}"
104
+ {{#if disabled}}disabled{{/if}}>
105
+ <i class="c-button__icon--before" aria-description="validate input">…</i>
106
+ <span class="c-button__text">__icon--before</span>
107
+ </a>
108
+ <a href="#" class="c-button c-button--{{this._self.name}}
109
+ {{#if supports.width}}c-button--width-long{{/if}}
110
+ {{#if type}}{{type}}{{/if}}"
111
+ {{#if disabled}}disabled{{/if}}>
112
+ <span class="c-button__text">__icon--after</span>
113
+ <i class="c-button__icon--after" aria-description="exit page">X</i>
114
+ </a>
115
+ </dd>
116
+ </dl><dd>
117
+ {{/if}}
118
+
119
+ {{#if supports.width}}
120
+ <dt>Width</dt>
121
+ <dd><dl>
122
+ <dt><code>&lt;button&gt;</code></dt>
123
+ <dd>
124
+ <button class="c-button c-button--{{this._self.name}}
125
+ {{#if type}}{{type}}{{/if}}"
126
+ {{#if disabled}}disabled{{/if}}>
127
+ <span class="c-button__text">--width-short</span>
128
+ </button>
129
+ <button class="c-button c-button--{{this._self.name}} c-button--width-medium {{#if type}}{{type}}{{/if}}"
130
+ {{#if disabled}}disabled{{/if}}>
131
+ <span class="c-button__text">--width-medium</span>
132
+ </button>
133
+ <button class="c-button c-button--{{this._self.name}} c-button--width-long {{#if type}}{{type}}{{/if}}"
134
+ {{#if disabled}}disabled{{/if}}>
135
+ <span class="c-button__text">--width-long</span>
136
+ </dd>
137
+
138
+ <dt><code>&lt;a&gt;</code></dt>
139
+ <dd>
140
+ <a href="#" class="c-button c-button--{{this._self.name}}
141
+ {{#if type}}{{type}}{{/if}}"
142
+ {{#if disabled}}disabled{{/if}}>
143
+ <span class="c-button__text">--width-short</span>
144
+ </a>
145
+ <a href="#" class="c-button c-button--{{this._self.name}} c-button--width-medium {{#if type}}{{type}}{{/if}}"
146
+ {{#if disabled}}disabled{{/if}}>
147
+ <span class="c-button__text">--width-medium</span>
148
+ </a>
149
+ <a href="#" class="c-button c-button--{{this._self.name}} c-button--width-long {{#if type}}{{type}}{{/if}}"
150
+ {{#if disabled}}disabled{{/if}}>
151
+ <span class="c-button__text">--width-long</span>
152
+ </a>
153
+ </dd>
154
+ </dl><dd>
155
+ {{/if}}
156
+
157
+ {{#if supports.size}}
158
+ <dt>Size</dt>
159
+ <dd>
160
+ {{#if supports.size-small}}
161
+ <dl>
162
+ <dt><code>&lt;button&gt;</code></dt>
163
+ <dd>
164
+ <button class="c-button c-button--{{this._self.name}} c-button--size-small
165
+ {{#if type}}{{type}}{{/if}}"
166
+ {{#if disabled}}disabled{{/if}}>
167
+ <span class="c-button__text">--size-small</span>
168
+ </button>
169
+ </dd>
170
+
171
+ <dt><code>&lt;a&gt;</code></dt>
172
+ <dd>
173
+ <a href="#" class="c-button c-button--{{this._self.name}} c-button--size-small
174
+ {{#if type}}{{type}}{{/if}}"
175
+ {{#if disabled}}disabled{{/if}}>
176
+ <span class="c-button__text">--size-small</span>
177
+ </a>
178
+ </dd>
179
+ </dl>
180
+ {{else}}
181
+ <small>(no small size allowed)</small>
182
+ {{/if}}
183
+ <dd>
184
+ {{/if}}
185
+ </dl>
@@ -0,0 +1,8 @@
1
+ dd > * {
2
+ margin-right: 0.5em;
3
+ vertical-align: middle;
4
+ }
5
+
6
+ .c-button > i {
7
+ font-style: normal;
8
+ }