@grantcodes/ui 2.12.1 → 2.15.5
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/CHANGELOG.md +75 -0
- package/README.md +5 -1
- package/custom-elements.json +295 -176
- package/package.json +11 -3
- package/src/components/accordion/accordion-item.css +14 -14
- package/src/components/accordion/accordion.css +1 -1
- package/src/components/app-bar/app-bar.component.js +2 -2
- package/src/components/app-bar/app-bar.css +68 -22
- package/src/components/app-bar/app-bar.stories.js +37 -0
- package/src/components/app-bar/app-bar.test.js +19 -0
- package/src/components/app-bar/nav-link.css +10 -11
- package/src/components/avatar/avatar.css +5 -6
- package/src/components/badge/badge.css +16 -15
- package/src/components/breadcrumb/breadcrumb.css +10 -11
- package/src/components/button/button.css +112 -24
- package/src/components/button/button.stories.js +37 -0
- package/src/components/button-group/button-group.css +4 -4
- package/src/components/card/card.css +25 -25
- package/src/components/code-preview/code-preview.css +6 -6
- package/src/components/container/container.css +2 -1
- package/src/components/container/container.stories.js +1 -1
- package/src/components/countdown/countdown.css +13 -13
- package/src/components/cta/cta.component.js +6 -5
- package/src/components/cta/cta.css +15 -23
- package/src/components/dialog/dialog.css +14 -14
- package/src/components/dropdown/dropdown.css +14 -14
- package/src/components/dropzone/dropzone.css +11 -12
- package/src/components/feature-list/feature-list.component.js +3 -2
- package/src/components/feature-list/feature-list.css +14 -20
- package/src/components/footer/footer-column.css +9 -10
- package/src/components/footer/footer.component.js +3 -2
- package/src/components/footer/footer.css +12 -18
- package/src/components/footer/footer.test.js +1 -1
- package/src/components/form-field/form-field.css +6 -6
- package/src/components/hero/hero.css +9 -9
- package/src/components/loading/loading.css +3 -3
- package/src/components/logo-cloud/logo-cloud.component.js +3 -2
- package/src/components/logo-cloud/logo-cloud.css +8 -16
- package/src/components/map/map.css +8 -8
- package/src/components/media-text/media-text.css +9 -9
- package/src/components/newsletter/newsletter.css +21 -21
- package/src/components/notice/notice.css +17 -17
- package/src/components/person/index.js +1 -0
- package/src/components/person/person.component.js +51 -0
- package/src/components/person/person.css +39 -0
- package/src/components/person/person.js +8 -0
- package/src/components/person/person.react.js +9 -0
- package/src/components/person/person.stories.js +59 -0
- package/src/components/person/person.test.js +69 -0
- package/src/components/pricing/pricing.component.js +3 -2
- package/src/components/pricing/pricing.css +33 -41
- package/src/components/sidebar/sidebar.css +21 -21
- package/src/components/stats/stats.component.js +3 -2
- package/src/components/stats/stats.css +13 -21
- package/src/components/tabs/internal/tabs-item.component.js +5 -0
- package/src/components/tabs/tabs.component.js +4 -2
- package/src/components/tabs/tabs.css +15 -15
- package/src/components/testimonials/testimonials.component.js +11 -24
- package/src/components/testimonials/testimonials.css +11 -36
- package/src/components/toast/toast.css +23 -24
- package/src/components/tooltip/tooltip.css +6 -6
- package/src/css/colors.stories.js +6 -6
- package/src/css/elements/a.css +4 -4
- package/src/css/elements/forms/input.css +27 -27
- package/src/css/elements/forms/label.css +1 -1
- package/src/css/elements/media/image.css +1 -0
- package/src/css/layers.stories.js +3 -3
- package/src/css/reset.css +3 -3
- package/src/css/themes/todomap.css +1 -1
- package/src/css/tokens.stories.js +16 -16
- package/src/css/typography.css +7 -7
- package/src/css/util/focus-ring.css +9 -9
- package/src/lib/styles/focus-ring.css +9 -9
- package/src/main.js +1 -0
- package/src/pages/agency.stories.js +5 -4
- package/src/pages/blog-post.stories.js +33 -50
- package/src/pages/saas-landing.stories.js +8 -7
- package/src/react.js +1 -0
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
import { html } from "lit/static-html.js";
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Internal shared base class for tabs primitives.
|
|
6
|
+
* @internal
|
|
7
|
+
* @tag grantcodes-tabs-item
|
|
8
|
+
*/
|
|
4
9
|
export class GrantCodesTabsItem extends LitElement {
|
|
5
10
|
static properties = {
|
|
6
11
|
active: { type: Boolean },
|
|
@@ -31,10 +31,10 @@ export class GrantCodesTabs extends LitElement {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
/** @type {GrantCodesTab[]} */
|
|
34
|
+
/** @type {import("./tab.component.js").GrantCodesTab[]} */
|
|
35
35
|
tabs = [];
|
|
36
36
|
|
|
37
|
-
/** @type {GrantCodesTabsButton[]} */
|
|
37
|
+
/** @type {import("./internal/tabs-button.component.js").GrantCodesTabsButton[]} */
|
|
38
38
|
tabButtons = [];
|
|
39
39
|
|
|
40
40
|
get activeTab() {
|
|
@@ -130,3 +130,5 @@ export class GrantCodesTabs extends LitElement {
|
|
|
130
130
|
`;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
+
|
|
134
|
+
export { GrantCodesTab, GrantCodesTabsButton };
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
width: fit-content;
|
|
23
23
|
min-width: 100%;
|
|
24
24
|
background-image: linear-gradient(
|
|
25
|
-
var(--g-
|
|
26
|
-
var(--g-
|
|
25
|
+
var(--g-color-border-default, var(--g-color-primary-100)),
|
|
26
|
+
var(--g-color-border-default, var(--g-color-primary-100))
|
|
27
27
|
);
|
|
28
28
|
background-size: auto var(--border-width);
|
|
29
29
|
background-position: bottom;
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
.tabs__tab {
|
|
34
34
|
padding: 0.6em 1.2em;
|
|
35
35
|
line-height: 1;
|
|
36
|
-
font-size: var(--g-
|
|
36
|
+
font-size: var(--g-typography-body-default-font-size);
|
|
37
37
|
border: none;
|
|
38
38
|
border-block-start: var(--border-width) solid transparent;
|
|
39
39
|
border-block-end: var(--border-width) solid
|
|
40
|
-
var(--g-
|
|
40
|
+
var(--g-color-border-default, var(--g-color-primary-100));
|
|
41
41
|
background-color: transparent;
|
|
42
|
-
color: var(--g-
|
|
42
|
+
color: var(--g-color-content-default);
|
|
43
43
|
opacity: 0.7;
|
|
44
44
|
white-space: nowrap;
|
|
45
45
|
cursor: pointer;
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
|
|
52
52
|
@media (min-width: 40em) {
|
|
53
53
|
.tabs__tab {
|
|
54
|
-
padding-inline: var(--g-
|
|
54
|
+
padding-inline: var(--g-spacing-md);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -59,28 +59,28 @@
|
|
|
59
59
|
.tabs__tab:focus-visible {
|
|
60
60
|
opacity: 1;
|
|
61
61
|
border-block-end-color: var(
|
|
62
|
-
--g-
|
|
63
|
-
var(--g-
|
|
62
|
+
--g-color-border-default,
|
|
63
|
+
var(--g-color-primary-200)
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.tabs__tab.is-active {
|
|
68
68
|
border-block-end-color: var(
|
|
69
|
-
--g-
|
|
70
|
-
var(--g-
|
|
69
|
+
--g-color-border-primary,
|
|
70
|
+
var(--g-color-primary-500)
|
|
71
71
|
);
|
|
72
|
-
background-color: var(--g-
|
|
73
|
-
color: var(--g-
|
|
72
|
+
background-color: var(--g-color-background-subtle);
|
|
73
|
+
color: var(--g-color-content-default);
|
|
74
74
|
z-index: 1;
|
|
75
75
|
position: relative;
|
|
76
76
|
opacity: 1;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.tabs__panel {
|
|
80
|
-
margin-block-start: var(--g-
|
|
80
|
+
margin-block-start: var(--g-spacing-md);
|
|
81
81
|
outline-color: var(
|
|
82
|
-
--g-
|
|
83
|
-
var(--g-
|
|
82
|
+
--g-color-border-primary,
|
|
83
|
+
var(--g-color-primary-500)
|
|
84
84
|
);
|
|
85
85
|
outline-offset: 1rem;
|
|
86
86
|
display: none;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { LitElement, html } from "lit";
|
|
2
2
|
import testimonialsStyles from "./testimonials.css" with { type: "css" };
|
|
3
3
|
import "../card/card.js";
|
|
4
|
-
import "../
|
|
4
|
+
import "../person/person.js";
|
|
5
|
+
import "../container/container.js";
|
|
5
6
|
|
|
6
7
|
export class GrantCodesTestimonials extends LitElement {
|
|
7
8
|
static styles = [testimonialsStyles];
|
|
@@ -43,7 +44,7 @@ export class GrantCodesTestimonials extends LitElement {
|
|
|
43
44
|
const items = this._items;
|
|
44
45
|
return html`
|
|
45
46
|
<section class="testimonials">
|
|
46
|
-
<
|
|
47
|
+
<grantcodes-container>
|
|
47
48
|
${
|
|
48
49
|
this.title
|
|
49
50
|
? html`<h2 class="testimonials__title">${this.title}</h2>`
|
|
@@ -63,34 +64,20 @@ export class GrantCodesTestimonials extends LitElement {
|
|
|
63
64
|
</p>
|
|
64
65
|
</blockquote>
|
|
65
66
|
<footer class="testimonials__attribution" slot="footer">
|
|
66
|
-
|
|
67
|
-
item.
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
: null
|
|
74
|
-
}
|
|
75
|
-
<div class="testimonials__meta">
|
|
76
|
-
<cite class="testimonials__name">${item.name}</cite>
|
|
77
|
-
${
|
|
78
|
-
item.role || item.company
|
|
79
|
-
? html`<span class="testimonials__role">
|
|
80
|
-
${[item.role, item.company]
|
|
81
|
-
.filter(Boolean)
|
|
82
|
-
.join(", ")}
|
|
83
|
-
</span>`
|
|
84
|
-
: null
|
|
85
|
-
}
|
|
86
|
-
</div>
|
|
67
|
+
<grantcodes-person
|
|
68
|
+
name=${item.name ?? ""}
|
|
69
|
+
role=${item.role ?? ""}
|
|
70
|
+
company=${item.company ?? ""}
|
|
71
|
+
avatar=${item.avatar ?? ""}
|
|
72
|
+
size="small"
|
|
73
|
+
></grantcodes-person>
|
|
87
74
|
</footer>
|
|
88
75
|
</grantcodes-card>
|
|
89
76
|
</li>
|
|
90
77
|
`,
|
|
91
78
|
)}
|
|
92
79
|
</ul>
|
|
93
|
-
</
|
|
80
|
+
</grantcodes-container>
|
|
94
81
|
</section>
|
|
95
82
|
`;
|
|
96
83
|
}
|
|
@@ -9,27 +9,20 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.testimonials {
|
|
12
|
-
padding-block: var(--g-
|
|
13
|
-
padding-inline: var(--g-theme-spacing-md);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.testimonials__container {
|
|
17
|
-
max-width: 1200px;
|
|
18
|
-
margin: 0 auto;
|
|
12
|
+
padding-block: var(--g-spacing-3xl);
|
|
19
13
|
}
|
|
20
14
|
|
|
21
15
|
.testimonials__title {
|
|
22
|
-
margin: 0 0 var(--g-
|
|
23
|
-
font
|
|
24
|
-
font-weight: var(--g-theme-typography-h4-font-weight);
|
|
16
|
+
margin: 0 0 var(--g-spacing-2xl);
|
|
17
|
+
font: var(--g-typography-h3-font);
|
|
25
18
|
text-align: center;
|
|
26
|
-
color: var(--g-
|
|
19
|
+
color: var(--g-color-content-default);
|
|
27
20
|
}
|
|
28
21
|
|
|
29
22
|
.testimonials__grid--cards {
|
|
30
23
|
display: grid;
|
|
31
24
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
32
|
-
gap: var(--g-
|
|
25
|
+
gap: var(--g-spacing-lg);
|
|
33
26
|
padding: 0;
|
|
34
27
|
margin: 0;
|
|
35
28
|
list-style: none;
|
|
@@ -38,7 +31,7 @@
|
|
|
38
31
|
.testimonials__grid--list {
|
|
39
32
|
display: flex;
|
|
40
33
|
flex-direction: column;
|
|
41
|
-
gap: var(--g-
|
|
34
|
+
gap: var(--g-spacing-xl);
|
|
42
35
|
max-width: 65ch;
|
|
43
36
|
margin: 0 auto;
|
|
44
37
|
padding: 0;
|
|
@@ -49,36 +42,18 @@
|
|
|
49
42
|
margin: 0;
|
|
50
43
|
display: flex;
|
|
51
44
|
flex-direction: column;
|
|
52
|
-
gap: var(--g-
|
|
45
|
+
gap: var(--g-spacing-lg);
|
|
53
46
|
height: 100%;
|
|
54
47
|
}
|
|
55
48
|
|
|
56
49
|
.testimonials__text {
|
|
57
50
|
margin: 0;
|
|
58
|
-
font: var(--g-
|
|
59
|
-
|
|
51
|
+
font: var(--g-typography-body-default);
|
|
52
|
+
font-style: italic;
|
|
53
|
+
color: var(--g-color-content-default);
|
|
60
54
|
flex: 1;
|
|
61
55
|
}
|
|
62
56
|
|
|
63
57
|
.testimonials__attribution {
|
|
64
|
-
|
|
65
|
-
align-items: center;
|
|
66
|
-
gap: var(--g-theme-spacing-sm);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.testimonials__meta {
|
|
70
|
-
display: flex;
|
|
71
|
-
flex-direction: column;
|
|
72
|
-
gap: var(--g-theme-spacing-xs);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.testimonials__name {
|
|
76
|
-
font: var(--g-theme-typography-label-default);
|
|
77
|
-
font-style: normal;
|
|
78
|
-
color: var(--g-theme-color-content-default);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.testimonials__role {
|
|
82
|
-
font-size: var(--g-theme-typography-body-sm-font-size);
|
|
83
|
-
color: var(--g-theme-color-content-subtle);
|
|
58
|
+
margin-top: auto;
|
|
84
59
|
}
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
z-index: 9999;
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
|
-
gap: var(--g-
|
|
19
|
-
padding: var(--g-
|
|
18
|
+
gap: var(--g-spacing-sm);
|
|
19
|
+
padding: var(--g-spacing-md);
|
|
20
20
|
pointer-events: none;
|
|
21
21
|
max-inline-size: 100vw;
|
|
22
22
|
max-block-size: 100vh;
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
.toast {
|
|
61
61
|
display: flex;
|
|
62
62
|
align-items: flex-start;
|
|
63
|
-
gap: var(--g-
|
|
63
|
+
gap: var(--g-spacing-sm);
|
|
64
64
|
min-inline-size: 300px;
|
|
65
65
|
max-inline-size: 500px;
|
|
66
|
-
padding-block: var(--g-
|
|
67
|
-
padding-inline: var(--g-
|
|
68
|
-
border-radius: var(--g-
|
|
69
|
-
background-color: var(--g-
|
|
66
|
+
padding-block: var(--g-spacing-md);
|
|
67
|
+
padding-inline: var(--g-spacing-md);
|
|
68
|
+
border-radius: var(--g-border-radius-md);
|
|
69
|
+
background-color: var(--g-color-background-default);
|
|
70
70
|
border-inline-start-width: 4px;
|
|
71
71
|
border-inline-start-style: solid;
|
|
72
72
|
pointer-events: auto;
|
|
@@ -84,19 +84,19 @@
|
|
|
84
84
|
|
|
85
85
|
/* Variant colors */
|
|
86
86
|
.toast--info {
|
|
87
|
-
border-inline-start-color: var(--g-
|
|
87
|
+
border-inline-start-color: var(--g-color-background-utility-info);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
.toast--success {
|
|
91
|
-
border-inline-start-color: var(--g-
|
|
91
|
+
border-inline-start-color: var(--g-color-background-utility-success);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
.toast--warning {
|
|
95
|
-
border-inline-start-color: var(--g-
|
|
95
|
+
border-inline-start-color: var(--g-color-background-utility-warning);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.toast--error {
|
|
99
|
-
border-inline-start-color: var(--g-
|
|
99
|
+
border-inline-start-color: var(--g-color-background-utility-error);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
/* Toast icon */
|
|
@@ -107,19 +107,19 @@
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.toast--info .toast__icon {
|
|
110
|
-
color: var(--g-
|
|
110
|
+
color: var(--g-color-background-utility-info);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
.toast--success .toast__icon {
|
|
114
|
-
color: var(--g-
|
|
114
|
+
color: var(--g-color-background-utility-success);
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
.toast--warning .toast__icon {
|
|
118
|
-
color: var(--g-
|
|
118
|
+
color: var(--g-color-background-utility-warning);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.toast--error .toast__icon {
|
|
122
|
-
color: var(--g-
|
|
122
|
+
color: var(--g-color-background-utility-error);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
/* Toast content */
|
|
@@ -129,15 +129,14 @@
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
.toast__title {
|
|
132
|
-
font
|
|
133
|
-
font-size: var(--g-typography-font-size-16);
|
|
132
|
+
font: var(--g-typography-h6-font);
|
|
134
133
|
margin-block-end: 0.25rem;
|
|
135
|
-
color: var(--g-
|
|
134
|
+
color: var(--g-color-content-default);
|
|
136
135
|
}
|
|
137
136
|
|
|
138
137
|
.toast__message {
|
|
139
|
-
font
|
|
140
|
-
color: var(--g-
|
|
138
|
+
font: var(--g-typography-body-sm-font);
|
|
139
|
+
color: var(--g-color-content-subtle);
|
|
141
140
|
line-height: 1.5;
|
|
142
141
|
}
|
|
143
142
|
|
|
@@ -150,16 +149,16 @@
|
|
|
150
149
|
display: inline-flex;
|
|
151
150
|
align-items: center;
|
|
152
151
|
justify-content: center;
|
|
153
|
-
border-radius: var(--g-
|
|
154
|
-
color: var(--g-
|
|
152
|
+
border-radius: var(--g-border-radius-md);
|
|
153
|
+
color: var(--g-color-content-subtle);
|
|
155
154
|
cursor: pointer;
|
|
156
155
|
transition: all 0.2s ease;
|
|
157
156
|
margin-inline-start: 0.5rem;
|
|
158
157
|
}
|
|
159
158
|
|
|
160
159
|
.toast__close:hover {
|
|
161
|
-
color: var(--g-
|
|
162
|
-
background-color: var(--g-
|
|
160
|
+
color: var(--g-color-content-default);
|
|
161
|
+
background-color: var(--g-color-background-subtle-hover);
|
|
163
162
|
}
|
|
164
163
|
|
|
165
164
|
/* Bottom position toasts slide up instead of down */
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.tooltip__slot {
|
|
18
|
-
padding: var(--g-
|
|
19
|
-
margin: calc(-1 * var(--g-
|
|
18
|
+
padding: var(--g-spacing-sm);
|
|
19
|
+
margin: calc(-1 * var(--g-spacing-sm));
|
|
20
20
|
/* Anchor name will be set via JavaScript to include unique ID */
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
max-width: 100%;
|
|
28
28
|
min-width: 6rem;
|
|
29
29
|
z-index: 100;
|
|
30
|
-
border-radius: var(--g-
|
|
30
|
+
border-radius: var(--g-border-radius-md);
|
|
31
31
|
padding: 0.6em 1em;
|
|
32
|
-
font-size: var(--g-typography-font-size-
|
|
32
|
+
font-size: var(--g-typography-font-size-xs);
|
|
33
33
|
line-height: 1;
|
|
34
|
-
color: var(--g-
|
|
35
|
-
background-color: var(--g-
|
|
34
|
+
color: var(--g-color-primary-900);
|
|
35
|
+
background-color: var(--g-color-primary-100);
|
|
36
36
|
box-shadow:
|
|
37
37
|
0 1px 3px rgba(0, 0, 0, 0.12),
|
|
38
38
|
0 1px 2px rgba(0, 0, 0, 0.24);
|
|
@@ -27,28 +27,28 @@ class ColorPalette extends LitElement {
|
|
|
27
27
|
:host {
|
|
28
28
|
display: block;
|
|
29
29
|
padding: 2rem;
|
|
30
|
-
background: var(--g-
|
|
31
|
-
color: var(--g-
|
|
30
|
+
background: var(--g-color-background-default, #fff);
|
|
31
|
+
color: var(--g-color-content-default, #333);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.banner {
|
|
35
35
|
margin-bottom: 2rem;
|
|
36
36
|
padding: 1rem;
|
|
37
|
-
background: var(--g-
|
|
37
|
+
background: var(--g-color-background-subtle, #f5f5f5);
|
|
38
38
|
border-radius: 0.5rem;
|
|
39
|
-
border: 1px solid var(--g-
|
|
39
|
+
border: 1px solid var(--g-color-border-default, #ccc);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.theme-title {
|
|
43
43
|
margin: 0;
|
|
44
44
|
font-weight: 600;
|
|
45
|
-
color: var(--g-
|
|
45
|
+
color: var(--g-color-content-default, #333);
|
|
46
46
|
font-size: 1rem;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.theme-hint {
|
|
50
50
|
margin: 0.5rem 0 0 0;
|
|
51
|
-
color: var(--g-
|
|
51
|
+
color: var(--g-color-content-subtle, #666);
|
|
52
52
|
font-size: 0.875rem;
|
|
53
53
|
}
|
|
54
54
|
`;
|
package/src/css/elements/a.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
:where(a) {
|
|
2
|
-
color: var(--g-
|
|
2
|
+
color: var(--g-link-color-content-default);
|
|
3
3
|
text-decoration: underline;
|
|
4
4
|
transition:
|
|
5
5
|
color 0.2s,
|
|
@@ -7,19 +7,19 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
:where(a:visited) {
|
|
10
|
-
color: var(--g-
|
|
10
|
+
color: var(--g-link-color-content-visited);
|
|
11
11
|
opacity: 0.6;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
:where(a:hover),
|
|
15
15
|
:where(a:focus-visible) {
|
|
16
16
|
opacity: 1;
|
|
17
|
-
color: var(--g-
|
|
17
|
+
color: var(--g-link-color-content-hover);
|
|
18
18
|
text-decoration: underline wavy;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
:where(a:active) {
|
|
22
|
-
color: var(--g-
|
|
22
|
+
color: var(--g-link-color-content-active);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/* External links - special styling for links opening in new windows */
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
:where(input, textarea, select) {
|
|
2
2
|
display: block;
|
|
3
|
-
accent-color: var(--g-
|
|
4
|
-
border-radius: var(--g-
|
|
5
|
-
border-width: var(--g-
|
|
3
|
+
accent-color: var(--g-form-input-accent-color-default);
|
|
4
|
+
border-radius: var(--g-border-radius-md);
|
|
5
|
+
border-width: var(--g-border-width-md);
|
|
6
6
|
border-style: solid;
|
|
7
|
-
border-color: var(--g-
|
|
8
|
-
background: var(--g-
|
|
9
|
-
color: var(--g-
|
|
7
|
+
border-color: var(--g-form-color-border-default);
|
|
8
|
+
background: var(--g-form-color-background-default);
|
|
9
|
+
color: var(--g-form-color-content-default);
|
|
10
10
|
padding: 0.5em 1em;
|
|
11
11
|
transition-property: color, background-color, border-color, outline;
|
|
12
|
-
font-size: var(--g-
|
|
12
|
+
font-size: var(--g-typography-body-font-size);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
:where(input, textarea, select):not(textarea) {
|
|
@@ -17,19 +17,19 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
:where(input, textarea, select):hover {
|
|
20
|
-
border-color: var(--g-
|
|
21
|
-
color: var(--g-
|
|
22
|
-
background: var(--g-
|
|
20
|
+
border-color: var(--g-form-color-border-hover);
|
|
21
|
+
color: var(--g-form-color-content-hover);
|
|
22
|
+
background: var(--g-form-color-background-hover);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
:where(input, textarea, select):focus {
|
|
26
|
-
border-color: var(--g-
|
|
27
|
-
color: var(--g-
|
|
28
|
-
background: var(--g-
|
|
26
|
+
border-color: var(--g-form-color-border-focus);
|
|
27
|
+
color: var(--g-form-color-content-focus);
|
|
28
|
+
background: var(--g-form-color-background-focus);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
:where(input, textarea, select):focus:invalid {
|
|
32
|
-
border-color: var(--g-
|
|
32
|
+
border-color: var(--g-form-color-border-error);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
:where(input, textarea, select)[readonly] {
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
:where(input, textarea, select):disabled {
|
|
41
|
-
border-color: var(--g-
|
|
42
|
-
background: var(--g-
|
|
43
|
-
color: var(--g-
|
|
41
|
+
border-color: var(--g-form-color-border-disabled);
|
|
42
|
+
background: var(--g-form-color-background-disabled);
|
|
43
|
+
color: var(--g-form-color-content-disabled);
|
|
44
44
|
cursor: not-allowed;
|
|
45
45
|
opacity: 0.6;
|
|
46
46
|
filter: grayscale(100%) brightness(80%);
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
|
|
49
49
|
:where(input, textarea, select):disabled:hover,
|
|
50
50
|
:where(input, textarea, select):disabled:focus-visible {
|
|
51
|
-
border-color: var(--g-
|
|
52
|
-
background: var(--g-
|
|
53
|
-
color: var(--g-
|
|
51
|
+
border-color: var(--g-form-color-border-disabled);
|
|
52
|
+
background: var(--g-form-color-background-disabled);
|
|
53
|
+
color: var(--g-form-color-content-disabled);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
:where(input, textarea, select):where(textarea) {
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
:where(input, textarea, select):where(option):checked {
|
|
88
|
-
background: var(--g-
|
|
89
|
-
color: var(--g-
|
|
88
|
+
background: var(--g-color-background-primary);
|
|
89
|
+
color: var(--g-color-content-primary-knockout);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
:where(input, textarea, select):where([type="checkbox"]),
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
:where(input, textarea, select):where([type="checkbox"]) {
|
|
104
|
-
border-radius: calc(var(--g-
|
|
104
|
+
border-radius: calc(var(--g-border-radius-md) / 2);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
:where(input, textarea, select):where([type="checkbox"])::after {
|
|
@@ -121,12 +121,12 @@
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
:where(input, textarea, select):where([type="checkbox"]):checked {
|
|
124
|
-
border-color: var(--g-
|
|
125
|
-
background-color: var(--g-
|
|
124
|
+
border-color: var(--g-color-border-primary);
|
|
125
|
+
background-color: var(--g-color-border-primary);
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
:where(input, textarea, select):where([type="checkbox"]):checked::after {
|
|
129
|
-
color: var(--g-
|
|
129
|
+
color: var(--g-color-border-default);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
:where(input, textarea, select):where([type="radio"]) {
|
|
@@ -147,5 +147,5 @@
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
:where(input, textarea, select):where([type="radio"]):checked::after {
|
|
150
|
-
background-color: var(--g-
|
|
150
|
+
background-color: var(--g-color-border-primary);
|
|
151
151
|
}
|
|
@@ -29,7 +29,7 @@ export const LayerOverrideDemo = {
|
|
|
29
29
|
<style>
|
|
30
30
|
/* This override is unlayered, so it beats all layers */
|
|
31
31
|
.layer-demo-override {
|
|
32
|
-
color: var(--g-
|
|
32
|
+
color: var(--g-color-content-brand, rebeccapurple);
|
|
33
33
|
font-weight: bold;
|
|
34
34
|
}
|
|
35
35
|
</style>
|
|
@@ -72,8 +72,8 @@ export const AllLayers = {
|
|
|
72
72
|
}
|
|
73
73
|
.layer-card {
|
|
74
74
|
padding: 1rem;
|
|
75
|
-
border: 1px solid var(--g-
|
|
76
|
-
border-radius: var(--g-
|
|
75
|
+
border: 1px solid var(--g-color-border-default, #ccc);
|
|
76
|
+
border-radius: var(--g-border-radius-md, 0.5rem);
|
|
77
77
|
}
|
|
78
78
|
.layer-card h4 {
|
|
79
79
|
margin-top: 0;
|
package/src/css/reset.css
CHANGED
|
@@ -227,8 +227,8 @@ pre {
|
|
|
227
227
|
:root {
|
|
228
228
|
color-scheme: light dark;
|
|
229
229
|
--grantcodes-ui-theme: "none";
|
|
230
|
-
background-color: var(--g-
|
|
231
|
-
color: var(--g-
|
|
230
|
+
background-color: var(--g-color-background-default);
|
|
231
|
+
color: var(--g-color-content-default);
|
|
232
232
|
fill: currentColor;
|
|
233
233
|
}
|
|
234
234
|
|
|
@@ -250,7 +250,7 @@ pre {
|
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
::selection {
|
|
253
|
-
background-color: var(--g-
|
|
253
|
+
background-color: var(--g-color-background-primary);
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
/* Default backdrop styles */
|