@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.
- package/README.md +51 -52
- package/dist/branding_logos.css +1 -1
- package/dist/components/README.css +1 -1
- package/dist/components/bootstrap.container.css +1 -1
- package/dist/components/bootstrap.figure.css +1 -1
- package/dist/components/bootstrap.form.css +2 -0
- package/dist/components/bootstrap.modal.css +2 -0
- package/dist/components/bootstrap.pagination.css +1 -1
- package/dist/components/c-button.css +2 -2
- package/dist/components/c-callout.css +1 -1
- package/dist/components/c-card.css +1 -1
- package/dist/components/c-data-list.css +1 -1
- package/dist/components/c-footer.css +1 -1
- package/dist/components/c-image-map.css +1 -1
- package/dist/components/c-image-map.skin.css +1 -1
- package/dist/components/c-image-map.structure.css +1 -1
- package/dist/components/c-nav.css +1 -1
- package/dist/components/c-page.css +1 -1
- package/dist/components/c-recognition.css +1 -1
- package/dist/components/c-see-all-link.css +1 -1
- package/dist/components/c-show-more.css +1 -1
- package/dist/components/cortal.icon.css +2 -0
- package/dist/components/cortal.icon.font.css +2 -0
- package/dist/elements/README.css +1 -1
- package/dist/elements/figure.css +1 -1
- package/dist/elements/html-elements.css +1 -1
- package/dist/elements/tacc-search-bar.css +1 -1
- package/dist/generics/README.css +1 -1
- package/dist/objects/README.css +1 -1
- package/dist/objects/o-fixed-header-table.css +2 -0
- package/dist/objects/o-flex-item-table-wrap.css +1 -1
- package/dist/objects/o-grid.css +1 -1
- package/dist/objects/o-offset-content.css +1 -1
- package/dist/objects/o-section.css +1 -1
- package/dist/objects/o-site.css +1 -1
- package/dist/settings/README.css +1 -1
- package/dist/settings/border.css +1 -1
- package/dist/settings/color.css +1 -1
- package/dist/settings/font.css +1 -1
- package/dist/settings/max-width.css +1 -1
- package/dist/settings/space.css +1 -1
- package/dist/tools/README.css +1 -1
- package/dist/tools/media-queries.css +1 -1
- package/dist/tools/x-article-link.css +1 -1
- package/dist/tools/x-center.css +1 -1
- package/dist/tools/x-fake-border.css +1 -1
- package/dist/tools/x-grid.css +1 -1
- package/dist/tools/x-layout.css +1 -1
- package/dist/tools/x-overlay.css +1 -1
- package/dist/tools/x-truncate.css +1 -1
- package/dist/trumps/README.css +1 -1
- package/dist/trumps/icon.css +1 -1
- package/dist/trumps/icon.fonts.css +1 -1
- package/dist/trumps/s-article-list.css +1 -1
- package/dist/trumps/s-article-preview.css +1 -1
- package/dist/trumps/s-blockquote.css +1 -1
- package/dist/trumps/s-breadcrumbs.css +1 -1
- package/dist/trumps/s-cms-nav.css +1 -1
- package/dist/trumps/s-document.css +1 -1
- package/dist/trumps/s-footer.css +1 -1
- package/dist/trumps/s-guide-doc.css +1 -1
- package/dist/trumps/s-header.css +1 -1
- package/dist/trumps/s-inline-dl.css +1 -1
- package/dist/trumps/s-portal-nav.css +1 -1
- package/dist/trumps/s-style-guide.css +1 -1
- package/dist/trumps/s-system-specs.css +1 -1
- package/dist/trumps/tacc-search-bar.css +1 -1
- package/dist/trumps/u-empty.css +1 -1
- package/dist/trumps/u-hide.css +1 -1
- package/dist/trumps/u-nested-text-content.css +1 -1
- package/package.json +10 -8
- package/src/.postcssrc.base.yml +38 -0
- package/src/bin/build.js +6 -8
- package/src/bin/config.js +34 -42
- package/src/bin/version.js +8 -9
- package/src/cli.js +41 -32
- package/src/lib/_imports/README.md +7 -7
- package/src/lib/_imports/components/c-button.css +81 -14
- package/src/lib/_imports/components/c-button.html +8 -4
- package/src/lib/_imports/components/c-callout.html +70 -16
- package/src/lib/_imports/components/c-card.html +31 -16
- package/src/lib/_imports/components/c-data-list.html +16 -30
- package/src/lib/_imports/components/c-image-map.html +12 -2
- package/src/lib/_imports/components/c-page.html +186 -175
- package/src/lib/_imports/elements/tacc-search-bar.md +10 -4
- package/src/lib/_imports/generics/README.md +1 -1
- package/src/lib/_imports/objects/o-grid.html +72 -22
- package/src/lib/_imports/objects/o-section.css +0 -1
- package/src/lib/_imports/objects/o-section.html +72 -11
- package/src/lib/_imports/objects/o-site.html +4 -10
- package/src/lib/_imports/trumps/s-article-list.html +2 -6
- package/src/lib/_imports/trumps/s-article-preview.html +3 -4
- package/src/lib/_imports/trumps/s-cms-nav.html +1 -1
- package/src/lib/_imports/trumps/s-footer.html +1 -3
- package/src/lib/_imports/trumps/s-header.html +2 -5
- package/src/lib/_imports/trumps/s-portal-nav.html +4 -3
- package/src/lib/_tests/README.md +8 -3
- 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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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
|
-
|
|
4
|
-
</
|
|
5
|
-
|
|
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,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
|
|
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
|
|
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>
|
|
@@ -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
|
|
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
|
|
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
|
|
12
|
-
<a
|
|
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"
|
package/src/lib/_tests/README.md
CHANGED
|
@@ -13,7 +13,7 @@ _This allows developers to confirm whether CSS plugins are working._
|
|
|
13
13
|
|
|
14
14
|
## Example
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
**Input:**
|
|
17
17
|
|
|
18
18
|
```css
|
|
19
19
|
/*! Custom Media Narrow: */
|
|
@@ -26,8 +26,13 @@ __Input:__
|
|
|
26
26
|
}
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
**Output**:
|
|
30
30
|
|
|
31
31
|
```css
|
|
32
|
-
/*! Custom Media Narrow:
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
41
|
+
/*
|
|
42
|
+
Export
|
|
43
|
+
*/
|
|
45
44
|
module.exports = { buildStylesheets };
|