@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
|
@@ -22,25 +22,27 @@
|
|
|
22
22
|
</button>
|
|
23
23
|
</dd>
|
|
24
24
|
|
|
25
|
+
{{#if supports.link-tag}}
|
|
25
26
|
<dt><code><a></code></dt>
|
|
26
27
|
<dd>
|
|
27
28
|
<a href="#" class="c-button c-button--{{this._self.name}} c-button--secondary"
|
|
28
|
-
{{#if disabled}}disabled{{/if}}>
|
|
29
|
+
{{#if disabled}}disabled tabindex="-1"{{/if}}>
|
|
29
30
|
<span class="c-button__text">--secondary</span>
|
|
30
31
|
</a>
|
|
31
32
|
{{#if small}}
|
|
32
33
|
<small>(no small primary allowed)</small>
|
|
33
34
|
{{else}}
|
|
34
35
|
<a href="#" class="c-button c-button--{{this._self.name}} c-button--primary"
|
|
35
|
-
{{#if disabled}}disabled{{/if}}>
|
|
36
|
+
{{#if disabled}}disabled tabindex="-1"{{/if}}>
|
|
36
37
|
<span class="c-button__text">--primary</span>
|
|
37
38
|
</a>
|
|
38
39
|
{{/if}}
|
|
39
40
|
<a href="#" class="c-button c-button--{{this._self.name}} c-button--tertiary"
|
|
40
|
-
{{#if disabled}}disabled{{/if}}>
|
|
41
|
+
{{#if disabled}}disabled tabindex="-1"{{/if}}>
|
|
41
42
|
<span class="c-button__text">--tertiary</span>
|
|
42
43
|
</a>
|
|
43
44
|
</dd>
|
|
45
|
+
{{/if}}
|
|
44
46
|
</dl><dd>
|
|
45
47
|
{{/if}}
|
|
46
48
|
|
|
@@ -60,19 +62,21 @@
|
|
|
60
62
|
<span class="c-button__text">--is-busy</span>
|
|
61
63
|
</dd>
|
|
62
64
|
|
|
65
|
+
{{#if supports.link-tag}}
|
|
63
66
|
<dt><code><a></code></dt>
|
|
64
67
|
<dd>
|
|
65
68
|
<a href="#" class="c-button c-button--{{this._self.name}}
|
|
66
69
|
{{#if type}}{{type}}{{/if}}"
|
|
67
|
-
{{#if disabled}}disabled{{/if}}>
|
|
70
|
+
{{#if disabled}}disabled tabindex="-1"{{/if}}>
|
|
68
71
|
<span class="c-button__text">default</span>
|
|
69
72
|
</a>
|
|
70
73
|
<a href="#" class="c-button c-button--{{this._self.name}} c-button--is-busy
|
|
71
74
|
{{#if type}}{{type}}{{/if}}"
|
|
72
|
-
disabled>
|
|
75
|
+
disabled tabindex="-1">
|
|
73
76
|
<span class="c-button__text">--is-busy</span>
|
|
74
77
|
</a>
|
|
75
78
|
</dd>
|
|
79
|
+
{{/if}}
|
|
76
80
|
</dl><dd>
|
|
77
81
|
{{/if}}
|
|
78
82
|
|
|
@@ -82,37 +86,35 @@
|
|
|
82
86
|
<dt><code><button></code></dt>
|
|
83
87
|
<dd>
|
|
84
88
|
<button class="c-button c-button--{{this._self.name}}
|
|
85
|
-
{{#if supports.width}}c-button--width-long{{/if}}
|
|
86
89
|
{{#if type}}{{type}}{{/if}}"
|
|
87
90
|
{{#if disabled}}disabled{{/if}}>
|
|
88
91
|
<i class="c-button__icon--before" aria-description="validate input">…</i>
|
|
89
92
|
<span class="c-button__text">__icon--before</span>
|
|
90
93
|
</button>
|
|
91
94
|
<button class="c-button c-button--{{this._self.name}}
|
|
92
|
-
{{#if supports.width}}c-button--width-long{{/if}}
|
|
93
95
|
{{#if type}}{{type}}{{/if}}"
|
|
94
96
|
{{#if disabled}}disabled{{/if}}>
|
|
95
97
|
<span class="c-button__text">__icon--after</span>
|
|
96
98
|
<i class="c-button__icon--after" aria-description="exit page">X</i>
|
|
97
99
|
</dd>
|
|
98
100
|
|
|
101
|
+
{{#if supports.link-tag}}
|
|
99
102
|
<dt><code><a></code></dt>
|
|
100
103
|
<dd>
|
|
101
104
|
<a href="#" class="c-button c-button--{{this._self.name}}
|
|
102
|
-
{{#if supports.width}}c-button--width-long{{/if}}
|
|
103
105
|
{{#if type}}{{type}}{{/if}}"
|
|
104
|
-
{{#if disabled}}disabled{{/if}}>
|
|
106
|
+
{{#if disabled}}disabled tabindex="-1"{{/if}}>
|
|
105
107
|
<i class="c-button__icon--before" aria-description="validate input">…</i>
|
|
106
108
|
<span class="c-button__text">__icon--before</span>
|
|
107
109
|
</a>
|
|
108
110
|
<a href="#" class="c-button c-button--{{this._self.name}}
|
|
109
|
-
{{#if supports.width}}c-button--width-long{{/if}}
|
|
110
111
|
{{#if type}}{{type}}{{/if}}"
|
|
111
|
-
{{#if disabled}}disabled{{/if}}>
|
|
112
|
+
{{#if disabled}}disabled tabindex="-1"{{/if}}>
|
|
112
113
|
<span class="c-button__text">__icon--after</span>
|
|
113
114
|
<i class="c-button__icon--after" aria-description="exit page">X</i>
|
|
114
115
|
</a>
|
|
115
116
|
</dd>
|
|
117
|
+
{{/if}}
|
|
116
118
|
</dl><dd>
|
|
117
119
|
{{/if}}
|
|
118
120
|
|
|
@@ -121,8 +123,7 @@
|
|
|
121
123
|
<dd><dl>
|
|
122
124
|
<dt><code><button></code></dt>
|
|
123
125
|
<dd>
|
|
124
|
-
<button class="c-button c-button--{{this._self.name}}
|
|
125
|
-
{{#if type}}{{type}}{{/if}}"
|
|
126
|
+
<button class="c-button c-button--{{this._self.name}} c-button--width-short {{#if type}}{{type}}{{/if}}"
|
|
126
127
|
{{#if disabled}}disabled{{/if}}>
|
|
127
128
|
<span class="c-button__text">--width-short</span>
|
|
128
129
|
</button>
|
|
@@ -135,22 +136,23 @@
|
|
|
135
136
|
<span class="c-button__text">--width-long</span>
|
|
136
137
|
</dd>
|
|
137
138
|
|
|
139
|
+
{{#if supports.link-tag}}
|
|
138
140
|
<dt><code><a></code></dt>
|
|
139
141
|
<dd>
|
|
140
|
-
<a href="#" class="c-button c-button--{{this._self.name}}
|
|
141
|
-
{{#if
|
|
142
|
-
{{#if disabled}}disabled{{/if}}>
|
|
142
|
+
<a href="#" class="c-button c-button--{{this._self.name}} c-button--width-short {{#if type}}{{type}}{{/if}}"
|
|
143
|
+
{{#if disabled}}disabled tabindex="-1"{{/if}}>
|
|
143
144
|
<span class="c-button__text">--width-short</span>
|
|
144
145
|
</a>
|
|
145
146
|
<a href="#" class="c-button c-button--{{this._self.name}} c-button--width-medium {{#if type}}{{type}}{{/if}}"
|
|
146
|
-
{{#if disabled}}disabled{{/if}}>
|
|
147
|
+
{{#if disabled}}disabled tabindex="-1"{{/if}}>
|
|
147
148
|
<span class="c-button__text">--width-medium</span>
|
|
148
149
|
</a>
|
|
149
150
|
<a href="#" class="c-button c-button--{{this._self.name}} c-button--width-long {{#if type}}{{type}}{{/if}}"
|
|
150
|
-
{{#if disabled}}disabled{{/if}}>
|
|
151
|
+
{{#if disabled}}disabled tabindex="-1"{{/if}}>
|
|
151
152
|
<span class="c-button__text">--width-long</span>
|
|
152
153
|
</a>
|
|
153
154
|
</dd>
|
|
155
|
+
{{/if}}
|
|
154
156
|
</dl><dd>
|
|
155
157
|
{{/if}}
|
|
156
158
|
|
|
@@ -168,6 +170,7 @@
|
|
|
168
170
|
</button>
|
|
169
171
|
</dd>
|
|
170
172
|
|
|
173
|
+
{{#if supports.link-tag}}
|
|
171
174
|
<dt><code><a></code></dt>
|
|
172
175
|
<dd>
|
|
173
176
|
<a href="#" class="c-button c-button--{{this._self.name}} c-button--size-small
|
|
@@ -176,6 +179,7 @@
|
|
|
176
179
|
<span class="c-button__text">--size-small</span>
|
|
177
180
|
</a>
|
|
178
181
|
</dd>
|
|
182
|
+
{{/if}}
|
|
179
183
|
</dl>
|
|
180
184
|
{{else}}
|
|
181
185
|
<small>(no small size allowed)</small>
|
|
@@ -5,6 +5,7 @@ context:
|
|
|
5
5
|
width: true
|
|
6
6
|
size: true
|
|
7
7
|
size-small: true
|
|
8
|
+
link-tag: true
|
|
8
9
|
variants:
|
|
9
10
|
# type
|
|
10
11
|
- name: default
|
|
@@ -30,6 +31,7 @@ variants:
|
|
|
30
31
|
supports:
|
|
31
32
|
width: false
|
|
32
33
|
size: false
|
|
34
|
+
link-tag: false
|
|
33
35
|
# state
|
|
34
36
|
- name: is-busy
|
|
35
37
|
notes: For a button whose being clicked started an incomplete process (should have `disabled` attribute)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import url("../tools/x-truncate.css");
|
|
2
|
+
@import url('../tools/x-link.css');
|
|
2
3
|
|
|
3
4
|
@custom-selector :--disabled
|
|
4
5
|
:disabled,
|
|
@@ -7,6 +8,7 @@
|
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
11
|
+
|
|
10
12
|
/* Base */
|
|
11
13
|
|
|
12
14
|
.c-button {
|
|
@@ -19,13 +21,17 @@
|
|
|
19
21
|
border-width: var(--global-border-width--normal);
|
|
20
22
|
border-style: solid;
|
|
21
23
|
|
|
22
|
-
font-weight: 500;
|
|
23
|
-
font-size: 0.75rem; /* 12px (10px design * 1.2 design-to-app ratio) */
|
|
24
|
-
|
|
25
24
|
@extend %x-truncate--one-line;
|
|
26
25
|
}
|
|
26
|
+
.c-button:not(.c-button--as-link) {
|
|
27
|
+
font-weight: var(--medium);
|
|
28
|
+
}
|
|
27
29
|
a.c-button {
|
|
28
30
|
text-decoration: none;
|
|
31
|
+
text-align: center;
|
|
32
|
+
}
|
|
33
|
+
a.c-button--is-busy {
|
|
34
|
+
cursor: default;
|
|
29
35
|
}
|
|
30
36
|
|
|
31
37
|
.c-button:not(:--disabled) {
|
|
@@ -78,7 +84,7 @@ a.c-button {
|
|
|
78
84
|
var(--global-color-accent--dark);
|
|
79
85
|
}
|
|
80
86
|
|
|
81
|
-
.c-button--primary:focus:not(:active) {
|
|
87
|
+
.c-button--primary:focus:not(:active, .c-button--is-busy) {
|
|
82
88
|
color: var(--global-color-primary--xx-light);
|
|
83
89
|
background-color: var(--global-color-accent--normal);
|
|
84
90
|
border-color: var(--global-color-primary--xx-light);
|
|
@@ -117,7 +123,7 @@ a.c-button {
|
|
|
117
123
|
var(--global-color-accent--dark);
|
|
118
124
|
}
|
|
119
125
|
|
|
120
|
-
.c-button--secondary:focus:not(:active) {
|
|
126
|
+
.c-button--secondary:focus:not(:active, .c-button--is-busy) {
|
|
121
127
|
color: var(--global-color-primary--xx-dark);
|
|
122
128
|
background-color: var(--global-color-accent--weak);
|
|
123
129
|
border-color: var(--global-color-primary--xx-dark);
|
|
@@ -155,7 +161,7 @@ a.c-button {
|
|
|
155
161
|
var(--global-color-accent--dark);
|
|
156
162
|
}
|
|
157
163
|
|
|
158
|
-
.c-button--tertiary:focus:not(:active) {
|
|
164
|
+
.c-button--tertiary:focus:not(:active, .c-button--is-busy) {
|
|
159
165
|
color: var(--global-color-primary--xx-dark);
|
|
160
166
|
background-color: var(--global-color-primary--light);
|
|
161
167
|
border-color: var(--global-color-primary--xx-dark);
|
|
@@ -218,14 +224,20 @@ a.c-button {
|
|
|
218
224
|
/* Modifiers: Types: As Link */
|
|
219
225
|
|
|
220
226
|
.c-button--as-link {
|
|
221
|
-
|
|
227
|
+
@extend .x-link;
|
|
222
228
|
|
|
223
229
|
background: unset;
|
|
224
230
|
border: unset;
|
|
225
231
|
padding-inline: unset;
|
|
232
|
+
|
|
233
|
+
font-size: inherit;
|
|
234
|
+
font-family: inherit;
|
|
235
|
+
}
|
|
236
|
+
.c-button--as-link:where(:not(:--disabled)):hover {
|
|
237
|
+
@extend .x-link--hover;
|
|
226
238
|
}
|
|
227
|
-
.c-button--as-link:
|
|
228
|
-
|
|
239
|
+
.c-button--as-link:active {
|
|
240
|
+
@extend .x-link--active;
|
|
229
241
|
}
|
|
230
242
|
|
|
231
243
|
/* Modifiers: Types: Is Busy */
|
|
@@ -247,7 +259,10 @@ a.c-button {
|
|
|
247
259
|
.c-button--width-long,
|
|
248
260
|
.c-button--size-small,
|
|
249
261
|
.c-button--as-link
|
|
250
|
-
)
|
|
262
|
+
) {
|
|
263
|
+
width: auto;
|
|
264
|
+
--max-width: auto;
|
|
265
|
+
}
|
|
251
266
|
.c-button--width-short {
|
|
252
267
|
width: var(--min-width);
|
|
253
268
|
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
context:
|
|
2
|
+
subdir: "elements"
|
|
@@ -7,13 +7,22 @@ Elements that create forms which the user can fill out and submit to the Web sit
|
|
|
7
7
|
<form> <fieldset> <legend> <label> <input> <select> <optgroup> <option> <textarea> <button> <output> <progress> <meter> <datalist>
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
+
> **⚠️ Warning**
|
|
11
|
+
>
|
|
12
|
+
> Relies on Bootstrap.
|
|
13
|
+
|
|
10
14
|
Reference:
|
|
11
15
|
|
|
12
16
|
- [HTML element reference: Forms | MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element#Forms)
|
|
17
|
+
- [Bootstrap Reboot: Forms](https://getbootstrap.com/docs/4.0/content/reboot/#forms)
|
|
13
18
|
|
|
14
19
|
Styleguide Elements.Forms
|
|
15
20
|
*/
|
|
16
21
|
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
/* Fonts */
|
|
25
|
+
|
|
17
26
|
/* FAQ: Setting font on form would erroneously apply to links and buttons */
|
|
18
27
|
label,
|
|
19
28
|
input,
|
|
@@ -22,19 +31,39 @@ textarea {
|
|
|
22
31
|
font-family: var(--global-font-family--sans--portal);
|
|
23
32
|
}
|
|
24
33
|
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
/* Labels */
|
|
37
|
+
|
|
25
38
|
label {
|
|
26
39
|
font-size: var(--global-font-size--small);
|
|
27
40
|
|
|
28
41
|
line-height: normal;
|
|
29
42
|
margin-bottom: 0.75em;
|
|
30
43
|
}
|
|
44
|
+
/* To avoid extra space between field wrappers */
|
|
45
|
+
/* FAQ: The known use case is a django.cms.forms `.checkboxselectmultiple` */
|
|
46
|
+
li > label:only-child {
|
|
47
|
+
margin-bottom: unset;
|
|
48
|
+
}
|
|
49
|
+
/* To avoid inline labels for raw form elements */
|
|
50
|
+
/* FAQ: Any specific form styling (e.g. django.cms.forms) manages this */
|
|
31
51
|
:not(input[type="checkbox"]) + label {
|
|
32
52
|
display: block;
|
|
33
53
|
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
/* Fieldsets */
|
|
58
|
+
|
|
34
59
|
fieldset:not(:last-child) {
|
|
35
60
|
margin-bottom: 3.5rem;
|
|
36
61
|
}
|
|
37
62
|
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/* Fields */
|
|
66
|
+
|
|
38
67
|
input,
|
|
39
68
|
select,
|
|
40
69
|
textarea {
|
|
@@ -49,6 +78,27 @@ input[type="date"] {
|
|
|
49
78
|
font-family: var(--global-font-family--mono);
|
|
50
79
|
}
|
|
51
80
|
|
|
81
|
+
/* To prevent super-long fields */
|
|
82
|
+
input:not(
|
|
83
|
+
/* FAQ: These types of fields should not grow to a max */
|
|
84
|
+
[type=time],
|
|
85
|
+
[type=date],
|
|
86
|
+
[type=checkbox],
|
|
87
|
+
[type=radio]
|
|
88
|
+
),
|
|
89
|
+
select,
|
|
90
|
+
textarea {
|
|
91
|
+
max-width: 50ch;
|
|
92
|
+
}
|
|
93
|
+
input:where( /* Use `:where` so rules are easier to override */
|
|
94
|
+
[type=time],
|
|
95
|
+
[type=date],
|
|
96
|
+
[type=checkbox],
|
|
97
|
+
[type=radio]
|
|
98
|
+
) {
|
|
99
|
+
width: min-content;
|
|
100
|
+
}
|
|
101
|
+
|
|
52
102
|
@media (pointer: coarse) {
|
|
53
103
|
input,
|
|
54
104
|
select,
|
|
@@ -156,7 +156,7 @@ dt {
|
|
|
156
156
|
font-weight: initial; /* overwrite Bootstrap */
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
li {
|
|
159
|
+
li:not(td li) {
|
|
160
160
|
line-height: 1.6;
|
|
161
161
|
}
|
|
162
162
|
|
|
@@ -175,10 +175,10 @@ hr {
|
|
|
175
175
|
/*
|
|
176
176
|
Inline Text Semantics
|
|
177
177
|
|
|
178
|
-
Elements that define the meaning, structure, or style of a word, line, or any arbitrary piece of text.
|
|
178
|
+
Elements that define the meaning, structure, or style of a word, line, or any arbitrary piece of text. (The [<a>](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a) is styled in `../links.css`.)
|
|
179
179
|
|
|
180
180
|
```
|
|
181
|
-
<
|
|
181
|
+
<abbr> <b> <bdi> <bdo> <br> <cite> <code> <data> <dfn> <em> <i> <kbd> <mark> <q> <rb> <rp> <rt> <rtc> <ruby> <s> <samp> <small> <span> <strong> <sub> <sup> <time> <u> <var> <wbr>
|
|
182
182
|
```
|
|
183
183
|
|
|
184
184
|
Reference:
|
|
@@ -188,21 +188,6 @@ Reference:
|
|
|
188
188
|
Styleguide Elements.InlineTextSemantics
|
|
189
189
|
*/
|
|
190
190
|
|
|
191
|
-
/* Links */
|
|
192
|
-
|
|
193
|
-
a {
|
|
194
|
-
color: var(--global-color-link-on-light--normal);
|
|
195
|
-
text-decoration-thickness: var(--global-border-width--normal);
|
|
196
|
-
}
|
|
197
|
-
a:hover {
|
|
198
|
-
text-decoration-line: underline;
|
|
199
|
-
text-decoration-style: dashed;
|
|
200
|
-
}
|
|
201
|
-
a:focus {
|
|
202
|
-
text-decoration-line: underline;
|
|
203
|
-
text-decoration-style: dotted;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
191
|
/* Monospace */
|
|
207
192
|
|
|
208
193
|
var,
|
|
@@ -347,54 +332,6 @@ Styleguide Elements.DemarcatingEdits
|
|
|
347
332
|
|
|
348
333
|
|
|
349
334
|
|
|
350
|
-
/*
|
|
351
|
-
Table Content
|
|
352
|
-
|
|
353
|
-
Elements that create and handle tabular data.
|
|
354
|
-
|
|
355
|
-
```
|
|
356
|
-
<table> <thead> <tbody> <th> <td> <tfoot> <colgroup> <col> <caption>
|
|
357
|
-
```
|
|
358
|
-
|
|
359
|
-
Reference:
|
|
360
|
-
|
|
361
|
-
- [HTML element reference: Table content | MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element#Table_content)
|
|
362
|
-
|
|
363
|
-
Styleguide Elements.Tables
|
|
364
|
-
*/
|
|
365
|
-
|
|
366
|
-
table,
|
|
367
|
-
td,
|
|
368
|
-
th {
|
|
369
|
-
border: var(--global-border--normal);
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
/*
|
|
377
|
-
Forms
|
|
378
|
-
|
|
379
|
-
Elements that create forms which the user can fill out and submit to the Web site or application.
|
|
380
|
-
|
|
381
|
-
```
|
|
382
|
-
<form> <fieldset> <legend> <label> <input> <select> <optgroup> <option> <textarea> <button> <output> <progress> <meter> <datalist>
|
|
383
|
-
```
|
|
384
|
-
|
|
385
|
-
Reference:
|
|
386
|
-
|
|
387
|
-
- [HTML element reference: Forms | MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element#Forms)
|
|
388
|
-
|
|
389
|
-
Styleguide Elements.Forms
|
|
390
|
-
*/
|
|
391
|
-
|
|
392
|
-
/* … */
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
335
|
/*
|
|
399
336
|
Interactive Elements
|
|
400
337
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
The [`<a>` anchor element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a).
|
|
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,149 @@
|
|
|
1
|
+
preview: '@preview.cms'
|
|
2
|
+
context:
|
|
3
|
+
supportStyles:
|
|
4
|
+
- /assets/elements/links.css
|
|
5
|
+
- /assets/components/c-button.css
|
|
6
|
+
variants:
|
|
7
|
+
- name: default
|
|
8
|
+
label: Basic
|
|
9
|
+
context:
|
|
10
|
+
data:
|
|
11
|
+
cols:
|
|
12
|
+
- ID
|
|
13
|
+
- Name
|
|
14
|
+
- Size
|
|
15
|
+
- Time
|
|
16
|
+
- Actions
|
|
17
|
+
rows:
|
|
18
|
+
- id: n234as
|
|
19
|
+
name-link: apple-sauce
|
|
20
|
+
custom-1: 0.5 KB
|
|
21
|
+
time: 12/01/2019 11:04:19
|
|
22
|
+
acts:
|
|
23
|
+
- is-link: true
|
|
24
|
+
text: View Details
|
|
25
|
+
- is-button: true
|
|
26
|
+
text: Delete
|
|
27
|
+
- id: 56l810
|
|
28
|
+
name-link: milk-shake-032
|
|
29
|
+
custom-1: 300.0 KB
|
|
30
|
+
time: 03/22/2021 05:23:01
|
|
31
|
+
acts:
|
|
32
|
+
- is-link: true
|
|
33
|
+
text: View Details
|
|
34
|
+
- is-button: true
|
|
35
|
+
text: Delete
|
|
36
|
+
- id: 3r56xc
|
|
37
|
+
name-link: white-candy-5
|
|
38
|
+
custom-1: 1.5 MB
|
|
39
|
+
time: 12/01/2019 11:04:19
|
|
40
|
+
acts:
|
|
41
|
+
- is-link: true
|
|
42
|
+
text: View Details
|
|
43
|
+
- is-button: true
|
|
44
|
+
text: Delete
|
|
45
|
+
- name: paragraph
|
|
46
|
+
context:
|
|
47
|
+
data:
|
|
48
|
+
cols:
|
|
49
|
+
- Name
|
|
50
|
+
- Summary
|
|
51
|
+
- Actions
|
|
52
|
+
rows:
|
|
53
|
+
- name: apple-sauce
|
|
54
|
+
paragraph: true
|
|
55
|
+
acts:
|
|
56
|
+
- is-link: true
|
|
57
|
+
text: View Details
|
|
58
|
+
- is-button: true
|
|
59
|
+
text: Delete
|
|
60
|
+
- name: milk-shake-032
|
|
61
|
+
paragraph: true
|
|
62
|
+
acts:
|
|
63
|
+
- is-link: true
|
|
64
|
+
text: View Details
|
|
65
|
+
- is-button: true
|
|
66
|
+
text: Delete
|
|
67
|
+
- name: white-candy-5
|
|
68
|
+
paragraph: true
|
|
69
|
+
acts:
|
|
70
|
+
- is-link: true
|
|
71
|
+
text: View Details
|
|
72
|
+
- is-button: true
|
|
73
|
+
text: Delete
|
|
74
|
+
- name: nested
|
|
75
|
+
context:
|
|
76
|
+
data:
|
|
77
|
+
has-table: true
|
|
78
|
+
cols:
|
|
79
|
+
- Title
|
|
80
|
+
- Principal Investigator
|
|
81
|
+
- Team
|
|
82
|
+
- Usage
|
|
83
|
+
rows:
|
|
84
|
+
- id: Copper
|
|
85
|
+
name: Paul Bunyan
|
|
86
|
+
name-link: View Team
|
|
87
|
+
table:
|
|
88
|
+
cols:
|
|
89
|
+
- Systems
|
|
90
|
+
- Awarded
|
|
91
|
+
- Remaining
|
|
92
|
+
- Expires
|
|
93
|
+
rows:
|
|
94
|
+
- name: Corral
|
|
95
|
+
custom-1: 50 GB
|
|
96
|
+
custom-2: <span class="c-pill">13 GB</span>
|
|
97
|
+
time: 12/01/2019 11:04:19
|
|
98
|
+
- name: Hikari
|
|
99
|
+
custom-1: 21 SU
|
|
100
|
+
custom-2: <span class="c-pill">1.5 SU</span>
|
|
101
|
+
time: 03/22/2021 05:23:01
|
|
102
|
+
- name: Ranch
|
|
103
|
+
custom-1: 1 TB
|
|
104
|
+
custom-2: <span class="c-pill">932 GB</span>
|
|
105
|
+
time: 12/01/2019 11:04:19
|
|
106
|
+
- id: Vermillion
|
|
107
|
+
name: Nathan Fillion
|
|
108
|
+
name-link: View Team
|
|
109
|
+
table:
|
|
110
|
+
cols:
|
|
111
|
+
- Systems
|
|
112
|
+
- Awarded
|
|
113
|
+
- Remaining
|
|
114
|
+
- Expires
|
|
115
|
+
rows:
|
|
116
|
+
- name: Corral
|
|
117
|
+
custom-1: 50 GB
|
|
118
|
+
custom-2: <span class="c-pill">13 GB</span>
|
|
119
|
+
time: 12/01/2019 11:04:19
|
|
120
|
+
- name: Hikari
|
|
121
|
+
custom-1: 21 SU
|
|
122
|
+
custom-2: <span class="c-pill">1.5 SU</span>
|
|
123
|
+
time: 03/22/2021 05:23:01
|
|
124
|
+
- name: Ranch
|
|
125
|
+
custom-1: 1 TB
|
|
126
|
+
custom-2: <span class="c-pill">932 GB</span>
|
|
127
|
+
time: 12/01/2019 11:04:19
|
|
128
|
+
- id: Emerald
|
|
129
|
+
name: Wesley Snipes
|
|
130
|
+
name-link: View Team
|
|
131
|
+
table:
|
|
132
|
+
cols:
|
|
133
|
+
- Systems
|
|
134
|
+
- Awarded
|
|
135
|
+
- Remaining
|
|
136
|
+
- Expires
|
|
137
|
+
rows:
|
|
138
|
+
- name: Corral
|
|
139
|
+
custom-1: 50 GB
|
|
140
|
+
custom-2: <span class="c-pill">13 GB</span>
|
|
141
|
+
time: 12/01/2019 11:04:19
|
|
142
|
+
- name: Hikari
|
|
143
|
+
custom-1: 21 SU
|
|
144
|
+
custom-2: <span class="c-pill">1.5 SU</span>
|
|
145
|
+
time: 03/22/2021 05:23:01
|
|
146
|
+
- name: Ranch
|
|
147
|
+
custom-1: 1 TB
|
|
148
|
+
custom-2: <span class="c-pill">932 GB</span>
|
|
149
|
+
time: 12/01/2019 11:04:19
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
[Table elements](https://developer.mozilla.org/en-US/docs/Web/HTML/Element#table_content) create and handle tabular data.
|
|
2
|
+
|
|
3
|
+
```
|
|
4
|
+
<table> <thead> <tbody> <th> <td> <tfoot> <colgroup> <col> <caption>
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
/* To open external links in new window */
|
|
9
|
+
Array.from(document.links)
|
|
10
|
+
.filter(link => link.hostname != window.location.hostname)
|
|
11
|
+
.forEach(link => link.target = '_blank');
|
|
12
|
+
</script>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
A [table]({{path './table' }}) nested inside a [table]({{path './table' }}).
|
|
2
|
+
|
|
3
|
+
> **⚠️ Workaround**
|
|
4
|
+
>
|
|
5
|
+
> Nested tables require `.has-table` class on **both** parent table **and** containing cell.
|
|
6
|
+
>
|
|
7
|
+
> <small>This is only **until** [`:has()` pseudo-class support](https://caniuse.com/css-has) exists on all major browsers.</small>
|
|
8
|
+
|
|
9
|
+
| Class | Example | On
|
|
10
|
+
| - | - | - |
|
|
11
|
+
| `.has-table` | `<table class="has-table"> … </table>` | parent table
|
|
12
|
+
| `.has-table` | `<td class="has-table"> … </td>` | cell that contains nested table
|