Skip to content

Commit

Permalink
fix: use the "browsers" listing in postcss-preset-env
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed Jan 21, 2021
1 parent 2eee81e commit 4eaf6a2
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 12 deletions.
1 change: 0 additions & 1 deletion packages/accordion/src/spectrum-accordion-item.css
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
cursor: pointer;
font-weight: 500;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-color: inherit;
border: 0;
Expand Down
1 change: 0 additions & 1 deletion packages/action-button/src/spectrum-action-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
var(--spectrum-global-font-family-base)
);
line-height: 1.3;
-moz-user-select: none;
user-select: none;
-webkit-user-select: none;
touch-action: none;
Expand Down
1 change: 0 additions & 1 deletion packages/actionbar/src/spectrum-actionbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
}
:host([variant='sticky']) {
/* .spectrum-ActionBar--sticky */
position: -webkit-sticky;
position: sticky;
}
:host([flexible]) #popover {
Expand Down
1 change: 0 additions & 1 deletion packages/avatar/src/spectrum-avatar.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
border-style: none;
-webkit-user-drag: none;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
opacity: var(--spectrum-avatar-size-100-opacity, 1);
}
Expand Down
1 change: 0 additions & 1 deletion packages/button/src/spectrum-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
var(--spectrum-global-font-family-base)
);
line-height: 1.3;
-moz-user-select: none;
user-select: none;
-webkit-user-select: none;
touch-action: none;
Expand Down
1 change: 0 additions & 1 deletion packages/button/src/spectrum-clear-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
var(--spectrum-global-font-family-base)
);
line-height: 1.3;
-moz-user-select: none;
user-select: none;
-webkit-user-select: none;
touch-action: none;
Expand Down
1 change: 0 additions & 1 deletion packages/dropdown/src/spectrum-dropdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
var(--spectrum-global-font-family-base)
);
line-height: 1.3;
-moz-user-select: none;
user-select: none;
-webkit-user-select: none;
touch-action: none;
Expand Down
1 change: 0 additions & 1 deletion packages/modal/src/spectrum-modal-wrapper.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
width: 100vw;
height: 100vh;
height: -webkit-fill-available;
height: -moz-available;
height: fill-available;
visibility: hidden;
pointer-events: none;
Expand Down
2 changes: 0 additions & 2 deletions packages/slider/src/spectrum-slider.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
min-height: var(--spectrum-slider-height);
min-width: var(--spectrum-slider-min-width);
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
:host([dir='ltr']) #controls {
Expand Down Expand Up @@ -302,7 +301,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
:host([variant='range']) #value {
/* .spectrum-Slider--range .spectrum-Slider-value */
-webkit-user-select: text;
-moz-user-select: text;
user-select: text;
}
:host([dir='ltr'][variant='range']) .track:first-of-type {
Expand Down
1 change: 0 additions & 1 deletion packages/tags/src/spectrum-tag.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
border-radius: var(--spectrum-global-dimension-size-50);
outline: none;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
transition: border-color
var(--spectrum-global-animation-duration-100, 0.13s) ease-in-out,
Expand Down
1 change: 0 additions & 1 deletion packages/tooltip/src/spectrum-tooltip.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
-webkit-font-smoothing: antialiased;
cursor: default;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
p {
Expand Down
6 changes: 6 additions & 0 deletions scripts/css-processing.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ const postCSSPlugins = (resourcePath) => {
require('postcss-inherit')(),
require('postcss-preset-env')({
stage: 0,
browsers: [
'last 2 Chrome versions',
'last 2 Firefox versions',
'last 2 Safari versions',
'last 2 iOS versions',
],
}),
// minify the css with cssnano presets
require('cssnano')({
Expand Down

0 comments on commit 4eaf6a2

Please sign in to comment.