Skip to content

Commit

Permalink
[docs] Trim trailing whitespace (mui#38793)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored and xcode-it committed Sep 11, 2023
1 parent 4f76d57 commit dec4772
Show file tree
Hide file tree
Showing 65 changed files with 155 additions and 190 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const StyledAutocompleteRoot = styled('div')(
padding-right: 5px;
overflow: hidden;
width: 320px;
&.focused {
border-color: ${blue[400]};
box-shadow: 0 0 0 3px ${theme.palette.mode === 'dark' ? blue[500] : blue[200]};
Expand Down Expand Up @@ -264,7 +264,7 @@ const StyledPopupIndicator = styled(Button)(
background-color: transparent;
align-self: center;
padding: 0 2px;
&:hover {
background-color: ${theme.palette.mode === 'dark' ? grey[700] : blue[100]};
cursor: pointer;
Expand All @@ -289,7 +289,7 @@ const StyledClearIndicator = styled(Button)(
background-color: transparent;
align-self: center;
padding: 0 2px;
&:hover {
background-color: ${theme.palette.mode === 'dark' ? grey[700] : blue[100]};
cursor: pointer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const StyledAutocompleteRoot = styled('div')(
padding-right: 5px;
overflow: hidden;
width: 320px;
&.focused {
border-color: ${blue[400]};
box-shadow: 0 0 0 3px ${theme.palette.mode === 'dark' ? blue[500] : blue[200]};
Expand Down Expand Up @@ -247,7 +247,7 @@ const StyledPopupIndicator = styled(Button)(
background-color: transparent;
align-self: center;
padding: 0 2px;
&:hover {
background-color: ${theme.palette.mode === 'dark' ? grey[700] : blue[100]};
cursor: pointer;
Expand All @@ -272,7 +272,7 @@ const StyledClearIndicator = styled(Button)(
background-color: transparent;
align-self: center;
padding: 0 2px;
&:hover {
background-color: ${theme.palette.mode === 'dark' ? grey[700] : blue[100]};
cursor: pointer;
Expand Down
4 changes: 2 additions & 2 deletions docs/data/base/components/button/UnstyledButtonCustom.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const CustomButtonRoot = styled(ButtonRoot)(
transition: all 800ms ease;
pointer-events: none;
}
& .bg {
stroke: var(--main-color);
stroke-width: 1;
Expand Down Expand Up @@ -86,7 +86,7 @@ const CustomButtonRoot = styled(ButtonRoot)(
outline-offset: 2px;
}
&.${buttonClasses.active} {
&.${buttonClasses.active} {
& .bg {
fill: var(--active-color);
transition: fill 300ms ease-out;
Expand Down
4 changes: 2 additions & 2 deletions docs/data/base/components/button/UnstyledButtonCustom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const CustomButtonRoot = styled(ButtonRoot)(
transition: all 800ms ease;
pointer-events: none;
}
& .bg {
stroke: var(--main-color);
stroke-width: 1;
Expand Down Expand Up @@ -87,7 +87,7 @@ const CustomButtonRoot = styled(ButtonRoot)(
outline-offset: 2px;
}
&.${buttonClasses.active} {
&.${buttonClasses.active} {
& .bg {
fill: var(--active-color);
transition: fill 300ms ease-out;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,11 @@ function Styles() {
.CustomButton:active:not(.${buttonClasses.disabled}) {
background-color: ${cyan[700]};
}
.${buttonClasses.disabled} {
opacity: 0.5;
cursor: not-allowed;
}
`}
</style>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,11 @@ function Styles() {
.CustomButton:active:not(.${buttonClasses.disabled}) {
background-color: ${cyan[700]};
}
.${buttonClasses.disabled} {
opacity: 0.5;
cursor: not-allowed;
}
`}
</style>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function BasicFormControl() {

const StyledInput = styled(Input)(
({ theme }) => `
.${inputClasses.input} {
width: 320px;
font-size: 0.875rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function BasicFormControl() {

const StyledInput = styled(Input)(
({ theme }) => `
.${inputClasses.input} {
width: 320px;
font-size: 0.875rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export default function FormControlFunctionChild() {

const StyledInput = styled(Input)(
({ theme }) => `
display: inline-block;
.${inputClasses.input} {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export default function FormControlFunctionChild() {

const StyledInput = styled(Input)(
({ theme }) => `
display: inline-block;
.${inputClasses.input} {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@ function Styles() {
background: ${isDarkMode ? grey[900] : '#fff'};
border: 1px solid ${isDarkMode ? grey[700] : grey[200]};
box-shadow: 0px 2px 2px ${isDarkMode ? grey[900] : grey[50]};
&:hover {
border-color: ${cyan[400]};
}
&:focus {
border-color: ${cyan[400]};
box-shadow: 0 0 0 3px ${isDarkMode ? cyan[500] : cyan[200]};
}
&:focus-visible {
outline: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@ function Styles() {
background: ${isDarkMode ? grey[900] : '#fff'};
border: 1px solid ${isDarkMode ? grey[700] : grey[200]};
box-shadow: 0px 2px 2px ${isDarkMode ? grey[900] : grey[50]};
&:hover {
border-color: ${cyan[400]};
}
&:focus {
border-color: ${cyan[400]};
box-shadow: 0 0 0 3px ${isDarkMode ? cyan[500] : cyan[200]};
}
&:focus-visible {
outline: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ function Styles() {
background: ${isDarkMode ? grey[900] : '#fff'};
border: 1px solid ${isDarkMode ? grey[700] : grey[200]};
box-shadow: 0px 2px 24px ${isDarkMode ? cyan[800] : cyan[100]};
&:hover {
border-color: ${cyan[400]};
}
&:focus {
border-color: ${cyan[400]};
box-shadow: 0 0 0 3px ${isDarkMode ? cyan[600] : cyan[200]};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ function Styles() {
background: ${isDarkMode ? grey[900] : '#fff'};
border: 1px solid ${isDarkMode ? grey[700] : grey[200]};
box-shadow: 0px 2px 24px ${isDarkMode ? cyan[800] : cyan[100]};
&:hover {
border-color: ${cyan[400]};
}
&:focus {
border-color: ${cyan[400]};
box-shadow: 0 0 0 3px ${isDarkMode ? cyan[600] : cyan[200]};
Expand Down
3 changes: 1 addition & 2 deletions docs/data/base/components/menu/MenuSimple/css/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ function Styles() {
cursor: pointer;
border: 1px solid ${isDarkMode ? grey[800] : grey[200]};
color: ${isDarkMode ? cyan[300] : cyan[400]};
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 120ms;
Expand All @@ -150,7 +149,7 @@ function Styles() {
background: ${isDarkMode ? grey[800] : grey[50]};
border-color: ${isDarkMode ? grey[600] : grey[300]};
}
.TriggerButton:focus-visible {
border-color: ${cyan[400]};
outline: 3px solid ${isDarkMode ? cyan[500] : cyan[200]};
Expand Down
3 changes: 1 addition & 2 deletions docs/data/base/components/menu/MenuSimple/css/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ function Styles() {
cursor: pointer;
border: 1px solid ${isDarkMode ? grey[800] : grey[200]};
color: ${isDarkMode ? cyan[300] : cyan[400]};
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 120ms;
Expand All @@ -150,7 +149,7 @@ function Styles() {
background: ${isDarkMode ? grey[800] : grey[50]};
border-color: ${isDarkMode ? grey[600] : grey[300]};
}
.TriggerButton:focus-visible {
border-color: ${cyan[400]};
outline: 3px solid ${isDarkMode ? cyan[500] : cyan[200]};
Expand Down
5 changes: 2 additions & 3 deletions docs/data/base/components/menu/UseMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,16 +188,15 @@ const styles = `
border: 1px solid ${grey[200]};
color: ${grey[900]};
cursor: pointer;
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 120ms;
&:hover {
background: ${grey[50]};
border-color: ${grey[300]};
}
&:focus-visible {
border-color: ${blue[400]};
outline: 3px solid ${blue[200]};
Expand Down
5 changes: 2 additions & 3 deletions docs/data/base/components/menu/UseMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,16 +187,15 @@ const styles = `
border: 1px solid ${grey[200]};
color: ${grey[900]};
cursor: pointer;
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 120ms;
&:hover {
background: ${grey[50]};
border-color: ${grey[300]};
}
&:focus-visible {
border-color: ${blue[400]};
outline: 3px solid ${blue[200]};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ const StyledButton = styled('button')(
background: ${theme.palette.mode === 'dark' ? grey[900] : '#fff'};
border: 0;
color: ${theme.palette.mode === 'dark' ? grey[300] : grey[900]};
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 120ms;
Expand All @@ -141,7 +140,7 @@ const StyledButton = styled('button')(
grid-column: 2/3;
grid-row: 1/2;
}
&.${numberInputClasses.decrementButton} {
grid-column: 2/3;
grid-row: 2/3;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ const StyledButton = styled('button')(
background: ${theme.palette.mode === 'dark' ? grey[900] : '#fff'};
border: 0;
color: ${theme.palette.mode === 'dark' ? grey[300] : grey[900]};
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 120ms;
Expand All @@ -145,7 +144,7 @@ const StyledButton = styled('button')(
grid-column: 2/3;
grid-row: 1/2;
}
&.${numberInputClasses.decrementButton} {
grid-column: 2/3;
grid-row: 2/3;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ const StyledButton = styled('button')(
background: ${theme.palette.mode === 'dark' ? grey[900] : '#fff'};
border: 0;
color: ${theme.palette.mode === 'dark' ? grey[300] : grey[900]};
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 120ms;
Expand All @@ -136,7 +135,7 @@ const StyledButton = styled('button')(
grid-column: 2/3;
grid-row: 1/2;
}
&.${numberInputClasses.decrementButton} {
grid-column: 2/3;
grid-row: 2/3;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ const StyledButton = styled('button')(
background: ${theme.palette.mode === 'dark' ? grey[900] : '#fff'};
border: 0;
color: ${theme.palette.mode === 'dark' ? grey[300] : grey[900]};
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 120ms;
Expand All @@ -140,7 +139,7 @@ const StyledButton = styled('button')(
grid-column: 2/3;
grid-row: 1/2;
}
&.${numberInputClasses.decrementButton} {
grid-column: 2/3;
grid-row: 2/3;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ const StyledInputRoot = styled('div')(
font-family: IBM Plex Sans, sans-serif;
font-weight: 400;
color: ${theme.palette.mode === 'dark' ? grey[300] : grey[500]};
display: flex;
flex-flow: row nowrap;
justify-content: center;
Expand Down Expand Up @@ -110,14 +109,12 @@ const StyledButton = styled('button')(
border-radius: 999px;
color: ${theme.palette.mode === 'dark' ? blue[300] : blue[600]};
background: transparent;
width: 40px;
height: 40px;
display: flex;
flex-flow: row nowrap;
justify-content: center;
align-items: center;
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 120ms;
Expand Down
Loading

0 comments on commit dec4772

Please sign in to comment.