Skip to content

Commit 0d03301

Browse files
committed
chore: prettier settings for all CSS
1 parent acf27a1 commit 0d03301

File tree

126 files changed

+5629
-15716
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+5629
-15716
lines changed

.prettierrc.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ bracketSpacing: true
77
arrowParens: always
88
htmlWhitespaceSensitivity: ignore
99
overrides:
10-
- files: '{tools,packages}/*/src/spectrum-*.css'
10+
- files: '*.css'
1111
options:
1212
printWidth: 500
13+
singleQuote: false

packages/accordion/src/accordion-overrides.css

+2-6
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ governing permissions and limitations under the License.
1313
/* THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
1414
:host {
1515
--spectrum-accordion-divider-color: var(--system-accordion-divider-color);
16-
--spectrum-accordion-item-content-disabled-color: var(
17-
--system-accordion-item-content-disabled-color
18-
);
19-
--spectrum-accordion-item-content-color: var(
20-
--system-accordion-item-content-color
21-
);
16+
--spectrum-accordion-item-content-disabled-color: var(--system-accordion-item-content-disabled-color);
17+
--spectrum-accordion-item-content-color: var(--system-accordion-item-content-color);
2218
}

packages/accordion/src/spectrum-accordion-item.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ governing permissions and limitations under the License.
4747
}
4848

4949
.iconContainer:dir(rtl),
50-
:host([dir='rtl']) .iconContainer {
50+
:host([dir="rtl"]) .iconContainer {
5151
transform: scaleX(-1);
5252
}
5353

@@ -93,7 +93,7 @@ governing permissions and limitations under the License.
9393
}
9494

9595
#header:focus:after {
96-
content: '';
96+
content: "";
9797
position: absolute;
9898
inset-inline-start: 0;
9999
}
@@ -148,7 +148,7 @@ governing permissions and limitations under the License.
148148
@media (forced-colors: active) {
149149
#header:after {
150150
forced-color-adjust: none;
151-
content: '';
151+
content: "";
152152
position: absolute;
153153
inset-inline-start: 0;
154154
}

packages/accordion/src/spectrum-accordion.css

+12-12
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ governing permissions and limitations under the License.
5353
}
5454

5555
:host:dir(rtl),
56-
:host([dir='rtl']) {
56+
:host([dir="rtl"]) {
5757
--spectrum-logical-rotation: matrix(-1, 0, 0, 1, 0, 0);
5858
}
5959

@@ -64,55 +64,55 @@ governing permissions and limitations under the License.
6464
--spectrum-accordion-item-content-line-height: var(--spectrum-cjk-line-height-100);
6565
}
6666

67-
:host([density='compact']) {
67+
:host([density="compact"]) {
6868
--spectrum-accordion-item-height: var(--spectrum-component-height-100);
6969
--spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-compact-medium);
7070
--spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-compact-medium);
7171
}
7272

73-
:host([density='compact'][size='s']) {
73+
:host([density="compact"][size="s"]) {
7474
--spectrum-accordion-item-height: var(--spectrum-component-height-75);
7575
--spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-compact-small);
7676
--spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-compact-small);
7777
}
7878

79-
:host([density='compact'][size='l']) {
79+
:host([density="compact"][size="l"]) {
8080
--spectrum-accordion-item-height: var(--spectrum-component-height-200);
8181
--spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-compact-large);
8282
--spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-compact-large);
8383
}
8484

85-
:host([density='compact'][size='xl']) {
85+
:host([density="compact"][size="xl"]) {
8686
--spectrum-accordion-item-height: var(--spectrum-component-height-300);
8787
--spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-compact-extra-large);
8888
--spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-compact-extra-large);
8989
}
9090

91-
:host([density='spacious']) {
91+
:host([density="spacious"]) {
9292
--spectrum-accordion-item-header-line-height: 1.278;
9393
--spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-spacious-medium);
9494
--spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-spacious-medium);
9595
}
9696

97-
:host([density='spacious'][size='s']) {
97+
:host([density="spacious"][size="s"]) {
9898
--spectrum-accordion-item-header-line-height: 1.25;
9999
--spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-small-top-to-text-spacious);
100100
--spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-spacious-small);
101101
}
102102

103-
:host([density='spacious'][size='l']) {
103+
:host([density="spacious"][size="l"]) {
104104
--spectrum-accordion-item-header-line-height: 1.273;
105105
--spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-spacious-large);
106106
--spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-spacious-large);
107107
}
108108

109-
:host([density='spacious'][size='xl']) {
109+
:host([density="spacious"][size="xl"]) {
110110
--spectrum-accordion-item-header-line-height: 1.25;
111111
--spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-spacious-extra-large);
112112
--spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-spacious-extra-large);
113113
}
114114

115-
:host([size='s']) {
115+
:host([size="s"]) {
116116
--spectrum-accordion-item-height: var(--spectrum-component-height-100);
117117
--spectrum-accordion-disclosure-indicator-height: var(--spectrum-component-height-75);
118118
--spectrum-accordion-component-edge-to-text: var(--spectrum-component-edge-to-text-50);
@@ -122,7 +122,7 @@ governing permissions and limitations under the License.
122122
--spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-regular-small);
123123
}
124124

125-
:host([size='l']) {
125+
:host([size="l"]) {
126126
--spectrum-accordion-item-height: var(--spectrum-component-height-300);
127127
--spectrum-accordion-disclosure-indicator-height: var(--spectrum-component-height-200);
128128
--spectrum-accordion-component-edge-to-text: var(--spectrum-component-edge-to-text-100);
@@ -132,7 +132,7 @@ governing permissions and limitations under the License.
132132
--spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-regular-large);
133133
}
134134

135-
:host([size='xl']) {
135+
:host([size="xl"]) {
136136
--spectrum-accordion-item-height: var(--spectrum-component-height-400);
137137
--spectrum-accordion-disclosure-indicator-height: var(--spectrum-component-height-300);
138138
--spectrum-accordion-component-edge-to-text: var(--spectrum-component-edge-to-text-200);

packages/action-bar/src/action-bar-overrides.css

+2-6
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ governing permissions and limitations under the License.
1212

1313
/* THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
1414
:host {
15-
--spectrum-actionbar-popover-background-color: var(
16-
--system-action-bar-popover-background-color
17-
);
18-
--spectrum-actionbar-popover-border-color: var(
19-
--system-action-bar-popover-border-color
20-
);
15+
--spectrum-actionbar-popover-background-color: var(--system-action-bar-popover-background-color);
16+
--spectrum-actionbar-popover-border-color: var(--system-action-bar-popover-border-color);
2117
}

packages/action-bar/src/spectrum-action-bar.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ governing permissions and limitations under the License.
115115
color: var(--mod-actionbar-emphasized-item-counter-color, var(--spectrum-actionbar-emphasized-item-counter-color));
116116
}
117117

118-
:host([variant='sticky']) {
118+
:host([variant="sticky"]) {
119119
position: sticky;
120120
inset-inline: 0;
121121
}
122122

123-
:host([variant='fixed']) {
123+
:host([variant="fixed"]) {
124124
position: fixed;
125125
}
126126

0 commit comments

Comments
 (0)