-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DevOverlay] fix: restore pagination style
- Loading branch information
1 parent
cefc220
commit a31b1e3
Showing
2 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
69 changes: 69 additions & 0 deletions
69
...ents/react-dev-overlay/_experimental/internal/components/Errors/ErrorPagination/styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import { noop as css } from '../../../helpers/noop-template' | ||
|
||
const styles = css` | ||
[data-nextjs-dialog-left-right] { | ||
display: flex; | ||
flex-direction: row; | ||
align-content: center; | ||
align-items: center; | ||
justify-content: space-between; | ||
} | ||
[data-nextjs-dialog-left-right] > nav { | ||
flex: 1; | ||
display: flex; | ||
align-items: center; | ||
margin-right: var(--size-gap); | ||
} | ||
[data-nextjs-dialog-left-right] > nav > button { | ||
display: inline-flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: calc(var(--size-gap-double) + var(--size-gap)); | ||
height: calc(var(--size-gap-double) + var(--size-gap)); | ||
font-size: 0; | ||
border: none; | ||
background-color: rgba(255, 85, 85, 0.1); | ||
color: var(--color-ansi-red); | ||
cursor: pointer; | ||
transition: background-color 0.25s ease; | ||
} | ||
[data-nextjs-dialog-left-right] > nav > button > svg { | ||
width: auto; | ||
height: calc(var(--size-gap) + var(--size-gap-half)); | ||
} | ||
[data-nextjs-dialog-left-right] > nav > button:hover { | ||
background-color: rgba(255, 85, 85, 0.2); | ||
} | ||
[data-nextjs-dialog-left-right] > nav > button:disabled { | ||
background-color: rgba(255, 85, 85, 0.1); | ||
color: rgba(255, 85, 85, 0.4); | ||
cursor: not-allowed; | ||
} | ||
[data-nextjs-dialog-left-right] > nav > button:first-of-type { | ||
border-radius: var(--size-gap-half) 0 0 var(--size-gap-half); | ||
margin-right: 1px; | ||
} | ||
[data-nextjs-dialog-left-right] > nav > button:last-of-type { | ||
border-radius: 0 var(--size-gap-half) var(--size-gap-half) 0; | ||
} | ||
[data-nextjs-dialog-left-right] > button:last-of-type { | ||
border: 0; | ||
padding: 0; | ||
background-color: transparent; | ||
appearance: none; | ||
opacity: 0.4; | ||
transition: opacity 0.25s ease; | ||
color: var(--color-font); | ||
} | ||
[data-nextjs-dialog-left-right] > button:last-of-type:hover { | ||
opacity: 0.7; | ||
} | ||
` | ||
|
||
export { styles } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters