@tacc/core-styles 0.6.0-alpha → 0.6.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 (98) hide show
  1. package/README.md +51 -52
  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.form.css +2 -0
  7. package/dist/components/bootstrap.modal.css +2 -0
  8. package/dist/components/bootstrap.pagination.css +1 -1
  9. package/dist/components/c-button.css +2 -2
  10. package/dist/components/c-callout.css +1 -1
  11. package/dist/components/c-card.css +1 -1
  12. package/dist/components/c-data-list.css +1 -1
  13. package/dist/components/c-footer.css +1 -1
  14. package/dist/components/c-image-map.css +1 -1
  15. package/dist/components/c-image-map.skin.css +1 -1
  16. package/dist/components/c-image-map.structure.css +1 -1
  17. package/dist/components/c-nav.css +1 -1
  18. package/dist/components/c-page.css +1 -1
  19. package/dist/components/c-recognition.css +1 -1
  20. package/dist/components/c-see-all-link.css +1 -1
  21. package/dist/components/c-show-more.css +1 -1
  22. package/dist/components/cortal.icon.css +2 -0
  23. package/dist/components/cortal.icon.font.css +2 -0
  24. package/dist/elements/README.css +1 -1
  25. package/dist/elements/figure.css +1 -1
  26. package/dist/elements/html-elements.css +1 -1
  27. package/dist/elements/tacc-search-bar.css +1 -1
  28. package/dist/generics/README.css +1 -1
  29. package/dist/objects/README.css +1 -1
  30. package/dist/objects/o-fixed-header-table.css +2 -0
  31. package/dist/objects/o-flex-item-table-wrap.css +1 -1
  32. package/dist/objects/o-grid.css +1 -1
  33. package/dist/objects/o-offset-content.css +1 -1
  34. package/dist/objects/o-section.css +1 -1
  35. package/dist/objects/o-site.css +1 -1
  36. package/dist/settings/README.css +1 -1
  37. package/dist/settings/border.css +1 -1
  38. package/dist/settings/color.css +1 -1
  39. package/dist/settings/font.css +1 -1
  40. package/dist/settings/max-width.css +1 -1
  41. package/dist/settings/space.css +1 -1
  42. package/dist/tools/README.css +1 -1
  43. package/dist/tools/media-queries.css +1 -1
  44. package/dist/tools/x-article-link.css +1 -1
  45. package/dist/tools/x-center.css +1 -1
  46. package/dist/tools/x-fake-border.css +1 -1
  47. package/dist/tools/x-grid.css +1 -1
  48. package/dist/tools/x-layout.css +1 -1
  49. package/dist/tools/x-overlay.css +1 -1
  50. package/dist/tools/x-truncate.css +1 -1
  51. package/dist/trumps/README.css +1 -1
  52. package/dist/trumps/icon.css +1 -1
  53. package/dist/trumps/icon.fonts.css +1 -1
  54. package/dist/trumps/s-article-list.css +1 -1
  55. package/dist/trumps/s-article-preview.css +1 -1
  56. package/dist/trumps/s-blockquote.css +1 -1
  57. package/dist/trumps/s-breadcrumbs.css +1 -1
  58. package/dist/trumps/s-cms-nav.css +1 -1
  59. package/dist/trumps/s-document.css +1 -1
  60. package/dist/trumps/s-footer.css +1 -1
  61. package/dist/trumps/s-guide-doc.css +1 -1
  62. package/dist/trumps/s-header.css +1 -1
  63. package/dist/trumps/s-inline-dl.css +1 -1
  64. package/dist/trumps/s-portal-nav.css +1 -1
  65. package/dist/trumps/s-style-guide.css +1 -1
  66. package/dist/trumps/s-system-specs.css +1 -1
  67. package/dist/trumps/tacc-search-bar.css +1 -1
  68. package/dist/trumps/u-empty.css +1 -1
  69. package/dist/trumps/u-hide.css +1 -1
  70. package/dist/trumps/u-nested-text-content.css +1 -1
  71. package/package.json +10 -8
  72. package/src/.postcssrc.base.yml +38 -0
  73. package/src/bin/build.js +6 -8
  74. package/src/bin/config.js +34 -42
  75. package/src/bin/version.js +8 -9
  76. package/src/cli.js +41 -32
  77. package/src/lib/_imports/README.md +7 -7
  78. package/src/lib/_imports/components/c-button.css +81 -14
  79. package/src/lib/_imports/components/c-button.html +8 -4
  80. package/src/lib/_imports/components/c-callout.html +70 -16
  81. package/src/lib/_imports/components/c-card.html +31 -16
  82. package/src/lib/_imports/components/c-data-list.html +16 -30
  83. package/src/lib/_imports/components/c-image-map.html +12 -2
  84. package/src/lib/_imports/components/c-page.html +186 -175
  85. package/src/lib/_imports/elements/tacc-search-bar.md +10 -4
  86. package/src/lib/_imports/generics/README.md +1 -1
  87. package/src/lib/_imports/objects/o-grid.html +72 -22
  88. package/src/lib/_imports/objects/o-section.css +0 -1
  89. package/src/lib/_imports/objects/o-section.html +72 -11
  90. package/src/lib/_imports/objects/o-site.html +4 -10
  91. package/src/lib/_imports/trumps/s-article-list.html +2 -6
  92. package/src/lib/_imports/trumps/s-article-preview.html +3 -4
  93. package/src/lib/_imports/trumps/s-cms-nav.html +1 -1
  94. package/src/lib/_imports/trumps/s-footer.html +1 -3
  95. package/src/lib/_imports/trumps/s-header.html +2 -5
  96. package/src/lib/_imports/trumps/s-portal-nav.html +4 -3
  97. package/src/lib/_tests/README.md +8 -3
  98. package/src/main.js +18 -19
@@ -1,7 +1,14 @@
1
1
  {# The {{ html }} allows DjangoCMS Snippet to pass in class names #}
2
2
  <section class="o-section {{modifier_class}} {{ html }}">
3
3
  <p><strong>Section</strong></p>
4
- <p>I am a Section. <small>Use light Sections to wrap most content. Use muted Sections to gently highlight some content. Use dark Sections to strongly highlight some content.</small></p>
4
+ <p>
5
+ I am a Section.
6
+ <small
7
+ >Use light Sections to wrap most content. Use muted Sections to gently
8
+ highlight some content. Use dark Sections to strongly highlight some
9
+ content.</small
10
+ >
11
+ </p>
5
12
  </section>
6
13
 
7
14
  <br />
@@ -9,11 +16,23 @@
9
16
  {# The {{ html }} allows DjangoCMS Snippet to pass in class names #}
10
17
  <section class="o-section {{modifier_class}} {{ html }}">
11
18
  <p><strong>Section (First of a Pair)</strong></p>
12
- <p>A Section of the same style directly after me will create a border between both. <small>Muted sections should <strong>not</strong> appear consectuively.</small></p>
19
+ <p>
20
+ A Section of the same style directly after me will create a border between
21
+ both.
22
+ <small
23
+ >Muted sections should <strong>not</strong> appear consectuively.</small
24
+ >
25
+ </p>
13
26
  </section>
14
27
  <section class="o-section {{modifier_class}} {{ html }}">
15
28
  <p><strong>Section (Second of a Pair)</strong></p>
16
- <p>A Section of the same style directly after me will create a border between both. <small>Muted sections should <strong>not</strong> appear consectuively.</small></p>
29
+ <p>
30
+ A Section of the same style directly after me will create a border between
31
+ both.
32
+ <small
33
+ >Muted sections should <strong>not</strong> appear consectuively.</small
34
+ >
35
+ </p>
17
36
  </section>
18
37
 
19
38
  <br />
@@ -21,11 +40,21 @@
21
40
  {# The {{ html }} allows DjangoCMS Snippet to pass in class names #}
22
41
  <section class="container o-section {{modifier_class}} {{ html }}">
23
42
  <p><strong>Container Section (First of a Pair)</strong></p>
24
- <p>A <code>.container</code> Section has Container padding and a fake border.<small>Muted sections should <strong>not</strong> appear consectuively.</small></p>
43
+ <p>
44
+ A <code>.container</code> Section has Container padding and a fake
45
+ border.<small
46
+ >Muted sections should <strong>not</strong> appear consectuively.</small
47
+ >
48
+ </p>
25
49
  </section>
26
50
  <section class="container o-section {{modifier_class}} {{ html }}">
27
51
  <p><strong>Container Section (First of a Pair)</strong></p>
28
- <p>A <code>.container</code> Section has Container padding and a fake border.<small>Muted sections should <strong>not</strong> appear consectuively.</small></p>
52
+ <p>
53
+ A <code>.container</code> Section has Container padding and a fake
54
+ border.<small
55
+ >Muted sections should <strong>not</strong> appear consectuively.</small
56
+ >
57
+ </p>
29
58
  </section>
30
59
 
31
60
  <br />
@@ -33,15 +62,34 @@
33
62
  {# The {{ html }} allows DjangoCMS Snippet to pass in class names #}
34
63
  <section class="o-section {{modifier_class}} {{ html }}">
35
64
  <p><strong>Section (before Muted Section)</strong></p>
36
- <p>A pair of <strong>light</strong> or <strong>dark</strong> Sections may have a <strong>muted</strong> Section between them. <small>Muted sections should <strong>not</strong> appear consectuively.</small></p>
65
+ <p>
66
+ A pair of <strong>light</strong> or <strong>dark</strong> Sections may have
67
+ a <strong>muted</strong> Section between them.
68
+ <small
69
+ >Muted sections should <strong>not</strong> appear consectuively.</small
70
+ >
71
+ </p>
37
72
  </section>
38
73
  <section class="o-section o-section--style-muted">
39
74
  <p><strong>(Muted) Section</strong></p>
40
- <p>A <strong>muted</strong> Section would appear between two <strong>light</strong> or <strong>dark</strong> Sections. <small>It would probably not appear between two <strong>muted</strong> Sections.</small></p>
75
+ <p>
76
+ A <strong>muted</strong> Section would appear between two
77
+ <strong>light</strong> or <strong>dark</strong> Sections.
78
+ <small
79
+ >It would probably not appear between two
80
+ <strong>muted</strong> Sections.</small
81
+ >
82
+ </p>
41
83
  </section>
42
84
  <section class="o-section {{modifier_class}} {{ html }}">
43
85
  <p><strong>Section (before Muted Section)</strong></p>
44
- <p>A pair of <strong>light</strong> or <strong>dark</strong> Sections may have a <strong>muted</strong> Section between them. <small>Muted sections should <strong>not</strong> appear consectuively.</small></p>
86
+ <p>
87
+ A pair of <strong>light</strong> or <strong>dark</strong> Sections may have
88
+ a <strong>muted</strong> Section between them.
89
+ <small
90
+ >Muted sections should <strong>not</strong> appear consectuively.</small
91
+ >
92
+ </p>
45
93
  </section>
46
94
 
47
95
  <br />
@@ -49,14 +97,23 @@
49
97
  {# The {{ html }} allows DjangoCMS Snippet to pass in class names #}
50
98
  <section class="o-section {{modifier_class}} {{ html }}">
51
99
  <p><strong>Section (with Nested Sections)</strong></p>
52
- <p>Sections can be nested within me. <small>A nested Section removes the standard Section spacing.</small> <small>⚠️ It is not used in any design, so its implementation is incomplete (no borders).</small></p>
100
+ <p>
101
+ Sections can be nested within me.
102
+ <small>A nested Section removes the standard Section spacing.</small>
103
+ <small
104
+ >⚠️ It is not used in any design, so its implementation is incomplete (no
105
+ borders).</small
106
+ >
107
+ </p>
53
108
  <div class="o-section o-section--style-dark">
54
109
  <p><strong>(Nested) Dark Section</strong></p>
55
110
  <p>I am nested.</p>
56
111
  </div>
57
112
  <div class="o-section o-section--style-muted">
58
113
  <p><strong>(Nested) Muted Section</strong></p>
59
- <p>I am nested.<!-- <small>No use case for this is expected, but it is available.<small>--></p>
114
+ <p>
115
+ I am nested.<!-- <small>No use case for this is expected, but it is available.<small>-->
116
+ </p>
60
117
  </div>
61
118
  <div class="o-section o-section--style-light">
62
119
  <p><strong>(Nested) Light Section</strong></p>
@@ -69,5 +126,9 @@
69
126
  {# The {{ html }} allows DjangoCMS Snippet to pass in class names #}
70
127
  <section class="o-section {{modifier_class}} {{ html }}">
71
128
  <p><strong>Section (at Bottom of Page)</strong></p>
72
- <p>At the bottom of a page: a light Section will stand out above the Footer, a muted Section will stand out above the Footer, a dark Section will visually merge with the Footer.</p>
129
+ <p>
130
+ At the bottom of a page: a light Section will stand out above the Footer, a
131
+ muted Section will stand out above the Footer, a dark Section will visually
132
+ merge with the Footer.
133
+ </p>
73
134
  </section>
@@ -1,11 +1,5 @@
1
1
  <body class="o-site">
2
- <header class="o-site__head">
3
- Header
4
- </header>
5
- <main class="o-site__body">
6
- Content
7
- </main>
8
- <footer class="o-site__foot">
9
- Footer
10
- </footer>
11
- </body>
2
+ <header class="o-site__head">Header</header>
3
+ <main class="o-site__body">Content</main>
4
+ <footer class="o-site__foot">Footer</footer>
5
+ </body>
@@ -1,10 +1,6 @@
1
1
  <article class="s-article-list">
2
- <h2>
3
- News &amp; Stuff
4
- </h2>
5
- <article>
6
- Article Placeholder
7
- </article>
2
+ <h2>News &amp; Stuff</h2>
3
+ <article>Article Placeholder</article>
8
4
  </article>
9
5
 
10
6
  <!-- TODO: Use a component (requires a plugin) -->
@@ -1,10 +1,9 @@
1
1
  <article class="s-article-preview">
2
2
  <p><img src="…" alt="…" /></p>
3
- <h3>
4
- A Long or Short Title of Article
5
- </h3>
3
+ <h3>A Long or Short Title of Article</h3>
6
4
  <p>
7
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
5
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
6
+ tempor incididunt ut labore et dolore magna aliqua.
8
7
  </p>
9
8
  <ul>
10
9
  <li>July 7</li>
@@ -6,7 +6,7 @@ from https://frontera-portal.tacc.utexas.edu/. It has:
6
6
  - Bootstrap class names
7
7
  - extra markup (`a > span`)
8
8
  -->
9
- <ul class="s-cms-nav navbar-nav">
9
+ <ul class="s-cms-nav navbar-nav">
10
10
  <li class="nav-item active">
11
11
  <a class="nav-link" href="/"><span>Frontera</span></a>
12
12
  </li>
@@ -1,3 +1 @@
1
- <footer class="s-footer">
2
- ©2020 Texas Advanced Computing Center
3
- </footer>
1
+ <footer class="s-footer">©2020 Texas Advanced Computing Center</footer>
@@ -16,8 +16,7 @@ from https://frontera-portal.tacc.utexas.edu/. It has:
16
16
  - illegally-nested markup (`ul > div > li`)
17
17
  (only via `./s-portal-nav.html`)
18
18
  -->
19
- <nav id="s-header" class="s-header navbar navbar-expand-lg navbar-dark">
20
-
19
+ <nav id="s-header" class="s-header navbar navbar-expand-lg navbar-dark">
21
20
  <a class="navbar-brand" href="/">
22
21
  <img
23
22
  src="/static/site_cms/img/org_logos/portal.png"
@@ -39,8 +38,6 @@ from https://frontera-portal.tacc.utexas.edu/. It has:
39
38
  </button>
40
39
 
41
40
  <div class="collapse navbar-collapse" id="navbarsExpandTarget">
42
- {% include "./s-cms-nav.html" %}
43
-
44
- {% include "./s-portal-nav.html" %}
41
+ {% include "./s-cms-nav.html" %} {% include "./s-portal-nav.html" %}
45
42
  </div>
46
43
  </nav>
@@ -6,10 +6,11 @@ from https://frontera-portal.tacc.utexas.edu/. It has:
6
6
  - Bootstrap class names
7
7
  - Bootstrap attributes
8
8
  -->
9
- <ul class="s-portal-nav navbar-nav">
9
+ <ul class="s-portal-nav navbar-nav">
10
10
  <!-- When user is not logged in, there are zero dropdown(-*) classes -->
11
- <li class="nav-item dropdown">
12
- <a class="nav-link dropdown-toggle"
11
+ <li class="nav-item dropdown">
12
+ <a
13
+ class="nav-link dropdown-toggle"
13
14
  href="#"
14
15
  data-toggle="dropdown"
15
16
  aria-haspopup="true"
@@ -13,7 +13,7 @@ _This allows developers to confirm whether CSS plugins are working._
13
13
 
14
14
  ## Example
15
15
 
16
- __Input:__
16
+ **Input:**
17
17
 
18
18
  ```css
19
19
  /*! Custom Media Narrow: */
@@ -26,8 +26,13 @@ __Input:__
26
26
  }
27
27
  ```
28
28
 
29
- __Output__:
29
+ **Output**:
30
30
 
31
31
  ```css
32
- /*! Custom Media Narrow: */@media (max-width:30em){._test{background-color:red}}
32
+ /*! Custom Media Narrow: */
33
+ @media (max-width: 30em) {
34
+ ._test {
35
+ background-color: red;
36
+ }
37
+ }
33
38
  ```
package/src/main.js CHANGED
@@ -8,8 +8,6 @@ const build = require('./bin/build.js');
8
8
  const config = require('./bin/config.js');
9
9
  const version = require('./bin/version.js');
10
10
 
11
-
12
-
13
11
  /**
14
12
  * Build stylesheets from source CSS
15
13
  * @param {string} input - Parse CSS files from which directory
@@ -23,23 +21,24 @@ const version = require('./bin/version.js');
23
21
  * @param {boolean} [opts.verbose=false] - Print more in log output
24
22
  */
25
23
  function buildStylesheets(input, output, opts = {}) {
26
- const buildOpts = {
27
- verbose: opts.verbose || null,
28
- baseMirrorDir: opts.baseMirrorDir || null,
29
- };
30
-
31
- const inputResolved = resolve(input);
32
- const outputResolved = resolve(output);
33
- const customConfigs = (opts.customConfigs) ?
34
- opts.customConfigs.map(filePath =>
35
- (filePath) ? resolve(filePath) : null
36
- ) : undefined;
37
-
38
- config(customConfigs, version(opts.buildId));
39
- build(inputResolved, outputResolved, buildOpts);
24
+ const buildOpts = {
25
+ verbose: opts.verbose || null,
26
+ baseMirrorDir: opts.baseMirrorDir || null,
27
+ };
28
+
29
+ const inputResolved = resolve(input);
30
+ const outputResolved = resolve(output);
31
+ const customConfigs = opts.customConfigs
32
+ ? opts.customConfigs.map((filePath) =>
33
+ filePath ? resolve(filePath) : null
34
+ )
35
+ : undefined;
36
+
37
+ config(customConfigs, version(opts.buildId));
38
+ build(inputResolved, outputResolved, buildOpts);
40
39
  }
41
40
 
42
-
43
-
44
- // Export
41
+ /*
42
+ Export
43
+ */
45
44
  module.exports = { buildStylesheets };