forked from vercel/next.js
-
Notifications
You must be signed in to change notification settings - Fork 0
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 (vercel#74296)
### Why? This PR restores the pagination style, which was accidentally omitted at vercel#74097. #### Before ![Screenshot 2024-12-25 at 8.37.33 PM.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/dQEaKpg78raP6UllhQTZ/4c164615-3f55-4423-9049-7e1827b454be.png) #### After ![Screenshot 2024-12-25 at 8.37.07 PM.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/dQEaKpg78raP6UllhQTZ/c3693982-7592-40c5-bf46-bf9c0379af22.png)
- Loading branch information
1 parent
cefc220
commit 26f6133
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