mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
30 lines
692 B
CSS
30 lines
692 B
CSS
.Button {
|
|
border: none;
|
|
background: var(--color-button-background);
|
|
color: var(--color-button);
|
|
border-radius: 0.25rem;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 0.25rem;
|
|
cursor: pointer;
|
|
flex: 0 0 auto;
|
|
}
|
|
.Button:hover {
|
|
background: var(--color-button-background-hover);
|
|
color: var(--color-button-hover);
|
|
}
|
|
.Button:active {
|
|
background: var(--color-button-background-focus);
|
|
color: var(--color-button-focus);
|
|
outline: none;
|
|
}
|
|
.Button:focus {
|
|
outline: none;
|
|
box-shadow: 0 0 0 2px var(--color-button-background-focus) inset;
|
|
}
|
|
.Button:disabled {
|
|
background: var(--color-button-background);
|
|
color: var(--color-button-disabled);
|
|
cursor: default;
|
|
}
|